/* Cookie Consent Styles - Matches Snapshot9 exactly */

/* Backdrop - Subtle, not black */
.cookie-consent-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 9998;
  backdrop-filter: blur(3px);
  pointer-events: none;
  display: none;
}

.cookie-consent-backdrop.active {
  display: block;
}

/* Bottom Banner Container - Centered */
.cookie-consent-banner {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: none;
}

.cookie-consent-banner.active {
  display: block;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Banner Content - Rectangular Card */
.cookie-consent-banner-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  padding: 18px 28px;
  max-width: 680px;
  width: auto;
  min-width: 580px;
}

/* Title */
.cookie-consent-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2c2c2c;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

/* Text Content */
.cookie-consent-text {
  margin-bottom: 14px;
}

.cookie-consent-text p {
  color: #5a5a5a;
  line-height: 1.4;
  margin: 0;
  font-size: 0.82rem;
}

.cookie-consent-dnt-notice {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #856404;
}

.cookie-consent-dnt-notice strong {
  font-weight: 600;
}

/* Action Buttons */
.cookie-consent-actions {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.cookie-consent-button {
  flex: 1;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  white-space: nowrap;
  text-align: center;
}

/* Primary Button - Snapshot9 Gold */
.cookie-consent-button-primary {
  background: #F7A400;
  color: white;
  border-color: #F7A400;
}

.cookie-consent-button-primary:hover {
  background: #E89B0D;
  border-color: #E89B0D;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(247, 164, 0, 0.3);
}

/* Outline Button */
.cookie-consent-button-outline {
  background: transparent;
  color: #6c757d;
  border-color: #dee2e6;
}

.cookie-consent-button-outline:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
  transform: translateY(-1px);
}

/* Blue Outline Button for Manage Preferences */
.cookie-consent-button-outline-blue {
  background: transparent;
  color: #4A9BB8;
  border-color: #4A9BB8;
}

.cookie-consent-button-outline-blue:hover {
  background: rgba(74, 155, 184, 0.1);
  border-color: #1E6B8C;
  color: #1E6B8C;
  transform: translateY(-1px);
}

/* Settings Panel */
.cookie-settings-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 420px;
  max-width: 90vw;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  display: none;
}

.cookie-settings-panel.active {
  display: block;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Settings Header */
.cookie-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
}

.cookie-settings-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #2c2c2c;
}

.cookie-settings-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #6c757d;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.cookie-settings-close:hover {
  background: #f8f9fa;
  color: #2c2c2c;
}

/* Settings Content */
.cookie-settings-content {
  padding: 20px 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.cookie-setting-item {
  margin-bottom: 20px;
}

.cookie-setting-item:last-child {
  margin-bottom: 0;
}

.cookie-setting-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.cookie-setting-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #2c2c2c;
  margin-bottom: 4px;
}

.cookie-setting-description {
  font-size: 0.85rem;
  color: #6c757d;
  line-height: 1.5;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  width: 48px;
  height: 24px;
  background: #dee2e6;
  border-radius: 24px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.cookie-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle-on {
  background: #4A9BB8;
}

.cookie-toggle-on .cookie-toggle-slider {
  transform: translateX(24px);
}

.cookie-toggle-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #e9ecef;
}

.cookie-toggle-label {
  font-size: 0.75rem;
  color: #6c757d;
  font-weight: 500;
}

/* Settings Actions */
.cookie-settings-actions {
  padding: 16px 24px;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.cookie-settings-button {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.cookie-settings-button-primary {
  background: #4A9BB8;
  color: white;
  border-color: #4A9BB8;
}

.cookie-settings-button-primary:hover {
  background: #1E6B8C;
  border-color: #1E6B8C;
  transform: translateY(-1px);
}

.cookie-settings-button-secondary {
  background: transparent;
  color: #6c757d;
  border-color: #dee2e6;
}

.cookie-settings-button-secondary:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
  color: #495057;
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-consent-banner {
    bottom: 20px;
    left: 20px;
    right: 20px;
    transform: none;
  }

  @keyframes slideUp {
    from {
      opacity: 0;
      transform: translateY(100%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .cookie-consent-banner-content {
    max-width: 100%;
    min-width: auto;
    padding: 20px;
  }

  .cookie-consent-title {
    font-size: 1.05rem;
  }

  .cookie-consent-actions {
    flex-wrap: wrap;
  }

  .cookie-consent-button {
    flex: 1;
    min-width: 140px;
  }

  .cookie-settings-panel {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 12px 12px 0 0;
  }
}
