/**
 * Cookie consent — Alba Construction
 * Brand: #035B9B / #0F173B · fonts: Unbounded + Barlow
 */

.alba-cookie {
  --alba-cookie-navy: #0f173b;
  --alba-cookie-blue: #035b9b;
  --alba-cookie-blue-hover: #024a7e;
  --alba-cookie-muted: rgba(255, 255, 255, 0.68);
  --alba-cookie-line: rgba(255, 255, 255, 0.12);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 16px;
  pointer-events: none;
  font-family: "Barlow", sans-serif;
}

.alba-cookie[hidden] {
  display: none !important;
}

.alba-cookie__panel {
  pointer-events: auto;
  max-width: 720px;
  margin: 0 auto;
  background:
    linear-gradient(135deg, rgba(3, 91, 155, 0.22) 0%, transparent 42%),
    linear-gradient(180deg, #142048 0%, var(--alba-cookie-navy) 100%);
  color: #fff;
  border: 1px solid var(--alba-cookie-line);
  box-shadow:
    0 -8px 40px rgba(15, 23, 59, 0.35),
    0 12px 32px rgba(0, 0, 0, 0.28);
  padding: 22px 24px 20px;
  transform: translateY(18px);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.alba-cookie.is-visible .alba-cookie__panel {
  transform: translateY(0);
  opacity: 1;
}

.alba-cookie.is-leaving .alba-cookie__panel {
  transform: translateY(24px);
  opacity: 0;
}

.alba-cookie__accent {
  display: block;
  width: 56px;
  height: 3px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--alba-cookie-blue), rgba(3, 91, 155, 0.15));
}

.alba-cookie__eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.alba-cookie__title {
  margin: 0 0 8px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.alba-cookie__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--alba-cookie-muted);
  max-width: 58ch;
}

.alba-cookie__text a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.alba-cookie__text a:hover {
  color: #9ec9ea;
  text-decoration-color: #9ec9ea;
}

.alba-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.alba-cookie__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: "Barlow", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  padding: 14px 22px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.alba-cookie__btn:focus-visible {
  outline: 2px solid #9ec9ea;
  outline-offset: 2px;
}

.alba-cookie__btn:active {
  transform: translateY(1px);
}

.alba-cookie__btn--accept {
  background: var(--alba-cookie-blue);
  color: #fff;
}

.alba-cookie__btn--accept:hover {
  background: var(--alba-cookie-blue-hover);
}

.alba-cookie__btn--reject {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.alba-cookie__btn--reject:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.alba-cookie__btn--ghost {
  background: transparent;
  color: var(--alba-cookie-muted);
  padding-left: 8px;
  padding-right: 8px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 600;
  font-size: 14px;
}

.alba-cookie__btn--ghost:hover {
  color: #fff;
}

.alba-cookie__prefs {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--alba-cookie-line);
  display: none;
}

.alba-cookie__prefs.is-open {
  display: block;
  animation: albaCookiePrefsIn 0.3s ease;
}

@keyframes albaCookiePrefsIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alba-cookie__pref {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.alba-cookie__pref:last-of-type {
  border-bottom: 0;
}

.alba-cookie__pref-label {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.alba-cookie__pref-desc {
  margin: 2px 0 0;
  grid-column: 1 / 2;
  font-size: 13px;
  line-height: 1.45;
  color: var(--alba-cookie-muted);
}

.alba-cookie__switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.alba-cookie__switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.alba-cookie__switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.alba-cookie__switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.alba-cookie__switch input:checked + span {
  background: var(--alba-cookie-blue);
}

.alba-cookie__switch input:checked + span::after {
  transform: translateX(20px);
}

.alba-cookie__switch input:disabled + span {
  background: var(--alba-cookie-blue);
  opacity: 0.7;
  cursor: not-allowed;
}

.alba-cookie__switch input:focus-visible + span {
  outline: 2px solid #9ec9ea;
  outline-offset: 2px;
}

.alba-cookie__prefs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.alba-cookie-reopen {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 10040;
  appearance: none;
  border: 1px solid rgba(15, 23, 59, 0.12);
  background: #fff;
  color: var(--alba-cookie-navy);
  font-family: "Barlow", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 11px 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 59, 0.14);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
}

.alba-cookie-reopen.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.alba-cookie-reopen:hover {
  background: var(--alba-cookie-navy);
  color: #fff;
  border-color: var(--alba-cookie-navy);
}

.alba-cookie-reopen:focus-visible {
  outline: 2px solid var(--alba-cookie-blue);
  outline-offset: 2px;
}

@media (max-width: 575.98px) {
  .alba-cookie {
    padding: 12px;
  }

  .alba-cookie__panel {
    padding: 18px 16px 16px;
  }

  .alba-cookie__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .alba-cookie__btn {
    width: 100%;
    text-align: center;
  }

  .alba-cookie__btn--ghost {
    width: auto;
    align-self: center;
  }

  .alba-cookie-reopen {
    left: 12px;
    bottom: 12px;
    font-size: 12px;
    padding: 10px 12px;
  }
}

.alba-cookie .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
  .alba-cookie__panel,
  .alba-cookie-reopen,
  .alba-cookie__btn,
  .alba-cookie__switch span,
  .alba-cookie__switch span::after {
    transition: none;
  }

  .alba-cookie__prefs.is-open {
    animation: none;
  }
}
