*,
*::before,
*::after{
    box-sizing:border-box;
}

.top-icon {
    width: 63px;
    margin-bottom: 5px;
}
.section_col_left, .section_col_right {
    flex: 1;
    width: 50%;
}
.section_col_left, .section_col_right {
    flex: 1;
    width: 50%;
}
.section_row {
    display: flex;
    column-gap: 16px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.white-box.white-box-one {
    padding: 20px 15px;
    overflow: visible;
}
.checkout-stack {
    overflow: visible;
}
.white-box {
       padding: 20px;
}
.discount-wrapper {
      margin-top: 12px;
    padding-top: 16px;
}
.pkg-opt {
    display: flex;
    column-gap: 10px;
    flex-direction: row; /* visual order matches HTML: 2 → 3 → 1 */
    align-items: stretch; /* equal card height */
    justify-content: space-between;
    margin-top: 13px;
}
.option.cb-package-container {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0; /* equal width — no shrink of last card */
    width: 100%;
    max-width: none;
    border-radius: 5px;
    padding: 18px 0 0;
    overflow: visible; /* badges sit on top frame, half outside */
    box-sizing: border-box;
    position: relative;
    margin-top: 14px; /* space so badge half above border is not clipped */
}
.option {
    flex-direction: column;
    flex: 1 1 0;
    border-radius: 5px;
    padding-top: 20px;
    padding-bottom: 0;
    min-width: 0;
}
.pkg-card-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 auto;
    width: 100%;
    padding: 0 6px 8px;
}
.pkg-card-main .feet-relief-img {
    margin: 0 0 8px 0;
    width: 100%;
    max-width: 140px;
    height: auto;
    object-fit: contain;
}
.pkg-card-main .details {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

.info .title {
    font-weight: 400;
    text-align: center;
    display: block;
    letter-spacing: .01rem;
}
 .price-area {
    text-align: center;
    margin-bottom: 4px;
    align-items: center;
    width: 100%;
}
/* Title: only 2x/3x/1x bold; rest regular #333 Montserrat 16px */
.checkout-stack .info .title p {
    text-align: center;
    margin: 8px 0 4px;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    line-height: 20px;
    color: #333333;
    font-weight: 400 !important;
}
.checkout-stack .info .title p .pkg-qty {
    font-weight: 700 !important;
    color: #333333;
    font-size: 16px;
    padding-right: 4px;
}
.checkout-stack .info .title p .pkg-sachets {
    font-weight: 400;
    color: #333333;
}
.checkout-stack .info .title p b {
    font-weight: 700 !important;
    font-size: 16px;
    line-height: 20px;
    color: #333333;
}
/* Show red % OFF badge on packages (was hide-all in custom2) */
.checkout-stack .discount-percentage{
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}
.checkout-stack .discount-badge-label {
    display: inline-block;
    background-color: #EC0B43;
    color: #fff !important;
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}
.checkout-stack .price-area .price.cb-buy-each {
    color: #28a745;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}
.checkout-stack .per-pack-label {
    color: #818997;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 4px;
    min-height: 15px;
}
.checkout-stack .per-pack-label.per-pack-spacer {
    visibility: hidden;
    color: transparent;
}
/* Total bar — reference: #F5F5F5, ~28px, padding 6px 4px */
.checkout-stack .package-total-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    margin-top: auto;
    background-color: #F5F5F5;
    padding: 6px 4px;
    min-height: 28px;
    box-sizing: border-box;
}
.checkout-stack .package-total-bar .total-price-text,
.checkout-stack .package-total-bar .package-total-price,
.checkout-stack .package-total-bar .cb-buy {
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    color: #8E8E8E;
}
.checkout-stack .package-total-bar .total-price-text {
    padding-right: 4px;
}
.checkout-stack .package-total-bar .cb-reg-price,
.checkout-stack .package-total-bar .package-reg-price {
    color: #EC0B43 !important;
    text-decoration: line-through;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    margin-left: 4px;
    padding: 0;
}
.discount-text2,
.discount-subtext .red {
    color: #EC0B43;
   }
.info .title p b {
    font-size: 16px;
    line-height: 20px;
    color: #333333;
}
.feet-relief-img {
    width: 120px;
    height: auto;
    margin: 0 16px 11px 0;
}
.discount-text2 {
    color: #EC0B43;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    margin: 0 0 5px 0;
    border: none;
    text-decoration: none;
    width: auto;
    max-width: 100%;
    font-family: Montserrat, sans-serif;
}

.discount-contentbox {
    padding-left: 15px;
}
.feature-heading, .feature-subtext {
    color: #121212;
}
.price-area .price {
    font-size: 24px;
    font-weight: bold;
    line-height: 30px;
    color: #4ECE7E;
    margin: 0;
}
   .discount-subtext .green {
    color: #4ECE7E;
}
.discount-subtext .promo-retail-price,
span.promo-retail-price {
    color: #4A4A4A;
    text-decoration: line-through;
    text-decoration-thickness: 1.3px;
}
.discount-subtext .promo-sale-price,
.discount-subtext .cb-product-price-bundle,
.discount-subtext .green {
    text-decoration: none !important;
    color: #4ECE7E;
}
.stock-low-icon {
    max-width: 26px;
    margin-left: 0;
    margin-right: 9px;
    width: 26px;
    height: 26px;
}
/* payment btn */
.expressCheckout {
    display: flex;
    gap: 15px;
}

.paymentBtn {
    flex: 1;
    height: 52px;
    border: none;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity .3s;
}

.paymentBtn img {
    max-height: 26px;
    width: auto;
}

.paypalBtn {
    background: #FFC43A;
    gap: 8px;
    animation: none !important;
}
.paypalBtn .paypal-pay-with {
    color: #253B80;
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.paypalBtn.pulse,
#paypal_method.pulse,
button.paypalBtn {
    animation: none !important;
}

.appleBtn {
    background: #121212;
}
button.paypalBtn:hover {
  background: #ffb60a;
}
button.appleBtn:hover {
  background: #121212;
}
/* If PayPal is the only button, it fills the row */
.paypalBtn:only-child {
    flex: 0 0 100%;
}
/* payment btn end */
.details {
    flex-grow: 1;
    justify-content: end;
    align-items: center;
    padding-right: 0;
    flex-direction: column;
}
.stock-inner {
    align-items: center;
    margin-bottom: 15px;
}
.stock-box .stock-inner p,
.stock-box .stock-title {
    font-weight: 700 !important;
    font-size: 18px;
    line-height: 26px;
    color: #28B2D8;
}
.stock-box .stock-title strong,
.stock-box .stock-inner p strong {
    font-weight: 700 !important;
    color: #28B2D8;
}
.discount-text2 {
       align-items: center;
    margin-bottom: 6px;
}
/* Body: regular; only .stock-emphasis is bold (must override .stock-box p { 700 } in style.css) */
.stock-box p.stock-copy {
    font-weight: 400 !important;
    font-size: 16px;
    line-height: 20px;
    color: #121212;
}
.stock-box p.stock-copy .stock-emphasis,
.stock-box p.stock-copy strong.stock-emphasis {
    font-weight: 700 !important;
    color: #121212;
}
.discount-percentage {
    color: #bf4800;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 5px;
}
.discount-subtext {
      line-height: 22px;
  font-size: 16px;
  color: #4A4A4A;
  font-weight: 700;
  font-family: Montserrat, sans-serif;
  margin: 0;
}
.pkg-txt1 {
    color: #fff;
    background-color: #007FFD;
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    padding: 4px 10px;
    border-radius: 5px;
    max-width: 123px;
    margin: 0 auto;
    font-family: "Montserrat", sans-serif;
    text-transform: uppercase;
}
.pkg-txt1.pkg-badge-popular {
    background-color: #1B7F5A;
}
.pkg-txt1.pkg-badge-value {
    background-color: #007FFD;
}
.pkg-txt1.pkg-badge-spacer {
    background-color: transparent !important;
    color: transparent !important;
    visibility: hidden;
}
/* Badge centered on top border (half above / half below frame) */
.checkout-stack .pkg-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 3;
    transform: translateY(-50%);
    min-height: 0;
    margin: 0;
    pointer-events: none;
}
.checkout-stack .pkg-top .pkg-txt1 {
    pointer-events: auto;
}
.checkout-stack .pkg-opt {
    overflow: visible;
    padding-top: 4px;
}
 .original-price2 {
    color: #EC0B43;
    font-size: 12px;
    line-height: 16px;
    text-decoration: line-through;
    padding: 0;
}
  .stock-box {
    justify-content: start;
    border: 1px dashed #28b2d8;
    margin-top: 2px;
    padding: 20px;
}
.option.cb-package-container.selected {
    border: 2px solid #28a745;
    padding-top: 18px;
    padding-bottom: 0;

}
label#product2,
label#product3,
label#product1 {
    padding-top: 18px;
    padding-bottom: 0;
}
.payment-heading {
    color: #121212;
  }
  .heading-4, .pr-name, .pr-price, .total-price {
    font-size: 16px;
    line-height: 20px;
    color: #121212;
}
.list-blue li {
      color: #121212;
         margin-bottom: 0;

}
 @media (min-width: 1200px) {
     .custom_container {
         max-width: 1200px;
    }
    .ftr-logo {
    width: 188px;
}
}
@media (max-width: 1199px){
.discount-text2 p {
    font-size: 12px;
    line-height: 23px;
    margin-bottom: 0;
    width: calc(100% - 32px);
    margin-left: 5px;
}
.discount-text2 span {
    width: 16px;
}
.discount-subtext {
    line-height: 22px;
    font-size: 12px;
}
}

@media (max-width: 991px){
    .section_row {
    gap: 1px;
    flex-direction: column;
}
.checkou-hero-pdp {
    max-width: 100%;
  
}
.white-box.white-box-right {
    padding: 15px;
}
.option {
    margin-bottom: 11px;
   
}

.alternet-payment {
       margin-bottom: 0;
}
.discount-subtext {
    line-height: 22px;
    font-size: 16px;
    color: #4A4A4A;
    font-weight: 700;
    padding-left: 0;
    margin: 0;
    font-family: Montserrat, sans-serif;
}
form {
    padding: 3px 0 !important;
}
.sm-heading {
    font-size: 14px;
    line-height: 20px;
}
.section_col_left, .section_col_right {
    width: 100%;
}
.check-icon {
    width: 16px;
    height: 16px;
}
.discount-subtext .red,
span.red {
    display: inline;
    font-size: inherit;
    color: #EC0B43;
    font-weight: 700;
}
.pkg-txt1 {
      padding: 4px 8px;
  max-width: 122px;
   }
   .feet-relief-img {
    width: 192px;

}
.white-box {
    padding: 16px 16px;
}
.pkg-opt {
    gap: 4px;
    flex-direction: column; /* 2 → 3 → 1 top to bottom on mobile */
 
}
/* Keep package cards vertical/equal; do not flatten to row on tablet */
.checkout-stack .option.cb-package-container {
    flex-direction: column !important;
    width: 100%;
    max-width: 100%;
}
.checkout-stack .pkg-card-main {
    flex-direction: row;
    align-items: center; /* image + details vertically centered as a pair */
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 12px 12px;
    width: 100%;
    box-sizing: border-box;
}
.checkout-stack .pkg-card-main .feet-relief-img {
    max-width: 118px;
    width: 38%;
    margin: 0;
    flex-shrink: 0;
    align-self: center;
}
.checkout-stack .pkg-card-main .details {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* NO left edge — center the whole content stack */
    align-self: center;
    text-align: center;
    min-height: 0;
    height: auto;
    padding: 0;
    gap: 2px;
}
.checkout-stack .info {
    width: 100%;
    display: flex;
    justify-content: center;
}
.checkout-stack .info .title {
    text-align: center;
    width: 100%;
}
/* 2 lines: "3x boxes of" / "Coffee Boost (60 sachets)" then badge + price */
.checkout-stack .info .title p {
    margin: 0 0 4px;
    font-size: 15px !important;
    line-height: 1.3 !important;
    font-weight: 400 !important;
    color: #333 !important;
    text-align: center !important;
}
.checkout-stack .info .title p .pkg-qty {
    font-weight: 700 !important;
    font-size: inherit;
    padding-right: 3px;
}
.checkout-stack .info .title p .pkg-name-line {
    font-weight: 400;
    display: inline-block;
    white-space: nowrap; /* keep "Coffee Boost (60 sachets)" on one line */
}
.checkout-stack .price-area {
    display: flex;
    flex-direction: column;
    align-items: center; /* center % OFF, price, / per pack */
    justify-content: center;
    text-align: center;
    margin: 0;
    gap: 0;
    width: 100%;
}
.checkout-stack .discount-percentage {
    justify-content: center !important;
    margin: 0 0 3px !important;
    width: 100%;
}
.checkout-stack .discount-badge-label {
    font-size: 12px !important;
    line-height: 16px !important;
    padding: 3px 8px !important;
}
.checkout-stack .price-area .price.cb-buy-each {
    font-size: 26px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    color: #28a745 !important;
    margin: 0 !important;
    text-align: center !important;
    width: 100%;
}
.checkout-stack .per-pack-label {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    color: #818997 !important;
    text-align: center !important;
    width: 100%;
}
.checkout-stack .package-total-bar {
    margin-top: 0;
}

 .stock-box p {
     font-size: 14px;
}
.stock-box {
  
    padding: 10px 12px;
}
.stock-low-icon {
    margin-left: 0;
  
}
.price-area .price {
    margin: 0;
}
.discount-text2 {
    text-decoration: none;
    max-width: 100%;
    width: auto;
    border: none;
    line-height: 1.35;
    font-size: 16px;
    font-weight: 700;
    color: #EC0B43;
    margin: 0 0 6px 0;
}
.discount-text2 {
    margin-bottom: 6px;
    align-items: flex-start;
}
.discount-iconbox {
    width: 88px;
    min-width: 88px;
    height: 88px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.discount-iconbox .add-percentage-icon {
    width: 100%;
    height: auto;
    display: block;
}
.discount-iconbox .discount-percentage {
    position: absolute;
    inset: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: #fff;
    line-height: 1;
    text-align: center;
    pointer-events: none;
    z-index: 1;
}
.discount-iconbox .discount-pct-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    line-height: 1;
}
.discount-iconbox .total-discount,
.discount-iconbox .percentage,
.discount-iconbox .off {
    position: static !important;
    top: auto !important;
    left: auto !important;
    color: #fff;
    font-family: Inter, "Bebas Neue", sans-serif;
    font-weight: 700;
    line-height: 1;
}
.discount-iconbox .total-discount {
    font-size: 28px;
    font-weight: 800;
}
.discount-iconbox .percentage {
    font-size: 14px;
    margin-top: 3px;
    margin-left: 1px;
}
.discount-iconbox .off {
    font-size: 11px;
    letter-spacing: 0.04em;
    margin-top: 1px;
}
.discount-contentbox {
    width: calc(100% - 88px);
    padding-left: 12px;
    flex: 1;
}
.total-discount {
      top: 33px;
    left: 24px;
  
}
.percentage {
    top: 35px;
    left: 60px;
   
}
.off {
    top: 54px;
    left: 59px;
  
}
.discount-percentage {
    font-size: 15px;
   }
.top-icon {
    width: 56px;
}
.top-imgbox .top-img:nth-child(1) {
  order: 3;
}

.top-imgbox .top-img:nth-child(2) {
  order: 4;
}

.top-imgbox .top-img:nth-child(3) {
  order: 1;
}

.top-imgbox .top-img:nth-child(4) {
  order: 2;
}
.feet-relief-img {
       margin: 0 3px 3px 0;
}
.original-price2 {
    line-height: 20px;
    padding: 0;
}
.stock-inner {
    margin-bottom: 8px;
}
.white-box {
     margin-bottom: 12px;
}
}
@media(max-width: 767px){
    .feet-relief-img {
    width: 162px;
}
.ftr-link a {
      padding: 2px 3px;
   }
.pkg-top {
    top: 0;
    transform: translateY(-50%);
}
.white-box.white-box-one {
    padding: 15px;
}
.section-checkout {
     padding-top: 15px !important;
}
.original-price2 {
    font-size: 16px;
    line-height: 24px;
   
}

}
@media(max-width: 424px){
    .info .title p, .price-area {
    font-size: 15px;
   
}
.stock-box p {
    font-size: 14px;
    line-height: 20px;
}
.stock-box .stock-inner p {
    font-size: 14px;
    line-height: 20px;
}
}
@media (max-width: 398px){
   .discount-text2 p {
    font-size: 14px;
    line-height: 22px;
}
.sm-heading {
    font-size: 12px;
   
}
}
@media (max-width: 374px){
    .info .title p, .price-area, .discount-percentage {
       font-size: 13px;
   
}

.discount-subtext {
    font-size: 11px;
}
}

.off {
        font-family: var(--font-common);
        font-size: 10px;
    }
    .percentage {
        font-family: var(--font-common);
        font-size: 16px;
    }
     .total-discount {
        font-weight: 500;
    }
    @media(min-width:768px) {
        .off {
            font-family: var(--font-common);
            font-size: 8px;
        }
    }
@media(max-width:767px) {
    .customMerPad {
        padding-left: 0px !important;
        margin-left: 0px !important;
    }
    .total-discount {
        font-weight: 500;
    }
}

/* Scarcity top banner — match reference (Wellaray) */
.banner-coffee-booster {
    background-color: #D6293A;
    padding: 11px 0;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.coffee-banner-text {
    color: #FFFFFF;
    font-family: Inter, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
    margin: 0;
    padding: 0 12px;
}
.coffee-banner-text strong {
    font-weight: 700;
}
@media (max-width: 575.98px) {
    .coffee-banner-text {
        font-size: 14px;
        line-height: 1.35;
    }
}

/* Promo block: circular badge, no underline, no checkbox (match competitor) */
.discount-wrapper {
    align-items: center;
}
.discount-iconbox {
    width: 90px;
    min-width: 90px;
    height: 90px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
}
.discount-iconbox .add-percentage-icon {
    width: 100%;
    height: auto;
    display: block;
}
.discount-iconbox .discount-percentage {
    position: absolute !important;
    inset: 0;
    margin: 0 !important;
    padding: 0;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    line-height: 1;
    text-align: center;
    pointer-events: none;
    z-index: 1;
}
.discount-iconbox .discount-pct-row {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
}
.discount-iconbox .total-discount,
.discount-iconbox .percentage,
.discount-iconbox .off {
    position: static !important;
    top: auto !important;
    left: auto !important;
    color: #fff !important;
    font-family: "Montserrat", sans-serif !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}
/* Match ref: #discountBadge 24px Montserrat; .discount-text-bottom 20px Montserrat */
.discount-iconbox .total-discount {
    font-size: 24px !important;
    font-weight: 900 !important;
}
.discount-iconbox .percentage {
    font-size: 24px !important;
    font-weight: 900 !important;
    margin-top: 0;
    margin-left: 0;
}
.discount-iconbox .off {
    font-size: 20px !important;
    font-weight: 900 !important;
    letter-spacing: 0;
    margin-top: 0;
    display: block;
}
.discount-contentbox {
    width: calc(100% - 90px);
    max-width: none;
    padding-left: 14px;
    flex: 1;
}
.discount-text2 {
    color: #EC0B43 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 24px !important;
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    border: none !important;
    border-bottom: none !important;
    text-decoration: none !important;
    font-family: Montserrat, sans-serif !important;
}
.discount-text2 span {
    width: auto !important;
    padding: 0;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
}
.discount-subtext {
    color: #4A4A4A !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 22px !important;
    margin: 0 !important;
    font-family: Montserrat, sans-serif !important;
}
.discount-subtext .red {
    color: #EC0B43 !important;
    font-weight: 700 !important;
    display: inline !important;
    font-size: inherit !important;
    line-height: inherit !important;
}
.discount-subtext .promo-retail-price {
    margin-right: 0.15em;
    color: #4A4A4A !important;
}
/* Desktop: normal wrap for sentence; only "(70% Discount)" drops alone */
@media (min-width: 992px) {
    .discount-subtext {
        white-space: normal !important;
        overflow: visible !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }
    .discount-subtext .promo-discount-suffix {
        display: block;
        white-space: nowrap;
    }
}
@media (max-width: 991px) {
    .discount-subtext .promo-discount-suffix {
        display: inline;
    }
}
.discount-contentbox {
    min-width: 0;
    overflow: visible;
}
.discount-wrapper .check-icon {
    display: none !important;
}
/* PayPal: no pulse */
#paypal_method.pulse,
.paypalBtn.pulse,
button.paypalBtn {
    animation: none !important;
}

@media (max-width: 991px) {
    .discount-iconbox {
        width: 80px;
        min-width: 80px;
        height: 80px;
    }
    .discount-contentbox {
        width: calc(100% - 80px);
        padding-left: 10px;
    }
    .discount-iconbox .total-discount,
    .discount-iconbox .percentage {
        font-size: 22px !important;
    }
    .discount-iconbox .off {
        font-size: 16px !important;
    }
    .discount-text2 {
        font-size: 16px !important;
        line-height: 24px !important;
    }
    .discount-subtext {
        font-size: 16px !important;
        line-height: 22px !important;
    }

    /* Mobile package rows: content stack centered (not edge-aligned) next to image */
    .checkout-stack .option.cb-package-container {
        padding-bottom: 0 !important;
    }
    .checkout-stack .pkg-card-main {
        align-items: center !important;
    }
    .checkout-stack .pkg-card-main .details {
        justify-content: center !important;
        align-items: center !important;
        align-self: center !important;
        text-align: center !important;
        height: auto !important;
        min-height: 0 !important;
        flex-grow: 0 !important;
    }
    .checkout-stack .info .title p,
    .checkout-stack .price-area,
    .checkout-stack .price-area .price.cb-buy-each,
    .checkout-stack .per-pack-label {
        text-align: center !important;
    }
    .checkout-stack .price-area {
        align-items: center !important;
    }
    .checkout-stack .discount-percentage {
        justify-content: center !important;
    }
}

/* iPhone 12 / 390: force package title = exactly 2 lines (like iPhone 14) */
@media (max-width: 430px) {
    .checkout-stack .pkg-card-main {
        gap: 8px !important;
        padding: 12px 8px 10px !important;
    }
    .checkout-stack .pkg-card-main .feet-relief-img {
        max-width: 96px !important;
        width: 32% !important;
    }
    .checkout-stack .info .title p {
        font-size: 13px !important;
        line-height: 1.25 !important;
    }
    .checkout-stack .info .title p .pkg-name-line {
        display: block !important;
        white-space: nowrap !important;
        font-size: 13px !important;
        line-height: 1.25 !important;
    }
    .checkout-stack .price-area .price.cb-buy-each {
        font-size: 24px !important;
    }
}

@media (max-width: 389px) {
    .checkout-stack .pkg-card-main .feet-relief-img {
        max-width: 88px !important;
        width: 30% !important;
    }
    .checkout-stack .info .title p,
    .checkout-stack .info .title p .pkg-name-line {
        font-size: 12px !important;
    }
}

@media (max-width: 575.98px) {
    .discount-iconbox {
        width: 74px;
        min-width: 74px;
        height: 74px;
    }
    .discount-contentbox {
        width: calc(100% - 74px);
        padding-left: 8px;
    }
    .discount-iconbox .total-discount,
    .discount-iconbox .percentage {
        font-size: 20px !important;
    }
    .discount-iconbox .off {
        font-size: 14px !important;
    }
    .discount-text2 {
        font-size: 16px !important;
        line-height: 22px !important;
    }
    .discount-subtext {
        font-size: 16px !important;
        line-height: 22px !important;
    }
}

/* iPhone 12 / narrow phones (~390): keep promo like iPhone 14 (one-line header, tidy wraps) */
@media (max-width: 430px) {
    .discount-wrapper {
        align-items: center !important;
        gap: 0;
    }
    .discount-iconbox {
        width: 64px !important;
        min-width: 64px !important;
        height: 64px !important;
        flex-shrink: 0;
    }
    .discount-contentbox {
        width: calc(100% - 64px) !important;
        max-width: none !important;
        padding-left: 10px !important;
        flex: 1 1 auto !important;
        min-width: 0; /* allow text to use remaining width without overflow glitches */
    }
    .discount-iconbox .total-discount,
    .discount-iconbox .percentage {
        font-size: 17px !important;
    }
    .discount-iconbox .off {
        font-size: 12px !important;
    }
    /* "Your 70% APPLIED SUCCESSFULLY" on one line like iPhone 14 */
    .discount-text2 {
        font-size: 13px !important;
        line-height: 18px !important;
        white-space: nowrap !important;
        overflow: visible !important;
        margin: 0 0 4px 0 !important;
        letter-spacing: -0.01em;
    }
    .discount-subtext {
        font-size: 13px !important;
        line-height: 18px !important;
        font-weight: 700 !important;
        color: #4A4A4A !important;
        text-align: left !important;
        word-break: normal;
        overflow-wrap: break-word;
    }
    .discount-subtext .red.nowrap-label,
    .discount-subtext .red {
        white-space: nowrap;
    }
    .discount-subtext .promo-retail-price,
    .discount-subtext .promo-sale-price {
        white-space: nowrap;
    }
}

@media (max-width: 389px) {
    .discount-text2 {
        font-size: 12px !important;
        letter-spacing: -0.02em;
    }
    .discount-subtext {
        font-size: 12px !important;
        line-height: 17px !important;
    }
    .discount-iconbox {
        width: 58px !important;
        min-width: 58px !important;
        height: 58px !important;
    }
    .discount-contentbox {
        width: calc(100% - 58px) !important;
        padding-left: 8px !important;
    }
}

/*
 * Validation ticks:
 * Text fields use .no-error-parent::after. style.css/app2.css also paint a tick
 * as select.no-error background, so Country showed two checks (and the extra
 * one sat on the dropdown, not aligned with Address/City).
 * Zip sits in .form-group-flex — keep overflow visible so the same ::after
 * tick is not clipped.
 */
#payment-form .form-group.no-error-parent,
#payment-form .form-group:has(> select.no-error:not([name="creditCardType"]):not([name="expmonth"]):not([name="expyear"])),
#payment-form .form-group-flex,
#payment-form .form-group-flex .form-group {
    position: relative;
    overflow: visible;
}

#payment-form .form-group.no-error-parent > input.no-error,
#payment-form .form-group.no-error-parent > .form-control.no-error,
#payment-form .form-group.no-error-parent > .input-flds.no-error,
#payment-form .form-group.no-error-parent > select.no-error,
#payment-form .form-group.no-error-parent > .form-select.no-error,
#payment-form select.no-error {
    background-image: none !important;
    background-color: #fff !important;
}

#payment-form .form-group.no-error-parent::after,
#payment-form .form-group:has(> select.no-error:not([name="creditCardType"]):not([name="expmonth"]):not([name="expyear"]))::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 55% !important;
    right: 10px !important;
    width: 25px !important;
    height: 20px !important;
    background: url(../../images/tick-input.png) no-repeat center !important;
    background-size: contain !important;
    pointer-events: none !important;
    z-index: 3;
}

#payment-form .form-group-flex .form-group.no-error-parent::after {
    right: 10px !important;
    z-index: 3;
}

#payment-form .countrycode-content-container.no-error-parent::after {
    top: 30% !important;
}

#payment-form .credit-card .no-error-parent::after {
    top: 40% !important;
    right: 25px !important;
}
