/* ===================================
   CUSTOM COOKIE CONSENT BANNER
   Brand-Specific Styling
   =================================== */

/* ===================================
   BANNER (Bottom of page)
   =================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999999;
  background: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #a855f7 100%);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Poppins', sans-serif;
}

.cookie-banner-visible {
  transform: translateY(0);
}

.cookie-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cookie-banner-text h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
}

.cookie-banner-text p {
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.6;
  margin: 0 0 0.5rem 0;
  opacity: 0.95;
}

.cookie-privacy-link {
  color: #ffffff;
  text-decoration: underline;
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.cookie-privacy-link:hover {
  opacity: 0.8;
}

.cookie-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ===================================
   BUTTONS
   =================================== */

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
}

.cookie-btn-accept {
  background: #ffffff;
  color: #ec4899;
  border: 2px solid #ffffff;
}

.cookie-btn-accept:hover {
  background: #fff5f7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-btn-reject {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.cookie-btn-customize {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 2px solid transparent;
}

.cookie-btn-customize:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ===================================
   MODAL (Settings)
   =================================== */

.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.cookie-modal-visible {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  cursor: pointer;
}

.cookie-modal-content {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.cookie-modal-visible .cookie-modal-content {
  transform: scale(1);
}

.cookie-modal-header {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #a855f7 100%);
  color: #ffffff;
  padding: 1.5rem;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.cookie-modal-close {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cookie-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #ffffff;
}

.cookie-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.cookie-modal-intro {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ===================================
   COOKIE CATEGORIES
   =================================== */

.cookie-category {
  background: #f9fafb;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.cookie-category:hover {
  border-color: #ec4899;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.1);
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.cookie-category-info {
  flex: 1;
}

.cookie-category-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.5rem 0;
}

.cookie-category-info p {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ===================================
   TOGGLE SWITCH
   =================================== */

.cookie-toggle {
  flex-shrink: 0;
}

.cookie-toggle input {
  display: none;
}

.cookie-toggle-label {
  display: block;
  width: 50px;
  height: 26px;
  background: #ccc;
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cookie-toggle-switch {
  display: block;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-toggle input:checked + .cookie-toggle-label {
  background: #10b981;
}

.cookie-toggle input:checked + .cookie-toggle-label .cookie-toggle-switch {
  transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-label {
  background: #10b981;
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===================================
   MODAL FOOTER
   =================================== */

.cookie-modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
}

.cookie-modal-footer .cookie-btn {
  width: auto;
  min-width: 180px;
}

/* ===================================
   RESPONSIVE - TABLET
   =================================== */

@media (min-width: 768px) {
  .cookie-banner-content {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .cookie-banner-text {
    flex: 1;
  }

  .cookie-banner-actions {
    flex-direction: row;
    flex-shrink: 0;
    width: auto;
  }

  .cookie-btn {
    width: auto;
    padding: 0.75rem 1.5rem;
  }

  .cookie-modal-content {
    width: 600px;
  }

  .cookie-modal-header h2 {
    font-size: 1.75rem;
  }
}

/* ===================================
   RESPONSIVE - DESKTOP
   =================================== */

@media (min-width: 1024px) {
  .cookie-banner {
    padding: 2rem;
  }

  .cookie-banner-text h2 {
    font-size: 1.5rem;
  }

  .cookie-banner-text p {
    font-size: 1rem;
  }

  .cookie-btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

@media (prefers-reduced-motion: reduce) {
  .cookie-banner,
  .cookie-modal,
  .cookie-modal-content,
  .cookie-btn,
  .cookie-toggle-label,
  .cookie-toggle-switch {
    transition: none !important;
    animation: none !important;
  }
}

/* Focus states for keyboard navigation */
.cookie-btn:focus,
.cookie-modal-close:focus,
.cookie-toggle-label:focus,
.cookie-privacy-link:focus {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.cookie-modal-content .cookie-btn:focus,
.cookie-modal-content .cookie-modal-close:focus {
  outline-color: #ec4899;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .cookie-banner,
  .cookie-modal-header {
    background: #000000;
  }

  .cookie-btn-accept {
    background: #ffffff;
    color: #000000;
    border-color: #000000;
  }
}
