/* ==========================================================================
   PANOVA CAFÉ & BAKERY — DPDP ACT 2023 CONSENT & PRIVACY BANNER
   Colors: Obsidian Espresso (#200C04), Warm Cream (#FAF6EF), Wheat Gold (#B8975A)
   Complies with Digital Personal Data Protection Act, 2023 (India)
   ========================================================================== */

.dpdp-banner-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 1rem 1.25rem;
  background: rgba(32, 12, 4, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(184, 151, 90, 0.35);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
  color: #FAF6EF;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}

.dpdp-banner-container.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.dpdp-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .dpdp-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.dpdp-content {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  flex: 1;
}

.dpdp-badge-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(184, 151, 90, 0.15);
  border: 1px solid rgba(184, 151, 90, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B8975A;
  flex-shrink: 0;
}

.dpdp-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dpdp-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: #FAF6EF;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.02em;
}

.dpdp-heading span.badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  background: rgba(184, 151, 90, 0.2);
  color: #F5D77F;
  border: 1px solid rgba(184, 151, 90, 0.3);
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  font-weight: 800;
}

.dpdp-desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(250, 246, 239, 0.78);
  margin: 0;
}

.dpdp-desc a {
  color: #B8975A;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.dpdp-desc a:hover {
  color: #F5D77F;
}

.dpdp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
}

.dpdp-btn {
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: none;
  font-family: inherit;
}

.dpdp-btn-primary {
  background: #B8975A;
  color: #200C04;
  box-shadow: 0 2px 10px rgba(184, 151, 90, 0.3);
}

.dpdp-btn-primary:hover {
  background: #c8a86d;
  transform: translateY(-1px);
}

.dpdp-btn-outline {
  background: transparent;
  color: #FAF6EF;
  border: 1px solid rgba(250, 246, 239, 0.25);
}

.dpdp-btn-outline:hover {
  background: rgba(250, 246, 239, 0.08);
  border-color: rgba(184, 151, 90, 0.5);
  color: #B8975A;
}

/* Modal Preferences Drawer */
.dpdp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 5, 2, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.dpdp-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.dpdp-modal {
  background: #200C04;
  border: 1px solid rgba(184, 151, 90, 0.35);
  border-radius: 1.25rem;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  color: #FAF6EF;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dpdp-modal-overlay.is-active .dpdp-modal {
  transform: scale(1);
}

.dpdp-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(184, 151, 90, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dpdp-modal-title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #FAF6EF;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dpdp-modal-close {
  background: transparent;
  border: none;
  color: rgba(250, 246, 239, 0.6);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dpdp-modal-close:hover {
  color: #FAF6EF;
}

.dpdp-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dpdp-pref-row {
  background: rgba(250, 246, 239, 0.04);
  border: 1px solid rgba(184, 151, 90, 0.15);
  border-radius: 0.875rem;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dpdp-pref-info h5 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: #FAF6EF;
}

.dpdp-pref-info p {
  font-size: 0.78125rem;
  line-height: 1.45;
  color: rgba(250, 246, 239, 0.7);
  margin: 0;
}

/* iOS-style toggle switch */
.dpdp-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

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

.dpdp-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(250, 246, 239, 0.2);
  transition: 0.25s;
  border-radius: 24px;
}

.dpdp-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
}

input:checked + .dpdp-slider {
  background-color: #B8975A;
}

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

input:disabled + .dpdp-slider {
  opacity: 0.55;
  cursor: not-allowed;
}

.dpdp-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(184, 151, 90, 0.2);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: rgba(15, 5, 2, 0.4);
}
