.cookie-banner,
.cookie-modal-backdrop,
.cookie-modal {
  box-sizing: border-box;
  font-family: inherit;
}

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

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 99999;
  display: none;
  max-width: 1040px;
  margin: 0 auto;
  border: 1px solid rgba(0, 1, 49, 0.08);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(0, 1, 49, 0.16);
  overflow: hidden;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
}

.cookie-banner-kicker {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: 999px;
  background: rgba(37, 63, 218, 0.08);
  padding: 5px 10px;
  color: #253fda;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-banner-title {
  margin: 0 0 12px;
  color: #000131;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.25;
}

.cookie-banner-text {
  margin: 0;
  max-width: 720px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}

.cookie-banner-text a {
  color: #253fda;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cookie-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 15px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.cookie-btn:hover {
  opacity: 0.9;
}

.cookie-btn:active {
  transform: scale(0.97);
}

.cookie-btn-primary {
  background: #253fda;
  color: #ffffff;
}

.cookie-btn-secondary {
  background: #f3f4f6;
  color: #000131;
}

.cookie-btn-ghost {
  background: transparent;
  color: #253fda;
}

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 1, 49, 0.48);
}

.cookie-modal-backdrop.is-visible {
  display: flex;
}

.cookie-modal {
  width: 100%;
  max-width: 660px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 24px 90px rgba(0, 1, 49, 0.26);
}

.cookie-modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #f1f1f4;
}

.cookie-modal-title {
  margin: 0;
  color: #000131;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.2;
}

.cookie-modal-desc {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}

.cookie-modal-body {
  padding: 18px 24px;
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f1f1f4;
}

.cookie-option:last-child {
  border-bottom: 0;
}

.cookie-option-title {
  margin: 0 0 5px;
  color: #000131;
  font-size: 14px;
  font-weight: 950;
}

.cookie-option-desc {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
}

.cookie-switch input {
  width: 0;
  height: 0;
  opacity: 0;
}

.cookie-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 999px;
  background: #d1d5db;
  transition: 0.2s;
}

.cookie-slider::before {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ffffff;
  transition: 0.2s;
}

.cookie-switch input:checked + .cookie-slider {
  background: #253fda;
}

.cookie-switch input:checked + .cookie-slider::before {
  transform: translateX(20px);
}

.cookie-switch input:disabled + .cookie-slider {
  cursor: not-allowed;
  background: #253fda;
  opacity: 0.65;
}

.cookie-modal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 18px 24px 24px;
  border-top: 1px solid #f1f1f4;
}

.cookie-settings-link {
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 720px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-banner-inner {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .cookie-banner-actions {
    justify-content: flex-start;
  }

  .cookie-btn {
    width: 100%;
  }

  .cookie-option {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .cookie-modal-footer .cookie-btn {
    width: 100%;
  }
}