.bt-consent-hidden {
  display: none !important;
}

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

.bt-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  background: rgba(17, 17, 17, 0.58);
  backdrop-filter: blur(5px);
}

.bt-consent-panel {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 2147483601;
  width: min(720px, calc(100vw - 28px));
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: #111;
  color: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  font-family: inherit;
}

.bt-consent-panel[aria-hidden="true"] {
  display: none;
}

.bt-consent-panel__inner {
  padding: 24px;
}

.bt-consent-kicker {
  margin: 0 0 8px;
  color: #E30005;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bt-consent-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(1.28rem, 3vw, 1.8rem);
  line-height: 1.15;
}

.bt-consent-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  line-height: 1.55;
}

.bt-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.bt-consent-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.bt-consent-btn:hover,
.bt-consent-btn:focus-visible {
  border-color: #E30005;
  background: rgba(199, 155, 100, 0.12);
  outline: none;
}

.bt-consent-btn--primary {
  border-color: #E30005;
  background: #E30005;
  color: #111;
}

.bt-consent-btn--primary:hover,
.bt-consent-btn--primary:focus-visible {
  background: #ff2a2f;
  color: #111;
}

.bt-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483602;
  display: grid;
  place-items: center;
  padding: 18px;
}

.bt-consent-modal[aria-hidden="true"] {
  display: none;
}

.bt-consent-modal__dialog {
  width: min(780px, 100%);
  max-height: min(780px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 24px;
  background: #fff;
  color: #191919;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.bt-consent-modal__header,
.bt-consent-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px;
}

.bt-consent-modal__header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.bt-consent-modal__footer {
  flex-wrap: wrap;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.bt-consent-modal__body {
  padding: 22px 24px;
}

.bt-consent-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f3f0ec;
  color: #111;
  font-size: 1.35rem;
  cursor: pointer;
}

.bt-consent-choice {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.bt-consent-choice:last-child {
  border-bottom: 0;
}

.bt-consent-choice h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.bt-consent-choice p,
.bt-consent-services {
  margin: 0;
  color: #60656f;
  font-size: 0.92rem;
  line-height: 1.45;
}

.bt-consent-switch {
  position: relative;
  width: 54px;
  height: 30px;
}

.bt-consent-switch input {
  position: absolute;
  opacity: 0;
}

.bt-consent-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d8dce4;
  cursor: pointer;
  transition: background 0.2s ease;
}

.bt-consent-switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease;
}

.bt-consent-switch input:checked + span {
  background: #E30005;
}

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

.bt-consent-switch input:disabled + span {
  cursor: not-allowed;
  opacity: 0.72;
}

.bt-consent-placeholder {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 26px;
  border: 1px solid rgba(199, 155, 100, 0.35);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(199, 155, 100, 0.12), rgba(255, 255, 255, 0.9));
  color: #222;
  text-align: center;
}

.bt-consent-placeholder strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.bt-consent-placeholder p {
  margin: 0 0 16px;
  color: #60656f;
}

.bt-consent-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  font-size: 0.92rem;
}

.bt-consent-footer-links a,
.bt-consent-footer-links button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 640px) {
  .bt-consent-panel {
    bottom: 10px;
    border-radius: 18px;
  }

  .bt-consent-panel__inner,
  .bt-consent-modal__header,
  .bt-consent-modal__body,
  .bt-consent-modal__footer {
    padding: 18px;
  }

  .bt-consent-actions,
  .bt-consent-modal__footer {
    display: grid;
  }

  .bt-consent-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bt-consent-btn,
  .bt-consent-switch span,
  .bt-consent-switch span::after {
    transition: none;
  }
}
