/* =============================================
   Águila Slots — Cookie Consent "Golden Drawer"
   Slides in from the right edge of the viewport
   ============================================= */

/* Overlay */
.as-cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 26, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.as-cc-overlay.as-cc-show { opacity: 1; pointer-events: auto; }

/* Drawer Panel */
.as-cc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 92vw;
  height: 100dvh;
  z-index: 9999;
  background: linear-gradient(175deg, #1E1E32 0%, #0D0D1A 100%);
  border-left: 3px solid var(--gold-primary, #D4AF37);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6), -2px 0 20px rgba(212, 175, 55, 0.1);
  display: flex;
  flex-direction: column;
  transform: translateX(110%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.as-cc-drawer.as-cc-show { transform: translateX(0); }

/* Drawer Header */
.as-cc-head {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  position: relative;
}
.as-cc-head::before {
  content: '𓂀';
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 22px;
  opacity: 0.25;
  color: var(--gold-primary, #D4AF37);
}
.as-cc-title {
  font-family: 'Cinzel', serif;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  line-height: 1.3;
}
.as-cc-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
  margin: 0;
}
.as-cc-subtitle a {
  color: var(--gold-primary, #D4AF37);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.as-cc-subtitle a:hover { color: #F4D03F; }

/* Drawer Body — toggle list */
.as-cc-body { padding: 20px 24px; flex: 1; }

.as-cc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.as-cc-row:last-child { border-bottom: none; }

.as-cc-label { display: flex; flex-direction: column; gap: 2px; flex: 1; padding-right: 14px; }
.as-cc-label-name {
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: #fff;
}
.as-cc-label-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.4;
}

/* Custom Toggle Switch */
.as-cc-toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.as-cc-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.as-cc-toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.as-cc-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}
.as-cc-toggle input:checked + .as-cc-toggle-track {
  background: var(--gold-primary, #D4AF37);
}
.as-cc-toggle input:checked + .as-cc-toggle-track::after {
  transform: translateX(20px);
}
.as-cc-toggle input:disabled + .as-cc-toggle-track {
  opacity: 0.5;
  cursor: default;
}

/* Drawer Footer — action buttons */
.as-cc-foot {
  padding: 20px 24px 28px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.as-cc-btn {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
  line-height: 1;
}
.as-cc-btn:active { transform: scale(0.97); }

.as-cc-btn-accept {
  background: linear-gradient(135deg, #D4AF37, #B8860B);
  color: #0D0D1A;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}
.as-cc-btn-accept:hover {
  background: linear-gradient(135deg, #F4D03F, #D4AF37);
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.45);
}

.as-cc-btn-save {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.as-cc-btn-save:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

.as-cc-btn-reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  font-size: 13px;
  padding: 10px 16px;
}
.as-cc-btn-reject:hover { color: rgba(255, 255, 255, 0.8); }

/* Gold decorative line at top */
.as-cc-drawer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-primary, #D4AF37), transparent);
  z-index: 1;
}

/* Mobile: bottom sheet instead of side drawer */
@media (max-width: 540px) {
  .as-cc-drawer {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 85dvh;
    border-left: none;
    border-top: 3px solid var(--gold-primary, #D4AF37);
    border-radius: 18px 18px 0 0;
    transform: translateY(110%);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6);
  }
  .as-cc-drawer.as-cc-show { transform: translateY(0); }
  .as-cc-drawer::before {
    height: 0;
  }
  .as-cc-head { padding: 22px 20px 16px; }
  .as-cc-body { padding: 16px 20px; }
  .as-cc-foot { padding: 16px 20px 24px; }
  .as-cc-title { font-size: 17px; }
}
