/* ===== Cookie Consent (scoped, safe) ===== */

#cookie-consent {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 999999;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

/* Modal */
#cookie-consent .cc-modal {
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  padding: 28px 28px 24px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  animation: cookieFadeIn 0.35s ease;
}

/* Title */
#cookie-consent .cc-modal h3 {
  margin: 0 0 12px 0;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
}

/* Text */
#cookie-consent .cc-modal p {
  margin: 0 0 18px 0;
  font-size: 15px;
  line-height: 1.6;
}

/* Labels */
#cookie-consent .cc-modal label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  font-size: 14px;
  text-align: left;
}

#cookie-consent .cc-modal input[type="checkbox"] {
  transform: translateY(1px);
}

/* Buttons wrapper */
#cookie-consent .cc-buttons {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Buttons */
#cookie-consent .cc-buttons button {
  background: #0a84ff;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 999px; /* максимально заокруглені */
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  min-width: 160px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

#cookie-consent .cc-buttons button:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(10, 132, 255, 0.35);
}

/* Link */
#cookie-consent .cc-modal a {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  color: #0a84ff;
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 480px) {
  #cookie-consent .cc-modal {
    padding: 22px 18px 20px;
  }

  #cookie-consent .cc-buttons button {
    width: 100%;
    min-width: unset;
  }
}

/* Animation */
@keyframes cookieFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
