/* CSS for custom cookie consent banner - Adapted for ResellTurbo */
:root {
  --cookie-bg: #ffffff;
  --cookie-text: #475569; /* text-slate-600 */
  --cookie-accent: #d2ff00; /* resellGreen */
  --cookie-btn-primary-bg: #d2ff00;
  --cookie-btn-primary-text: #02122B; /* resellBlue */
  --cookie-btn-secondary-border: #cbd5e1;
  --cookie-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.cookie-banner-hidden {
  display: none !important;
}

/* Container */
#cookie-banner-container {
  display: none; /* Hidden by default until JS shows it */
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--cookie-bg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 2rem; /* Matches max-w-3xl rounded-[2rem] design */
  padding: 32px;
  color: var(--cookie-text);
  box-shadow: var(--cookie-shadow);
  z-index: 2147483647;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  opacity: 0;
  transform: translateY(20px);
  animation: cookieSlideIn 0.5s forwards ease-out;
}

@keyframes cookieSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Inner Layout */
.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-title {
  font-size: 1.5rem;
  font-weight: 900; /* font-black */
  color: #02122B; /* resellBlue */
  margin: 0;
}

.cookie-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--cookie-text);
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}

.cookie-btn {
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-btn-accept {
  background-color: var(--cookie-btn-primary-bg);
  color: var(--cookie-btn-primary-text);
}

.cookie-btn-accept:hover {
  filter: brightness(0.95);
  transform: translateY(-2px);
}

.cookie-btn-reject {
  background-color: transparent;
  border: 2px solid var(--cookie-btn-secondary-border);
  color: #02122B;
}

.cookie-btn-reject:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

.cookie-btn-settings {
  background: none;
  border: none;
  color: #64748b;
  text-decoration: underline;
  margin-left: auto;
  font-size: 0.9rem;
  padding: 0;
  font-weight: 600;
}

.cookie-btn-settings:hover {
  color: #02122B;
}

/* Settings Checkboxes */
#cookie-settings-panel {
  display: none;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    background: #f8fafc;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.cookie-checkbox {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    accent-color: #02122B;
}

.cookie-label-group {
    display: flex;
    flex-direction: column;
}

.cookie-label-title {
    font-weight: 700;
    color: #02122B;
    font-size: 1rem;
}

.cookie-label-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 4px;
}

/* Revoke Button (Fingerprint) */
#cookie-revoke-btn {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 50px;
  height: 50px;
  background-color: #ffffff;
  border: 2px solid #f1f5f9;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2147483646; 
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  opacity: 0.7;
  transition: all 0.3s;
}

#cookie-revoke-btn:hover {
  opacity: 1;
  transform: scale(1.1);
  border-color: var(--cookie-accent);
}

#cookie-revoke-svg {
  width: 24px;
  height: 24px;
  fill: #02122B;
}

/* Responsive */
@media (max-width: 640px) {
  #cookie-banner-container {
      bottom: 0;
      left: 0;
      right: 0;
      border-radius: 2rem 2rem 0 0;
      margin: 0;
      padding: 24px;
      max-height: 85vh;
      overflow-y: auto;
  }
  
  .cookie-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cookie-btn-settings {
    margin-left: 0;
    margin-top: 12px;
    text-align: center;
  }
}
