
/* 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;
  aspect-ratio: 1200 / 804;
  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);
}
footer .footer-social {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  margin-top: 0.75rem;
}
footer .footer-social a {
  color: var(--nav-color);
  display: flex;
  align-items: center;
  transition: opacity var(--transition-speed) ease-in-out;
}
footer .footer-social a:hover {
  opacity: 0.7;
}
footer .footer-social svg {
  width: 20px;
  height: 20px;
}

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;
  }
}
body:has(.modal-form-container.open) #scroll-hint {
  display: none;
}
/* Wine heart — [heart] Loved by X members, above bottle image */
.wine-loved {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.8125rem;
  color: black;
  line-height: 1;
  letter-spacing: 0.01em;
  margin-bottom: 0.75em;
}
.wine-heart {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: transform 0.15s ease;
}
.wine-heart:hover {
  transform: scale(1.2);
}
.wine-heart:active {
  transform: scale(0.95);
}
.wine-heart svg {
  fill: none;
  stroke: black;
  stroke-width: 1.5;
  transition: fill 0.2s, stroke 0.2s;
}
.wine-heart:hover svg {
  stroke: #e53935;
}
.wine-heart.liked svg {
  fill: #e53935;
  stroke: #e53935;
}
.wine-loved-text {
  white-space: nowrap;
}
.col1 .wine-loved {
  font-size: 1rem;
}
.col1 .wine-heart svg {
  width: 26px;
  height: 26px;
}
.wine-loved-text[hidden] {
  display: none;
}
ul.wine li.wine-heart-row {
  text-transform: none;
}

html {
  scrollbar-gutter: stable;
}
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;
  color: black;
  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;
  color: black;
}

.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;
}

.custom-select__option:hover,
.custom-select__option.focused {
  background: black;
  color: white;
}

.custom-select__option:focus {
  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;
  }
}



/* Container - match standard input width */
.iti {
  width: 100%;
  display: block;
}

/* The combined input container */
.iti--allow-dropdown .iti__flag-container,
.iti--separate-dial-code .iti__flag-container {
  position: static;
}

/* Country selector button - match custom-select trigger styling */
.iti__selected-country {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  background: white;
  border: none;
  border-right: 1px solid var(--nav-color);
  cursor: pointer;
  font-family: "Sombra Variable";
  font-weight: 300;
  font-size: var(--input-font-size);
  line-height: var(--input-line-height);
  height: 100%;
  min-width: 6rem;
}

.iti__selected-country:hover {
  background-color: transparent;
}

.iti__selected-country:focus {
  outline: 2px solid var(--nav-color);
  outline-offset: -2px;
  background-color: rgba(0, 0, 0, 0.05);
}

/* Arrow styling - match custom-select arrow */
.iti__arrow {
  border: none;
  width: 1em;
  height: 0.67em;
  margin-left: 0.5rem;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M1.41 0L6 4.59L10.59 0L12 1.41l-6 6l-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.2s ease;
}

.iti__arrow--up {
  transform: rotate(180deg);
}

/* Remove default arrow borders */
.iti__arrow:after,
.iti__arrow:before {
  display: none;
}

/* Dial code styling - match input font size */
.iti__selected-dial-code {
  color: var(--secondary-color);
  margin-left: 0.25rem;
  font-family: "Sombra Variable";
  font-weight: 300;
  font-size: var(--input-font-size);
  line-height: var(--input-line-height);
}

/* Phone input field - match standard input styling */
.iti input[type="tel"],
.iti input.iti__tel-input {
  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);
  box-sizing: border-box;
  width: 100%;
  height: auto;
}

.iti input[type="tel"]:focus,
.iti input.iti__tel-input:focus {
  outline: 2px solid var(--nav-color);
  outline-offset: 0;
  border-color: var(--nav-color);
}

.iti input[type="tel"]::placeholder,
.iti input.iti__tel-input::placeholder {
  color: var(--secondary-color);
}

/* With separate dial code - adjust input padding */
.iti--separate-dial-code input[type="tel"],
.iti--separate-dial-code input.iti__tel-input {
  padding-left: 7rem;
}

/* Country dropdown - match custom-select dropdown styling */
.iti__country-list {
  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;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "Sombra Variable";
  font-weight: 300;
}

/* Individual country option - match custom-select option styling */
.iti__country {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background-color 0.1s ease;
}

.iti__country:hover,
.iti__country:focus,
.iti__country--highlight {
  background: black;
  color: white;
  outline: none;
}

/* Ensure dial code also turns white on hover */
.iti__country:hover .iti__dial-code,
.iti__country:focus .iti__dial-code,
.iti__country--highlight .iti__dial-code {
  color: rgba(255, 255, 255, 0.7);
}

/* Ensure country name turns white on hover */
.iti__country:hover .iti__country-name,
.iti__country:focus .iti__country-name,
.iti__country--highlight .iti__country-name {
  color: white;
}

/* Country name */
.iti__country-name {
  flex: 1;
  font-size: var(--input-font-size);
}

/* Dial code in dropdown */
.iti__dial-code {
  color: var(--secondary-color);
  margin-left: auto;
  font-size: var(--input-font-size);
}

/* Flag sizing - scale with input font size */
.iti__flag {
  width: 1.25em;
  height: 0.9375em;
  box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.3);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Selected country in trigger */
.iti__selected-country .iti__flag {
  margin-right: 0;
}

/* Preferred countries divider */
.iti__divider {
  border-bottom: 1px solid var(--nav-color);
  margin: 0;
  padding: 0;
}

/* Search box in dropdown (if enabled) */
.iti__search-input {
  font-family: "Sombra Variable";
  font-weight: 300;
  font-size: var(--input-font-size);
  padding: 0.75rem 1rem;
  border: none;
  border-bottom: 1px solid var(--nav-color);
  width: 100%;
  box-sizing: border-box;
}

.iti__search-input:focus {
  outline: none;
}

/* Error state - match MVA error styling */
.is-error .iti input[type="tel"],
.is-error .iti input.iti__tel-input,
.error .iti input[type="tel"],
.error .iti input.iti__tel-input,
input[type="tel"].error,
input.iti__tel-input.error {
  border-color: var(--error-color);
  color: var(--text-color, black); /* Keep text color normal, don't inherit error color */
}

.is-error .iti input[type="tel"]:focus,
.is-error .iti input.iti__tel-input:focus,
.error .iti input[type="tel"]:focus,
.error .iti input.iti__tel-input:focus {
  outline-color: var(--error-color);
}

.is-error .iti__selected-country,
.error .iti__selected-country {
  border-right-color: var(--error-color);
}

.is-error .iti__selected-country:focus,
.error .iti__selected-country:focus {
  outline-color: var(--error-color);
}

/* JS validation error message */
.field__help--phone-js {
  display: block;
  color: var(--error-color);
  font-style: italic;
  margin-top: 0.25rem;
}

/* JavaScript-added error message - position below field without affecting layout */
.field--phone {
  position: relative;
}

.field--phone .field__help--js {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.25rem;
  font-size: var(--label-font-size, 0.875rem);
  color: hsl(0, 70%, 70%);
  font-style: italic;
}

/* Disabled state - match MVA disabled styling */
.iti input[type="tel"]:disabled,
.iti input.iti__tel-input:disabled {
  color: var(--secondary-color);
  background-color: var(--input-disabled-color, #fafafa);
  cursor: not-allowed;
  opacity: 1;
}

.iti input[type="tel"]:disabled + .iti__flag-container .iti__selected-country,
.iti input.iti__tel-input:disabled + .iti__flag-container .iti__selected-country {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
  .iti__country {
    padding: 1rem;
  }

  .iti--separate-dial-code input[type="tel"],
  .iti--separate-dial-code input.iti__tel-input {
    padding-left: 6rem;
  }

  .iti__selected-country {
    min-width: 5rem;
    padding: 0 0.75rem;
  }

  .iti__country-list {
    max-height: 50vh;
  }
}

/* Hide the validation message that intl-tel-input shows by default */
.iti__error-msg,
.iti__valid-msg {
  display: none;
}

/* Ensure the dropdown appears above other elements */
.iti--container {
  z-index: 1000;
}

/* Fix for the input container layout */
.iti--allow-dropdown,
.iti--separate-dial-code {
  display: flex;
  align-items: stretch;
}

.iti--allow-dropdown .iti__flag-container,
.iti--separate-dial-code .iti__flag-container {
  position: relative;
  display: flex;
  align-items: stretch;
}

/* Ensure proper height matching */
.iti--allow-dropdown input[type="tel"],
.iti--separate-dial-code input[type="tel"],
.iti--allow-dropdown input.iti__tel-input,
.iti--separate-dial-code input.iti__tel-input {
  flex: 1;
}


/* Custom select styling to match modal form inputs */
div.modal-form .custom-select__trigger {
  box-sizing: border-box;
  height: auto;
}

div.modal-form {
  --legend-font-size: var(--h1-font-size);
  --legend-line-height: var(--h1-line-height);
  --section-gap: 3rem;
  --legend-margin-bottom: var(--headline-margin-bottom);
}

@media (min-width: 768px) {
  div.modal-form {
    padding-inline: 0;
  }
}

#payment-element {
  width: 100%;
  grid-column: span 2;
}

div.modal-form [class^="form--"].two-column p.field--text.instr {
  margin-inline: auto;
}

div.modal-form .form--membership-subscribe .fieldset--payment label {
  max-width: 100%;
}

div.modal-form [class^="form--"].two-column .fieldset--ok-consent label.field--checkbox {
  max-width: 100%;
}

.fieldset--ok .btn {
  margin-inline: auto;
}
.hidden {
  display:none;
}

.column-double label {
  width: 100%;
}

label[for=id_new-pymt]:has(input[type="radio"]:checked) div {
    display: block;
}

label[for=id_new-pymt] div {
    display: none;
}

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

/* Giver fieldset: shown only to anonymous visitors. Inherits the form's
   2-column grid. Sizing of the intro paragraph and field rows is handled
   by .field--text.instr in modal_form_two_column.css. */
div.modal-form .fieldset--giver .field--mode--account {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
}
div.modal-form .fieldset--giver .field--mode--account .giver-login-link {
    margin-top: -0.1rem;
}
div.modal-form .fieldset--giver .giver-login-link {
    font-size: 0.85rem;
    color: var(--nav-color);
    text-decoration: underline;
    /* Indent under the radio's label text. The radio sits in a 2-column grid
       cell (auto + 1fr) with a 1ch gap. */
    padding-inline-start: calc(1ch + 1.5em);
}
/* Push the first row of inputs (first/last name) down so there is breathing
   room between the mode-toggle row above and the data fields. Applies to
   both grid columns of row 1. */
div.modal-form .fieldset--giver > .field--radio--mode,
div.modal-form .fieldset--giver > .field--mode--account {
    margin-bottom: var(--default-gap);
}
div.modal-form .fieldset--giver .field--date .field__help {
    font-style: italic;
    opacity: 0.75;
    font-weight: normal;
    margin-inline-start: 0.4em;
}
div.modal-form .fieldset--giver .checkout-mode-account-fields {
    display: contents;
}
div.modal-form .fieldset--giver .checkout-mode-account-fields[hidden] {
    display: none;
}


