/* =====================
   COOKIE POLICY POPUP
   Shared across all page types.
   Enqueued globally in functions.php via vivi_kids_enqueue_scripts().
===================== */

.cookie-policy-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
  animation: fadeIn 0.3s ease-in-out;
  opacity: 1;
}

.cookie-policy-overlay.hide {
  animation: fadeOut 0.3s ease-in-out forwards;
}

.cookie-policy-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  border-top: 2px solid #5C33CF;
  padding: 30px 20px;
  z-index: 100;
  animation: slideUp 0.4s ease-in-out;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  max-height: 90vh;
  overflow-y: auto;
}

.cookie-policy-popup.hide {
  animation: slideDown 0.3s ease-in-out forwards;
}

.cookie-policy-container {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-policy-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cookie-policy-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0;
}

.cookie-policy-title {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  margin: 0;
  font-family: "DM Sans", sans-serif;
}

.cookie-close-btn {
  background: none;
  border: none;
  font-size: 32px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.cookie-close-btn:hover {
  color: #E53935;
}

.cookie-policy-text {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  margin: 0;
  font-family: "DM Sans", sans-serif;
  max-width: 700px;
}

.cookie-policy-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.cookie-btn {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.cookie-btn-reject {
  background-color: #fff;
  color: #5C33CF;
  border: 2px solid #5C33CF;
  border-radius: 8px;
}

.cookie-btn-reject:hover {
  background-color: rgba(92, 51, 207, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(92, 51, 207, 0.15);
}

.cookie-btn-accept {
  background-color: #5C33CF;
  color: #fff;
  border-radius: 8px;
}

.cookie-btn-accept:hover {
  background-color: #4a28b0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(73, 52, 110, 0.3);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@keyframes slideDown {
  from { transform: translateY(0); }
  to   { transform: translateY(100%); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@media (max-width: 768px) {
  .cookie-policy-popup {
    padding: 20px 15px;
    border-radius: 16px 16px 0 0;
  }
  .cookie-policy-title { font-size: 20px; }
  .cookie-policy-text  { font-size: 13px; }
  .cookie-policy-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .cookie-btn {
    width: 100%;
    padding: 14px 16px;
  }
  .cookie-policy-header { margin-bottom: 0; }
}
