.bc-consent-banner[hidden],
.bc-consent-manage[hidden],
.bc-consent-layer[hidden] {
  display: none !important;
}

.bc-consent-banner,
.bc-consent-layer,
.bc-consent-manage,
.bc-consent-banner button,
.bc-consent-layer button,
.bc-consent-layer input {
  box-sizing: border-box;
  font-family: inherit;
}

.bc-consent-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100000;
  color: #fff;
  background: #08090a;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.22);
}

.bc-consent-banner__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(470px, 0.72fr);
  align-items: center;
  gap: 32px;
}

.bc-consent-copy h2,
.bc-consent-dialog h2 {
  margin: 0;
  letter-spacing: 0;
}

.bc-consent-copy h2 {
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.bc-consent-copy p {
  max-width: 700px;
  margin: 7px 0 0;
  color: #c8ccd1;
  font-size: 14px;
  line-height: 1.55;
}

.bc-consent-copy a,
.bc-consent-dialog a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bc-consent-actions,
.bc-consent-dialog__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bc-consent-actions button,
.bc-consent-dialog__actions button {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid currentColor;
  border-radius: 4px;
  color: #fff;
  background: transparent;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 650;
  letter-spacing: 0;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.bc-consent-actions button:hover,
.bc-consent-actions button:focus-visible {
  color: #08090a;
  background: #fff;
  border-color: #fff;
  outline: none;
}

.bc-consent-manage {
  position: fixed;
  bottom: 14px;
  left: 14px;
  z-index: 99990;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 4px;
  color: #fff;
  background: rgba(8, 9, 10, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: 0;
  cursor: pointer;
}

.bc-consent-manage:hover,
.bc-consent-manage:focus-visible {
  color: #08090a;
  background: #fff;
  outline: 2px solid #17a9e1;
  outline-offset: 2px;
}

.bc-consent-lock {
  overflow: hidden;
}

.bc-consent-layer {
  position: fixed;
  inset: 0;
  z-index: 100010;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.66);
}

.bc-consent-dialog {
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 28px;
  color: #15171a;
  background: #fff;
  border: 1px solid #d9dde2;
  border-radius: 6px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  outline: none;
}

.bc-consent-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.bc-consent-dialog__header span {
  display: block;
  margin-bottom: 5px;
  color: #008fc8;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 750;
  text-transform: uppercase;
}

.bc-consent-dialog h2 {
  color: #15171a;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 750;
}

.bc-consent-close {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #cfd4da;
  border-radius: 50%;
  color: #15171a;
  background: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.bc-consent-close:hover,
.bc-consent-close:focus-visible {
  border-color: #15171a;
  outline: 2px solid #17a9e1;
  outline-offset: 2px;
}

.bc-consent-dialog__intro {
  margin: 16px 0 22px;
  color: #5a6068;
  font-size: 15px;
  line-height: 1.55;
}

.bc-consent-options {
  border-top: 1px solid #d9dde2;
}

.bc-consent-option {
  min-height: 96px;
  margin: 0;
  padding: 18px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid #d9dde2;
  cursor: pointer;
}

.bc-consent-option:first-child {
  cursor: default;
}

.bc-consent-option strong {
  display: block;
  color: #15171a;
  font-size: 16px;
  line-height: 1.25;
}

.bc-consent-option p {
  margin: 5px 0 0;
  color: #626871;
  font-size: 13px;
  line-height: 1.45;
}

.bc-consent-required {
  color: #3d444c;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.bc-consent-switch {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
}

.bc-consent-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.bc-consent-switch span {
  position: absolute;
  inset: 0;
  border: 1px solid #aeb5bd;
  border-radius: 14px;
  background: #e8ebee;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.bc-consent-switch span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
  transition: transform 160ms ease;
}

.bc-consent-switch input:checked + span {
  border-color: #009fda;
  background: #009fda;
}

.bc-consent-switch input:checked + span::after {
  transform: translateX(20px);
}

.bc-consent-switch input:focus-visible + span {
  outline: 2px solid #15171a;
  outline-offset: 3px;
}

.bc-consent-dialog__actions {
  margin-top: 24px;
}

.bc-consent-dialog__actions button {
  color: #15171a;
  border-color: #15171a;
  background: #fff;
}

.bc-consent-dialog__actions button:hover,
.bc-consent-dialog__actions button:focus-visible {
  color: #fff;
  background: #15171a;
  outline: none;
}

.bc-consent-dialog__legal {
  margin: 17px 0 0;
  color: #59606a;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 860px) {
  .bc-consent-banner__inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 520px) {
  .bc-consent-banner__inner {
    padding: 18px 16px max(18px, env(safe-area-inset-bottom));
  }

  .bc-consent-copy h2 {
    font-size: 18px;
  }

  .bc-consent-copy p {
    font-size: 13px;
  }

  .bc-consent-actions,
  .bc-consent-dialog__actions {
    gap: 6px;
  }

  .bc-consent-actions button,
  .bc-consent-dialog__actions button {
    min-height: 52px;
    padding: 8px 6px;
    font-size: 12px;
  }

  .bc-consent-layer {
    align-items: end;
    padding: 0;
  }

  .bc-consent-dialog {
    width: 100%;
    max-height: calc(100vh - 16px);
    padding: 24px 18px max(22px, env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 6px 6px 0 0;
  }

  .bc-consent-dialog h2 {
    font-size: 23px;
  }

  .bc-consent-option {
    min-height: 90px;
    gap: 16px;
  }

  .bc-consent-manage {
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bc-consent-banner button,
  .bc-consent-dialog button,
  .bc-consent-switch span,
  .bc-consent-switch span::after {
    transition: none;
  }
}
