/* cart.css: the client's Porto minicart and Magento cart page on our cart (partials/cart_drawer.html,
   cart_drawer.html, cart_section.html). The theme's own rules draw both; these place the minicart outside
   the header (fm-site.js opens it with is-open, not the theme's .active) and style our few additions. */

/* the minicart: a second minicart-wrapper outside the header, only its fixed panel and overlay shown */
#fm-cart-drawer[hidden],
#fm-cart-drawer .minicart-overlay[hidden] { display: none !important; }
#fm-cart-drawer.minicart-wrapper:not([hidden]) { display: block !important; position: static !important; float: none; width: 0; height: 0; margin: 0; }
#fm-cart-drawer .block-minicart { display: block; top: 0; margin-top: 0; padding-top: 0; max-width: calc(100vw - 48px); background: var(--site-bg); }
#fm-cart-drawer.is-open .block-minicart { transform: translateX(0); }
#fm-cart-drawer .minicart-overlay { display: block; opacity: 0; transition: opacity .3s; }
#fm-cart-drawer .minicart-overlay.is-open { opacity: 1; }
#fm-cart-drawer .minicart-overlay svg { pointer-events: auto; }
#fm-cart-drawer-body.htmx-request { opacity: .6; transition: opacity .2s; }
#fm-cart-drawer .block-title { position: relative; }
#fm-cart-drawer .block-title .text { font-weight: 700; text-transform: uppercase; color: var(--site-fg); }
#fm-cart-drawer .product-item-name a { color: var(--site-fg); }
#fm-cart-drawer .product.options.list { display: block; font-size: 13px; color: var(--site-fg); margin: 2px 0 6px; }
#fm-cart-drawer .details-qty input { width: 48px; height: 40px; font-size: 16px; text-align: center; }
#fm-cart-drawer .block-content > .actions .action.checkout { display: block; width: 100%; text-align: center; }
#fm-cart-drawer .tci-cart__stub { padding: 0 20px 20px; margin: 0; font-size: 14px; color: var(--site-fg); }
#fm-cart-drawer .tci-cart__pay { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 20px; }
#fm-cart-drawer .tci-cart__pay .primary { margin: 0; width: 100%; }
#fm-cart-drawer .tci-cart__pay .action.checkout { display: flex; align-items: center; justify-content: center; width: 100%; margin: 0; }

/* the cart page */
.tci-cart .message-error { margin-bottom: 20px; }
.tci-cart__ship, .tci-cart__stub, .tci-cart__secure { margin: 12px 0; font-size: 14px; color: var(--site-fg); }
.tci-cart__pay { list-style: none; margin: 0 0 24px; padding: 0; }
.tci-cart__pay .item + .item { margin-top: 10px; }
.tci-cart .action.primary.checkout { display: flex; align-items: center; justify-content: center; width: 100%; text-decoration: none; }
.tci-cart__note { margin-top: 24px; }
.tci-cart__note .label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--site-fg); }
.tci-cart__note textarea { width: 100%; font-size: 16px; }
.tci-cart .item-options { margin: 6px 0 0; font-size: 13px; color: var(--site-fg); }
.tci-cart .item-options dt { float: left; clear: left; margin-right: 6px; font-weight: 600; }
.tci-cart .item-options dd { margin: 0; }
.tci-cart .qty-changer a { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; }
.tci-cart.htmx-request, .tci-cart .htmx-request { opacity: .6; transition: opacity .2s; }
@media (max-width: 767px) {
  .tci-cart .cart-container { display: flex; flex-direction: column; }
  .tci-cart .form-cart { order: 1; }
  .tci-cart .cart-summary { order: 2; }
  .tci-cart .input-text.qty { font-size: 16px; height: 40px; }
  .tci-cart .action.action-delete { display: inline-flex; align-items: center; min-height: 40px; }
}
