/* Cookie consent styles, extracted from css/custom.css for the redesign. */
/* ---------------- Cookie consent banner & modal ---------------- */

/* Bottom banner */
#aspire-cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 1080;
  background: rgba(12, 26, 61, 0.97);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(110%);
  transition: transform 0.28s ease;
  font-size: 0.95rem;
}
#aspire-cookie-banner.is-visible {
  transform: translateY(0);
}
.aspire-cookie-banner-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.aspire-cookie-banner-text {
  flex: 1 1 360px;
}
.aspire-cookie-banner-text h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #fff;
}
.aspire-cookie-banner-text p {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.45;
}
.aspire-cookie-banner-text a {
  color: #7dd3fc;
  text-decoration: underline;
}
.aspire-cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}
.aspire-cookie-banner-actions .btn {
  white-space: nowrap;
}

/* Preferences modal */
#aspire-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 1090;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
#aspire-cookie-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}
#aspire-cookie-modal[hidden] {
  display: none;
}
.aspire-cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}
.aspire-cookie-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}
.aspire-cookie-modal-dialog > header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.aspire-cookie-modal-dialog > header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #0f172a;
}
.aspire-cookie-modal-close {
  background: none;
  border: 0;
  font-size: 1.7rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 0.25rem;
}
.aspire-cookie-modal-close:hover {
  color: #0f172a;
}
.aspire-cookie-modal-body {
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}
.aspire-cookie-modal-body > p {
  color: #5d6b7c;
  margin-bottom: 1rem;
}
.aspire-cookie-category {
  border: 1px solid #e6ebf1;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.85rem;
  background: #fafbfd;
}
.aspire-cookie-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}
.aspire-cookie-category-head h4 {
  margin: 0;
  font-size: 1rem;
  color: #0f172a;
}
.aspire-cookie-category p {
  margin: 0;
  font-size: 0.88rem;
  color: #5d6b7c;
  line-height: 1.45;
}
.aspire-cookie-locked {
  font-size: 0.8rem;
  color: #64748b;
  background: #e2e8f0;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
}

/* Toggle switch */
.aspire-cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.aspire-cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.aspire-cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  border-radius: 999px;
  transition: background-color 0.18s ease;
}
.aspire-cookie-toggle-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.aspire-cookie-toggle input:checked + .aspire-cookie-toggle-slider {
  background-color: #15803d;
}
.aspire-cookie-toggle input:checked + .aspire-cookie-toggle-slider::before {
  transform: translateX(20px);
}
.aspire-cookie-toggle input:focus-visible + .aspire-cookie-toggle-slider {
  outline: 2px solid #007ffb;
  outline-offset: 2px;
}

.aspire-cookie-modal-footer {
  padding: 1.1rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-shrink: 0;
}
.aspire-cookie-modal-footer .btn {
  white-space: nowrap;
}

@media (max-width: 575px) {
  .aspire-cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .aspire-cookie-banner-actions {
    width: 100%;
  }
  .aspire-cookie-banner-actions .btn {
    flex: 1 1 auto;
  }
  .aspire-cookie-modal-footer {
    justify-content: stretch;
  }
  .aspire-cookie-modal-footer .btn {
    flex: 1 1 auto;
  }
}
/* cookie consent ends */
