.cart {
  position: relative;
  display: block;
}

.cart__empty-text,
.is-empty .cart__contents,
cart-items.is-empty .title-wrapper-with-link,
.is-empty .cart__footer {
  display: none;
}

.is-empty .cart__empty-text,
.is-empty .cart__warnings {
  display: block;
}

.cart__warnings {
  display: none;
  text-align: center;
  padding: 3rem 0 1rem;
}

.cart__empty-text {
  margin: 4.5rem 0 2rem;
}

.cart__contents > * + * {
  margin-top: 2.5rem;
}

.cart__login-title {
  margin: 5.5rem 0 0.5rem;
}

.cart__login-paragraph {
  margin-top: 0.8rem;
}

.cart__login-paragraph a {
  font-size: inherit;
}

@media screen and (min-width: 990px) {
  .cart__warnings {
    padding: 7rem 0 1rem;
  }

  .cart__empty-text {
    margin: 0 0 3rem;
  }
}

cart-items {
  display: block;
}

.cart__items {
  position: relative;
  padding-bottom: 3rem;

}

.cart__items--disabled {
  pointer-events: none;
}

.cart__footer {
  padding: 4rem 0 0;
}

.cart__footer-wrapper:last-child .cart__footer {
  padding-bottom: 5rem;
}

.cart__footer > div:only-child {
  margin-left: auto;
}

.cart__footer > * + * {
  margin-top: 4rem;
}

.cart__footer .discounts {
  margin-top: 1rem;
}

.cart__note {
  height: fit-content;
}

.cart__note label {
  display: flex;
  align-items: flex-end;
  position: absolute;
  line-height: 1;
  height: 1.8rem;
  top: -3rem;
  color: rgba(var(--color-foreground), 0.75);
}

.cart__note .field__input {
  height: 100%;
  position: relative;
  border-radius: var(--inputs-radius);
  padding: 1rem 2rem;
}

.cart__note .text-area {
  resize: vertical;
}

.cart__note:after, .cart__note:hover.cart__note:after,
.cart__note:before, .cart__note:hover.cart__note:before,
.cart__note .field__input:focus,
.cart__note .field__input {
  border-bottom-right-radius: 0;
}

@media screen and (min-width: 750px) {
  .cart__items {
    grid-column-start: 1;
    grid-column-end: 3;
    padding-bottom: 4rem;
  }

  .cart__contents > * + * {
    margin-top: 0;
  }

  .cart__items + .cart__footer {
    grid-column: 2;
  }

  .cart__footer {
    display: flex;
    justify-content: space-between;
    border: 0;
  }

  .cart__footer-wrapper:last-child {
    padding-top: 0;
  }

  .cart__footer > * {
    width: 38rem;
  }

  .cart__footer > * + * {
    margin-left: 4rem;
    margin-top: 0;
  }
}

.cart__ctas button {
  width: 100%;
}

.cart__ctas > *:not(noscript:first-child) + * {
  margin-top: 1rem;
}

.cart__update-button {
  margin-bottom: 1rem;
}



.cart__blocks > * + * {
  margin-top: 1rem;
}



.cart-note__label {
  display: inline-block;
  margin-bottom: 1rem;
  line-height: calc(1 + 1 / var(--font-body-scale));
}

.tax-note {
  margin: 2.2rem 0 1.6rem auto;
  text-align: center;
  display: block;
}



.cart__ctas {
  text-align: center;
}

@media screen and (min-width: 750px) {
  .cart-note {
    max-width: 35rem;
  }

  .cart__update-button {
    margin-bottom: 0;
    margin-right: 0.8rem;
  }

  .tax-note {
    margin-bottom: 2.2rem;
    text-align: right;
  }

  [data-shopify-buttoncontainer] {
    justify-content: flex-end;
  }

  .cart__ctas {
    display: flex;
    gap: 1rem;
  }
}




/* ===================== BRAND BUTTON BASE ===================== */
.cart__checkout-button-top,
.cart__checkout-button {
  background-color: #87C6BD;
  font-size: 18px;
}
.cart__checkout-button-top::after,
.cart__checkout-button::after {
  box-shadow: none !important;
}

/* Never float any checkout buttons */
#checkout, #checkout-top,
.cart__checkout-button, .cart__checkout-button-top { float: none !important; }

/* Ensure the cart table doesn’t creep up under the summary */
.cart-items { margin-top: 0; }

/* ===================== CART SUMMARY (TOP) ===================== */
.cart-summary {
  margin: 0 0 16px;
}
.cart-summary__grid {
  display: grid;
  grid-template-columns: 1fr;        /* mobile: stacked */
  row-gap: 12px;
  align-items: center;                /* desktop: vertically center title vs. panel */
  box-sizing: border-box;
}
@media (min-width: 750px){
  .cart-summary__grid {
    grid-template-columns: 1fr 38rem;/* desktop: title left, panel right */
    column-gap: 2rem;
    padding-left: 0;                  /* table already aligned in container */
    padding-right: 0;
  }
}

/* ===== LEFT BOX: Title ===== */
.cart-summary__titleBox {
  /* mobile: no border (keeps current look) */
}
@media (min-width: 750px){
  .cart-summary__titleBox {
    border-radius: 8px;
    align-self: center;               /* ensure vertical centering */
  }
}

.cart-summary__title {
  margin: 0;
  line-height: 1.2;
  text-align: left;
  font-size: clamp(20px, 3vw, 30px);  /* a bit larger on desktop */
}

/* ===== RIGHT BOX: Totals + button ===== */
.cart-summary__panel {
  /* mobile: simple stack */
}
@media (min-width: 750px){
  .cart-summary__panel {
    width: 38rem;                     /* fixed width box on desktop */
    max-width: 100%;
    margin-left: auto;                /* right align the box */
    border-radius: 8px;
    box-sizing: border-box;
  }
}

/* Totals row inside the right box */
.cart-summary__row {
  display: grid;
  grid-template-columns: 1fr auto;    /* label left, price right */
  align-items: start;                  /* top-align against two-line label */
  column-gap: 2rem;
  margin: 0 0 12px;
}
.cart-summary__label {
  display: flex;
  flex-direction: column;
  gap: 2px;                            /* tight space between main/sub lines */
  font-size: 15px;
  color: rgba(109,110,114,1);
  text-align: left;
}
.cart-summary__label-sub {
  font-size: 0.85em;
  line-height: 1.2;
  font-style: italic;
  color: rgba(109,110,114,1);
}
.cart-summary__value {
  font-weight: 600;
  white-space: nowrap;
  justify-self: end;
}

/* Checkout button (inside the right panel) */
.cart-summary__checkout {
  display: block !important;
  width: 100% !important;             /* fills the 38rem panel on desktop */
  margin: 0;
  text-align: center;                 /* label centered in the button */
  padding: .9rem 1rem !important;     /* balanced inner padding */
  border-radius: calc(var(--buttons-radius, 24px) / 2) !important;
  box-sizing: border-box;
}

/* ===================== BOTTOM CTAs (match look) ===================== */
.cart__ctas { text-align: left; }
@media (min-width: 750px){
  .cart__ctas { display: block; }     /* keep full-width wallet area */
}

/* Bottom standard Checkout button: full width with clear gap before wallets */
.cart__ctas .cart__checkout-button{
  width: 100% !important;
  display: block !important;
  padding: .9rem 1rem !important;
  border-radius: calc(var(--buttons-radius, 24px) / 2) !important;
  box-sizing: border-box;
  margin: 0 0 .75rem 0;               /* gap before dynamic buttons */
}


/* Dynamic checkout buttons themselves (when Shopify allows styling) */
.cart__dynamic-checkout-buttons [role='button'],
.shopify-payment-button__button,
.shopify-payment-button__button--unbranded{
  border-radius: calc(var(--buttons-radius-outset, var(--buttons-radius, 24px)) / 2) !important;
}

/* Align wallet button container left on desktop */
@media (min-width: 750px){
  [data-shopify-buttoncontainer]{ justify-content: flex-start !important; }
}

