/* Toggle */
.voyage-night-toggle {
  box-sizing: border-box;
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #dfe6ef;
  border-radius: 999px;
  background: #fff;
  color: #07152a;
  box-shadow: 0 8px 22px rgba(7, 21, 42, 0.12);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.voyage-night-toggle:hover {
  transform: translateY(-1px);
}

.voyage-night-toggle:focus-visible {
  outline: 3px solid rgba(120, 200, 255, 0.7);
  outline-offset: 2px;
}

.voyage-night-toggle__icon {
  display: block;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

.voyage-night-toggle__moon {
  fill: currentColor;
}

.voyage-night-toggle__sun {
  display: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.voyage-night-toggle--floating {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 9990;
}

.voyage-night-toggle--header {
  box-shadow: none;
}

html.voyage-night-mode .voyage-night-toggle {
  border-color: #31445d;
  background: #10213a;
  color: #edf6ff;
}

html.voyage-night-mode .voyage-night-toggle__moon {
  display: none;
}

html.voyage-night-mode .voyage-night-toggle__sun {
  display: block;
}

/* Voyage storefront */
html.voyage-night-mode {
  color-scheme: dark;
  --vp-ink: #e8f0fb;
  --vp-muted: #a8b8cc;
  --vp-soft: #0d1b2e;
  --vp-line: #2b3d55;
  --vp-ice: #10253d;
  --vp-border: #31445d;
  --vp-blue-soft: #142d52;
  --vp-disabled: #152235;
}

html.voyage-night-mode body,
html.voyage-night-mode .site,
html.voyage-night-mode .site-content,
html.voyage-night-mode .wp-site-blocks,
html.voyage-night-mode main {
  background-color: #06101f;
  color: #e8f0fb;
}

html.voyage-night-mode .voyage-header {
  border-bottom-color: #293b52;
  background: rgba(7, 21, 42, 0.95);
  color: #eef5ff;
}

html.voyage-night-mode .voyage-header .voyage-logo img,
html.voyage-night-mode .voyage-header .custom-logo-link img,
html.voyage-night-mode .voyage-mobile-menu .voyage-logo img,
html.voyage-night-mode .voyage-mobile-menu .custom-logo-link img {
  filter: brightness(0) invert(1);
}

html.voyage-night-mode .voyage-search-toggle:hover,
html.voyage-night-mode .voyage-account:hover {
  background: #15263d;
}

html.voyage-night-mode .voyage-mobile-menu {
  background: #081426;
  color: #eef5ff;
}

html.voyage-night-mode .voyage-menu-close,
html.voyage-night-mode .voyage-search-toggle,
html.voyage-night-mode .voyage-menu-button {
  color: #eef5ff;
}

html.voyage-night-mode .voyage-search input,
html.voyage-night-mode input.input-text,
html.voyage-night-mode textarea,
html.voyage-night-mode select,
html.voyage-night-mode .woocommerce .quantity .qty {
  border-color: #31445d;
  background: #0d1b2e;
  color: #eef5ff;
}

html.voyage-night-mode input::placeholder,
html.voyage-night-mode textarea::placeholder {
  color: #8192a8;
}

html.voyage-night-mode select option {
  background: #0d1b2e;
  color: #eef5ff;
}

html.voyage-night-mode .woocommerce ul.products li.product,
html.voyage-night-mode .voyage-notice,
html.voyage-night-mode .login-form-wrap {
  border-color: #2b3d55;
  background: #0b192b;
  color: #e8f0fb;
}

html.voyage-night-mode .woocommerce ul.products li.product a img {
  background: #10253d;
}

html.voyage-night-mode .woocommerce ul.products li.product:hover {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

html.voyage-night-mode .category-pills a {
  border-color: #31445d;
  background: #0b192b;
  color: #dce7f5;
}

html.voyage-night-mode .category-pills a.active,
html.voyage-night-mode .category-pills a:hover {
  border-color: #356fff;
  background: #246ee9;
  color: #fff;
}

html.voyage-night-mode .voyage-login-section {
  border-color: #2b3d55;
  background: #09172a;
}

/* WooCommerce product, cart, checkout and account areas */
html.voyage-night-mode .woocommerce div.product,
html.voyage-night-mode .woocommerce div.product .summary,
html.voyage-night-mode .woocommerce div.product .woocommerce-tabs,
html.voyage-night-mode .woocommerce-account .woocommerce-MyAccount-content,
html.voyage-night-mode .woocommerce-cart .cart-collaterals,
html.voyage-night-mode .woocommerce-checkout-review-order {
  color: #e8f0fb;
}

html.voyage-night-mode .woocommerce table.shop_table,
html.voyage-night-mode .woocommerce form.checkout_coupon,
html.voyage-night-mode .woocommerce form.login,
html.voyage-night-mode .woocommerce form.register,
html.voyage-night-mode .woocommerce-cart .cart_totals,
html.voyage-night-mode .woocommerce-checkout #payment {
  border-color: #2b3d55;
  background: #0b192b !important;
  color: #e8f0fb;
}

html.voyage-night-mode .woocommerce table.shop_table th,
html.voyage-night-mode .woocommerce table.shop_table td,
html.voyage-night-mode .woocommerce table.shop_table tbody th,
html.voyage-night-mode .woocommerce table.shop_table tfoot td,
html.voyage-night-mode .woocommerce table.shop_table tfoot th {
  border-color: #2b3d55;
}

html.voyage-night-mode .woocommerce div.product .woocommerce-tabs ul.tabs::before,
html.voyage-night-mode .woocommerce div.product .woocommerce-tabs ul.tabs li {
  border-color: #2b3d55;
}

html.voyage-night-mode .woocommerce div.product .woocommerce-tabs ul.tabs li {
  background: #0d1b2e;
  color: #b7c5d7;
}

html.voyage-night-mode .woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: #14263d;
  color: #fff;
}

html.voyage-night-mode .woocommerce-message,
html.voyage-night-mode .woocommerce-info,
html.voyage-night-mode .woocommerce-error {
  border-color: #356fff;
  background: #10253d !important;
  color: #e8f0fb;
}

html.voyage-night-mode .woocommerce-checkout #payment div.payment_box {
  background: #14263d;
  color: #e8f0fb;
}

html.voyage-night-mode .woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: #14263d;
}

html.voyage-night-mode .select2-container--default .select2-selection--single,
html.voyage-night-mode .select2-container--default .select2-selection--multiple,
html.voyage-night-mode .select2-dropdown,
html.voyage-night-mode .select2-search__field {
  border-color: #31445d !important;
  background: #0d1b2e !important;
  color: #eef5ff !important;
}

html.voyage-night-mode .select2-container--default .select2-results__option[aria-selected="true"],
html.voyage-night-mode .select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: #246ee9;
  color: #fff;
}

html.voyage-night-mode .wc-block-components-text-input input,
html.voyage-night-mode .wc-block-components-combobox .components-combobox-control__input,
html.voyage-night-mode .wc-block-components-address-form__address_2-toggle,
html.voyage-night-mode .wc-block-components-order-summary,
html.voyage-night-mode .wc-block-components-totals-wrapper {
  border-color: #31445d;
  background: #0d1b2e;
  color: #eef5ff;
}

/* Selectable strengths and quantity discounts */
html.voyage-night-mode .vp-purchase-options,
html.voyage-night-mode .vp-strength-option,
html.voyage-night-mode .vp-tier-card {
  color: #e8f0fb;
}

html.voyage-night-mode .vp-strength-option,
html.voyage-night-mode .vp-tier-card {
  border-color: #31445d;
  background: #0d1b2e;
}

html.voyage-night-mode .vp-strength-option.is-selected,
html.voyage-night-mode .vp-tier-card.is-selected {
  border-color: #5e8bff;
  background: #142d52;
  box-shadow: 0 0 0 1px #5e8bff;
}

html.voyage-night-mode .vp-strength-option.is-disabled,
html.voyage-night-mode .vp-tier-card.is-disabled {
  border-color: #26364b;
  background: #111d2e;
  color: #7f8da0;
}

html.voyage-night-mode .vp-tier-card__badge {
  border-color: #567bd4;
  background: #172c50;
  color: #a9c5ff;
}

/* Peptide calculator */
html.voyage-night-mode .vpc {
  --vpc-ink: #e8f0fb;
  --vpc-muted: #a8b8cc;
  --vpc-line: #2b3d55;
  --vpc-soft: #0d1b2e;
  --vpc-white: #0b192b;
  --vpc-sky: #142d52;
  color: #e8f0fb;
}

html.voyage-night-mode .vpc__header h1,
html.voyage-night-mode .vpc__step-heading h2,
html.voyage-night-mode .vpc__syringe-copy strong {
  color: #eef5ff;
}

html.voyage-night-mode .vpc__workspace {
  border-color: #2b3d55;
  background: #0b192b;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

html.voyage-night-mode .vpc__syringe-panel {
  border-color: #2b3d55;
  background: radial-gradient(circle at 10% 0%, rgba(53, 185, 233, 0.12), transparent 30%), linear-gradient(155deg, #0c1b2f 0%, #091525 100%);
}

html.voyage-night-mode .vpc__notice {
  border-color: #315175;
  background: #10253d;
  color: #c4d3e6;
}

html.voyage-night-mode .vpc__syringe-card,
html.voyage-night-mode .vpc__chips button,
html.voyage-night-mode .vpc__custom-field input,
html.voyage-night-mode .vpc__unit-toggle button {
  border-color: #31445d;
  background: #0d1b2e;
  color: #e8f0fb;
}

html.voyage-night-mode .vpc__syringe-card.is-selected,
html.voyage-night-mode .vpc__chips button.is-selected {
  border-color: #5e8bff;
  background: #142d52;
  color: #bdd1ff;
}

html.voyage-night-mode .vpc__unit-toggle button.is-selected {
  background: #246ee9;
  color: #fff;
}

/* BAC Water offer */
html.voyage-night-mode .vfo-bac-card {
  border-color: #31445d;
  background: #0b192b;
  color: #e8f0fb;
}

html.voyage-night-mode .vfo-bac-card h2,
html.voyage-night-mode .vfo-bac-price {
  color: #eef5ff;
}

html.voyage-night-mode .vfo-bac-copy {
  color: #a8b8cc;
}

html.voyage-night-mode .vfo-bac-close,
html.voyage-night-mode .vfo-bac-decline {
  border-color: #31445d;
  background: #14263d;
  color: #e8f0fb;
}

@media (max-width: 680px) {
  .voyage-night-toggle--header {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
  }

  .voyage-night-toggle--header .voyage-night-toggle__label {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .voyage-night-toggle--floating {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
  }

  .voyage-night-toggle--floating .voyage-night-toggle__label {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voyage-night-toggle {
    transition-duration: 0.01ms !important;
  }
}
