/* Verant Studio consent banner — independent from locked homepage styles. */
.vs-consent[hidden],
.vs-consent__details[hidden],
.vs-consent__reopen[hidden],
.vs-consent__text[hidden],
.vs-consent__actions[hidden] { display: none !important; }

.vs-consent,
.vs-consent__reopen {
  box-sizing: border-box;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.vs-consent *,
.vs-consent *::before,
.vs-consent *::after { box-sizing: border-box; }

.vs-consent {
  position: fixed;
  z-index: 2147483600;
  inset: auto auto max(18px, env(safe-area-inset-bottom, 0px)) 18px;
  width: min(540px, calc(100vw - 36px));
  max-height: min(88dvh, 700px);
  overflow: auto;
  padding: clamp(19px, 3vw, 27px);
  border: 1px solid rgba(73, 44, 29, .16);
  border-radius: 22px;
  background: #fffaf7;
  color: #30241e;
  box-shadow: 0 18px 65px rgba(27, 19, 15, .26);
  text-align: left;
  font-size: 15px;
  line-height: 1.55;
}

.vs-consent__eyebrow {
  margin: 0 0 7px;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  color: #985024;
}

.vs-consent__title {
  margin: 0 0 8px;
  color: #352018;
  font-size: clamp(21px, 3.5vw, 27px);
  line-height: 1.15;
  font-weight: 700;
}

/* Guard the panel from global homepage paragraph typography (20px on mobile). */
#vs-consent .vs-consent__text { margin: 0 0 17px; color: #59483d; font-size: 15px; line-height: 1.55; }
#vs-consent .vs-consent__details p { font-size: 14px; line-height: 1.5; }
.vs-consent__text a,
.vs-consent__details a { color: #8b461f; text-decoration: underline; text-underline-offset: 3px; }

.vs-consent__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px;
}

.vs-consent__button {
  appearance: none;
  min-height: 47px;
  border: 2px solid #3b2a23;
  border-radius: 11px;
  padding: 9px 10px;
  background: #3b2a23;
  color: white;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
}
.vs-consent__button:hover { background: #59402f; border-color: #59402f; }
.vs-consent__details-button {
  appearance: none;
  display: block;
  margin: 15px auto 0;
  padding: 6px 12px;
  border: 0;
  background: transparent;
  color: #744027;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.vs-consent__details {
  margin-bottom: 14px;
  padding: 14px;
  background: #f3e8e0;
  border-radius: 12px;
  font-size: 14px;
  color: #523b30;
}
.vs-consent__details p { margin: 0 0 12px; }
.vs-consent__check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.vs-consent__check input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; accent-color: #6f422d; }
.vs-consent__check span, .vs-consent__check strong, .vs-consent__check small { display: block; }
.vs-consent__check small { margin-top: 3px; line-height: 1.45; }
.vs-consent__save {
  appearance: none;
  width: 100%;
  padding: 10px;
  margin-top: 15px;
  background: #7b4328;
  color: #fff;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.vs-consent__reopen {
  position: fixed;
  z-index: 2147483599;
  inset: auto 14px max(12px, env(safe-area-inset-bottom, 0px)) auto;
  border: 1px solid rgba(83, 52, 32, .45);
  border-radius: 999px;
  background: #fffaf7;
  color: #4c2d1d;
  box-shadow: 0 5px 20px rgba(38, 22, 12, .18);
  padding: 8px 13px;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
  cursor: pointer;
}
.vs-consent__reopen:hover { background: #f1e4dc; }
/* Focus initially rests on the non-interactive consent region, not on Reject. */
.vs-consent:focus { outline: none; }
.vs-consent button:focus-visible,
.vs-consent a:focus-visible,
.vs-consent input:focus-visible,
.vs-consent__reopen:focus-visible {
  outline: 3px solid #3b80ce;
  outline-offset: 3px;
}

@media (max-width: 440px) {
  .vs-consent {
    width: calc(100vw - 20px);
    inset: auto 10px max(10px, env(safe-area-inset-bottom, 0px)) 10px;
    max-height: min(calc(100dvh - 100px), 640px);
    padding: 17px 18px 15px;
    border-radius: 17px;
    font-size: 14px;
    line-height: 1.47;
  }
  .vs-consent__eyebrow {
    margin-bottom: 5px;
    font-size: 10px;
    letter-spacing: .11em;
  }
  .vs-consent__title {
    font-size: clamp(19px, 5.2vw, 22px);
    line-height: 1.19;
    margin-bottom: 9px;
  }
  #vs-consent .vs-consent__text { margin-bottom: 13px; font-size: 14px; line-height: 1.48; }
  #vs-consent .vs-consent__details p { font-size: 13px; line-height: 1.45; }
  .vs-consent__actions { grid-template-columns: 1fr; gap: 7px; }
  .vs-consent__button { min-height: 44px; padding: 8px 10px; font-size: 13.5px; }
  .vs-consent__details-button { margin: 7px auto 0; padding: 7px 10px; font-size: 13px; }
  .vs-consent__details {
    margin-bottom: 11px;
    padding: 13px;
    font-size: 13px;
    line-height: 1.45;
  }
  .vs-consent__details p { margin-bottom: 10px; }
  .vs-consent__save { min-height: 44px; margin-top: 12px; }
  .vs-consent[data-view="details"] .vs-consent__eyebrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .vs-consent, .vs-consent__reopen { scroll-behavior: auto; }
}

/* UX/CRO: keep saved cookie settings accessible without obscuring mobile CTAs.
   The existing, listener-bound button is moved into the branded footer on <=768px.
   On desktop it returns to body and retains the original floating presentation. */
@media (max-width: 768px) {
  .vs-consent__reopen.vs-consent__reopen--footer {
    position: static;
    inset: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    max-width: 100%;
    padding: 9px 12px;
    border: 1px solid rgba(255, 244, 236, .25);
    border-radius: 12px;
    color: #f5e9e1;
    background: rgba(255, 255, 255, .06);
    box-shadow: none;
    font-family: "Barlow", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    touch-action: manipulation;
  }
  .vs-consent__reopen.vs-consent__reopen--footer:hover {
    background: rgba(255, 255, 255, .13);
  }
}
