/* Shared receipts for the cart drawer, full basket and checkout. */
.esnaf-receipt-rows {
    margin: 0;
    padding: 0;
}
.esnaf-receipt-rows .esnaf-cart-total {
    align-items: center;
    gap: 12px;
    padding-block: 5px;
    line-height: 1.25;
}
.esnaf-receipt-rows dt { display: flex; gap: 9px; align-items: center; min-width: 0; }
.esnaf-receipt-rows dt i {
    width: 15px;
    flex: 0 0 15px;
    color: var(--esnaf-dark, #124b32);
    text-align: center;
    font-size: 12px;
}
.esnaf-receipt-rows dd { color: var(--esnaf-ink, #162719); }
.esnaf-receipt-rows :is([data-receipt-code="coupon"], [data-receipt-code="voucher"], [data-receipt-code="reward"], [data-receipt-code="credit"]) :is(dt,dd) { color: var(--esnaf-action, #167044); }
.esnaf-page-receipt .esnaf-cart-breakdown, .esnaf-review-receipt .esnaf-cart-breakdown { max-height: none; overflow: visible; }
#esnaf-cart .esnaf-cart-breakdown { max-height: max(96px, min(23dvh, 172px)); scrollbar-width: thin; }
#esnaf-cart .esnaf-cart-details-link { color: var(--esnaf-dark, #124b32); font-weight: 630; text-decoration: underline; text-underline-offset: 3px; }
#esnaf-cart .esnaf-saved-actions { flex-wrap: wrap; gap: 3px 11px; }
#esnaf-cart .esnaf-cart-grand-total, .esnaf-review-receipt .esnaf-cart-grand-total, .esnaf-page-receipt .esnaf-cart-grand-total {
    align-items: baseline; gap: 12px; margin: 7px 0 10px;
    color: var(--esnaf-dark, #124b32); border-color: #dae4d9;
}
@media (max-width: 767px) {
    #esnaf-cart .esnaf-cart-footer {
        display: grid;
        grid-template-columns: auto minmax(120px, 1fr);
        align-items: center;
        gap: 5px 12px;
    }
    #esnaf-cart .esnaf-cart-breakdown {
        grid-column: 1 / -1;
        max-height: min(10dvh, 66px);
        padding-bottom: 3px;
        border-bottom: 1px solid var(--esnaf-line);
    }
    #esnaf-cart .esnaf-cart-breakdown .esnaf-cart-total { padding-block: 2px; font-size: 12px; }
    #esnaf-cart .esnaf-cart-grand-total {
        display: grid;
        gap: 0;
        margin: 0;
        padding: 0;
        border: 0;
        font-size: 12px;
        line-height: 1.2;
    }
    #esnaf-cart .esnaf-cart-grand-total strong { font-size: 20px; }
}
.esnaf-receipt-photo { display: block; overflow: hidden; border: 1px solid #e2e7df; border-radius: 12px; background: #fff; }
.esnaf-receipt-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.esnaf-receipt-name { color: var(--esnaf-ink, #162719); font-weight: 700; line-height: 1.33; text-decoration: none; overflow-wrap: anywhere; }
.esnaf-receipt-name:hover { color: var(--esnaf-dark, #124b32); text-decoration: underline; }
.esnaf-review-receipt { padding: 0 15px 2px; }
.esnaf-review-items { list-style: none; padding: 0; margin: 0 0 7px; }
.esnaf-review-product { display: grid; grid-template-columns: 52px minmax(0,1fr) auto; gap: 11px; align-items: start; padding: 12px 0; border-top: 1px solid #e4e9e1; }
.esnaf-review-product-main { min-width: 0; align-self: center; }
.esnaf-review-product-main small, .esnaf-page-line-description small { display: block; margin-top: 3px; color: #526051; line-height: 1.35; overflow-wrap: anywhere; }
.esnaf-review-product .esnaf-receipt-photo { width: 52px; height: 52px; }
.esnaf-product-facts { margin-top: 3px; }
.esnaf-product-facts > button { display: inline-block; border: 0; background: none; padding: 2px 0; font-size: 12px; color: #526051; text-decoration: underline; text-underline-offset: 2px; }
.esnaf-review-product .esnaf-receipt-price, .esnaf-page-line-total { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--esnaf-dark, #124b32); }
.esnaf-review-product .esnaf-receipt-price { align-self: center; }
.esnaf-review-receipt .esnaf-receipt-rows { border-top: 1px solid #e2e7df; padding-top: 8px; }
.esnaf-cart-page { max-width: 1130px; padding: 12px clamp(12px,3vw,32px) 60px; }
.esnaf-cart-page #content { min-width: 0; }
.esnaf-cart-page .breadcrumb { margin: 2px 0 15px; }
.esnaf-page-cart-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 18px; }
.esnaf-page-cart-heading > div { display: flex; gap: 10px; align-items: center; }
.esnaf-page-cart-heading > div > i, .esnaf-page-cart-empty > i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: #e9f3e9; color: var(--esnaf-dark,#124b32); }
.esnaf-page-cart-heading h1 { margin: 0; font-size: clamp(26px,3vw,37px); color: var(--esnaf-dark,#124b32); font-weight: 740; line-height: 1.15; letter-spacing: -.035em; }
.esnaf-page-cart-heading > span { font-size: 13px; color: #526051; }
.esnaf-page-cart-layout { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(276px,1fr); gap: 16px 22px; align-items: start; }
.esnaf-page-cart-products, .esnaf-page-receipt, .esnaf-page-cart-modules, .esnaf-page-cart-empty { border: 1px solid #dce3da; border-radius: 18px; background: #fff; }
.esnaf-page-cart-products { padding: 0 clamp(12px,2vw,22px); }
.esnaf-page-cart-product { display: grid; grid-template-columns: 72px minmax(0,1fr) auto 40px; grid-template-areas: "photo info sum remove" "photo qty sum remove"; align-items: center; gap: 8px 14px; padding: 17px 0; }
.esnaf-page-cart-product + .esnaf-page-cart-product { border-top: 1px solid #e2e7df; }
.esnaf-page-cart-product .esnaf-receipt-photo { grid-area: photo; width: 72px; height: 72px; }
.esnaf-page-line-description { grid-area: info; min-width: 0; }
.esnaf-page-line-description h2 { margin: 0; font-size: 16px; }
.esnaf-page-line-description small { font-size: 12px; }
.esnaf-page-line-total { grid-area: sum; text-align: end; }
.esnaf-page-line-remove { grid-area: remove; justify-self: end; }
.esnaf-page-line-remove, .esnaf-page-stepper button { display: grid; place-items: center; color: var(--esnaf-dark,#124b32); background: transparent; border: none; min-width: 38px; min-height: 38px; font-size: 14px; line-height: 1; }
.esnaf-page-line-remove { color: #824739; border-radius: 11px; }
.esnaf-page-line-remove:hover { background: #fcf1ed; }
.esnaf-page-quantity { grid-area: qty; min-width: 0; }
.esnaf-page-stepper { display: inline-flex; align-items: center; border: 1px solid #dae5d9; background: #f5f9f3; border-radius: 11px; }
.esnaf-page-stepper button:disabled { opacity: .4; }
.esnaf-page-stepper [data-page-exact] { padding-inline: 3px; min-width: 49px; font-size: 13px; color: var(--esnaf-ink,#162719); font-weight: 680; white-space: nowrap; }
.esnaf-page-exact:not([hidden]) { display: flex; gap: 8px; align-items: end; margin-top: 8px; }
.esnaf-page-exact label { display: block; color: #526051; font-size: 12px; }
.esnaf-page-exact input { display: block; width: 78px; min-height: 39px; border: 1px solid #a2b79f; border-radius: 8px; padding: 5px 7px; }
.esnaf-page-exact button { border-radius: 8px; min-height: 39px; background: #edf4eb; color: #124b32; border: 1px solid #c7d8c4; }
.esnaf-page-receipt { grid-column: 2; grid-row: 1 / span 2; align-self: start; padding: 18px; }
.esnaf-page-receipt h2 { margin: 0 0 12px; font-size: 18px; font-weight: 710; color: #183c26; line-height: 1.3; }
.esnaf-page-receipt h2 i { margin-right: 8px; font-size: 16px; }
.esnaf-page-cart-modules { overflow: clip; }
.esnaf-page-cart-modules .accordion-item { border: 0; }
.esnaf-page-cart-modules .accordion-item + .accordion-item { border-top: 1px solid #e2e7df; }
.esnaf-page-cart-modules .accordion-button { font-size: 14px; color: #294532; font-weight: 650; }
.esnaf-cart-page-continue, .esnaf-cart-page-back { min-height: 44px; display: flex; gap: 12px; align-items: center; justify-content: center; font-weight: 650; }
.esnaf-cart-page-continue { background: var(--esnaf-dark,#124b32); color: #fff!important; border-radius: 12px; }
.esnaf-cart-page-continue:hover { background: #1c603b; text-decoration: none; }
.esnaf-cart-page-back { color: #3f5841; font-size: 13px; }
.esnaf-page-cart-empty { padding: 34px 18px; display: grid; justify-items: center; gap: 14px; }
.esnaf-page-cart-empty h2 { margin: 0; font-size: 18px; }
.esnaf-page-cart-empty .esnaf-cart-page-continue { min-width: 165px; }
.esnaf-cart-page-status:not([hidden]) { color: #74402d; padding: 12px 14px; background: #fff6e7; border-radius: 10px; }
.esnaf-cart-page [aria-busy="true"] .esnaf-page-stepper { opacity: .6; }
@media(max-width:767px) {
    .esnaf-cart-page { padding-bottom: 95px; }
    .esnaf-page-cart-layout { grid-template-columns: minmax(0,1fr); gap: 13px; }
    .esnaf-page-receipt { grid-column: auto; grid-row: auto; padding: 14px; }
    .esnaf-page-cart-product { grid-template-columns: 56px minmax(0,1fr) auto; grid-template-areas: "photo info remove" "qty qty sum"; gap: 8px 10px; padding: 13px 0; }
    .esnaf-page-cart-product .esnaf-receipt-photo { width: 56px; height: 56px; }
    .esnaf-page-cart-product .esnaf-page-quantity { max-width: 100%; }
    .esnaf-page-cart-heading { margin-bottom: 12px; }
    .esnaf-page-cart-heading > div > i { width: 36px; height: 36px; }
    .esnaf-page-stepper button, .esnaf-page-line-remove { min-height: 44px; min-width: 42px; }
    .esnaf-page-cart-products, .esnaf-page-receipt, .esnaf-page-cart-modules { border-radius: 15px; }
    .esnaf-page-cart-modules { grid-row: 2; }
    .esnaf-review-receipt { padding-inline: 11px; }
    .esnaf-review-product { grid-template-columns: 44px minmax(0,1fr) auto; gap: 8px; }
    .esnaf-review-product .esnaf-receipt-photo { width: 44px; height: 44px; }
    .esnaf-review-product .esnaf-receipt-name, .esnaf-review-product .esnaf-receipt-price { font-size: 14px; }
}
@media (min-width:768px) and (max-width:960px) {
    .esnaf-page-cart-product { grid-template-columns: 58px minmax(0,1fr) auto; grid-template-areas: "photo info remove" "photo qty sum"; gap: 7px 9px; }
    .esnaf-page-cart-product .esnaf-receipt-photo { width: 58px; height: 58px; }
}

