/* =============================================
   Ashapura Cookie Consent Banner
   ============================================= */

#cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #1a1a1a;
  color: #f5f5f5;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  border-top: 3px solid #c8a96e; /* Gold accent matching corporate tone */
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#cookie-consent-banner.show {
  transform: translateY(0);
}

#cookie-consent-banner .cookie-text {
  flex: 1;
  min-width: 240px;
  color: #d0d0d0;
}

#cookie-consent-banner .cookie-text strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 4px;
}

#cookie-consent-banner .cookie-text a {
  color: #c8a96e;
  text-decoration: underline;
  cursor: pointer;
}

#cookie-consent-banner .cookie-text a:hover {
  color: #e0c080;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.cookie-btn:active {
  transform: scale(0.97);
}

.cookie-btn-accept-all {
  background: #c8a96e;
  color: #1a1a1a;
}

.cookie-btn-accept-all:hover {
  background: #e0c080;
}

.cookie-btn-necessary {
  background: transparent;
  color: #aaa;
  border: 1px solid #444;
}

.cookie-btn-necessary:hover {
  background: #2a2a2a;
  color: #ddd;
}

/* Preferences modal */
#cookie-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 100000;
  align-items: center;
  justify-content: center;
}

#cookie-modal-overlay.open {
  display: flex;
}

#cookie-modal {
  background: #1e1e1e;
  color: #e0e0e0;
  border-radius: 8px;
  padding: 28px 32px;
  width: 100%;
  max-width: 480px;
  margin: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  border-top: 3px solid #c8a96e;
  font-family: 'Segoe UI', sans-serif;
}

#cookie-modal h2 {
  font-size: 18px;
  color: #fff;
  margin: 0 0 8px;
}

#cookie-modal p {
  font-size: 13px;
  color: #aaa;
  margin: 0 0 20px;
}

.cookie-pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid #2e2e2e;
}

.cookie-pref-row:last-of-type {
  border-bottom: 1px solid #2e2e2e;
  margin-bottom: 20px;
}

.cookie-pref-label strong {
  display: block;
  font-size: 14px;
  color: #ddd;
}

.cookie-pref-label span {
  font-size: 12px;
  color: #888;
}

/* Toggle switch */
.toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #444;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle input:checked + .toggle-slider {
  background: #c8a96e;
}

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

.toggle input:disabled + .toggle-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  #cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .cookie-buttons {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}
