.cookie-shell {
  position: fixed;
  inset: auto 24px 24px 24px;
  z-index: 10000;
  display: none;
  justify-content: center;
  pointer-events: none;
}

.cookie-shell.is-visible {
  display: flex;
}

.cookie-panel {
  width: min(760px, 100%);
  padding: 18px;
  border: 1px solid rgba(201, 168, 76, 0.34);
  border-radius: 8px;
  background: rgba(10, 14, 23, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  color: #F5F0E8;
  pointer-events: auto;
  backdrop-filter: blur(18px);
}

.cookie-kicker {
  margin-bottom: 8px;
  color: #C9A84C;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}

.cookie-title {
  margin: 0 0 8px;
  color: #F5F0E8;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.1;
}

.cookie-copy {
  margin: 0;
  color: rgba(203, 213, 225, 0.86);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
}

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

.cookie-button,
.cookie-preferences-trigger {
  min-height: 38px;
  border: 1px solid rgba(201, 168, 76, 0.34);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  color: #F5F0E8;
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  padding: 10px 14px;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cookie-button:hover,
.cookie-preferences-trigger:hover {
  border-color: rgba(201, 168, 76, 0.7);
  background: rgba(201, 168, 76, 0.08);
  transform: translateY(-1px);
}

.cookie-button.primary {
  border-color: #C9A84C;
  background: #C9A84C;
  color: #0A0E17;
  font-weight: 500;
}

.cookie-button.primary:hover {
  background: #E8D5A3;
  color: #0A0E17;
}

.cookie-preferences-trigger {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  display: none;
  min-height: 34px;
  padding: 8px 11px;
  background: rgba(10, 14, 23, 0.78);
  color: rgba(245, 240, 232, 0.78);
  font-size: 9px;
  backdrop-filter: blur(12px);
}

.cookie-preferences-trigger.is-visible {
  display: inline-flex;
  align-items: center;
}

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(5, 8, 13, 0.68);
}

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

.cookie-modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border: 1px solid rgba(201, 168, 76, 0.34);
  border-radius: 8px;
  background: #0A0E17;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
  color: #F5F0E8;
}

.cookie-modal-head,
.cookie-modal-foot {
  padding: 18px;
}

.cookie-modal-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-modal-head h2 {
  margin: 0 0 8px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 300;
  line-height: 1.1;
}

.cookie-modal-head p {
  margin: 0;
  color: rgba(203, 213, 225, 0.86);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
}

.cookie-policy-link {
  color: #C9A84C;
  text-decoration: none;
}

.cookie-policy-link:hover {
  color: #E8D5A3;
}

.cookie-option-list {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: #0A0E17;
}

.cookie-option h3 {
  margin: 0 0 7px;
  color: #F5F0E8;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.cookie-option p {
  margin: 0;
  color: rgba(203, 213, 225, 0.78);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  line-height: 1.65;
}

.cookie-status-badge {
  align-self: start;
  border: 1px solid rgba(201, 168, 76, 0.42);
  border-radius: 999px;
  color: #C9A84C;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  line-height: 1;
  padding: 8px 10px;
  text-transform: uppercase;
  white-space: nowrap;
}

.cookie-modal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .cookie-shell {
    inset: auto 12px 12px 12px;
  }

  .cookie-actions,
  .cookie-modal-foot {
    justify-content: stretch;
  }

  .cookie-button {
    flex: 1 1 100%;
  }

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