.cookie-consent-banner,
.cookie-consent-dialog,
.cookie-settings-trigger {
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

.cookie-consent-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 10000;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px;
  color: #f8fafc;
  background: #0b1220;
  border: 1px solid #334155;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .48);
}

.cookie-consent-banner[hidden],
.cookie-consent-dialog[hidden],
.cookie-settings-trigger[hidden] {
  display: none !important;
}

.cookie-consent-banner h2,
.cookie-consent-dialog h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 20px;
  line-height: 1.25;
}

.cookie-consent-banner p,
.cookie-consent-dialog p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.55;
}

.cookie-consent-banner a,
.cookie-consent-dialog a {
  color: #93c5fd;
}

.cookie-consent-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.cookie-consent-button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #3b82f6;
  border-radius: 6px;
  color: #fff;
  background: #2563eb;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-consent-button:hover,
.cookie-consent-button:focus-visible {
  background: #1d4ed8;
  outline: 2px solid #bfdbfe;
  outline-offset: 2px;
}

.cookie-consent-button--equal {
  background: #2563eb;
}

.cookie-consent-button--secondary {
  border-color: #64748b;
  background: #172033;
}

.cookie-consent-button--secondary:hover,
.cookie-consent-button--secondary:focus-visible {
  background: #243047;
}

.cookie-consent-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(2, 6, 23, .76);
}

.cookie-consent-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 10002;
  width: min(560px, calc(100% - 28px));
  max-height: min(720px, calc(100vh - 28px));
  overflow: auto;
  padding: 22px;
  color: #f8fafc;
  background: #0b1220;
  border: 1px solid #334155;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .58);
  transform: translate(-50%, -50%);
}

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

.cookie-consent-dialog__close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid #475569;
  border-radius: 50%;
  color: #fff;
  background: #111827;
  font: 700 22px/1 Arial, sans-serif;
  cursor: pointer;
}

.cookie-consent-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
  padding: 15px;
  border: 1px solid #263449;
  border-radius: 8px;
  background: #101827;
}

.cookie-consent-category strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 15px;
}

.cookie-consent-category input {
  width: 22px;
  height: 22px;
  accent-color: #3b82f6;
}

.cookie-consent-required {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.cookie-consent-dialog__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.cookie-settings-trigger {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 9998;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #475569;
  border-radius: 6px;
  color: #e2e8f0;
  background: rgba(11, 18, 32, .96);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .34);
}

.cookie-settings-trigger:hover,
.cookie-settings-trigger:focus-visible {
  color: #fff;
  border-color: #60a5fa;
  outline: 2px solid #bfdbfe;
  outline-offset: 2px;
}

body.cookie-consent-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .cookie-consent-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: calc(100% - 20px);
    padding: 16px;
  }

  .cookie-consent-actions,
  .cookie-consent-dialog__actions {
    grid-template-columns: 1fr;
  }

  .cookie-consent-category {
    gap: 10px;
  }

  .cookie-settings-trigger {
    left: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cookie-consent-banner,
  .cookie-consent-dialog {
    animation: cookie-consent-enter .2s ease-out;
  }

  @keyframes cookie-consent-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .cookie-consent-dialog {
    animation-name: cookie-dialog-enter;
  }

  @keyframes cookie-dialog-enter {
    from { opacity: 0; transform: translate(-50%, calc(-50% + 8px)); }
    to { opacity: 1; transform: translate(-50%, -50%); }
  }
}
