/* Figma: 1958:8525 / 1990:8851 / 1958:8711 and their empty/payment states. */
:root .ht-cart { --cart-pad: 32px; z-index: 1000; inset: 0; width: 100%; height: 100dvh; display: flex; justify-content: flex-end; background: rgb(26 26 26 / .4); transition: opacity .24s ease-out, visibility .24s ease-out; color: #1a1a1a; font: 400 16px/1.6 "Mulish", sans-serif; }
.ht-cart *, .ht-cart *::before, .ht-cart *::after { box-sizing: border-box; }
.ht-cart button, .ht-cart input { font: inherit; }
:root .ht-cart .cart-drawer-container { position: relative; width: 33.333333%; height: 100%; margin: 0; }
.ht-cart .cart-drawer__body { background: #fff; position: relative; height: 100%; }
:root .ht-cart .cart-drawer__inner, :root .ht-cart .cart-drawer__fixed-checkout { transform: none; transition: none; padding: 0; overflow: hidden; }
.ht-cart .cart-drawer__inner { min-height: 0; flex: 1; }
.ht-cart .cart-drawer__inner-wrapper { height: 100%; min-height: 0; display: flex; flex-direction: column; }
.ht-cart .cart-drawer__header { position: relative; flex: 0 0 73px; height: 73px; padding: 0 24px 1px var(--cart-pad); border-bottom: 1px solid rgb(26 26 26 / .06); }
.ht-cart .cart-drawer__header::after, .ht-cart .cart-drawer__checkout-container::after { display: none; }
:root .ht-cart .cart-drawer__heading { display: flex; align-items: center; gap: 12px; margin: 0; color: #1a1a1a; font: 400 32px/1.25 "Rufina", Georgia, serif; text-transform: none; letter-spacing: 0; }
.ht-cart [data-cart-count] { color: #50574e; font: 400 14px/1.55 "Mulish", sans-serif; }
:root .ht-cart .cart-drawer__close, .ht-cart [data-payment-close] { position: static; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 0; background: transparent; flex: 0 0 48px; cursor: pointer; }
.ht-cart .cart-drawer__close img, .ht-cart [data-payment-close] img { width: 48px; height: 48px; display: block; }
.ht-cart__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--cart-pad); }
.ht-cart cart-drawer-items { display: block; overflow: visible; }
.ht-cart .cart-drawer__items { padding: 0; }
:root .ht-cart .cart-item { display: flex; align-items: flex-start; gap: 16px; padding: 0 0 16px; margin: 0 0 16px; min-height: 129px; border: 0; border-bottom: 1px solid rgb(26 26 26 / .06); }
.ht-cart .cart-item__media { width: 80px; height: 80px; flex: 0 0 80px; padding: 0; margin: 0; background: #f4f4f4; }
.ht-cart .cart-item__image-container { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.ht-cart .cart-item__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
:root .ht-cart .cart-item__details__wrapper { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 114px; align-content: start; gap: 4px 12px; margin: 0; padding: 0; }
.ht-cart .cart-item__details { display: contents; }
:root .ht-cart .cart-item__name { grid-column: 1; margin: 0; color: #1a1a1a; font: 500 18px/1.5 "Mulish", sans-serif; }
.ht-cart .product-option { grid-column: 1 / -1; font: 400 14px/1.55 "Mulish", sans-serif; color: #50574e; margin: 0; }
.ht-cart__options { grid-column: 1 / -1; color: #50574e; font: 400 14px/1.55 "Mulish", sans-serif; }
.ht-cart__options .product-option { display: inline; }
.ht-cart__options .product-option + .product-option::before { content: " · "; }
.ht-cart ht-cart-variant { display: block; grid-column: 1 / -1; min-width: 0; }
.ht-cart .ht-cart__variant { display: inline-flex; max-width: 100%; }
.ht-cart .ht-cart__variant select { display: block; max-width: 100%; min-height: 32px; padding: 4px 26px 4px 8px; border: 1px solid #d5d1c9; border-radius: 4px; background-color: #fff; color: #50574e; font: 400 14px/1.55 "Mulish", sans-serif; cursor: pointer; }
.ht-cart[aria-busy="true"] :is(cart-drawer-items,.cart-fixed-checkout) { opacity: .6; pointer-events: none; }
.ht-cart .ht-cart__variant select:disabled { cursor: wait; }
.ht-cart .product-option .fw-bold { display: none; }
.ht-cart .cart-item__discounts, .ht-cart .product-property { grid-column: 1 / -1; }
:root .ht-cart .cart-item__totals { grid-row: 1; grid-column: 2; display: block; min-width: 0; text-align: right; padding: 0; }
:root .ht-cart .cart-item__totals.display-none-tablet { display: none; }
.ht-cart .cart-item__price-wrapper { margin: 0; display: flex; flex-direction: column; }
.ht-cart .final__price { white-space: nowrap; color: #1a1a1a; font: 600 16px/1.5 "Mulish", sans-serif; }
.ht-cart .original__price { color: #6b7167; font-size: 12px; }
.ht-cart .original__price__mobile { display: none; }
.ht-cart .cart-item__quantity { grid-column: 1 / -1; margin: 0; width: 100%; padding: 0; }
.ht-cart .cart-item__quantity > div { width: 100%; }
:root .ht-cart .cart-item__quantity .cart-item__quantity-wrapper { width: 100%; height: 48px; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
:root .ht-cart .quantity { display: flex; flex: 0 0 144px; width: 144px; min-height: 48px; height: 48px; border: 1px solid #e8e8e8; border-radius: 4px; padding: 0; overflow: hidden; }
:root .ht-cart .quantity__button { flex: 1; width: 48px; height: 46px; min-width: 0; padding: 0; border: 0; background: transparent var(--ht-cart-minus) center / 48px 48px no-repeat; cursor: pointer; }
:root .ht-cart .quantity__button[name="plus"] { background-image: var(--ht-cart-plus); }
.ht-cart .quantity__button svg { display: none; }
.ht-cart .quantity::before, .ht-cart .quantity::after { content: none; }
.ht-cart .quantity .quantity__button:first-child, .ht-cart .quantity .quantity__button:last-child { margin: 0; }
.ht-cart .cart-item__quantity .quantity { margin-right: 0; }
:root .ht-cart .quantity__input { width: 48px; min-width: 0; height: 46px; padding: 0; border: 0; text-align: center; background: transparent; font: 500 16px/1.5 "Mulish", sans-serif; appearance: textfield; }
.ht-cart .quantity__input::-webkit-inner-spin-button { appearance: none; }
.ht-cart cart-remove-button { display: block; flex: 0 0 48px; width: 48px; height: 48px; padding: 0; background: var(--ht-cart-trash) center / 24px 24px no-repeat; cursor: pointer; }
.ht-cart .cart-item__quantity cart-remove-button svg { display: none; }
.ht-cart .cart-item__error { margin: 0; }
.ht-cart .cart-item__error:has(.cart-item__error-text:empty) { display: none; }
.ht-cart .cart__items--disabled { pointer-events: none; opacity: .6; }
.ht-cart .cart-drawer__checkout-container { padding: 0; }
.ht-cart cart-coupon { display: block; margin: 0; }
.ht-cart cart-coupon > .display-flex { gap: 8px; }
.ht-cart .coupon__input { flex: 1; min-width: 0; margin: 0; }
.ht-cart .field__container { height: 48px; box-shadow: none; border: 0; }
.ht-cart .field__container::before, .ht-cart .field__container::after, .ht-cart .field::after { display: none; }
.ht-cart .coupon__input input::placeholder { opacity: 1; color: #6b7167; }
:root .ht-cart .coupon__input input { height: 48px; min-height: 48px; width: 100%; padding: 12px 16px; border: 1px solid #e8e8e8; border-radius: 4px; background: #fff; font: 400 16px/1.6 "Mulish", sans-serif; outline-offset: -1px; transition: border-color .12s ease-out; }
.ht-cart .coupon__input input:focus { border-color: #1a1a1a; outline: 1px solid #1a1a1a; }
.ht-cart .coupon__input .field__label { display: none; }
:root .ht-cart .coupon__button { flex: 0 0 80px; min-height: 48px; height: 48px; margin: 0; border: 1px solid #1a1a1a; border-radius: 4px; background: white; padding: 12px; color: #123321; font: 600 16px/1.5 "Mulish", sans-serif; }
.ht-cart .coupon-error-message:empty, .ht-cart .cart__coupon-list:empty, .ht-cart .cart-drawer__amount-wrapper:empty { display: none; }
.ht-cart .cart-drawer__amount-wrapper { padding: 0; margin-top: 16px; }
.ht-cart .cart-fixed-checkout { flex: 0 0 auto; position: static; background: #fff; }
.ht-cart ht-cart-checkout { display: block; padding: 16px var(--cart-pad) 24px; }
.ht-cart__total { display: flex; justify-content: space-between; align-items: center; min-height: 28px; gap: 12px; color: #1a1a1a; font: 500 16px/1.5 "Mulish", sans-serif; }
.ht-cart__total > :last-child { font-size: 20px; line-height: 1.4; text-align: right; }
.ht-cart__actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
.ht-cart .has-express .ht-cart__actions { grid-template-columns: 1fr 1fr; }
.ht-cart [data-express-home] { display: none; max-height: 48px; overflow: hidden; min-width: 0; }
.ht-cart .has-express [data-express-home] { display: block; }
.ht-cart .ht-cart__actions form { margin: 0; min-width: 0; }
.ht-cart .ht-cart__checkout, .ht-cart .ht-cart__explore { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; border: 0; border-radius: 4px; background: #1a1a1a; color: white; padding: 12px 16px; font: 600 16px/1.5 "Mulish", sans-serif; cursor: pointer; text-decoration: none; }
.ht-cart__checkout:hover, .ht-cart__explore:hover { background: #343630; color: white; }
.ht-cart__checkout:active, .ht-cart__explore:active { background: #111410; }
.ht-cart__payment-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; margin-top: 8px; padding: 0; border: 0; background: transparent; color: #50574e; cursor: pointer; }
.ht-cart__payment-toggle span { text-decoration: none; }
.ht-cart__payment-toggle > img { display: block; flex: 0 0 10px; width: 10px; height: 6px; max-width: 10px; }
.ht-cart [hidden], .ht-cart .cart__warnings { display: none; }
.ht-cart .cart-empty .ht-cart__scroll { display: flex; flex-direction: column; }
.ht-cart .cart-empty .cart__warnings { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 0; }
.ht-cart .cart-empty cart-drawer-items, .ht-cart .cart-empty .cart-drawer__checkout-container, .ht-cart .cart-fixed-checkout.cart-empty { display: none; }
:root .ht-cart .cart__warnings h2 { width: 100%; margin: 0; font: 400 32px/1.25 "Rufina", Georgia, serif; text-align: center; }
.ht-cart .cart__warnings p { max-width: 280px; margin: 0; color: #50574e; text-align: center; }
.ht-cart__explore { max-width: 342px; }
:root .ht-cart .ht-cart__explore { color: #fff; }
:root .ht-cart .cart-item__totals { margin: 0; }
.ht-cart__payments { position: fixed; inset: auto 0 0 auto; width: 33.333333%; max-width: none; max-height: calc(100dvh - 24px); min-height: 316px; margin: 0; padding: 24px; border: 0; border-radius: 4px 4px 0 0; background: #fff; color: #1a1a1a; overflow-y: auto; }
.ht-cart__payments[open] { display: flex; flex-direction: column; gap: 16px; animation: ht-cart-fade .24s ease-out; }
.ht-cart__payments::backdrop { background: rgb(26 26 26 / .4); animation: ht-cart-fade .24s ease-out; }
.ht-cart__payment-header { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
:root .ht-cart__payment-header h2 { margin: 0; font: 400 24px/1.45 "Rufina", Georgia, serif; }
.ht-cart [data-cart-express] { width: 100%; }
.ht-cart [data-cart-express] :is(.shopline-payment-button, .shopline-payment-button-wrapper) { width: 100%; margin: 0; }
.ht-cart [data-cart-express] :is(button, iframe, [role="button"]) { min-height: 48px; border-radius: 4px; }
.ht-cart [data-express-sheet] { min-height: 160px; }
.ht-cart [data-express-sheet] [data-cart-express] { display: flex; flex-direction: column; gap: 8px; }
.ht-cart :is(button, a, input, cart-remove-button):focus-visible { outline: 2px solid #123321; outline-offset: 2px; }
:root .ht-cart:not([data-keyboard-focus]) :is(.cart-drawer__close, [data-payment-close]):focus { outline: none; box-shadow: none; }
@keyframes ht-cart-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 1600px) {
  :root .ht-cart { --cart-pad: 24px; }
  .ht-cart .cart-drawer__header { padding-right: 24px; }
  .ht-cart .cart-item__media { width: 64px; height: 80px; flex-basis: 64px; }
  :root .ht-cart .cart-item__name { font-size: 16px; }
  :root .ht-cart .cart-item { min-height: 145px; }
}
@media (max-width: 960px) {
  :root .ht-cart .cart-drawer-container { width: 100%; }
  .ht-cart .cart-drawer__header { padding-right: 12px; }
  /* Preserve the merchant title; limit only its mobile presentation. */
  :root .ht-cart .cart-item__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; max-height: 72px; min-width: 0; overflow: hidden; word-break: normal; overflow-wrap: normal; hyphens: none; font-weight: 600; line-height: 24px; }
  .ht-cart .cart-item__media { padding: 2px; border-radius: 4px; overflow: hidden; }
  .ht-cart .cart-item__details__wrapper { column-gap: 12px; }
  :root .ht-cart .cart-item__totals { width: 100%; }
  .ht-cart .cart-item__price-wrapper { text-align: right; align-items: stretch; flex-wrap: nowrap; }
  .ht-cart .cart-item__price-wrapper .final__price { margin: 0; }
  .ht-cart .final__price { white-space: normal; word-break: normal; overflow-wrap: normal; font-weight: 600 !important; }
  .ht-cart .ht-cart__variant, .ht-cart .ht-cart__variant select { width: auto; }
  :root .ht-cart :is(.final__price, .original__price, .quantity__input, [data-cart-count]), .ht-cart .ht-cart__total > :last-child { font-family: "Outfit", sans-serif !important; }
  .ht-cart .has-express .ht-cart__actions { grid-template-columns: 1fr 1fr; }
  .ht-cart__payments { width: 100%; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .ht-cart ht-cart-checkout { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
@media (max-width: 374px) {
  :root .ht-cart { --cart-pad: 16px; }
  :root .ht-cart .cart-item__details__wrapper { grid-template-columns: minmax(0, 1fr) 104px; column-gap: 6px; }
  .ht-cart .cart-item__media { flex-basis: 48px; width: 48px; height: 64px; }
  .ht-cart .final__price { font-size: 15px; }
  :root .ht-cart .cart-item { gap: 12px; }
  :root .ht-cart .quantity { flex-basis: 120px; width: 120px; }
  .ht-cart__payments { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  :root .ht-cart, .ht-cart__payments[open], .ht-cart__payments::backdrop { animation: none; transition: none; }
}

/* Native theme button decorations must not redraw these Figma controls. */
.ht-cart .coupon__button::before, .ht-cart .coupon__button::after,
.ht-cart .ht-cart__checkout::before, .ht-cart .ht-cart__checkout::after { content: none; }
.ht-cart .coupon__button, .ht-cart .ht-cart__checkout { box-shadow: none; }

/* Align provider-owned express controls with the 48px checkout action. */
.ht-cart .ht-cart__actions [data-cart-express] { height: 48px; }
.ht-cart [data-express-home] :is(.shopline-payment-button, .shopline-payment-button-wrapper, .additional-checkout-buttons) { width: 100%; height: 48px; min-height: 48px; margin: 0; }
.ht-cart [data-express-home] :is(button, iframe, [role="button"]) { height: 48px; border-radius: 4px; }
.ht-cart .product-option, .ht-cart__options { font-family: "Mulish", sans-serif; }

/* Figma PC 1958:8525 / 1990:8851: isolate desktop from native drawer rules. */
@media (min-width:961px) {
  :root .ht-cart .cart-drawer__header { flex-basis: 73px; height: 73px; }
  :root .ht-cart .cart-item__details__wrapper { grid-template-columns: minmax(0,1fr) 114px; }
  :root .ht-cart .cart-item__price-wrapper { text-align: right; align-items: flex-end; flex-wrap: nowrap; }
  :root .ht-cart .cart-item__price-wrapper .final__price { margin: 0; font-weight: 600; word-break: normal; }
  :root .ht-cart .cart-item__name { min-width: 0; overflow-wrap: anywhere; }
  :root .ht-cart .cart-item__quantity { min-width: 0; }
  :root .ht-cart .coupon__button { border-color: #e8e8e8; }
  :root .ht-cart .cart-drawer__fixed-checkout { box-shadow: none; border: 0; }
  :root .ht-cart .has-express .ht-cart__actions { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  :root .ht-cart .ht-cart__checkout { height: 48px; min-height: 48px; border-radius: 4px; background: #1a1a1a; }
}
