/* Cookie Consent Popup */
.cookie-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  justify-content: center;
  align-items: center;
}

.cookie-overlay.active {
  display: flex;
}

.cookie-popup {
  background: #fff;
  border-radius: 16px;
  max-width: 580px;
  width: 92%;
  padding: 36px 32px 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  animation: cookieFadeIn 0.3s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes cookieFadeIn {
  from { transform: scale(0.92) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.cookie-popup__title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin: 0 0 14px 0;
  line-height: 1.3;
}

.cookie-popup__text {
  font-size: 14px;
  color: #555;
  line-height: 1.75;
  margin: 0 0 20px 0;
}

.cookie-popup__links {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.cookie-popup__links a {
  font-size: 13px;
  color: #7c3aed;
  text-decoration: none;
  transition: color 0.2s;
}

.cookie-popup__links a:hover {
  color: #5b21b6;
  text-decoration: underline;
}

.cookie-popup__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.cookie-popup__btn {
  padding: 11px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  border: none;
  outline: none;
  line-height: 1.4;
}

.cookie-popup__btn--customize {
  background: transparent;
  color: #333;
  border: 1px solid #d0d0d0;
}
.cookie-popup__btn--customize:hover {
  border-color: #999;
  background: #f5f5f5;
}

.cookie-popup__btn--reject {
  background: transparent;
  color: #333;
  border: 1px solid #d0d0d0;
}
.cookie-popup__btn--reject:hover {
  border-color: #999;
  background: #f5f5f5;
}

.cookie-popup__btn--accept {
  background: #7c3aed;
  color: #fff;
  border: 1px solid #7c3aed;
}
.cookie-popup__btn--accept:hover {
  background: #6d28d9;
  border-color: #6d28d9;
}

/* Cookie Settings Modal (customize) */
.cookie-settings-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100000;
  display: none;
  justify-content: center;
  align-items: center;
}

.cookie-settings-overlay.active {
  display: flex;
}

.cookie-settings {
  background: #fff;
  border-radius: 16px;
  max-width: 560px;
  width: 92%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: cookieFadeIn 0.3s ease-out;
}

.cookie-settings__title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 0 0 20px 0;
}

.cookie-settings__group {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
}

.cookie-settings__group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-settings__group-name {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.cookie-settings__group-desc {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
  line-height: 1.5;
}

.cookie-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle__slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ccc;
  border-radius: 24px;
  transition: 0.3s;
}

.cookie-toggle__slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.cookie-toggle input:checked + .cookie-toggle__slider {
  background: #7c3aed;
}

.cookie-toggle input:checked + .cookie-toggle__slider:before {
  transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle__slider {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-settings__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* Footer policy links inside .copyRight */
.cookie-policy-links {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.cookie-policy-links a {
  font-size: 0.12rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  line-height: 0.3rem;
  transition: color 0.2s;
  margin-right: 0;
}

.cookie-policy-links a:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

/* Override footer copyRight height for two rows */
.footer .copyRight {
  height: auto;
  padding-bottom: 0.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .cookie-popup {
    padding: 24px 20px 20px;
    width: 95%;
  }
  .cookie-popup__actions {
    flex-direction: column;
  }
  .cookie-popup__btn {
    width: 100%;
    text-align: center;
  }
  .cookie-settings {
    padding: 20px;
    width: 95%;
  }
  .cookie-settings__actions {
    flex-direction: column;
  }
  .cookie-settings__actions .cookie-popup__btn {
    width: 100%;
    text-align: center;
  }
  .cookie-policy-links {
    height: auto;
    margin-bottom: 10px;
  }
}
