/**
 * Sky Consent Banner Styles
 * Phase 1 Task 1.5
 *
 * RTL-aware. Brand colors: Pearl + Gold + Teal.
 */

#sky-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  /* Explicit base values so revert-to-base after the slide-in animation
     never strands the banner at the @keyframes `from` state (opacity:0 +
     translateY(100%)). Without these, some Chrome incognito sessions held
     the element at the from-keyframe values even after animation finished,
     so the banner stayed below viewport and invisible on first visit. */
  opacity: 1;
  transform: translateY(0);
  background: #FAF7F3;
  border-top: 3px solid #D9A84E;
  box-shadow: 0 -4px 16px rgba(7, 87, 77, 0.12);
  padding: 20px;
  z-index: 999999;
  font-family: 'Tahoma', 'Cairo', Arial, sans-serif;
  direction: rtl;
  text-align: right;
  /* Slide-in animation removed (was: animation: sky-consent-slide 0.4s ease-out
     forwards). Production inspection on clean incognito showed the Web Animation
     clock frozen at currentTime=0 with playState="running" indefinitely, so the
     forwards fill-mode never activated and the running animation kept overriding
     the explicit base values with the from-keyframe state. Root cause of the
     clock freeze unidentified after two attempted CSS fixes (78d3f1b base values
     + 2628fec forwards). Dropping the animation entirely makes the banner appear
     instantly on first paint via the base values above — the 0.4s aesthetic
     transition is the acceptable tradeoff for guaranteed PDPL banner visibility. */
}

#sky-consent-banner .sky-consent-content {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

#sky-consent-banner .sky-consent-text {
  flex: 1;
  min-width: 280px;
  color: #102E3A;
  line-height: 1.6;
  font-size: 14px;
}

#sky-consent-banner .sky-consent-text strong {
  display: block;
  color: #07574D;
  font-size: 16px;
  margin-bottom: 4px;
}

#sky-consent-banner .sky-consent-text p {
  margin: 0;
}

#sky-consent-banner .sky-consent-text a {
  color: #07574D;
  text-decoration: underline;
  font-weight: 600;
}

#sky-consent-banner .sky-consent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#sky-consent-banner .sky-consent-btn {
  border: 0;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

#sky-consent-banner .sky-consent-btn:hover {
  transform: translateY(-1px);
}

#sky-consent-banner .sky-consent-customize {
  background: transparent;
  color: #07574D;
  border: 1px solid #07574D;
}
#sky-consent-banner .sky-consent-customize:hover {
  background: rgba(7, 87, 77, 0.08);
}

#sky-consent-banner .sky-consent-reject {
  background: white;
  color: #102E3A;
  border: 1px solid #c0c0c0;
}
#sky-consent-banner .sky-consent-reject:hover {
  background: #f5f5f5;
}

#sky-consent-banner .sky-consent-accept {
  background: #07574D;
  color: white;
}
#sky-consent-banner .sky-consent-accept:hover {
  background: #0B7D6F;
}

#sky-consent-banner .sky-consent-customize-panel {
  margin-top: 16px;
  padding: 16px;
  background: white;
  border-radius: 6px;
  border: 1px solid rgba(7, 87, 77, 0.2);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

#sky-consent-banner .sky-consent-option {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

#sky-consent-banner .sky-consent-option:last-of-type {
  border-bottom: 0;
}

#sky-consent-banner .sky-consent-option label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #102E3A;
  cursor: pointer;
}

#sky-consent-banner .sky-consent-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #07574D;
  cursor: pointer;
}

#sky-consent-banner .sky-consent-option input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

#sky-consent-banner .sky-consent-option small {
  display: block;
  margin: 4px 0 0 26px;
  color: #666;
  font-size: 12px;
}

#sky-consent-banner .sky-consent-save {
  background: #D9A84E;
  color: #07574D;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
}

#sky-consent-banner .sky-consent-save:hover {
  background: #c89638;
}

@media (max-width: 768px) {
  #sky-consent-banner {
    padding: 16px;
  }
  #sky-consent-banner .sky-consent-content {
    flex-direction: column;
    align-items: stretch;
  }
  #sky-consent-banner .sky-consent-actions {
    justify-content: stretch;
  }
  #sky-consent-banner .sky-consent-btn {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
  }
  #sky-consent-banner .sky-consent-text {
    text-align: right;
  }
}
