/* Cart and checkout use the same shell as the shop. Styles below apply only to the purchase flow. */
body.merchfable #main {
  --surface:#090a0b; --edge:#3b3f46; --text:#f1f2f4; --muted:#bcc1c9;
  background:var(--surface)!important; color:var(--text); color-scheme:dark;
}
#main .cart-container {max-width:1200px;padding-bottom:clamp(48px,7vw,96px)}
#main .checkout-page-title {background:transparent}
#main .checkout-breadcrumbs {gap:clamp(8px,1.5vw,20px);margin:0;padding:12px 0;letter-spacing:0;text-transform:none;font-size:clamp(15px,1.6vw,21px)}
#main .checkout-breadcrumbs a {color:#aeb3bc}
#main .checkout-breadcrumbs .current {color:#fff;font-weight:700}
#main .cart-container .col {min-width:0}
#main .cart-container .row-divided>.col {border:0}
#main .cart-sidebar,#main .col-inner:has(>.checkout-sidebar) {background:var(--surface);border:1px solid var(--edge);border-radius:14px;padding:clamp(16px,2vw,28px)}
#main .cart-container :is(h3,.cart_totals>table:first-child th) {color:var(--text);font-size:clamp(20px,2vw,25px);font-weight:650;line-height:1.25;letter-spacing:-.025em;text-transform:none}
#main .shop_table {margin-bottom:18px}
#main .cart-container :is(td,th) {border-color:var(--edge);color:var(--text);font-size:15px;line-height:1.5}
#main .cart-container th {font-weight:600}
#main .cart-container thead th {font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
#main .cart_item>td {padding-block:18px}
#main .cart-container :is(.product-name,.wcpa_cart_meta_item) {overflow-wrap:anywhere}
#main .cart-container :is(.product-name>a,.amount,label) {color:var(--text)}
#main .cart_item .product-name>a {font-weight:650;line-height:1.4}
#main .cart-container .wcpa_cart_meta {margin:8px 0 0;padding:0}
#main .cart-container .wcpa_cart_meta_item {color:var(--muted);font-size:13px;line-height:1.5;margin:3px 0}
#main .cart-container .product-thumbnail img,#main .mf-order-thumb {background:#e3e4e6;border-radius:8px;object-fit:contain}
#main .mf-order-thumb {float:left;width:42px;height:42px;margin:2px 10px 5px 0}
#main .checkout-sidebar .product-total,#main .order-total td {text-align:right;white-space:nowrap}
#main .cart-container .amount {font-variant-numeric:tabular-nums;white-space:nowrap}
#main .cart-container .order-total :is(th,.amount) {font-size:20px;font-weight:700}
#main .cart-container :is(.form-row,label,.woocommerce-info,.shipping__list_label,.shipping__destination,.cart-discount) {color:var(--muted)}
#main .cart-container label {font-size:14px;font-weight:600}
#main .cart-container :is(input.input-text,textarea,select,.select2-selection--single,#coupon_code) {background:#101215;color:var(--text);border:1px solid #626873;border-radius:6px;box-shadow:none;font-size:16px;min-height:46px}
#main .cart-container .select2-selection__rendered {color:var(--text);line-height:44px}
#main .cart-container input::placeholder,#main .cart-container textarea::placeholder {color:#a8aeb7}
body.merchfable .select2-dropdown,body.merchfable .select2-search__field {background:#17191d;color:#f4f4f5;border-color:#626873}
body.merchfable .select2-results__option[aria-selected=true] {background:#353a42;color:white}
#main .cart-container :is(.button,button[type=submit],input[type=submit]) {background:#24272d;color:#f3f4f6;border:1px solid #565c65;border-radius:6px;min-height:42px;text-transform:none;letter-spacing:0;box-shadow:none}
#main .cart-container :is(.checkout-button,#place_order,.return-to-shop .button) {background:#e6e8ec!important;color:#111317!important;border:1px solid #e6e8ec;font-size:16px;font-weight:700;min-height:48px;display:inline-flex;align-items:center;justify-content:center}
#main .cart-container :is(#place_order,.checkout-button) {width:100%;margin-inline:0}
#main .cart-container .quantity {display:inline-flex;align-items:stretch;white-space:nowrap;margin:0}
#main .cart-container .quantity :is(input,button) {min-height:40px;height:40px;width:32px;min-width:0;padding:0;background:#1d2025;color:#f4f5f6;border:1px solid #535963;border-radius:0;box-shadow:none;margin:0}
#main .cart-container .quantity .minus {border-radius:6px 0 0 6px}
#main .cart-container .quantity .plus {border-radius:0 6px 6px 0}
#main .cart-container .quantity .qty {border-inline:0}
#main .cart-container .remove {color:#c2c6cd;border-color:#626873}
#main .cart-container .woocommerce-info a,#main .cart-container .woocommerce-privacy-policy-link {color:#eceef2;text-decoration:underline;text-underline-offset:3px}
#main .mf-order-toggle {display:flex;align-items:center;justify-content:space-between;width:100%;color:inherit;font:inherit;letter-spacing:inherit;text-transform:none;padding:0;margin:0;background:none;border:0;text-align:left}
#main .mf-order-toggle::after {content:"";width:9px;height:9px;border-right:2px solid;border-bottom:2px solid;transform:rotate(45deg);margin:0 4px 4px 16px}
#main .mf-order-toggle[aria-expanded=true]::after {transform:rotate(225deg);margin-top:8px}
#main .mf-fold-items :is(thead,tbody)[data-mf-items] {display:none}
#main .cart-container .woocommerce-invalid :is(.input-text,.select2-selection) {border-color:#f69595}
/* Let both columns use the whole content rail. Product links retain their full accessible names. */
@media(min-width:850px) {
  #main .cart-container :is(.woocommerce.row,form.checkout>.row) {width:calc(100% + 60px);max-width:none}
}
#main .woocommerce-cart-form .product-name>a:first-child {
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;
}
#main .woocommerce-cart-form .product-name>a:first-child:focus-visible {-webkit-line-clamp:unset}
#main .cart-sidebar :is(.cart_totals,.ux-cart-coupon,.coupon),#main .checkout-sidebar .woocommerce-checkout-review-order {background:transparent}

/* Keep the order on a single canvas. Flatsome also colors the nested review and payment blocks. */
body.merchfable #main :is(.checkout-page-title,.cart-container,.cart-sidebar,.cart_totals,.ux-cart-coupon,.coupon,.checkout-sidebar,.col-inner:has(>.checkout-sidebar),#order_review,#payment,.wc_payment_methods,.place-order,.woocommerce-checkout-review-order-table,.cart_totals table,.cart_totals tbody,.cart_totals tr,.cart_totals td,.shipping__table) {
  background:transparent!important;box-shadow:none!important
}
body.merchfable #main #order_review {border:0!important;border-radius:0!important;padding:0!important}
body.merchfable #main :is(.cart_totals,#payment,.place-order) {border:0!important;padding:0!important}
body.merchfable #main .cart_item .wcpa_cart_meta_item {align-items:baseline;flex-wrap:wrap;gap:0 5px;margin:2px 0;line-height:1.45}
body.merchfable #main .wcpa_cart_meta_item :is(p,.wcpa_cart_meta_item-value) {margin:0;min-width:0;max-width:100%;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
body.merchfable #main .cart_item .wcpa_cart_meta_item-value img {width:22px;height:22px;object-fit:contain;vertical-align:middle}
body.merchfable #main .cart-container :is(input.input-text,select,textarea,.select2-selection--single,#coupon_code) {background:#090a0b!important;box-shadow:none!important;border-color:#545a63!important}
body.merchfable #main .cart-container .woocommerce-invalid :is(input.input-text,select,textarea,.select2-selection--single) {border-color:#f29a9a!important}
body.merchfable #main .cart-container :is(.checkout-button,#place_order,.return-to-shop .button) {background:#e6e8ec!important;color:#111317!important}
body.merchfable #main .cart-container :is(button,a.button)[disabled] {opacity:.48}
/* Keep each remove control in its own table cell at intermediate widths as well. */
body.merchfable #main .woocommerce-cart-form .product-remove a.remove {
  position:static!important;inset:auto!important;transform:none!important;margin:0!important;
  display:inline-flex!important;align-items:center;justify-content:center
}
@media(min-width:601px) and (max-width:849px) {
  body.merchfable #main .woocommerce-cart-form td.product-remove {width:48px!important;min-width:48px;padding-right:4px}
  body.merchfable #main .woocommerce-cart-form .product-remove a.remove {width:44px!important;height:44px!important;border-radius:8px}
}
@media(max-width:849px) {
  #main .cart-container {padding-inline:18px}
  body.merchfable #main :is(.cart-sidebar,.col-inner:has(>.checkout-sidebar)) {
    border:0!important;border-top:1px solid var(--edge)!important;
    padding:20px 0 0!important;border-radius:0!important;margin-top:14px
  }
  #main .cart-container .actions {white-space:normal}
}
@media(max-width:600px) {
  body.merchfable :is(.mf-theme-navline nav,.mf-theme-navline .mf-theme-menu) {display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:6px;width:100%;margin:0}
  body.merchfable .mf-theme-navline nav a {display:inline-flex;align-items:center;min-height:42px;font-size:clamp(12px,3.45vw,14px);white-space:nowrap;margin:0;padding-inline:0}
  #main .cart-container {padding-inline:16px}
  #main .checkout-breadcrumbs {padding:4px 0;font-size:23px}
  #main .woocommerce-cart-form__contents,#main .woocommerce-cart-form__contents>tbody {display:block;width:100%}
  #main .woocommerce-cart-form__contents>thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  #main .woocommerce-cart-form__contents tr.cart_item {
    display:grid;grid-template-columns:56px minmax(0,1fr) max-content;
    grid-template-areas:"photo name name" "remove quantity total";
    gap:12px;align-items:start;border-bottom:1px solid var(--edge);padding:16px 0
  }
  #main .woocommerce-cart-form__contents tr.cart_item>td {display:block!important;position:static!important;border:0;width:auto!important;min-width:0;max-width:none;padding:0;text-align:left}
  #main .cart_item .product-thumbnail {grid-area:photo}
  #main .cart_item .product-thumbnail :is(a,img) {display:block;width:56px;height:56px}
  #main .cart_item .product-name {grid-area:name}
  #main .cart_item .product-remove {grid-area:remove;align-self:center}
  body.merchfable #main .woocommerce-cart-form .product-remove a.remove {
    position:static!important;inset:auto!important;transform:none!important;
    display:inline-flex!important;align-items:center;justify-content:center;
    width:44px!important;height:44px!important;margin:0!important;border:1px solid #454a50!important;
    border-radius:8px;color:#d6d9df!important;background:transparent!important;font-size:21px!important;line-height:1!important
  }
  #main .cart_item .product-quantity {grid-area:quantity;align-self:center}
  #main .cart_item .product-subtotal {grid-area:total;align-self:center;justify-self:end}
  #main .woocommerce-cart-form__contents tr.cart_item>.product-price {display:none!important}
  #main .cart_item .mobile-product-price {color:var(--muted);font-size:13px}
  body.merchfable #main .cart-container .quantity {display:inline-grid!important;grid-template-columns:repeat(3,minmax(0,1fr));width:min(100%,126px);height:44px}
  body.merchfable #main .cart-container .quantity :is(input,button) {width:100%!important;max-width:none!important;min-width:0!important;height:44px!important;min-height:44px!important;line-height:1!important;border-color:#545a63!important;background:#090a0b!important}
  #main .woocommerce-cart-form__contents tr:has(>td.actions) {display:block;width:100%}
  body.merchfable #main .woocommerce-cart-form__contents td.actions {display:grid;width:100%;grid-template-columns:minmax(0,1fr);gap:8px;padding:16px 0;margin:0}
  #main .woocommerce-cart-form__contents td.actions::after {display:none}
  body.merchfable #main .actions :is(.continue-shopping,.button) {float:none!important;width:100%;max-width:none;margin:0!important}
  body.merchfable #main .actions .button,.merchfable #main .ux-cart-coupon :is(input[type=submit],button[type=submit]) {display:flex;align-items:center;justify-content:center;min-height:44px;background:transparent!important;color:#e0e2e5!important;text-align:center;border:1px solid #535861!important}
  #main .cart-container #coupon_code {margin-bottom:8px}
  #main .checkout-sidebar td.product-total {width:1%;white-space:nowrap;padding-left:6px}
  #main .checkout-sidebar .product-name {width:auto;font-size:14px}
  #main .mf-order-thumb {width:36px;height:36px;margin-right:8px}
  body.merchfable #main .checkout-sidebar .mf-order-toggle {margin:0;min-height:44px}
  body.merchfable #main #order_review .shop_table {border:0!important;margin-inline:0!important}
}
