#bsw-cookie-consent,
#bsw-cookie-consent * {
  box-sizing: border-box;
}

.bsw-cookie-banner {
  position: fixed;
  z-index: 10020;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  color: #172033;
  background: #fff;
  border: 1px solid #dce2ea;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(25, 42, 70, .18);
  font: 14px/1.45 Arial, sans-serif;
}

.bsw-cookie-copy {
  flex: 1 1 auto;
}

.bsw-cookie-copy strong,
.bsw-cookie-modal h2 {
  color: #172033;
  font-weight: 700;
}

.bsw-cookie-copy p {
  margin: 4px 0;
}

.bsw-cookie-copy a {
  color: #1168b3;
  text-decoration: underline;
}

.bsw-cookie-actions,
.bsw-cookie-modal-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.bsw-cookie-button,
.bsw-cookie-open {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: 600 14px/1.2 Arial, sans-serif;
}

.bsw-cookie-button--primary {
  color: #fff;
  background: #1475c9;
  border-color: #1475c9;
}

.bsw-cookie-button--secondary {
  color: #172033;
  background: #fff;
  border-color: #aab6c5;
}

.bsw-cookie-button--plain {
  color: #1168b3;
  background: transparent;
}

.bsw-cookie-button:focus-visible,
.bsw-cookie-open:focus-visible,
.bsw-cookie-close:focus-visible,
.bsw-cookie-option input:focus-visible {
  outline: 3px solid rgba(20, 117, 201, .35);
  outline-offset: 2px;
}

.bsw-cookie-open {
  position: fixed;
  z-index: 10010;
  right: 14px;
  bottom: 14px;
  min-height: 36px;
  padding: 8px 11px;
  color: #172033;
  background: #fff;
  border-color: #c9d2dd;
  box-shadow: 0 5px 18px rgba(25, 42, 70, .13);
  font-size: 12px;
}

.bsw-cookie-overlay {
  position: fixed;
  z-index: 10030;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(14, 24, 40, .58);
}

.bsw-cookie-modal {
  position: relative;
  width: min(100%, 620px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 26px;
  color: #172033;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
  font: 14px/1.5 Arial, sans-serif;
}

.bsw-cookie-modal h2 {
  margin: 0 38px 8px 0;
  font-size: 24px;
}

.bsw-cookie-modal > p {
  margin: 0 0 18px;
}

.bsw-cookie-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  color: #344055;
  background: #f2f5f8;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.bsw-cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0;
  padding: 15px;
  background: #f6f8fb;
  border: 1px solid #e0e6ed;
  border-radius: 10px;
}

.bsw-cookie-option strong,
.bsw-cookie-option span {
  display: block;
}

.bsw-cookie-option span {
  margin-top: 3px;
  color: #596579;
  font-size: 13px;
}

.bsw-cookie-option .bsw-cookie-required {
  flex: 0 0 auto;
  margin: 0;
  color: #397047;
  font-weight: 700;
}

.bsw-cookie-option input {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  accent-color: #1475c9;
}

.bsw-cookie-modal-actions {
  margin-top: 20px;
}

.bsw-cookie-modal-open {
  overflow: hidden;
}

.bsw-cookie-banner[hidden],
.bsw-cookie-open[hidden],
.bsw-cookie-overlay[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .bsw-cookie-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: block;
    max-height: calc(100vh - 20px);
    overflow: auto;
    padding: 16px;
  }

  .bsw-cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .bsw-cookie-button {
    width: 100%;
  }

  .bsw-cookie-modal {
    padding: 22px 16px;
  }

  .bsw-cookie-option {
    align-items: flex-start;
  }

  .bsw-cookie-option .bsw-cookie-required {
    max-width: 110px;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  #bsw-cookie-consent * {
    scroll-behavior: auto !important;
  }
}
