/* overlay container */
#alternativesModal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  /* rgba fallback */
  background: rgba(0,0,0,0.5);
  /* 50% black mixed with transparent */
  background: color-mix(in srgb, black 50%, transparent);
  z-index: 9999;
  font-family: system-ui, Arial, sans-serif;
}
#alternativesModal.open {
  display: flex;
}

/* —— inner card —— */
#alternativesModal .box {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;

  /* at all sizes: fill viewport minus 20px margin each side */
  width: calc(100% - 40px);
  height: calc(100% - 40px);

  /* but never exceed desktop dimensions */
  max-width: 590px;
  max-height: 700px;

  background: none;
  color: #fff;
  padding: 56px 28px 30px 28px;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
  text-align: center;
  overflow: hidden;

  /* ensure we never shrink below something usable */
  min-height: 500px;
}

/* background image & fade overlay */
#alternativesModal .box img.background {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: auto;
  z-index: 0;
  border-radius: 12px;
}
#alternativesModal .box .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.5) 35%,
    rgba(0,0,0,0.8) 70%,
    rgba(0,0,0,1) 100%
  );
  pointer-events: none;
  z-index: 1;
  border-radius: 12px;
}

/* bring your content above the fade */
#alternativesModal .box > * {
  position: relative;
  z-index: 3;
}

/* pill-style close control */
#alternativesModal .close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 20px;
  line-height: 1;
  color: #222;
  border: 1px solid color-mix(in srgb, #000 10%, transparent);
  border-radius: 2px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  cursor: pointer;
  z-index: 4;  /* above overlay */
}

/* headline copy */
#alternativesModal p {
  margin: 0 0 20px;
  font-size: var(--h2, 2.875rem);
    font-size: 40px;
    line-height: 1.2;
    font-family: var(--font-2, "Clash Grotesk", "Arial", sans-serif);
    font-weight: var(--font-weight-bold, 700);
    text-transform: uppercase;
}
@media(max-width:640px) {
  #alternativesModal p {
    font-size: 30px;
  }
}

/* buttons */
#alternativesModal .box a.alternatives-alt,
#alternativesModal .box a.alternatives-yes {
  display: block;
  width: 80%;
  margin: 18px auto 20px;
  padding: 20px 22px;
  font: 700 20px system-ui, Arial, sans-serif;
  text-decoration: none;
  transition: background .25s ease, opacity .25s ease;
  max-width: 400px;
}
@media(max-width:640px) {
  #alternativesModal .box a {
    padding: 6px 22px;
    font-size: 16px;
  }
}

/* primary CTA */
#alternativesModal .alternatives-alt {
  background: #FF5A00;
  color: #fff;
  border: none;
}
@media(hover:hover) {
  #alternativesModal .alternatives-alt:hover {
    opacity: .9;
  }
}
#alternativesModal .alternatives-alt:hover {
  background: #fff;
  color: #FF5A00;
}

@media(hover:hover) {
  #alternativesModal .alternatives-yes:hover {
    background: #fff;
    color: #0A1C2D;
  }
}

/* promo-code block */
#alternativesModal .popup-promo-code {
  text-align: center;
  margin-top: -15px;
  margin-bottom: 5px;
}
#alternativesModal .popup-promo-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 1em auto;
}
#alternativesModal .popup-promo-label {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}
#alternativesModal .text-container {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 2px dashed #fff;
  border-radius: 4px;
  box-sizing: border-box;
  cursor: pointer;
}
#alternativesModal .promo-code {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-right: 4px;
}
#alternativesModal .popup-promo-wrapper svg {
  width: 24px;
  height: 16px;
  fill: #fff;
}
@media(max-width:640px) {
  #alternativesModal .popup-promo-label,
  #alternativesModal .promo-code {
    font-size: 16px;
  }
  #alternativesModal .popup-promo-code {
    margin-top: -8px;
    margin-bottom: 18px;
  }
}

/* No-promo adjustments */
#alternativesModal .box.no-promo {
  padding: 20px 28px 64px !important;
}
#alternativesModal .box.no-promo p.popup-text {
  margin: 0 0 40px !important;
}
#alternativesModal .box.no-promo a {
  margin: 20px auto !important;
}

/* desktop width cap still applies */
@media(min-width:640px){
  #alternativesModal .box{width:auto}
}

.alternatives-alt {
    cursor: pointer !important;
    border-radius: 2px !important;
    background-color: #f90303 !important;
    font-family: var(--font-1, "Clash Grotesk", "Arial", sans-serif) !important;
    font-size: 26px;
    font-weight: var(--font-weight-bold, 700) !important;
    text-transform: uppercase !important;
    text-align: center !important;
    color: #fff !important;
    padding: calc(.6em + 2px) calc(1.25em) !important;
}


.alternatives-yes {
    cursor: pointer !important;
    border-radius: 2px !important;
    background-color: #009EFF !important;
    font-family: var(--font-1, "Clash Grotesk", "Arial", sans-serif) !important;
    font-size: 26px;
    font-weight: var(--font-weight-bold, 700) !important;
    text-transform: uppercase !important;
    text-align: center !important;
    color: #fff !important;
    padding: calc(.6em + 2px) calc(1.25em) !important;
}

.alternatives-alt:hover {
    background-color: #FFFFFF !important;
    color: #f90303 !important;
    transition: background-color 0.3s, border-color 0.3s !important;
}

.alternatives-yes:hover {
    background-color: #FFFFFF !important;
    color: #009EFF !important;
    transition: background-color 0.3s, border-color 0.3s !important;
}

#alternativesModal .popup-message p,
#alternativesModal .popup-message p strong {
  /* two gentle layers, just a hair stronger */
  text-shadow:
    /* base lift */
    0 1px 1px rgba(0, 0, 0, 0.42),
    /* secondary depth */
    0 2px 4px rgba(0, 0, 0, 0.32);
  /* a bit more stroke, still subtle */
  -webkit-text-stroke: 0.48px rgba(0, 0, 0, 0.48);
}


/* center the group and cap its width */
#alternativesModal .modal-button-group {
  width: 80%;
  max-width: 400px;
  margin: 0 auto;           /* center it */
  display: flex;
  flex-direction: column;
  gap: 12px;                /* optional spacing between items */
}

/* make every immediate child fill 100% of that wrapper */
#alternativesModal .modal-button-group > * {
  width: 100%;
  box-sizing: border-box;   /* include padding/border in that 100% */
}

/* if you need extra specificity or to override inline styles */
#alternativesModal .modal-button-group,
#alternativesModal .modal-button-group > * {
  width: 80% !important;
  max-width: 400px !important;
}

#alternativesModal .modal-button-group > * {
  width: 100% !important;
}


@media (max-width: 959px) {
  /* Scoped only to the popup */
  #alternativesModal .au_subfield.au_col_bonus_code {
    /* undo any max-width */
    max-width: none !important;
    /* fill the modal-button-group wrapper */
    width: 100% !important;
    /* keep the same vertical spacing */
    margin: 8px auto !important;
  }
}

.popup-text {
    font-family: var(--font-2, "Clash Grotesk", "Arial", sans-serif);
    font-weight: var(--font-weight-bold, 700);
    text-transform: uppercase;
}

@media (max-width: 959px) {	
	#alternativesModal .modal-button-group {
  		width: 100%;
	}
}


@media (max-width: 500px) {
	.alternatives-alt, 	.alternatives-yes {
	    	padding: calc(.4em) calc(1.25em) !important;
	}
}