/* SnowIT Cookie Consent Banner Styles */

/* Banner */
.snowit-consent-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fafafa;
  font-family:
    var(--font-primary),
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  padding: 1rem;
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: 12px;
  z-index: 9999;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
  margin: 0;
}

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

.snowit-consent-message {
  flex: 1;
  min-width: 250px;
  font-family:
    var(--font-primary),
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
}

.snowit-consent-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Buttons */
.snowit-consent-btn {
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.snowit-consent-btn-primary {
  background: #ff6b35;
  color: white;
}

.snowit-consent-btn-primary:hover {
  background: #e55a2b;
}

.snowit-consent-btn-secondary {
  background: transparent;
  color: #fafafa;
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.snowit-consent-btn-secondary:hover {
  border-color: #ff6b35;
  background: rgba(255, 107, 53, 0.05);
}

.snowit-consent-btn-tertiary {
  background: transparent;
  color: #b0b0b0;
  border: none;
  text-decoration: underline;
}

.snowit-consent-btn-tertiary:hover {
  color: #fafafa;
}

.snowit-consent-btn-muted {
  background: transparent;
  color: #888;
  border: 1px solid #444;
}

.snowit-consent-btn-muted:hover {
  color: #b0b0b0;
  border-color: #666;
}

/* Modal */
.snowit-consent-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.snowit-consent-modal {
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 107, 53, 0.25);
  color: #fafafa;
  font-family:
    var(--font-primary),
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  border-radius: 12px;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 64px rgba(0, 0, 0, 0.4);
}

.snowit-consent-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.snowit-consent-modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-family:
    var(--font-primary),
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

.snowit-consent-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.snowit-consent-modal-close:hover {
  color: #fafafa;
}

.snowit-consent-modal-body {
  padding: 1.5rem;
}

.snowit-consent-modal-body > p {
  margin: 0 0 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #b0b0b0;
  font-family:
    var(--font-primary),
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

.snowit-consent-category {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.snowit-consent-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.snowit-consent-category label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  margin-bottom: 0.75rem;
  font-weight: 500;
  font-family:
    var(--font-primary),
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

.snowit-consent-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #ff6b35;
}

.snowit-consent-category input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.snowit-consent-category-desc {
  margin: 0.5rem 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #999;
}

.snowit-consent-category-examples,
.snowit-consent-category-info {
  margin: 0.5rem 0;
  font-size: 0.8rem;
  color: #777;
  font-style: italic;
}

.snowit-consent-modal-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 107, 53, 0.1);
  display: flex;
  gap: 0.75rem;
  flex-direction: column;
}

.snowit-consent-modal-footer .snowit-consent-btn {
  width: 100%;
}

/* Toast */
.snowit-consent-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #10b981;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  font-size: 0.9rem;
  animation: slideIn 0.3s ease;
  transition: opacity 0.3s ease;
  opacity: 1;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Footer link */
.snowit-consent-footer-link {
  background: none;
  border: none;
  color: #ff6b35;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.snowit-consent-footer-link:hover {
  color: #fafafa;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .snowit-consent-banner {
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    margin: 0;
  }

  .snowit-consent-banner-content {
    flex-direction: column;
    gap: 1rem;
  }

  .snowit-consent-message {
    min-width: 100%;
  }

  .snowit-consent-buttons {
    width: 100%;
    flex-direction: column;
  }

  .snowit-consent-btn {
    width: 100%;
    text-align: center;
  }

  .snowit-consent-modal {
    max-height: 90vh;
  }

  .snowit-consent-modal-footer {
    flex-direction: column;
  }

  .snowit-consent-toast {
    top: auto;
    bottom: 20px;
    right: 10px;
    left: 10px;
  }
}
