/* ===================================================
   Cookie Consent — Femme Aesthetics 2026 Theme
   =================================================== */

/* ------- Banner ------- */
.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--white, #ffffff);
  border-top: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.06);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease;
}

.cc-banner--visible {
  transform: translateY(0);
  opacity: 1;
}

.cc-banner__inner {
  width: min(100% - 2rem, 1280px);
  margin: 0 auto;
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cc-banner__inner {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 0;
  }
}

.cc-banner__text {
  flex: 1;
}

.cc-banner__title {
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-size: var(--text-lg, 1.25rem);
  font-weight: 500;
  color: var(--ink, #1a1a1a);
  margin-bottom: 0.25rem;
}

.cc-banner__desc {
  font-size: var(--text-sm, 0.8125rem);
  color: var(--ash, #6e6e6e);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.cc-banner__links {
  display: flex;
  gap: 1rem;
}

.cc-banner__links a {
  font-size: var(--text-xs, 0.6875rem);
  color: var(--ash, #6e6e6e);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 150ms ease;
}

.cc-banner__links a:hover {
  color: var(--ink, #1a1a1a);
}

.cc-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .cc-banner__actions {
    flex-direction: column;
    gap: 0.5rem;
    min-width: 180px;
  }
}

/* ------- Shared button styles ------- */
.cc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-sans, 'Inter', -apple-system, sans-serif);
  font-size: var(--text-sm, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  border-radius: var(--radius-sm, 4px);
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
  white-space: nowrap;
}

.cc-btn--primary {
  background: var(--ink, #1a1a1a);
  color: var(--white, #ffffff);
}

.cc-btn--primary:hover {
  background: var(--coal, #2d2d2d);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.cc-btn--secondary {
  background: transparent;
  color: var(--ink, #1a1a1a);
  border: 1px solid var(--mist, #d1d1d1);
}

.cc-btn--secondary:hover {
  border-color: var(--ink, #1a1a1a);
}

.cc-btn--link {
  background: none;
  color: var(--ash, #6e6e6e);
  padding: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-btn--link:hover {
  color: var(--ink, #1a1a1a);
}

/* ------- Overlay ------- */
.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(26,26,26,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cc-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

/* ------- Modal ------- */
.cc-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 10002;
  width: min(calc(100% - 2rem), 540px);
  max-height: calc(100vh - 4rem);
  max-height: calc(100dvh - 4rem);
  background: var(--white, #ffffff);
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16,1,0.3,1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cc-modal--visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cc-modal__inner {
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (max-width: 480px) {
  .cc-modal__inner {
    padding: 1.5rem 1.25rem;
  }
}

.cc-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cc-modal__title {
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif);
  font-size: var(--text-xl, 1.5rem);
  font-weight: 500;
  color: var(--ink, #1a1a1a);
  margin: 0;
}

.cc-modal__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--ash, #6e6e6e);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background 150ms ease, color 150ms ease;
  flex-shrink: 0;
}

.cc-modal__close:hover {
  background: var(--cream, #f7f5f2);
  color: var(--ink, #1a1a1a);
}

.cc-modal__desc {
  font-size: var(--text-sm, 0.8125rem);
  color: var(--ash, #6e6e6e);
  line-height: 1.6;
  margin: 0;
}

/* ------- Preference items ------- */
.cc-pref__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cc-pref__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.cc-pref__item:last-child {
  border-bottom: none;
}

.cc-pref__item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.cc-pref__item-label {
  font-size: var(--text-base, 0.9375rem);
  font-weight: 500;
  color: var(--ink, #1a1a1a);
}

.cc-pref__item-desc {
  font-size: var(--text-xs, 0.6875rem);
  color: var(--fog, #a3a3a3);
  line-height: 1.5;
}

.cc-pref__always-on {
  font-size: var(--text-xs, 0.6875rem);
  font-weight: 500;
  color: var(--fog, #a3a3a3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* ------- Toggle switch ------- */
.cc-toggle {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  flex-shrink: 0;
}

.cc-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cc-toggle__track {
  width: 44px;
  height: 24px;
  background: var(--mist, #d1d1d1);
  border-radius: 12px;
  position: relative;
  transition: background 200ms ease;
}

.cc-toggle input:checked + .cc-toggle__track {
  background: var(--ink, #1a1a1a);
}

.cc-toggle input:focus-visible + .cc-toggle__track {
  outline: 2px solid var(--ink, #1a1a1a);
  outline-offset: 2px;
}

.cc-toggle__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--white, #ffffff);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 200ms cubic-bezier(0.16,1,0.3,1);
}

.cc-toggle input:checked + .cc-toggle__track .cc-toggle__knob {
  transform: translateX(20px);
}

/* ------- Modal footer ------- */
.cc-modal__footer {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.cc-modal__footer .cc-btn {
  flex: 1;
}

/* ------- Reduced motion ------- */
@media (prefers-reduced-motion: reduce) {
  .cc-banner,
  .cc-modal,
  .cc-overlay,
  .cc-toggle__knob,
  .cc-toggle__track {
    transition-duration: 0.01ms !important;
  }
}
