/* MerchRiff cart and checkout */
body:is(.woocommerce-cart,.woocommerce-checkout):not(.woocommerce-order-pay):not(.woocommerce-order-received) #main {
  --purchase-ink:#191919;
  --purchase-line:#dededb;
  --purchase-muted:#565650;
  background:white;
  color:var(--purchase-ink);
}
:where(body.woocommerce-cart,body.woocommerce-checkout):not(.woocommerce-order-pay):not(.woocommerce-order-received) #main .checkout-page-title {background:white;border-bottom:1px solid var(--purchase-line)}
:where(body.woocommerce-cart,body.woocommerce-checkout):not(.woocommerce-order-pay):not(.woocommerce-order-received) #main .checkout-page-title>.container {max-width:1200px;min-height:0;padding-block:18px}
:where(body.woocommerce-cart,body.woocommerce-checkout):not(.woocommerce-order-pay):not(.woocommerce-order-received) #main .checkout-breadcrumbs {margin:0;gap:14px;font-size:clamp(15px,1.35vw,19px);text-transform:none;letter-spacing:0;line-height:1.4}
:where(body.woocommerce-cart,body.woocommerce-checkout):not(.woocommerce-order-pay):not(.woocommerce-order-received) #main .checkout-breadcrumbs a {color:#65655f}
:where(body.woocommerce-cart,body.woocommerce-checkout):not(.woocommerce-order-pay):not(.woocommerce-order-received) #main .checkout-breadcrumbs .current {color:#181818;font-weight:700}
:where(body.woocommerce-cart,body.woocommerce-checkout):not(.woocommerce-order-pay):not(.woocommerce-order-received) #main .cart-container {max-width:1200px;padding:clamp(24px,3vw,44px) clamp(16px,2.5vw,34px) clamp(40px,5vw,70px)}
:where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container .col {min-width:0}
:where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container .row-divided>.col {border:0}
:where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container :is(.cart-sidebar,.col-inner:has(>.checkout-sidebar)) {background:#f7f7f5;border:1px solid var(--purchase-line);border-radius:12px;padding:clamp(16px,2vw,28px)}
:where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container :is(.cart-wrapper,.checkout-sidebar){overflow:visible}
:where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container :is(h3,#order_review_heading,.cart_totals>table:first-child thead th){font-size:clamp(21px,2vw,26px);line-height:1.22;color:#191919;letter-spacing:-.025em;text-transform:none;font-weight:680}
:where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container :is(td,th){border-color:var(--purchase-line);font-size:15px;line-height:1.5}
:where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container .shop_table thead th{font-size:12px;letter-spacing:.06em;color:#51514c}
:where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container .amount{color:#181818;font-variant-numeric:tabular-nums;white-space:nowrap}
:where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container .order-total :is(th,.amount){font-size:20px;font-weight:700}
:where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container .order-total :is(th,td){padding-block:14px}
:where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container .product-name{min-width:0;overflow-wrap:anywhere}
body.woocommerce-cart #main .woocommerce-cart-form .product-name>a:first-child {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;color:#202020;font-size:15px;font-weight:600;line-height:1.45}
body.woocommerce-cart #main .woocommerce-cart-form .product-name>a:first-child:focus-visible {-webkit-line-clamp:unset}
body.woocommerce-cart #main .cart_item .product-thumbnail img{width:80px;max-width:100%;border-radius:6px}
body.woocommerce-cart #main .cart_item>td{padding-block:16px}
body.woocommerce-cart #main .cart-container .quantity{display:inline-flex;align-items:center;float:none;vertical-align:middle;margin:0;border:1px solid #989893;border-radius:6px;overflow:hidden;max-width:100%}
body.woocommerce-cart #main .cart-container .quantity :is(.minus,.qty,.plus){box-sizing:border-box;flex:none;min-width:0;width:44px;max-width:none;height:44px;margin:0!important;padding:0!important;line-height:1;text-align:center;font-size:16px;color:#202020;background:#fff;border:0!important;border-radius:0;box-shadow:none}
body.woocommerce-cart #main .cart-container .quantity .qty{border-inline:1px solid #d4d4d0!important;appearance:textfield}
body.woocommerce-cart #main .cart-container .quantity :is(.plus,.minus):hover{background:#ebebe8}
:where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container :is(.button,button[type=submit],input[type=submit]):not(.plus):not(.minus){min-height:44px;margin-inline:0;padding:10px 16px;border-radius:6px;letter-spacing:0;text-transform:none;font-size:15px;font-weight:650;line-height:1.35;box-shadow:none}
body.woocommerce-cart #main .cart-container .actions .button,body.woocommerce-cart #main .cart-container .ux-cart-coupon .button{border:1px solid #b7b7b0!important;color:#222!important;background:#fff!important}
:where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container :is(.checkout-button,#place_order,.return-to-shop .button){display:inline-flex;align-items:center;justify-content:center;min-height:48px;border:1px solid #181818;background:#181818!important;color:#fff!important;font-size:16px;font-weight:700}
:where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container :is(.checkout-button,#place_order){width:100%}
:where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container :is(input.input-text,select,textarea,.select2-selection--single,#coupon_code){min-height:46px;border:1px solid #aaa9a3;border-radius:6px;background:#fff;color:#202020;box-shadow:none;font-size:16px}
:where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container .select2-selection__rendered{line-height:44px;padding-inline-start:12px;color:#222}
:where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container .select2-selection__arrow{height:44px}
:where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container :is(a,button,input,textarea,select,.select2-selection):focus-visible{outline:2px solid #202020;outline-offset:2px}
body.woocommerce-checkout #main .woocommerce-invalid :is(input.input-text,.select2-selection){border-color:#a02929}
body.woocommerce-checkout #main .woocommerce-billing-fields{padding-top:0;border-top:0}
body.woocommerce-checkout #main .cart-container .form-row label{color:#262623;font-size:14px;line-height:1.4;font-weight:600;margin-bottom:6px}
body.woocommerce-checkout #main .cart-container .woocommerce-checkout-review-order-table td.product-total{text-align:right;white-space:nowrap;padding-left:10px}
body.woocommerce-checkout #main .cart-container :is(#order_review,#payment,.place-order){background:transparent;box-shadow:none}
body.woocommerce-checkout #main .cart-container .woocommerce-privacy-policy-link,body.woocommerce-checkout #main .showcoupon{text-decoration:underline;text-underline-offset:3px}
body.woocommerce-checkout #main .checkout_coupon{border:1px solid #d5d5d1;border-radius:8px;background:#fafaf9}
body.woocommerce-cart #main .cart-container .text-center:has(.wc-empty-cart-message){padding:clamp(36px,6vw,76px) 16px;border:1px solid var(--purchase-line);border-radius:12px;background:#fafaf9}
body.woocommerce-cart #main .wc-empty-cart-message .message-container{font-size:clamp(18px,2vw,24px);color:#242424}
body.woocommerce-cart #main .return-to-shop{margin-bottom:0}
@media(min-width:850px) {
  :where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container :is(.woocommerce.row,form.checkout>.row){display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:clamp(22px,3.5vw,52px);width:100%;max-width:none;margin:0}
  :where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container :is(.woocommerce.row,form.checkout>.row)::before,:where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container :is(.woocommerce.row,form.checkout>.row)::after{display:none}
  :where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container :is(.woocommerce.row,form.checkout>.row)>.col{padding:0;width:100%;max-width:none}
}
@media(max-width:849px){
  :where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container :is(.woocommerce.row,form.checkout>.row){width:100%;margin:0}
  :where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container :is(.woocommerce.row,form.checkout>.row)>.col{padding-inline:0}
}
@media(max-width:600px){
  :where(body.woocommerce-cart,body.woocommerce-checkout) #main .checkout-page-title>.container{padding-block:16px}
  :where(body.woocommerce-cart,body.woocommerce-checkout) #main .checkout-breadcrumbs{justify-content:center;padding-left:0;font-size:23px;letter-spacing:-.025em}
  body.woocommerce-cart #main .woocommerce-cart-form__contents,body.woocommerce-cart #main .woocommerce-cart-form__contents>tbody{display:block;width:100%}
  body.woocommerce-cart #main .woocommerce-cart-form__contents>thead{position:absolute;clip-path:inset(50%);height:1px;width:1px;overflow:hidden}
  body.woocommerce-cart #main .woocommerce-cart-form__contents tr.cart_item{display:grid;grid-template-columns:56px minmax(0,1fr) auto;grid-template-areas:"photo name name" "remove qty total";gap:12px 10px;align-items:center;border-bottom:1px solid var(--purchase-line);padding:0 0 16px;margin-bottom:16px}
  body.woocommerce-cart #main .woocommerce-cart-form__contents tr.cart_item>td{display:block!important;position:static!important;border:0;width:auto!important;min-width:0;padding:0;text-align:left}
  body.woocommerce-cart #main .cart_item .product-thumbnail{grid-area:photo;align-self:start}
  body.woocommerce-cart #main .cart_item .product-thumbnail img{width:56px;height:56px;object-fit:contain}
  body.woocommerce-cart #main .cart_item .product-name{grid-area:name}
  body.woocommerce-cart #main .cart_item .product-quantity{grid-area:qty}
  body.woocommerce-cart #main .cart_item .product-subtotal{grid-area:total;justify-self:end}
  body.woocommerce-cart #main .cart_item .product-remove{grid-area:remove}
  body.woocommerce-cart #main .cart_item .product-remove a.remove{position:static!important;inset:auto!important;transform:none!important;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #cecec9;border-radius:6px;color:#40403b!important;font-size:20px;line-height:1;margin:0}
  body.woocommerce-cart #main .woocommerce-cart-form__contents tr.cart_item>td.product-price{display:none!important}
  body.woocommerce-cart #main .woocommerce-cart-form__contents tr:has(>td.actions){display:block}
  body.woocommerce-cart #main .woocommerce-cart-form__contents td.actions{display:grid;grid-template-columns:1fr;gap:8px;padding:16px 0;border:0;width:100%}
  body.woocommerce-cart #main .actions::after{display:none}
  body.woocommerce-cart #main .actions :is(.continue-shopping,.button){float:none!important;width:100%;margin:0!important}
  body.woocommerce-cart #main .actions .button{display:flex;align-items:center;justify-content:center;padding:8px;font-size:14px}
  :where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container .shop_table th,:where(body.woocommerce-cart,body.woocommerce-checkout) #main .cart-container .shop_table td{font-size:14px}
}

/* Order review follows the same disclosure pattern as MerchFable. */
.riff-storefront #main .cart-container .mf-order-toggle {display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:44px;margin:0;padding:0;background:transparent;border:0;color:inherit;text-align:left;font:inherit;text-transform:none;letter-spacing:inherit}
.riff-storefront #main .mf-order-toggle::after {content:"";width:10px;height:10px;border-right:2px solid;border-bottom:2px solid;transform:rotate(45deg);margin-right:5px}
.riff-storefront #main .mf-order-toggle[aria-expanded=true]::after {transform:rotate(225deg)}
.riff-storefront #main .mf-fold-items :is(thead,tbody)[data-mf-items] {display:none}
.riff-storefront #main .mf-order-thumb {float:left;width:42px;height:42px;object-fit:contain;border-radius:6px;margin:2px 10px 5px 0}
.riff-storefront #main .cart-container .cart-sidebar,.riff-storefront #main form.checkout .col-inner:has(>.checkout-sidebar){background:white;border-color:#d5d5d1}
.riff-storefront #main .checkout-breadcrumbs a{font-size:inherit;text-transform:none}
.riff-storefront #main .cart-container form.checkout .form-row{margin-bottom:16px}
.riff-storefront #main .cart-container .woocommerce-billing-fields h3{margin-bottom:22px}
.riff-storefront #main .cart-container .checkout-sidebar#order_review,.riff-storefront #main .cart-container #order_review{border:0;padding:0}
.riff-storefront #main .cart-container :is(.checkout-button,#place_order){width:100%;max-width:none}
.riff-storefront #main .actions button[disabled]{opacity:.52}
@media(max-width:600px) {
  .riff-storefront #main .checkout-page-title .page-title-inner {min-height:0;padding-block:14px}
  .riff-storefront #main .mf-order-thumb{width:36px;height:36px;margin-right:8px}
  .riff-storefront #main .cart-container :is(.cart-sidebar,.col-inner:has(>.checkout-sidebar)){border:0;border-top:1px solid #d5d5d1;border-radius:0;padding:20px 0 0;margin-top:12px}
}
