/* cart.css: the side cart and /cart on the theme's own minicart and cart styles (styles-m/-l, custom.css).
   The drawer is the theme's off-canvas minicart, placed outside the header (partials/cart_ui.html) and
   opened by fm-site.js's is-open instead of Magento's .active; the rest is the few things our cart adds:
   the Qty steppers in the drawer, the order note and the small summary lines. */

/* the wrapper only carries the theme's selectors: it takes no room */
.minicart-wrapper.fas-cart { position: static; display: block; float: none; width: 0; height: 0; margin: 0; padding: 0; }
.fas-cart .block-minicart { display: block; }
.fas-cart .block-minicart[hidden], .fas-cart .minicart-overlay[hidden] { display: none !important; }
.fas-cart .block-minicart.is-open { transform: translateX(0); }
.fas-cart .minicart-overlay.is-open { display: block; }
.fas-cart .minicart-overlay svg { width: 24px; height: 24px; }
.fas-cart #fm-cart-drawer-body { height: 100%; display: flex; flex-direction: column; }
.fas-cart #fm-cart-drawer-body.htmx-request { opacity: .6; transition: opacity .2s; }

/* the drawer's head: My Cart and the close X on one line */
.fas-cart .block-minicart .block-title { position: relative; font-size: 16px; font-weight: 700; text-transform: uppercase; color: var(--site-ink); border-bottom: 1px solid var(--site-rule); }
.fas-cart .block-minicart .block-content > .action.close { display: block; position: absolute; top: 0; right: 8px; width: 40px; height: 40px; padding: 0; border: 0; background: none; box-shadow: none; color: var(--site-ink); font-size: 0; cursor: pointer; }
.fas-cart .block-minicart .block-content > .action.close::before { content: '\00d7'; font-size: 28px; line-height: 40px; }
.fas-cart .block-minicart .block-content > .action.close > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fas-cart .block-minicart .items-total { float: none; padding: 12px 20px 4px; font-size: 13px; color: var(--site-ink); }
.fas-cart .block-minicart .minicart-items .product-item { padding-top: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--site-rule); }
.fas-cart .block-minicart .minicart-items .product { position: relative; display: flex; gap: 12px; }
.fas-cart .block-minicart .minicart-items .product-item-photo { order: -1; flex: 0 0 75px; float: none; }
.fas-cart .block-minicart .minicart-items .product-item-details { flex: 1 1 0; min-width: 0; width: auto; padding-right: 24px; }
.fas-cart .block-minicart .product-item-name, .fas-cart .block-minicart .product-item-name a { white-space: normal; }
.fas-cart .block-minicart .product-item-name { font-size: 14px; font-weight: 500; line-height: 1.35; }
.fas-cart .block-minicart .product-item-name a { color: var(--site-ink); }
.fas-cart .block-minicart .product-item-pricing .price { font-size: 14px; font-weight: 700; color: var(--site-ink); }
.fas-cart .fas-cart-line-notes { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 6px; font-size: 13px; color: var(--site-ink); }
.fas-cart .fas-cart-qty { display: flex; align-items: center; gap: 0; margin-top: 8px; }
.fas-cart .fas-cart-qty .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fas-cart .fas-cart-qty .item-qty { width: 44px; height: 40px; margin: 0; border: 1px solid var(--site-rule); border-left: 0; border-right: 0; border-radius: 0; font-size: 16px; text-align: center; -moz-appearance: textfield; }
.fas-cart .fas-cart-qty .item-qty::-webkit-inner-spin-button, .fas-cart .fas-cart-qty .item-qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.fas-cart .fas-cart-step { width: 40px; height: 40px; padding: 0; border: 1px solid var(--site-rule); border-radius: 0; background: var(--site-bg); color: var(--site-ink); font-size: 18px; line-height: 1; cursor: pointer; box-shadow: none; }
.fas-cart .fas-cart-step:hover { background: var(--site-hover); }
.fas-cart .block-minicart .product.actions { position: absolute; top: 0; right: 0; }
.fas-cart .block-minicart .product.actions .action.delete { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 40px; color: var(--site-ink); text-decoration: none; }
.fas-cart .block-minicart .product.actions .action.delete::before { content: '\00d7'; font-family: inherit; font-size: 24px; line-height: 1; }
.fas-cart .block-minicart .product.actions .action.delete > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fas-cart .block-minicart .subtotal { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; padding-bottom: 12px; border-top: 1px solid var(--site-rule); font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--site-ink); }
.fas-cart .block-minicart .subtotal .price { font-size: 16px; font-weight: 700; color: var(--site-ink); }
.fas-cart .block-minicart .block-content > .actions { padding-bottom: 12px; }
.fas-cart .block-minicart .block-content > .actions .action.primary.checkout { display: block; width: 100%; padding: 12px 15px; border: 0; border-radius: 0; background: var(--site-checkout-bg); color: var(--site-dark-fg); font-size: 15px; font-weight: 700; text-align: center; text-transform: uppercase; text-decoration: none; }
.fas-cart .block-minicart .block-content > .actions .action.primary.checkout:hover { background: var(--site-checkout-hover); }
.fas-cart .block-minicart .block-content > .actions > .secondary .action.viewcart { border-radius: 0; color: var(--site-ink); text-decoration: none; }
.fas-cart .block-minicart .message-error { margin: 10px 20px 0; padding: 10px 12px; background: var(--site-error-bg); color: var(--site-ink); font-size: 13px; }

/* /cart: the lines' Qty arrows and the Summary's additions */
.fas-cart-page .cart.table-wrapper .col.qty .control.qty { position: relative; display: inline-block; }
.fas-cart-page .cart.table-wrapper .col.qty .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fas-cart-page .cart.table-wrapper .col.qty .input-text.qty { width: 90px; height: 3rem; padding: 0 30px; font-size: 16px; text-align: center; -moz-appearance: textfield; }
.fas-cart-page .cart.table-wrapper .col.qty .input-text.qty::-webkit-inner-spin-button, .fas-cart-page .cart.table-wrapper .col.qty .input-text.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.fas-cart-page .qty-changer > a { text-decoration: none; }
.fas-cart-page .fas-cart-small { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--site-ink); }
.fas-cart-page .fas-cart-note { margin-top: 16px; }
.fas-cart-page .fas-cart-note .label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--site-ink); }
.fas-cart-page .fas-cart-note textarea { width: 100%; font-size: 16px; }
.fas-cart-page .cart-note__status { font-size: 13px; color: var(--site-ink); }
.fas-cart-page .checkout-methods-items .action.primary.checkout { display: block; padding: 14px 15px; border-radius: 0; text-align: center; text-decoration: none; }
.fas-cart-page.htmx-request { opacity: .6; transition: opacity .2s; }

/* the theme's porto-icons font points at the client's host, which we never load; its own copy in
   static/theme draws the cart's glyphs (the empty bag, the line's remove) under a name of ours */
@font-face { font-family: 'fas-porto-icons'; src: url('/static/theme/fonts/icon-fonts/font/porto-icons.woff2') format('woff2'), url('/static/theme/fonts/icon-fonts/font/porto-icons.woff') format('woff'); font-display: block; }
.fas-cart-page i.cart-empty::before, .fas-cart-page .cart.table-wrapper .actions-toolbar > .action-delete::before { font-family: 'fas-porto-icons'; }
