.bcm-cookie-banner,
.bcm-cookie-banner * {
  box-sizing: border-box;
}

.bcm-cookie-banner[hidden],
.bcm-cookie-manage[hidden],
.bcm-cookie-banner__preferences[hidden],
.bcm-cookie-btn[hidden] {
  display: none !important;
}

.bcm-cookie-banner {
  position: fixed;
  z-index: 9999999;
  inset: auto 18px 18px 18px;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}

.bcm-cookie-banner--center {
  inset: 0;
  align-items: center;
  background: rgba(0, 0, 0, .22);
}

.bcm-cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.bcm-cookie-banner__box {
  width: min(760px, 100%);
  padding: 22px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 22px;
  background: #fff;
  color: #191919;
  box-shadow: 0 22px 60px rgba(0,0,0,.18);
}

.bcm-cookie-banner__content h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.12;
}

.bcm-cookie-banner__content p {
  margin: 0;
  color: #666;
  font-size: 15px;
  line-height: 1.6;
}

.bcm-cookie-banner__link {
  display: inline-flex;
  margin-top: 10px;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
}

.bcm-cookie-banner__preferences {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.bcm-cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 16px;
  background: #fafafa;
}

.bcm-cookie-option strong,
.bcm-cookie-option small {
  display: block;
}

.bcm-cookie-option small {
  margin-top: 3px;
  color: #777;
  line-height: 1.35;
}

.bcm-cookie-option input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.bcm-cookie-option--disabled {
  opacity: .75;
}

.bcm-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.bcm-cookie-btn,
.bcm-cookie-manage {
  min-height: 42px;
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}

.bcm-cookie-btn--primary {
  background: #111;
  color: #fff;
}

.bcm-cookie-btn--secondary {
  background: #f1f1f1;
  color: #111;
}

.bcm-cookie-btn--ghost {
  background: transparent;
  color: #111;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
}

.bcm-cookie-manage {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9999998;
  min-height: 38px;
  padding: 9px 13px;
  background: #111;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

@media (max-width: 640px) {
  .bcm-cookie-banner {
    inset: auto 10px 10px 10px;
  }

  .bcm-cookie-banner--center {
    inset: 0;
    padding: 10px;
  }

  .bcm-cookie-banner__box {
    padding: 18px;
    border-radius: 18px;
  }

  .bcm-cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .bcm-cookie-btn {
    width: 100%;
  }
}
