/* ===================================
   COOKIE CONSENT STYLES
   Dhanshuk Ltd
   =================================== */

/* Cookie Banner */
#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.cookie-banner {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 1.5rem 2rem;
  border-top: 3px solid var(--color-accent);
}

.cookie-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cookie-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.cookie-text p {
  font-size: 0.95rem;
  color: rgba(55, 52, 53, 0.8);
  line-height: 1.6;
  margin: 0;
}

.cookie-text a {
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-text a:hover {
  color: #c41f23;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
}

.cookie-btn-primary {
  background: var(--color-accent);
  color: var(--color-light);
}

.cookie-btn-primary:hover {
  background: #c41f23;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(237, 50, 55, 0.3);
}

.cookie-btn-secondary {
  background: var(--color-dark);
  color: var(--color-light);
}

.cookie-btn-secondary:hover {
  background: rgba(55, 52, 53, 0.85);
  transform: translateY(-2px);
}

.cookie-btn-outline {
  background: transparent;
  color: var(--color-dark);
  border: 2px solid var(--color-dark);
}

.cookie-btn-outline:hover {
  background: var(--color-dark);
  color: var(--color-light);
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.cookie-modal-content {
  background: var(--color-light);
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  border-bottom: 1px solid rgba(55, 52, 53, 0.1);
}

.cookie-modal-header h2 {
  font-size: 1.5rem;
  color: var(--color-dark);
  margin: 0;
}

.cookie-modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.cookie-modal-close:hover {
  background: rgba(55, 52, 53, 0.1);
}

.cookie-modal-close .material-symbols-outlined {
  font-size: 24px;
  color: var(--color-dark);
}

.cookie-modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.cookie-category {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(55, 52, 53, 0.1);
}

.cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.cookie-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.cookie-category-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cookie-category h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
}

.cookie-badge {
  background: rgba(55, 52, 53, 0.1);
  color: var(--color-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.cookie-category p {
  font-size: 0.9rem;
  color: rgba(55, 52, 53, 0.7);
  line-height: 1.6;
  margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(55, 52, 53, 0.2);
  transition: 0.3s;
  border-radius: 26px;
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-slider {
  background-color: var(--color-accent);
}

.cookie-toggle input:checked + .cookie-slider:before {
  transform: translateX(24px);
}

.cookie-modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid rgba(55, 52, 53, 0.1);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cookie-banner {
    padding: 1.25rem 1rem;
  }

  .cookie-content {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .cookie-text h3 {
    font-size: 1.1rem;
  }

  .cookie-text p {
    font-size: 0.9rem;
  }

  .cookie-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cookie-btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    text-align: center;
  }

  .cookie-modal {
    padding: 1rem;
  }

  .cookie-modal-content {
    max-height: 90vh;
  }

  .cookie-modal-header {
    padding: 1.5rem;
  }

  .cookie-modal-header h2 {
    font-size: 1.3rem;
  }

  .cookie-modal-body {
    padding: 1.5rem;
  }

  .cookie-modal-footer {
    flex-direction: column;
    padding: 1.5rem;
  }

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

/* Cookie Settings Link in Footer */
.cookie-settings-link {
  cursor: pointer;
  color: var(--color-accent);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-settings-link:hover {
  color: #c41f23;
}
