:root {
  --vse-navy: #07152a;
  --vse-blue: #155fb8;
  --vse-cyan: #35b9e9;
  --vse-line: #cbd5e1;
  --vse-soft: #f4f8fc;
  --vse-focus: #f5b700;
}

html {
  scroll-padding-top: 24px;
}

body {
  overflow-wrap: anywhere;
}

/* Keep the announcement and navigation in the normal page flow. The Voyage
   storefront theme makes .voyage-header sticky by default; this override keeps
   it from covering products while visitors scroll. */
.voyage-announcement,
.voyage-header,
.admin-bar .voyage-header {
  position: static !important;
  top: auto !important;
}

a:not(.button):not(.voyage-button):focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--vse-focus) !important;
  outline-offset: 3px !important;
}

.skip-link:focus {
  position: fixed !important;
  z-index: 1000000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  border-radius: 8px;
  background: #fff;
  color: var(--vse-navy);
  font-weight: 800;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.voyage-button,
.vse-primary-cta {
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form select,
.voyage-search input,
.voyage-search button {
  min-height: 44px;
}

.woocommerce form .form-row .required {
  color: #a01818;
}

.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
  color: #172033;
}

.woocommerce .woocommerce-error a,
.woocommerce .woocommerce-info a,
.woocommerce .woocommerce-message a {
  color: #064e96;
  font-weight: 800;
  text-decoration: underline;
}

.vse-footer-legal {
  box-sizing: border-box;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 14px max(22px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  border-top: 1px solid #223249;
  background: #020a14;
  color: #cbd7e6;
  font-size: 13px;
  line-height: 1.4;
}

.vse-footer-legal a,
.vse-footer-legal button {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.vse-footer-legal button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.vse-cookie-banner {
  box-sizing: border-box;
  position: fixed;
  z-index: 999999;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom));
  left: 22px;
  display: flex;
  max-width: 980px;
  margin: auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px;
  border: 1px solid #273951;
  border-radius: 16px;
  background: var(--vse-navy);
  color: #eef6ff;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
}

.vse-cookie-banner[hidden] {
  display: none;
}

.vse-cookie-banner strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 17px;
}

.vse-cookie-banner p {
  max-width: 620px;
  margin: 0 0 5px;
  color: #d4e0ef;
  font-size: 14px;
  line-height: 1.5;
}

.vse-cookie-banner a {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
}

.vse-cookie-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.vse-cookie-actions button {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #9bb0c9;
  border-radius: 9px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.vse-cookie-actions .vse-cookie-accept {
  border-color: #fff;
  background: #fff;
  color: var(--vse-navy);
}

.vse-404 {
  padding: clamp(50px, 8vw, 100px) 22px;
  background: linear-gradient(145deg, #f7fbff, #eaf3fb);
}

.vse-404__card {
  box-sizing: border-box;
  max-width: 820px;
  margin: auto;
  padding: clamp(30px, 6vw, 70px);
  border: 1px solid #cbd9e7;
  border-radius: 22px;
  background: #fff;
  color: var(--vse-navy);
  text-align: center;
  box-shadow: 0 22px 70px rgba(7, 21, 42, 0.09);
}

.vse-404__eyebrow {
  margin: 0 0 10px;
  color: #15538d;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.vse-404 h1 {
  margin: 0;
  color: var(--vse-navy);
  font-size: clamp(38px, 7vw, 68px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.vse-404__copy {
  max-width: 560px;
  margin: 18px auto 28px;
  color: #46566b;
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.6;
}

.vse-404__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.vse-404__actions a {
  box-sizing: border-box;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--vse-navy);
  border-radius: 10px;
  color: var(--vse-navy);
  font-weight: 900;
  text-decoration: none;
}

.vse-404__actions .vse-404__primary {
  background: var(--vse-navy);
  color: #fff;
}

.vse-404__search {
  max-width: 520px;
  margin: 28px auto 0;
}

.vse-404__search form {
  display: flex;
  gap: 8px;
}

.vse-404__search input[type="search"] {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #97a6ba;
  border-radius: 9px;
  color: var(--vse-navy);
  font: inherit;
}

.vse-404__search button {
  min-height: 48px;
  padding: 10px 18px;
  border: 0;
  border-radius: 9px;
  background: var(--vse-blue);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.vse-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.vse-field-error {
  display: block;
  margin-top: 5px;
  color: #a01818;
  font-size: 13px;
  font-weight: 700;
}

[aria-invalid="true"] {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 1px #b42318 !important;
}

html.voyage-night-mode .vse-footer-legal {
  border-color: #273951;
  background: #020812;
}

html.voyage-night-mode .vse-404 {
  background: #06101f;
}

html.voyage-night-mode .vse-404__card {
  border-color: #31445d;
  background: #0b192b;
  color: #e8f0fb;
  box-shadow: none;
}

html.voyage-night-mode .vse-404 h1,
html.voyage-night-mode .vse-404__eyebrow {
  color: #eef6ff;
}

html.voyage-night-mode .vse-404__copy {
  color: #b6c6da;
}

html.voyage-night-mode .vse-404__actions a {
  border-color: #8095ae;
  color: #eef6ff;
}

html.voyage-night-mode .vse-404__actions .vse-404__primary,
html.voyage-night-mode .vse-404__search button {
  border-color: #367fea;
  background: #246ee9;
  color: #fff;
}

html.voyage-night-mode .vse-404__search input[type="search"] {
  border-color: #435871;
  background: #0d1b2e;
  color: #eef6ff;
}

@media (max-width: 782px) {
  html {
    scroll-padding-top: 18px;
  }

  .voyage-shell,
  .woo-shell,
  .content-shell {
    width: min(100% - 32px, 1180px);
  }

  .voyage-hero h1 {
    max-width: 15ch;
  }

  .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .woocommerce ul.products::before,
  .woocommerce ul.products::after {
    display: none !important;
  }

  .woocommerce ul.products li.product {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
  }

  .woocommerce ul.products li.product .button {
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
    text-align: center;
  }

  .woocommerce div.product .summary,
  .woocommerce div.product div.images {
    width: 100% !important;
    float: none !important;
  }

  .woocommerce table.shop_table_responsive,
  .woocommerce-cart-form,
  .woocommerce-checkout-review-order {
    max-width: 100%;
    overflow-x: auto;
  }

  .vse-cookie-banner {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    display: block;
    max-height: calc(100vh - 24px - env(safe-area-inset-bottom));
    padding: 18px;
    overflow-y: auto;
    border-radius: 14px;
  }

  .vse-cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 14px;
  }

  .vse-footer-legal {
    flex-wrap: wrap;
    gap: 9px 16px;
    justify-content: flex-start;
    padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
  }

  .vse-footer-legal span {
    flex-basis: 100%;
  }

  .vse-404__actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 390px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
  }

  .vse-cookie-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
