/* ========================================
   COOKIE CONSENT — TrueCell (Luxe theme)
   ======================================== */

.cc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(44, 18, 18, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.cc-overlay.cc-active {
  opacity: 1;
  visibility: visible;
}

.cc-banner {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  right: auto;
  width: calc(100% - 4rem);
  max-width: 500px;
  background: rgba(253, 249, 246, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--luxe-line, rgba(44, 18, 18, 0.14));
  border-radius: 4px;
  padding: 2rem;
  box-shadow: 0 24px 48px rgba(44, 18, 18, 0.12);
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
  font-family: var(--luxe-sans, "Instrument Sans", sans-serif);
  color: var(--luxe-ink, #2c1212);
}

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

.cc-title {
  font-family: var(--luxe-serif, "Cormorant Garamond", Georgia, serif);
  font-weight: 400;
  font-size: 1.875rem;
  line-height: 1.15;
  color: var(--luxe-ink, #2c1212);
  margin: 0 0 1rem;
}

.cc-text {
  font-size: 0.9375rem;
  color: var(--luxe-ink-soft, rgba(44, 18, 18, 0.78));
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.cc-text a {
  color: var(--luxe-burgundy, #682626);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cc-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--luxe-sans, "Instrument Sans", sans-serif);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.cc-btn--primary {
  background-color: var(--luxe-ink, #2c1212);
  color: var(--luxe-bone, #fdf9f6);
  flex: 1 1 auto;
  text-align: center;
}

.cc-btn--primary:hover {
  background-color: var(--luxe-burgundy, #682626);
}

.cc-btn--secondary {
  background-color: transparent;
  color: var(--luxe-ink, #2c1212);
  border: 1px solid var(--luxe-line, rgba(44, 18, 18, 0.14));
}

.cc-btn--secondary:hover {
  background-color: var(--luxe-bone-deep, #f0ece6);
}

.cc-btn--text {
  background: none;
  color: var(--luxe-ink-muted, rgba(44, 18, 18, 0.55));
  padding: 0.75rem 0.5rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-transform: none;
  letter-spacing: 0;
}

.cc-btn--text:hover {
  color: var(--luxe-burgundy, #682626);
}

/* Modal Preferences */
.cc-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(253, 249, 246, 0.97);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--luxe-line, rgba(44, 18, 18, 0.14));
  border-radius: 4px;
  padding: 3rem 2rem 2rem;
  box-shadow: 0 30px 60px rgba(44, 18, 18, 0.16);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--luxe-sans, "Instrument Sans", sans-serif);
  color: var(--luxe-ink, #2c1212);
}

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

.cc-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--luxe-ink, #2c1212);
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.cc-modal__close:hover {
  opacity: 1;
}

.cc-modal__body {
  margin-bottom: 1.5rem;
}

.cc-cookie-group {
  padding: 1rem 0;
  border-bottom: 1px solid var(--luxe-line-soft, rgba(44, 18, 18, 0.08));
}

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

.cc-cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.cc-cookie-title {
  font-weight: 500;
  font-size: 1rem;
  color: var(--luxe-ink, #2c1212);
  letter-spacing: 0.02em;
}

.cc-cookie-desc {
  font-size: 0.875rem;
  color: var(--luxe-ink-soft, rgba(44, 18, 18, 0.78));
  line-height: 1.6;
}

/* Toggle Switch */
.cc-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.cc-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--luxe-ink-muted, rgba(44, 18, 18, 0.55));
  transition: 0.4s;
  border-radius: 24px;
}

.cc-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--luxe-bone, #fdf9f6);
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .cc-slider {
  background-color: var(--luxe-burgundy, #682626);
}

input:focus + .cc-slider {
  box-shadow: 0 0 1px var(--luxe-burgundy, #682626);
}

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

input:disabled + .cc-slider {
  background-color: var(--luxe-line, rgba(44, 18, 18, 0.14));
  cursor: not-allowed;
}

input:disabled + .cc-slider:before {
  background-color: var(--luxe-ink-muted, rgba(44, 18, 18, 0.55));
}

@media (max-width: 600px) {
  .cc-banner {
    bottom: 1rem;
    left: 1rem;
    width: calc(100% - 2rem);
    padding: 1.5rem;
  }

  .cc-actions {
    flex-direction: column;
  }

  .cc-btn {
    width: 100%;
  }

  .cc-modal {
    width: 95%;
    padding: 2rem 1.5rem 1.5rem;
  }
}
