
/* Base styles for MVA Wine website */
/* This file is rendered as a Django template to support static tags */

.error {
  color: var(--error-color);
}

.banner-container {
}
.banner-container > img,
.banner-container > video {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

/* Navigation bar */
.top_nav_container {
  width: 100%;
  max-width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  background: white;
  z-index: 1;
}

.top_nav_container nav {
  width: calc(100% - 2*var(--viewport-border));
  max-width: var(--global-max-width);
  margin-inline: 0;
  background-color: transparent;
  z-index: 1000;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 3em;
  padding-block: calc(var(--nav-padding-block) + 8px) var(--nav-padding-block);
  padding-inline: var(--main-default-margin);
  transition: background-color var(--transition-speed) ease;
  border-bottom: 1px solid white;
}
.top_nav_container nav.white {
  background-color: white;
  border-bottom: 0;
  transition: background-color .6s ease;
}

nav > ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: "Sombra Variable";
  font-variation-settings: normal;
  font-weight: 300;
}

.top_nav_container nav > ul {
  flex-grow: .3;
  gap: clamp(1.125rem, 2 * var(--scale-factor), 2rem);
}
.top_nav_container nav > ul:first-of-type {
  justify-content: flex-start;
}
.top_nav_container nav > ul:last-of-type {
  justify-content: flex-end;
}

nav.top-nav a.logo {
  flex-grow: 2;
  display: flex;
  justify-content: center;
}

nav.top-nav a.logo img {
  width: auto;
  height: var(--nav-logo-height);
}

nav a {
  font-family: "Sombra Variable";
  font-variation-settings: normal;
  font-weight: 300;
  color: var(--nav-color);
  font-size: var(--nav-font-size);
  line-height: var(--nav-line-height);
  letter-spacing: var(--nav-letter-spacing);
  white-space: nowrap;
  text-transform: lowercase;
  transition: color var(--transition-speed) ease-in-out, text-decoration-color var(--transition-speed) ease-in-out;
}

nav .nav__item--current a {
  font-weight: 400;
}

/* Hide Mobile Navigation by Default */
.mobile-nav {
  opacity: 0;
  visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: absolute;
  top: 100%;
  right: -12px;
  width: auto;
  background: white;
  padding: 1em;
  list-style: none;
  border: 1px solid black;
  border-radius: 8px;
  gap: 2px;
  transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) linear;
}

/* Hide the Hamburger Button on Desktop */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
  min-width: unset;
  max-width: unset;
}

/* Hamburger Menu Lines */
.menu-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background: black;
}

/* Hide the Checkbox */
.mobile-nav-container {
  display: none;
}

#menu-toggle {
    display: none;
}

footer {
  width: 100%;
  padding-inline: var(--main-default-margin);
  padding-block: var(--main-default-margin) 2rem;
}
footer nav > span {
  font-size: var(--footer-font-size);
  line-height: var(--footer-line-height);
}
footer nav > a {
  font-size: var(--footer-font-size);
  line-height: var(--footer-line-height);
  letter-spacing: 0.4px;
  color: var(--nav-color);
  margin-right: 1ch;
}
footer nav > a:visited {
  color: var(--nav-color);
}

main {
  padding-top: var(--main-padding-top);
  z-index: 0;
}
main.full-viewport {
  padding-top: 0;
  margin-inline: 0;
}

.btn {
  display: flex;
  background: transparent;
  white-space: nowrap;
  width: min-content;
  height: min-content;
  font-family: "Sombra Variable";
  font-variation-settings: normal;
  font-weight: 300;
  color: var(--nav-color);
  border: 2px solid var(--button-border-color);
  padding: .725rem 1rem;
  font-size: var(--button-font-size);
  line-height: var(--button-line-height);
  letter-spacing: 0.48px;
  cursor: pointer;
  transition: color var(--transition-speed) ease-in-out, background-color var(--transition-speed) ease-in-out;
}

a.btn {
  text-decoration: none;
  -webkit-text-decoration: none;
}

a.btn:hover,
button.btn:hover {
  color: white;
  background: black !important;
  text-decoration: none;
  -webkit-text-decoration: none;
  transition: color var(--transition-speed) ease-in-out, background-color var(--transition-speed) ease-in-out;
}

#mini_cart small {
  padding-left: var(--default-gap);
}

@media (min-width:1200px) {
  body {
    margin-inline: auto;
  }
  footer nav {
    display: flex;
    justify-content: space-between;
  }
}

/* Mobile Styles */
@media (max-width: 1023px) {
/* Adjust navbar for mobile */
  nav.top-nav > ul {
    display: none;
  }
  nav.top-nav a.logo {
    justify-content: left;
    display: flex;
    justify-content: center;
  }
  nav.top-nav a.logo img {
  }
  .navbar {
      justify-content: space-between;
  }

  /* Show Hamburger and Hide Desktop Nav */
  .mobile-nav-container {
    display: flex;
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 1;
  }
  .menu-toggle {
      display: flex;
  }
  .desktop-nav {
      display: none;
  }

  /* Move logo to the left */
  .logo {
      order: 0;
  }

  /* Show Mobile Menu When Checkbox is Checked */
  #menu-toggle:checked ~ .mobile-nav {
    visibility: visible;
    opacity: 100%;
    transition: opacity var(--transition-speed) ease, visibility 0s linear;
  }
}

@media (max-width: 767px) {
  :root {
    --headline-padding-block: calc(clamp(var(--nav-padding-block), 16vw, 100px) - var(--nav-padding-block));
    --nav-font-size: clamp(1.5rem, 1.8vw, 1.875rem);
    --button-font-size: 1.25rem;
    --info-button-font-size: 1.125rem;
  }
  body {
  }
  nav.top-nav {
    border-bottom: none;
    padding-bottom: 1em;
  }
  main {
    padding-inline: 0;
    width: 100%;
    margin-bottom: var(--main-default-margin);
  }
  /* Adjust navbar for mobile */
  nav.top-nav > ul {
    display: none;
  }
  nav.top-nav a.logo {
    justify-content: left;
    display: flex;
    justify-content: center;
  }
  nav.top-nav a.logo img {
  }
  .navbar {
      justify-content: space-between;
  }

  /* Show Hamburger and Hide Desktop Nav */
  .mobile-nav-container {
    display: flex;
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 1;
  }
  .menu-toggle {
      display: flex;
  }
  .desktop-nav {
      display: none;
  }

  /* Move logo to the left */
  .logo {
      order: 0;
  }

  /* Show Mobile Menu When Checkbox is Checked */
  #menu-toggle:checked ~ .mobile-nav {
    visibility: visible;
    opacity: 100%;
    transition: opacity var(--transition-speed) ease, visibility 0s linear;
  }
  footer {
    padding-inline: 0;
    margin-inline: 0;
    padding-block: 2rem 1rem;
  }
  footer ul li:last-of-type {
    padding-block: 2rem 0;
    text-align: left;
    line-height: var(--p-line-height);
  }
  footer nav > span {
    display: block;
    padding-top: 1em;
    line-height: 1;
  }
}

@media (max-width: 375px) {
  footer nav > a {
    margin-right: 4px;
  }
}

#scroll-hint {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
#scroll-hint.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
}
@media (max-width: 767px) {
  #scroll-hint {
    display: none;
  }
}


label.field--password {
    position: relative;
}
label.field--password input[type=text] {
    padding-right: 1.4em;
}
input:invalid:placeholder-shown + icon, input .error:placeholder-shown + icon, .error input:placeholder-shown + icon {
    display:none;
}
icon.password-icon,
[class^="fieldset--"] icon.password-icon {
  z-index: 3;
  width: calc(30px * .618);
  height: calc(30px * .618);
  content: url(/static/website/image/eye-password-hidden.svg);
  position: absolute;
  right: 1ch;
      top: calc(1rem + (var(--input-font-size) * .5));
      transform: translate(0, -50%);
}
icon.password-icon.shown,
[class^="fieldset--"] icon.password-icon.shown {
  content: url(/static/website/image/eye-password-shown.svg)
}
input::-webkit-credentials-auto-fill-button {
    margin-inline-end: 1rem;
}

html:has(.modal-form-container.open)::before,
html:has(.modal-form-container.open)::after {
  z-index: 0;
}
body:has(.modal-form-container.open) {
  overflow: hidden;
}
main {
  z-index: 1;
}
img.background {
  position: relative;
  z-index: -1;
  width: 100%;
  height: auto;
}

div.modal-form-container {
  position: fixed;
  z-index: 1000;
  margin: 0;
  background: #000000cc;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: var(--nav-height);
  padding-inline: 1rem;
  overflow: auto;
}
div.modal-form {
  background: white;
  max-width: 1200px;
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  font-family: "Sombra Variable";
  font-weight: 300;
  position: relative;
  margin-block-end: calc(var(--viewport-border) + var(--default-gap));
  padding-block: 2rem 4rem;
  padding-inline: 2rem;
  --form-margin-inline: clamp(0rem, calc(15vw - (var(--delta-from-max-width) * .5)), 10rem);
  --form-padding-inline: 0;
  --form-column-gap: clamp(2rem, 5vw, 4.5rem);
  --form-row-gap: 1rem;
  --section-overflow-margin-inline: calc(0rem - clamp(0rem, 7vw, 3rem));
  --h1-font-size: 1.875rem;
  --h1-line-height: 1.2;
  --headline-text-font-size: 1.25rem;
  --headline-text-line-height: 1.5;
  --headline-margin-bottom: 2.4rem;
  --label-font-size: 1.125rem;
  --label-line-height: 1.66;
  --button-font-size: 1.50rem;
  --button-line-height: 1;
  --input-font-size: 1.50rem;
  --input-line-height: 1;
}
div.modal-form a.modal-form-close {
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  color: var(--secondary-color);
}
div.modal-form a.modal-form-close:hover {
  color: var(--nav-color);
}

div.modal-form [class^="form--"] .form-headline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}

div.modal-form [class^="form--"] .form-headline p,
div.modal-form [class^="form--"] .form-headline a {
  font-size: var(--headline-text-font-size);
  line-height: var(--headline-text-line-height);
}

div.modal-form [class^="form--"] h1,
div.modal-form [class^="form--"] h2,
div.modal-form [class^="form--"] h3,
div.modal-form [class^="form--"] legend {
  font-family: 'Sombra Variable';
}
div.modal-form [class^="form--"] fieldset legend,
div.modal-form [class^="form--"] fieldset h2 {
  font-family: 'Sombra Variable';
  font-size: var(--legend-font-size);
  line-height: var(--legend-line-height);
  letter-spacing: 0.6px;
  margin-bottom: var(--legend-margin-bottom);
}
div.modal-form [class^="form--"] h1 {
  font-size: var(--h1-font-size);
  line-height: var(--h1-line-height);
  letter-spacing: .6px;
  font-weight: 300;
  color: var(--nav-color);
  margin-block: 1em .2em;
  white-space: nowrap;
}
div.modal-form [class^="form--"] p,
div.modal-form [class^="form--"] a:not(.btn) {
  color: var(--secondary-color);
  font-size: var(--label-font-size);
  line-height: var(--label-line-height);
}
div.modal-form [class^="form--"] p {
  text-wrap-style: balance;
  text-align: center; 
  max-width: 85%; /% trigger text wrapping %/
}
div.modal-form [class^="form--"] a:not(.btn):hover {
  color: var(--active-link-color);
}
div.modal-form [class^="form--"] {
  margin-inline: var(--form-margin-inline);
  padding-inline: var(--form-padding-inline);;
  gap: 0;
  font-family: "Sombra Variable";
  font-weight: 300;
  color: var(--nav-color);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
div.modal-form [class^="form--"] .is-error {
  color: red;
}
div.modal-form [class^="form--"] .is-error input {
  color: red;
  border-color: red;
}
div.modal-form [class^="form--"] button.btn {
  margin-block: 3em 2em;
  font-size: var(--button-font-size);
  line-height: var(--button-line-height);
  padding: 1rem 2rem;
  min-width: 16rem;
  max-width: fit-content;
  display: flex;
  justify-content: center;
}
div.modal-form [class^="form--"] button.btn:hover {
  text-decoration: none;
  -webkit-text-decoration: none;
}
div.modal-form [class^="form--"] fieldset {
  display: flex;
  flex-direction: column;
  gap: var(--default-gap);
  border: none;
}
div.modal-form [class^="form--"] label {
  font-size: var(--h1-font-size);
  line-height: var(--h1-line-height);
}
div.modal-form [class^="form--"] label:has(input[type="radio"]),
div.modal-form [class^="form--"] label:has(input[type="checkbox"]) {
  cursor: pointer;
}
div.modal-form [class^="form--"] label span {
  /*text-transform: lowercase;*/
}
div.modal-form [class^="form--"] label.error em.error {
  margin-top: calc(-1 * var(--default-gap));
}

div.modal-form [class^="form--"] input::placeholder {
  /*color: var(--accent--color);*/
  color: var(--secondary-color);
  letter-spaceing: 0.42px;
}
div.modal-form [class^="form--"] input {
  width: 100%;
  font-family: "Sombra Variable";
  font-weight: 300;
  font-size: var(--input-font-size);
  line-height: var(--input-line-height);
  padding: 1rem;
  border: 1px solid #707070;
  outline-color: var(--nav-color);
  width: auto;
  /*box-sizing: content-box;
  height: var(--input-font-size);*/
}

select {
  font-family: "Sombra Variable";
  font-weight: 300;
    font-size: var(--input-font-size);
    line-height: var(--input-line-height);;
    padding: 1rem;
    border: 1px solid var(--nav-color);
    outline-color: var(--nav-color);
    width: 100%;
    box-sizing: border-box;
    appearance: none; /* Removes default browser styles */
    background-color: white;
    cursor: pointer;
  border-radius: 0;
}
select:not(:has(option:checked)),
select:has(option:checked:not([value])) {
  color: var(--secondary-color);
}
/* Add a custom arrow using a background image */
div.modal-form [class^="form--"] select {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1em center;
    background-size: 1em;
    padding-right: 3em; /* Ensures space for the arrow */
}

/* When the select is opened */
div.modal-form [class^="form--"] select:focus,
div.modal-form [class^="form--"] select:active {
    border-color: var(--nav-color);
    outline: 2px solid var(--nav-color);
}

/* For Firefox to prevent a large padding issue */
div.modal-form [class^="form--"] select::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/* Remove default arrow in Edge, IE */
div.modal-form [class^="form--"] select::-ms-expand {
    display: none;
}

/* Base styles for checkboxes and radio buttons */
div.modal-form [class^="form--"] input[type="checkbox"],
div.modal-form [class^="form--"] input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--nav-color);
    outline: 2px solid transparent;
    outline-offset: 0;
    background-color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
    position: relative;
    flex-shrink: 0;
}

/* Ensure radio buttons remain square */
div.modal-form [class^="form--"] input[type="radio"] {
    border-radius: 0;
}

/* Checked state for checkboxes - "X" shape */
/* Checked state for radio buttons - "X" shape */
div.modal-form [class^="form--"] input[type="checkbox"]:checked::before,
div.modal-form [class^="form--"] input[type="radio"]:checked::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    display: block;
}

/* Create the "X" shape using pseudo-elements */
div.modal-form [class^="form--"] input[type="checkbox"]:checked::before,
div.modal-form [class^="form--"] input[type="checkbox"]:checked::after,
div.modal-form [class^="form--"] input[type="radio"]:checked::before,
div.modal-form [class^="form--"] input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 2px;
    background-color: var(--nav-color);
}

/* Rotate to form an "X" */
div.modal-form [class^="form--"] input[type="checkbox"]:checked::before,
div.modal-form [class^="form--"] input[type="radio"]:checked::before {
    transform: rotate(45deg);
}

div.modal-form [class^="form--"] input[type="checkbox"]:checked::after,
div.modal-form [class^="form--"] input[type="radio"]:checked::after {
    transform: rotate(-45deg);
}

/* Focus outline */
div.modal-form [class^="form--"] input[type="checkbox"]:focus,
div.modal-form [class^="form--"] input[type="radio"]:focus {
    outline-color: var(--nav-color);
}

.placeholder-active,
input.placeholder-active,
select.placeholder-active,
div.modal-form [class^="form--"] input.placeholder-active,
div.modal-form [class^="form--"] select.placeholder-active {
    color: var(--secondary-color);
}

@media (max-width: 767px) {
  div.modal-form-container {
    padding-top: var(--viewport-border);
    padding-inline: var(--viewport-border);
    /* padding-inline: 1px; */
  }
  div.modal-form {
    padding-inline: calc(1 * var(--viewport-border));
    margin-inline: 0;
    width:100%;
  }
  div.modal-form [class^="form--"] {
    grid-template-columns: 1fr;
    width: 100%;
    justify-items: center;
    padding-inline: calc(2 * var(--viewport-border));
    margin-inline: 0;
  }
  div.modal-form [class^="form--"] h1 {
    white-space: normal;
    text-align: center;
  }
  div.modal-form [class^="form--"] label,
  div.modal-form [class^="form--"] input {
    width: 100%;
    max-width: 100%;
  }
  div.modal-form .form--close {
    right: 3vw;
  }
  div.modal-form [class^="form--"] fieldset {
    width: 100%;
  }
}


div.modal-form [class^="form--"].two-column,
div.modal-form [class^="form--"].two-column fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--form-column-gap);
  row-gap: var(--form-row-gap);
  width: fit-content;
  align-items: start;
}
div.modal-form [class^="form--"].two-column .form-headline,
div.modal-form [class^="form--"].two-column fieldset {
  grid-column: span 2;
  margin-bottom: 0;
  width: 100%;
}
div.modal-form [class^="form--"].two-column fieldset {
  margin-top: var(--section-gap);
}
div.modal-form [class^="form--"].two-column fieldset legend {
  grid-column: span 2;
  text-align: center;
}
div.modal-form [class^="form--"].two-column .field--text.instr {
  grid-column: span 2;
  margin-bottom: calc(-1 * var(--form-row-gap));
  text-wrap-style: pretty;
  margin-inline: var(--section-overflow-margin-inline);
  max-width: none;
}
div.modal-form [class^="form--"].two-column .field--text.instr:last-of-type {
  margin-bottom: calc(var(--legend-margin-bottom) - var(--form-row-gap));
}
div.modal-form [class^="form--"].two-column .field--text.instr a {
  color: var(--nav-color);
  font-weight: 300;
  line-height: var(--p-line-height);
}

div.modal-form [class^="form--"].two-column .column-single,
div.modal-form [class^="form--"].two-column .column-double,
div.modal-form [class^="form--"].two-column fieldset.column-single,
div.modal-form [class^="form--"].two-column fieldset.column-double {
  display: flex;
  gap: var(--default-gap);
}
div.modal-form [class^="form--"].two-column .column-single,
div.modal-form [class^="form--"].two-column fieldset.column-single {
  grid-column: span 1;
}
div.modal-form [class^="form--"].two-column .column-double,
div.modal-form [class^="form--"].two-column fieldset.column-double {
  grid-column: span 2;
}

div.modal-form [class^="form--"].two-column label {
  --internal-gap: 5px;
  display: flex;
  flex-direction: column;
  gap: var(--internal-gap);
  min-width: 5rem;
  max-width: 380px;
  font-size: var(--label-font-size);
  line-height: var(--label-line-height);
  color: var(--secondary-color);
}
div.modal-form [class^="form--"].two-column label.error {
  color: var(--error-color);;
}
div.modal-form [class^="form--"].two-column label.field--checkbox,
div.modal-form [class^="form--"].two-column label.field--radio {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1ch;
  color: var(--secondary-color);
  align-items: center;
}
div.modal-form [class^="form--"].two-column label.field--checkbox span,
div.modal-form [class^="form--"].two-column label.field--radio span{
  color: var(--nav-color);
}

@media (max-width: 767px) {
  div.modal-form [class^="form--"].two-column {
    grid-template-columns: 1fr;
    margin-inline: 0;
    padding-inline: 0;
    width: 100%;
  }
  div.modal-form [class^="form--"].two-column .form-headline,
  div.modal-form [class^="form--"].two-column fieldset {
    grid-column: span 1;
    margin-inline: 0;
    width: 100%;
    margin-block: calc(var(--section-gap) - 1rem) 0;
  }
  div.modal-form [class^="form--"].two-column fieldset {
    grid-template-columns: 1fr;
    margin-inline: 0;
    width: 100%;
  }
  div.modal-form [class^="form--"].two-column fieldset legend {
    grid-column: span 1;
  }
  div.modal-form [class^="form--"].two-column .column-double,
  div.modal-form [class^="form--"].two-column fieldset.column-double {
    grid-column: span 1;
  }
  div.modal-form [class^="form--"].two-column label {
    max-width: 100%;
    line-height: var(--p-line-height);
  }
  div.modal-form [class^="form--"].two-column .field--text.instr {
    grid-column: span 1;
    margin-inline: auto;
  }
}

div.modal-form [class^="form--membership"] .fieldset--commitment-summary legend {
  margin-bottom: 0;
}
div.modal-form [class^="form--membership"] .fieldset--commitment-summary h2 {
  font-weight: 300;
  text-align: center;
  width: 100%;
  margin-bottom: 0;
  text-wrap-style: balance;
}
div.modal-form [class^="form--membership"] .fieldset--commitment-summary p.next_collection {
  margin-bottom: var(--legend-margin-bottom);
  font-size: var(--headline-text-font-size);
  line-height: var(--headline-text-line-height);
  width: 100%;
  max-width: 100%;
  text-wrap-style: pretty;
  text-align: center;
  color: var(--nav-color);
}
div.modal-form [class^="form--membership"] .fieldset--commitment-summary label.field--promo {
  flex-direction: row;
  gap: var(--default-gap);
  max-width: 100%;
  width: 100%;
}
div.modal-form [class^="form--membership"] .fieldset--commitment-summary label.field--promo input {
  width: 100%;
  font-size: calc(.875 * var(--input-font-size));
  line-height: 1;
}
div.modal-form [class^="form--membership"] .fieldset--commitment-summary label.field--promo button.btn {
  margin: 0;
  font-size: calc(.875 * var(--input-font-size));
  line-height: 1;
  letter-spacing: .42px;
  min-width: min-content;
  padding-block: 1rem;
  padding-inline: clamp(2ch, 7lvw, 8ch);
  height: 100%;
}

div.modal-form [class^="form--membership"].two-column .fieldset--order-summary {
  display: flex;
  flex-direction: row;
  font-variant-numeric: tabular-nums;
}

div.modal-form [class^="form--membership"] .fieldset--order-summary dl {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  column-gap: 2rem;
  row-gap: 1px;
  font-size: var(--headline-text-font-size);
  line-height: var(--headline-text-line-height);
  color: var(--secondary-color);
}
div.modal-form [class^="form--membership"] .fieldset--order-summary dt {
  text-align: right;
}
div.modal-form [class^="form--membership"] .fieldset--order-summary dd {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 1rem;
  justify-items: end;
}
div.modal-form [class^="form--membership"] .fieldset--order-summary dt.hidden,
div.modal-form [class^="form--membership"] .fieldset--order-summary dd.hidden {
  display: none;
}
div.modal-form [class^="form--membership"] .fieldset--order-summary .subscr_total {
  margin-top: 1rem;
  color: var(--nav-color);
}

@media (max-width: 767px) {
  div.modal-form [class^="form--membership"] .fieldset--commitment-summary h2 {
    margin-block: var(--default-gap);
  }
  div.modal-form [class^="form--membership"].two-column .fieldset--order-summary {
    flex-direction: column;
    text-wrap-style: balance;
  }

}





.custom-select {
  position: relative;
  width: 100%;
}

.custom-select__trigger {
  position: relative;
  display: block;
  width: auto; 
  font-family: "Sombra Variable";
  font-weight: 300;
  font-size: var(--input-font-size);
  line-height: var(--input-line-height);
  padding: 1rem;
  padding-right: 2.5rem;
  border: 1px solid var(--nav-color);
  background-color: white;
  cursor: pointer;
  transition: border-color 0.15s ease, outline 0.15s ease;
  box-sizing: content-box;
  height: var(--input-font-size);
}

.custom-select__trigger:hover {
  border-color: var(--nav-color);
}

.custom-select.open .custom-select__trigger,
.custom-select__trigger:focus {
  outline: 2px solid var(--nav-color);
  outline-offset: 0;
  border-color: var(--nav-color);
}

.custom-select__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: normal;
}

.custom-select__value--placeholder {
  color: var(--secondary-color);
}

.custom-select__arrow {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1em;
  height: 0.67em;
  transition: transform 0.2s ease;
}

.custom-select.open .custom-select__arrow {
  transform: translateY(-50%) rotate(180deg);
}

.custom-select__dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  background: white;
  border: 1px solid var(--nav-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  display: none;
}

.custom-select.open .custom-select__dropdown {
  display: block;
}

.custom-select__option {
  padding: 0.75rem 1rem;
  font-family: "Sombra Variable";
  font-weight: 300;
  font-size: var(--input-font-size);
  line-height: var(--input-line-height);
  cursor: pointer;
  transition: background-color 0.1s ease;
}

.custom-select__option:hover,
.custom-select__option:focus {
  background: black;
  color: white;
  outline: none;
}

.custom-select__option.selected {
  font-weight: 400;
}

/* Hidden native select for form submission */
.custom-select select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* Error state */
.is-error .custom-select__trigger,
.error .custom-select__trigger {
  border-color: var(--error-color);
}

/* Disabled state */
.custom-select.disabled .custom-select__trigger {
  cursor: not-allowed;
  opacity: 0.7;
  background-color: #f5f5f5;
}

.custom-select.disabled .custom-select__trigger:hover,
.custom-select.disabled .custom-select__trigger:focus {
  outline: none;
  border-color: var(--nav-color);
}

@media (max-width: 767px) {
  .custom-select__option {
    padding: 1rem;
  }
}


:root {
  --form-background-color: #FFF;
}

div.modal-form {
  --legend-font-size: 2rem;
  --legend-line-height: var(--h1-line-height);
  --section-gap: 3rem;
  --legend-margin-bottom: var(--headline-margin-bottom);
  --label-font-size: 1.25rem;
  --text-color: #424242;
  --secondary-color: #6A6A68;
  --form-column-gap: clamp(1rem, 5.8lvw, 5rem);
}

#payment-element {
  width: 100%;
}

div.modal-form-container {
  background: var(--form-background-color);
}

div.modal-form {
  padding-block-start: 1rem;
  background: linear-gradient(to bottom, #CDC2BB 0px, #CDC2BB 100px, var(--form-background-color) 100px, var(--form-background-color) 100%);
}

div.modal-form [class^="form--"] input,
div.modal-form [class^="form--"] select {
  background: var(--form-background-color);
}

div.modal-form [class^="form--"] fieldset legend,
div.modal-form [class^="form--"] fieldset h2 {
    font-family: 'Attila Sans Variable', sans-serif;
    font-variation-settings: "wght" var(--attila-medium), "cnst" var(--attila-sharp);
    font-size: var(--legend-font-size);
    line-height: var(--legend-line-height);
    letter-spacing: 0px;
}

div.modal-form [class^="form--"].two-column fieldset legend {
  text-align: left;
  color: var(--text-color);
}

.bam-headline {
  margin-inline: -2rem;
  background: #CDC2BB;
  font-family: "Attila Sans Variable", sans-serif;
  font-variation-settings: "wght" var(--attila-regular), "cnst" var(--attila-sharp);
  color: var(--text-color);
}

.bam-headline .image-wrapper {
  position: relative;
  display: inline-block;
  border-top: 2px solid white;
}

.bam-headline .image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.bam-headline .overlay {
  position: absolute;
  inset: 0;
  background: #00000066;
  color: white;
  display: flex;
  gap: 2rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bam-headline .overlay div {
  --p-font-size: 1.275rem;
  text-align: center;
}

.bam-headline .overlay p {
  color: white;
  font-variation-settings: "wght" var(--attila-medium), "cnst" var(--attila-sharp);
}

.bam-headline .overlay h1 {
  font-variation-settings: "wght" var(--attila-medium), "cnst" var(--attila-sharp);
  font-size: 2.1875rem;
  letter-spacing: 1px;
}

.bam-headline .benefits {
  --content-default-margin: 2rem;
  --margin-inline-dimension: clamp(1rem, calc((1.5 * var(--content-default-margin)) - (var(--delta-from-max-width) * .5)), var(--content-default-margin));
  margin-block: 2rem;
  margin-inline: var(--margin-inline-dimension);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.bam-headline h2 {
  font-size: var(--legend-font-size);
  margin-inline: 1rem;
  font-variation-settings: "wght" var(--attila-medium), "cnst" var(--attila-sharp);
}

.bam-headline .benefits-row {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0;
  row-gap: 2rem;
}

.bam-headline .benefits-row div {
  flex: 1 1 20%;
  display: flex;
  flex-direction: column;
  gap: var(--default-gap);
  align-items: flex-start;
  justify-content: flex-start;
  border-left: 2px solid black;
  padding-inline: 1rem 0px;
}

.bam-headline .benefits-row > div:first-of-type {
  border-left: none;
}

.bam-headline .benefits-row div span {
  padding: 0;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  white-space: nowrap;
}

.bam-headline .benefits-row div p {
  font-size: 1.7rem;
  font-variation-settings: "wght" var(--attila-medium), "cnst" var(--attila-sharp);
  color: var(--text-color);
}
.bam-headline .benefits-row div small {
  font-size: 1rem;
  line-height: 1.3;
}

div.modal-form label.field--radio > div {
  text-wrap-style: unset;
  line-height: 1.2;
  padding-block-start: 3px; /* need the padding for Attila's whacked ascent/descent definitions */
}

div.modal-form .form--membership-subscribe.two-column {
  padding-inline: clamp(2rem, 7lvw, 7rem);
  margin-inline: 0;
  width: 100%;
}

div.modal-form .form--membership-subscribe h3 {
  --headline-text-font-size: 1.5rem;
  font-weight: 400;
  font-variation-settings: unset; /* this is Sombra but was Attila up the chain */
  white-space: nowrap;
  color: var(--text-color);
  font-size: var(--headline-text-font-size);
  line-height: var(--headline-text-line-height);
}

div.modal-form [class^="form--membership"].two-column .fieldset--order-summary {
  margin-top: 0px;
}

div.modal-form .form--membership-subscribe p.commitment_pymt_detail {
  grid-column: span 2;
  padding-inline: 0;
  width: 100%;
  margin-top: var(--section-gap);
    max-width: 100%;
    text-align: left;
    text-wrap-style: balance;
    color: var(--text-color);
    font-size: var(--headline-text-font-size);
    line-height: 1.1;
    font-weight: 300;
    max-width: 100%;
    margin-block: 1rem;
}

div.modal-form .form--membership-subscribe.two-column .fieldset--ok-consent {
  margin-inline: auto;
  margin-block: var(--section-gap) 0;
  width: 100%;
}
div.modal-form .form--membership-subscribe.two-column .fieldset--ok-consent label.field--checkbox {
  max-width: calc(50% - (.5 * var(--form-column-gap)));
  font-size: 1rem;
  line-height: 1.2;
  font-family: "Sombra Variable";
  font-weight: 300;
  font-variation-settings: unset;
  color: var(--text-color);
}
div.modal-form .form--membership-subscribe.two-column .fieldset--ok-consent label.field--checkbox a {
  font-size: 1rem;
  line-height: 1.2;
  font-family: "Sombra Variable";
  font-weight: 400;
  font-variation-settings: unset;
  color: var(--text-color);
}

.form-headline {
  margin-bottom: var(--legend-margin-bottom);
}

.headline-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    color: var(--secondary-color);
    gap: var(--default-gap);
    margin-block: 0 var(--form-row-gap);
    margin-inline: -1em 0;
}

div.modal-form .form--membership-subscribe.two-column .headline-cta img {
  max-width: 100%;
    max-height: 10em;
    object-fit: cover;
    width: 100%;
}

div.modal-form .form--membership-subscribe.two-column .headline-cta h2 {
}

div.modal-form .form--membership-subscribe.two-column .headline-cta ul {
    list-style: circle;
    display: flex;
    flex-direction: column;
    gap: var(--default-gap);
    color: var(--secondary-color);
    margin-inline: calc(3 * var(--viewport-border));
}

div.modal-form .form--membership-subscribe.two-column .headline-cta ul li {
}

div.modal-form [class^="form--"].two-column .fieldset--collection.column-single,
div.modal-form [class^="form--"].two-column .fieldset--case.column-single {
  margin-top: 2rem;
  row-gap: 1rem;
  --label-line-height: 26px;
}
div.modal-form [class^="form--"].two-column .fieldset--collection.column-single {
}
div.modal-form [class^="form--"].two-column .fieldset--case.column-single {
}
div.modal-form [class^="form--"].two-column .fieldset--collection legend,
div.modal-form [class^="form--"].two-column .fieldset--case legend {
  text-align: left;
  font-family: "Attila Sans Variable", sans-serif;
  font-variation-settings: "wght" var(--attila-medium), "cnst" var(--attila-sharp);
  color: var(--text-color);
}
div.modal-form [class^="form--"].two-column .fieldset--collection legend {
  margin-inline-start: -2rem;
}

div.modal-form .form--membership-subscribe .fieldset--collection label,
div.modal-form .form--membership-subscribe .fieldset--case label {
  max-width: 100%;
}
div.modal-form .form--membership-subscribe .fieldset--collection legend,
div.modal-form .form--membership-subscribe .fieldset--case legend {
  text-align: left;
}
div.modal-form [class^="form--"] input[type="checkbox"],
div.modal-form [class^="form--"] input[type="radio"] {
  background-color: var(--form-background-color);
}
div.modal-form [class^="form--"].two-column label.field--checkbox,
div.modal-form [class^="form--"].two-column label.field--radio {
    font-family: "Attila Sans Variable", sans-serif;
    font-variation-settings: "wght" var(--attila-regular), "cnst" var(--attila-sharp);
}
div.modal-form [class^="form--"].two-column label.field--checkbox span,
div.modal-form [class^="form--"].two-column label.field--radio span{
  font-variation-settings: "wght" var(--attila-medium), "cnst" var(--attila-sharp);
  color: var(--text-color);
}
div.modal-form [class^="form--"] input[type="checkbox"],
div.modal-form [class^="form--"] input[type="radio"] {
  border-width: 2px;
}

div.modal-form [class^="form--"].two-column .fieldset--case.column-single p {
  max-width: 100%;
  text-align: left;
  color: var(--text-color);
  --label-font-size: 1.1rem;
  --label-line-height: 1.2;
}
div.modal-form [class^="form--"].two-column .fieldset--case.column-single p strong {
  font-weight: 500;
}
div.modal-form [class^="form--"].two-column label {
  max-width: 100%;
  color: var(--text-color);
}
div.modal-form [class^="form--"] input,
div.modal-form [class^="form--"] select {
  width: 100%;
  font-weight: 400;
  padding: .625rem 1.4rem;
  --input-font-size: 1.2rem;
}
div.modal-form [class^="form--"] input::placeholder,
div.modal-form [class^="form--"] select.placeholder-active {
  color: var(--text-color);
}

/* Custom select styling to match input fields */
div.modal-form [class^="form--"] .custom-select__trigger {
  box-sizing: border-box;
  height: auto;
  padding: .625rem 1.4rem;
  --input-font-size: 1.2rem;
  font-size: var(--input-font-size);
  line-height: var(--input-line-height);
}

div.modal-form [class^="form--"] .custom-select__option {
  padding: .625rem 1.4rem;
  --input-font-size: 1.2rem;
  font-size: var(--input-font-size);
}

div.modal-form [class^="form--"].two-column label small {
  line-height: var(--p-line-height);
  padding: var(--default-gap) calc(1.4rem + 1px);
}

.field--phone,
.field--date {
  position: relative;
}

.field--date::after {
  content: var(--dob-inset-label, "");
  position: absolute;
  right: 4.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .875rem;
  font-weight: 400;
  color: var(--text-color);
  pointer-events: none;
}

/* only for safari */
@supports (hanging-punctuation: first) and (-webkit-appearance: none) {
  .field--date::after {
    right: 0.75rem;
  }
}

.field--date .mobile-help {
  display: none;
}

.field--phone::after {
  content: var(--phone-inset-label, "");
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .875rem;
  font-weight: 400;
  color: var(--text-color);
  pointer-events: none;
}

div.modal-form .form--membership-subscribe .fieldset--promo label {
  flex-direction: row;
  width: 100%;
}
div.modal-form .form--membership-subscribe .fieldset--promo button.btn {
  margin-block: 0;
  padding: .625rem 1.4rem;
  background: black;
  color: white;
  --button-font-size: 1.2rem;
  min-width: fit-content;
  height: 100%;
  font-weight: 400;
}

div.modal-form [class^="form--membership"] .fieldset--commitment-summary legend {
  --legend-font-size: 1.5rem;
  font-weight: 500;
  font-family: 'Sombra Variable';
  font-variation-settings: unset;
  margin-bottom: var(--legend-margin-bottom);
}
div.modal-form [class^="form--membership"] .fieldset--commitment-summary h2 {
  text-align: left;
  color: var(--text-color);
  font-variation-settings: "wght" var(--attila-regular), "cnst" var(--attila-sharp);
  --legend-font-size: 1.875rem;
}
div.modal-form [class^="form--membership"] .fieldset--commitment-summary p.next_collection {
  text-align: left;
  color: var(--text-color);
  margin-bottom: calc(var(--legend-margin-bottom) - var(--form-row-gap));
}

div.modal-form .form--membership-subscribe button.btn {
  grid-column: span 2;
  background: black;
  color: white;
  padding: .625rem 1.4rem;
  width: calc(50% - (.5 * var(--form-column-gap)));
  max-width: unset;
  font-weight: 500;
}

div.modal-form .form--membership-subscribe .field--text.instr {
  grid-column: span 2;
  margin-bottom: calc(-1 * var(--form-row-gap));
  text-wrap-style: pretty;
  margin-inline: var(--section-overflow-margin-inline);
  max-width: none;
}
div.modal-form .form--membership-subscribe .field--text.instr:last-of-type {
  margin-bottom: calc(var(--legend-margin-bottom) - var(--form-row-gap));
}
div.modal-form .form--membership-subscribe .field--text.instr a,
div.modal-form .form--membership-subscribe .fieldset--ok-consent a {
  color: var(--nav-color);
  font-weight: 300;
  line-height: var(--p-line-height);
}

div.modal-form [class^="form--"].two-column .fieldset--shipping .field--text.instr {
  margin-inline: 0px;
  text-align: left;
  color: var(--text-color);
  --label-font-size: 1.2rem;
  padding-inline: 0 4px;
}

div.modal-form [class^="form--membership"] .fieldset--order-summary {
  --headline-text-font-size: 1.5rem;
}

div.modal-form [class^="form--membership"] .fieldset--order-summary dl .order__term,
div.modal-form [class^="form--membership"] .fieldset--order-summary dl .order__info {
  font-weight: 400;
}
div.modal-form [class^="form--membership"] .fieldset--order-summary dl [class^="order__value"],
div.modal-form [class^="form--membership"] .fieldset--order-summary dl .order__term--total {
  color: var(--text-color);
  font-weight: 500;
  font-variation-settings: unset;
}

#placeorder:disabled,
#placeorder:disabled:hover {
    background: var(--info-btn-color) !important;
    color: var(--info-btn-color);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .bam-headline .benefits-row div {
    flex: 1 1 calc(100% / 3);
  }
  .bam-headline h2 {
    margin-inline: clamp(0rem, 2.5lvw, 2rem);
  }
  .bam-headline .benefits-row div:nth-of-type(4) {
    border-left: none;
  }
  .bam-headline .benefits-row div:nth-of-type(5) {
  }
  .bam-headline .benefits-row div:nth-of-type(n+4) {
    flex: 1 1 50%;
    padding-inline: 5rem;
  }
  .bam-headline .benefits-row div:nth-of-type(n+4) br {
    display: none;
  }
}

@media (max-width: 767px) {
  .field--date::after {
    display: none;
  }
  .field--date .mobile-help {
    display: block;
  }
  /* only for safari, which shrinks the date control in mobile and can still fit the ::after text */
  @supports (hanging-punctuation: first) and (-webkit-appearance: none) {
    .field--date::after {
      display: block;
    }
    .field--date .mobile-help {
      display: none;
    }
  }

  div.modal-form {
    --section-gap: 4rem;
  }
  div.modal-form .form--membership-subscribe.two-column {
    padding-inline: var(--default-gap);
  }
  div.modal-form .form--membership-subscribe.two-column .fieldset--ok-consent label.field--checkbox {
    max-width: 100%;
  }
  div.modal-form [class^="form--"].two-column label.field--radio {
    align-items: center;
    --label-font-size: 1.1rem;
  }
  .bam-headline {
    margin-inline: calc(-1 * var(--viewport-border));
  }
  .bam-headline .overlay {
    position: static;
    background: none;
    color: black;
    margin-top: var(--default-gap);
    margin-inline: var(--default-gap);
    text-wrap-style: balance;
  }
  .bam-headline .overlay h1 {
    text-align: center;
    line-height: 1.3;
    font-weight: 300;
    font-size: 3rem;
  }

  .bam-headline .overlay div {
    padding-top: var(--default-gap);
  }

  .bam-headline .overlay p {
    /*color: black;*/
    font-weight: 300;
    font-size: 1.5rem;
  }
  .bam-headline h2 {
    margin-inline: 0;
    margin-block: 1rem;
  }

  .bam-headline .image-wrapper {
    display: block;
    border-width: 1px;
  }

 .bam-headline .benefits-row div {
    flex: 1 1 100%;
    border-left: 0;
    /*padding-bottom: 1rem;*/
    /*border-bottom: 1px solid black;*/
  }
 .bam-headline .benefits-row div::after {
   content: "";
  z-index: 10;
   bottom: 0;
   width: 67%;
   height: 1px;
   background: black;
  margin-block: calc(1rem + var(--default-gap)) var(--default-gap);
  }
 .bam-headline .benefits-row div:last-of-type::after {
    height: 0px;
    width: 0px;
    margin-block: 0px;
  }
  .bam-headline .benefits-row div p {
    margin-inline-end: 2rem;
    text-wrap-style: balance;
  }
 .bam-headline .benefits-row div p br {
    display: none;
  }
  .bam-headline .benefits-row div small {
    font-size: 1.5rem;
    font-family: "Sombra Variable";
    font-variation-settings: unset;
  }

  div.modal-form .form--membership-subscribe.two-column .form-headline {
    margin-block-end: 0;
  }
  div.modal-form .form--membership-subscribe.two-column .headline-cta {
    margin-inline: var(--viewport-border);
    margin-block: var(--form-row-gap) calc(-1 * var(--form-row-gap));
  }
  div.modal-form .form--membership-subscribe.two-column .fieldset--collection,
  div.modal-form .form--membership-subscribe.two-column .fieldset--case {
    --section-gap: 1rem;
    margin-top: var(--section-gap);
  }
  div.modal-form [class^="form--"] fieldset {
    margin-inline: 0;
    margin-block: var(--section-gap) 0;
    width: fit-content;
  }
  div.modal-form [class^="form--"] fieldset legend {
    margin-block: 0 var(--legend-margin-bottom);
  }
  div.modal-form .form--membership-subscribe p.commitment_pymt_detail,
  div.modal-form .form--membership-subscribe .field--text.instr,
  div.modal-form .form--membership-subscribe button.btn {
    grid-column: span 1;
    margin-inline: 0;
    width: 100%;
    margin-block: calc(var(--section-gap) - 1rem) 0;
  }
  div.modal-form .form--membership-subscribe.two-column .fieldset--collection,
  div.modal-form .form--membership-subscribe.two-column .fieldset--case {
    margin-inline: 0;
  }
  div.modal-form .form--membership-subscribe.two-column .fieldset--collection legend,
  div.modal-form .form--membership-subscribe.two-column .fieldset--case legend {
    text-align: center;
    margin-inline: auto;
  }
  div.modal-form .form--membership-subscribe p.commitment_pymt_detail {
    text-wrap-style: pretty;
    line-height: var(--p-line-height);
  }
  div.modal-form .form--membership-subscribe .field--text.instr {
    margin-block: 0;
  }
  div.modal-form [class^="form--"].two-column label.field--radio {
    align-items: start;
  }
}

/* mobile-white variant styles */
.mobile-white .bam-headline .image-wrapper img {
  height: 20em;
  object-fit: cover;
  object-position: right;
}
.mobile-white .bam-headline .overlay {
  position: absolute;
  margin: 0px;
}
.mobile-white .bam-headline .overlay h1 {
  color: white;
  font-weight: 600;
}
.mobile-white .bam-headline .overlay p {
  font-weight: 400;
}

