/* ==========================================================================
   Trendy Box Product UI  v2.3.0  —  Cart + Checkout + Order received
   Loaded only on those pages. Same luxury language as the product page.
   Works with classic WooCommerce (shortcodes, Flatsome, etc.) and the Blocks.
   ========================================================================== */

body.tb-shop-page {
  --tb-ink: #111111;
  --tb-text: #3b3835;
  --tb-muted: #6f6b67;
  --tb-soft: #9a948e;
  --tb-line: #e8e5e1;
  --tb-line-strong: #cfc8c0;
  --tb-bg: #f7f5f2;
  --tb-red: #b3121c;
  --tb-star: #b8935a;
  --tb-serif: Georgia, 'Times New Roman', serif;
  --tb-label: 11px;
  --tb-btn-h: 56px;
}
[dir="rtl"] body.tb-shop-page, body.tb-shop-page[dir="rtl"], .rtl.tb-shop-page { --tb-serif: inherit; }

/* Safety: consistent sizing inside the shop pages */
.tb-shop-page .woocommerce, .tb-shop-page .woocommerce *, .tb-shop-page .woocommerce *::before, .tb-shop-page .woocommerce *::after,
.tb-shop-page form.checkout, .tb-shop-page form.checkout * { box-sizing: border-box; }

/* ---------- Headings ---------- */
.tb-shop-page .cart_totals > h2, .tb-shop-page .cross-sells > h2,
.tb-shop-page .woocommerce-billing-fields > h3, .tb-shop-page .woocommerce-shipping-fields > h3,
.tb-shop-page .woocommerce-additional-fields > h3, .tb-shop-page #order_review_heading,
.tb-shop-page .woocommerce-order-details__title, .tb-shop-page .woocommerce-column__title,
.tb-shop-page #ship-to-different-address {
  font-family: var(--tb-serif); font-size: 26px; font-weight: 400; line-height: 1.2; letter-spacing: 0; text-transform: none; color: var(--tb-ink); margin: 0 0 22px;
}
.rtl.tb-shop-page .cart_totals > h2, .rtl.tb-shop-page #order_review_heading, .rtl.tb-shop-page .woocommerce-billing-fields > h3 { font-weight: 600; }
.tb-shop-page #ship-to-different-address label { font: inherit; text-transform: none; letter-spacing: 0; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; margin: 0; }

/* ==========================================================================
   Notices
   ========================================================================== */
.tb-shop-page .woocommerce-message, .tb-shop-page .woocommerce-info, .tb-shop-page .woocommerce-error,
.tb-shop-page .woocommerce-notice, .tb-shop-page .wc-block-components-notice-banner {
  position: relative; margin: 0 0 24px; padding: 16px 20px; border: 0; border-inline-start: 2px solid var(--tb-ink); border-radius: 0;
  background: var(--tb-bg); color: var(--tb-text); font-size: 13px; line-height: 1.7; list-style: none; box-shadow: none;
}
.tb-shop-page .woocommerce-error { border-inline-start-color: var(--tb-red); }
.tb-shop-page .woocommerce-message::before, .tb-shop-page .woocommerce-info::before, .tb-shop-page .woocommerce-error::before { display: none; }
.tb-shop-page .woocommerce-message .button, .tb-shop-page .woocommerce-info .button { float: none; display: inline-block; margin-inline-end: 16px; }
.tb-shop-page .woocommerce-info a.showcoupon, .tb-shop-page .woocommerce-info a.showlogin { color: var(--tb-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.tb-shop-page .woocommerce-error li { margin: 0; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.tb-shop-page .woocommerce-cart-form .button, .tb-shop-page .cart_totals .button, .tb-shop-page form.checkout .button,
.tb-shop-page #place_order, .tb-shop-page .checkout-button, .tb-shop-page .return-to-shop .button, .tb-shop-page .checkout_coupon .button,
.tb-shop-page .woocommerce-form-login .button, .tb-shop-page .woocommerce-order .button, .tb-shop-page .woocommerce-message .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; margin: 0; padding: 13px 28px;
  border: 1px solid var(--tb-ink) !important; border-radius: 0 !important; background: transparent !important; color: var(--tb-ink) !important;
  font-size: var(--tb-label); font-weight: 600; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; box-shadow: none !important; text-shadow: none; transition: background-color .25s, color .25s, opacity .25s;
}
.tb-shop-page .woocommerce-cart-form .button:hover, .tb-shop-page .cart_totals .button:hover, .tb-shop-page form.checkout .button:hover,
.tb-shop-page .return-to-shop .button:hover, .tb-shop-page .checkout_coupon .button:hover, .tb-shop-page .woocommerce-order .button:hover { background: var(--tb-ink) !important; color: #fff !important; }
.tb-shop-page .woocommerce-cart-form .button[disabled], .tb-shop-page .woocommerce-cart-form .button:disabled, .tb-shop-page .woocommerce-cart-form .button[aria-disabled="true"] { opacity: .35; cursor: not-allowed; pointer-events: none; }

/* Primary actions: solid black, full width */
.tb-shop-page .checkout-button, .tb-shop-page #place_order, .tb-shop-page .return-to-shop .button {
  background: var(--tb-ink) !important; color: #fff !important; min-height: var(--tb-btn-h); width: 100%; padding-inline: 20px;
}
.tb-shop-page .return-to-shop .button { width: auto; }
/* higher specificity so the solid style wins over the outline buttons above */
.tb-shop-page .cart_totals .checkout-button, .tb-shop-page .cart_totals a.checkout-button, .tb-shop-page form.checkout #place_order, .tb-shop-page .return-to-shop a.button {
  background: var(--tb-ink) !important; color: #fff !important; border-color: var(--tb-ink) !important;
}
.tb-shop-page .cart_totals .checkout-button:hover, .tb-shop-page form.checkout #place_order:hover, .tb-shop-page .return-to-shop a.button:hover { background: #000 !important; color: #fff !important; opacity: .86; }
.tb-shop-page #place_order { float: none; margin-top: 8px; }

.tb-secure-note { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0 0 !important; font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--tb-muted); }
.tb-secure-note .tb-icon { width: 15px; height: 15px; }
.tb-secure-note i { width: 3px; height: 3px; border-radius: 50%; background: var(--tb-soft); }

/* ==========================================================================
   Form fields
   ========================================================================== */
.tb-shop-page form .form-row { margin: 0 0 18px; padding: 0; }
.tb-shop-page form .form-row label, .tb-shop-page .woocommerce-form-login label, .tb-shop-page .coupon label {
  display: block; margin: 0 0 8px; font-size: 10px; font-weight: 600; line-height: 1.4; letter-spacing: .16em; text-transform: uppercase; color: var(--tb-ink);
}
.tb-shop-page form .form-row label.checkbox, .tb-shop-page form .form-row label.woocommerce-form__label-for-checkbox { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 400; display: flex; align-items: flex-start; gap: 12px; color: var(--tb-text); }
.tb-shop-page abbr.required, .tb-shop-page .required { color: var(--tb-red); text-decoration: none; border: 0; font-weight: 600; }
.tb-shop-page .optional { text-transform: none; letter-spacing: .02em; font-weight: 400; color: var(--tb-soft); }

.tb-shop-page form .form-row input.input-text, .tb-shop-page form .form-row textarea, .tb-shop-page form .form-row select,
.tb-shop-page .woocommerce-form-login input.input-text, .tb-shop-page .coupon input.input-text, .tb-shop-page input#coupon_code,
.tb-shop-page .woocommerce-input-wrapper input, .tb-shop-page .woocommerce-input-wrapper select, .tb-shop-page .woocommerce-input-wrapper textarea {
  width: 100%; min-height: 50px; margin: 0; padding: 12px 16px; border: 1px solid var(--tb-line-strong) !important; border-radius: 0 !important;
  background-color: #fff !important; box-shadow: none !important; font-size: 15px; color: var(--tb-ink); transition: border-color .2s;
}
.tb-shop-page form .form-row textarea { min-height: 120px; }
.tb-shop-page form .form-row input.input-text:focus, .tb-shop-page form .form-row textarea:focus, .tb-shop-page form .form-row select:focus,
.tb-shop-page input#coupon_code:focus, .tb-shop-page .woocommerce-form-login input.input-text:focus { outline: 0; border-color: var(--tb-ink) !important; }
.tb-shop-page form .form-row ::placeholder { color: var(--tb-soft); }
.tb-shop-page form .form-row.woocommerce-invalid input.input-text, .tb-shop-page form .form-row.woocommerce-invalid select { border-color: var(--tb-red) !important; }
.tb-shop-page form .form-row.woocommerce-validated input.input-text { border-color: var(--tb-line-strong) !important; }
.tb-shop-page form .form-row select { -webkit-appearance: none; appearance: none; padding-inline-end: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.rtl.tb-shop-page form .form-row select { background-position: left 14px center; }

/* select2 (country / state) */
.tb-shop-page .select2-container--default .select2-selection--single { height: 50px; border: 1px solid var(--tb-line-strong); border-radius: 0; background: #fff; display: flex; align-items: center; }
.tb-shop-page .select2-container--default .select2-selection--single .select2-selection__rendered { padding-inline: 16px 40px; line-height: 48px; font-size: 15px; color: var(--tb-ink); width: 100%; }
.tb-shop-page .select2-container--default .select2-selection--single .select2-selection__arrow { height: 48px; inset-inline-end: 8px; }
.tb-shop-page .select2-container--default.select2-container--open .select2-selection--single, .tb-shop-page .select2-container--default.select2-container--focus .select2-selection--single { border-color: var(--tb-ink); }
.select2-dropdown { border: 1px solid var(--tb-ink) !important; border-radius: 0 !important; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: var(--tb-ink) !important; }
.select2-container--default .select2-search--dropdown .select2-search__field { border: 1px solid #cfc8c0; border-radius: 0; }

/* Custom checkboxes + radios (square / round hairline) */
.tb-shop-page form.checkout input[type="checkbox"], .tb-shop-page .woocommerce-form-login input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; border: 1px solid var(--tb-line-strong); border-radius: 0; background: #fff; cursor: pointer; vertical-align: middle;
}
.tb-shop-page form.checkout input[type="checkbox"]:checked, .tb-shop-page .woocommerce-form-login input[type="checkbox"]:checked { background: var(--tb-ink); border-color: var(--tb-ink); }
.tb-shop-page form.checkout input[type="checkbox"]:checked::after, .tb-shop-page .woocommerce-form-login input[type="checkbox"]:checked::after { content: ""; position: absolute; inset-inline-start: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.tb-shop-page .woocommerce-shipping-methods input[type="radio"], .tb-shop-page .wc_payment_methods input[type="radio"] {
  -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 18px; height: 18px; margin: 0; margin-inline-end: 12px; border: 1px solid var(--tb-line-strong); border-radius: 50%; background: #fff; cursor: pointer; vertical-align: middle;
}
.tb-shop-page .woocommerce-shipping-methods input[type="radio"]:checked, .tb-shop-page .wc_payment_methods input[type="radio"]:checked { border-color: var(--tb-ink); }
.tb-shop-page .woocommerce-shipping-methods input[type="radio"]:checked::after, .tb-shop-page .wc_payment_methods input[type="radio"]:checked::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--tb-ink); }

/* ==========================================================================
   Cart
   ========================================================================== */
/* Layout for plain WooCommerce markup (Flatsome etc. keep their own columns) */
.tb-shop-page.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) { display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: 56px; align-items: start; }
.tb-shop-page.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) > * { grid-column: 1 / -1; }
.tb-shop-page.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) > .woocommerce-cart-form { grid-column: 1; grid-row: 2; }
.tb-shop-page.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) > .cart-collaterals { grid-column: 2; grid-row: 2; position: sticky; top: 24px; }
.tb-shop-page .cart-collaterals .cart_totals, .tb-shop-page .cart-collaterals .cross-sells { float: none !important; width: 100% !important; }

.tb-shop-page table.shop_table { width: 100%; margin: 0 0 24px; border: 0 !important; border-radius: 0 !important; border-collapse: collapse; background: transparent; }
.tb-shop-page table.shop_table thead th { padding: 0 12px 16px; border: 0; border-bottom: 1px solid var(--tb-ink); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tb-ink); text-align: start; background: transparent; }
.tb-shop-page table.shop_table td { padding: 26px 12px; border: 0; border-bottom: 1px solid var(--tb-line); vertical-align: middle; background: transparent; color: var(--tb-text); font-size: 14px; }
.tb-shop-page table.shop_table th:first-child, .tb-shop-page table.shop_table td:first-child { padding-inline-start: 0; }
.tb-shop-page table.shop_table th:last-child, .tb-shop-page table.shop_table td:last-child { padding-inline-end: 0; }
.tb-shop-page table.cart td.product-subtotal, .tb-shop-page table.cart th.product-subtotal { text-align: end; }

.tb-shop-page table.cart td.product-remove { width: 28px; padding-inline-end: 0; }
.tb-shop-page table.cart a.remove { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 0; background: transparent !important; color: var(--tb-soft) !important; font-size: 22px; font-weight: 300; line-height: 1; text-decoration: none; transition: color .2s; }
.tb-shop-page table.cart a.remove:hover { color: var(--tb-ink) !important; background: transparent !important; }
.tb-shop-page table.cart td.product-thumbnail { width: 112px; }
.tb-shop-page table.cart td.product-thumbnail img { display: block; width: 92px; max-width: none; height: auto; aspect-ratio: 1 / 1.15; object-fit: cover; background: linear-gradient(145deg, #f3f0ec, #e4ddd5); border-radius: 0; }
.tb-shop-page table.cart td.product-name a { font-family: var(--tb-serif); font-size: 17px; line-height: 1.35; color: var(--tb-ink); text-decoration: none; font-weight: 400; }
.rtl.tb-shop-page table.cart td.product-name a { font-weight: 600; }
.tb-shop-page table.cart td.product-name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tb-shop-page table.cart td.product-name dl.variation, .tb-shop-page .woocommerce-checkout-review-order-table dl.variation { margin: 8px 0 0; font-size: 12px; color: var(--tb-muted); }
.tb-shop-page dl.variation dt, .tb-shop-page dl.variation dd { display: inline; margin: 0; padding: 0; font-weight: 400; }
.tb-shop-page dl.variation dd p { display: inline; margin: 0; }
.tb-shop-page dl.variation dt { color: var(--tb-soft); }
.tb-shop-page table.cart td.product-price, .tb-shop-page table.cart td.product-subtotal { font-size: 14px; letter-spacing: .02em; }
.tb-shop-page table.cart td.product-subtotal { font-weight: 600; color: var(--tb-ink); }
.tb-shop-page .woocommerce-Price-amount { white-space: nowrap; }
.tb-shop-page del { color: var(--tb-soft); }
.tb-shop-page ins { text-decoration: none; }

/* Quantity stepper (same as product page; built by JS) */
.tb-shop-page .quantity { display: inline-flex !important; align-items: center; height: 46px; margin: 0 !important; padding: 0 !important; border: 1px solid var(--tb-line-strong); border-radius: 0; background: #fff; overflow: hidden; width: auto; }
.tb-shop-page .quantity:focus-within { border-color: var(--tb-ink); }
.tb-shop-page .quantity .minus, .tb-shop-page .quantity .plus { display: none !important; }
.tb-shop-page .quantity label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tb-shop-page .quantity .qty { width: 42px !important; min-width: 0; max-width: 42px; height: 100% !important; min-height: 0; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; text-align: center; font-size: 14px; font-weight: 500; color: var(--tb-ink); -moz-appearance: textfield; appearance: textfield; }
.tb-shop-page .quantity .qty::-webkit-outer-spin-button, .tb-shop-page .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tb-shop-page .quantity .tb-qty-btn { flex: none; display: flex; align-items: center; justify-content: center; width: 38px; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--tb-ink); box-shadow: none; cursor: pointer; transition: background .2s; }
.tb-shop-page .quantity .tb-qty-btn:hover { background: var(--tb-bg); }
.tb-shop-page .quantity .tb-qty-btn.is-disabled { opacity: .25; pointer-events: none; }
.tb-qty-btn .tb-icon { width: 14px; height: 14px; stroke-width: 1.5; }

/* Actions row: coupon + update */
.tb-shop-page table.cart td.actions { padding: 28px 0 0; border-bottom: 0; }
.tb-shop-page table.cart td.actions .coupon { float: left; display: flex; align-items: stretch; gap: 10px; }
.rtl.tb-shop-page table.cart td.actions .coupon { float: right; }
.tb-shop-page table.cart td.actions .coupon label { display: none; }
.tb-shop-page table.cart td.actions input#coupon_code { width: 230px; min-height: 50px; }
.tb-shop-page table.cart td.actions > .button { float: right; }
.rtl.tb-shop-page table.cart td.actions > .button { float: left; }

/* Totals */
.tb-shop-page .cart_totals { padding: 36px; background: var(--tb-bg); }
.tb-shop-page .cart_totals table.shop_table { margin: 0; }
.tb-shop-page .cart_totals table.shop_table th, .tb-shop-page .woocommerce-checkout-review-order-table tfoot th {
  padding: 16px 0; border: 0; border-bottom: 1px solid var(--tb-line-strong); font-size: var(--tb-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tb-ink); text-align: start; vertical-align: top; background: transparent;
}
.tb-shop-page .cart_totals table.shop_table td, .tb-shop-page .woocommerce-checkout-review-order-table tfoot td { padding: 16px 0; border: 0; border-bottom: 1px solid var(--tb-line-strong); text-align: end; font-size: 14px; background: transparent; }
.tb-shop-page .order-total th, .tb-shop-page .order-total td { border-bottom: 0 !important; padding-top: 22px !important; }
.tb-shop-page .order-total td, .tb-shop-page .order-total td .woocommerce-Price-amount { font-family: var(--tb-serif); font-size: 24px; font-weight: 400; color: var(--tb-ink); }
.tb-shop-page .cart_totals .order-total td, .tb-shop-page .woocommerce-checkout-review-order-table tfoot .order-total td, .tb-shop-page .order-total td strong, .tb-shop-page .order-total td .amount { font-family: var(--tb-serif); font-size: 24px; font-weight: 400; color: var(--tb-ink); }
.tb-shop-page .order-total td small, .tb-shop-page .order-total .includes_tax { display: block; font-family: inherit; font-size: 11px; color: var(--tb-muted); letter-spacing: 0; margin-top: 4px; }
.tb-shop-page ul#shipping_method { list-style: none; margin: 0; padding: 0; text-align: start; }
.tb-shop-page ul#shipping_method li { display: flex; align-items: center; margin: 0 0 10px; padding: 0; font-size: 13px; }
.tb-shop-page ul#shipping_method li label { display: inline; margin: 0; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13px; }
.tb-shop-page .woocommerce-shipping-destination, .tb-shop-page .shipping-calculator-button { font-size: 12px; color: var(--tb-muted); }
.tb-shop-page .shipping-calculator-button { color: var(--tb-ink); text-decoration: underline; text-underline-offset: 4px; }
.tb-shop-page .wc-proceed-to-checkout { padding: 0; margin: 26px 0 0; }

.tb-shop-page .cross-sells { margin-top: 40px; }
.tb-shop-page .cart-empty { margin: 0 0 22px; padding: 56px 20px 8px; text-align: center; font-family: var(--tb-serif); font-size: 28px; font-weight: 400; color: var(--tb-ink); background: transparent; border: 0; }
.tb-shop-page .cart-empty::before { display: none; }
.tb-shop-page .return-to-shop { text-align: center; padding-bottom: 56px; }

/* ==========================================================================
   Checkout
   ========================================================================== */
.tb-shop-page.woocommerce-checkout form.checkout:has(> #customer_details) { display: grid; grid-template-columns: minmax(0, 1fr) 440px; column-gap: 64px; align-items: start; }
.tb-shop-page.woocommerce-checkout form.checkout:has(> #customer_details) > .woocommerce-NoticeGroup { grid-column: 1 / -1; grid-row: 1; }
.tb-shop-page.woocommerce-checkout form.checkout:has(> #customer_details) > #customer_details { grid-column: 1; grid-row: 2 / span 2; float: none !important; width: 100% !important; }
.tb-shop-page.woocommerce-checkout form.checkout:has(> #customer_details) > #order_review_heading { grid-column: 2; grid-row: 2; float: none !important; width: 100% !important; margin-bottom: 20px; }
.tb-shop-page.woocommerce-checkout form.checkout:has(> #customer_details) > #order_review { grid-column: 2; grid-row: 3; float: none !important; width: 100% !important; }
.tb-shop-page #customer_details .col-1, .tb-shop-page #customer_details .col-2 { float: none !important; width: 100% !important; max-width: 100% !important; padding: 0; }
.tb-shop-page #customer_details .col-2 { margin-top: 18px; }
.tb-shop-page .woocommerce-billing-fields__field-wrapper, .tb-shop-page .woocommerce-shipping-fields__field-wrapper { display: flex; flex-wrap: wrap; gap: 0 16px; }
.tb-shop-page .woocommerce-billing-fields__field-wrapper .form-row, .tb-shop-page .woocommerce-shipping-fields__field-wrapper .form-row { flex: 1 1 100%; float: none; width: 100%; }
.tb-shop-page .woocommerce-billing-fields__field-wrapper .form-row-first, .tb-shop-page .woocommerce-billing-fields__field-wrapper .form-row-last,
.tb-shop-page .woocommerce-shipping-fields__field-wrapper .form-row-first, .tb-shop-page .woocommerce-shipping-fields__field-wrapper .form-row-last { flex: 1 1 calc(50% - 8px); width: calc(50% - 8px); }
.tb-shop-page .woocommerce-additional-fields { margin-top: 34px; }

/* Order summary card */
.tb-shop-page #order_review, .tb-shop-page .checkout-sidebar .col-inner, .tb-shop-page .woocommerce-checkout .col-inner.has-border { background: var(--tb-bg); }
.tb-shop-page #order_review { padding: 34px; }
.tb-shop-page .woocommerce-checkout .col-inner.has-border { border: 1px solid var(--tb-line) !important; border-radius: 0 !important; }
.tb-shop-page .checkout-sidebar #order_review, .tb-shop-page .col-inner #order_review { padding: 0; background: transparent; }
.tb-shop-page .woocommerce-checkout-review-order-table { margin: 0 0 22px; }
.tb-shop-page .woocommerce-checkout-review-order-table thead th { font-size: 10px; padding: 0 0 14px; }
.tb-shop-page .woocommerce-checkout-review-order-table tbody td { padding: 18px 0; border-bottom: 1px solid var(--tb-line-strong); font-size: 14px; }
.tb-shop-page .woocommerce-checkout-review-order-table tbody .product-name { font-family: var(--tb-serif); font-size: 15px; line-height: 1.45; color: var(--tb-ink); }
.tb-shop-page .woocommerce-checkout-review-order-table tbody .product-name .product-quantity { font-family: sans-serif; font-weight: 400; color: var(--tb-muted); font-size: 12px; margin-inline-start: 6px; }
.tb-shop-page .woocommerce-checkout-review-order-table .product-total { text-align: end; white-space: nowrap; font-weight: 500; }
.tb-shop-page .woocommerce-checkout-review-order-table th:last-child, .tb-shop-page .woocommerce-checkout-review-order-table td:last-child { padding-inline-end: 0; }
.tb-shop-page .woocommerce-checkout-review-order-table th:first-child { padding-inline-start: 0; }

/* Payment */
.tb-shop-page #payment { background: transparent; border-radius: 0; }
.tb-shop-page #payment ul.payment_methods { margin: 0; padding: 0; border: 0; border-top: 1px solid var(--tb-line-strong); list-style: none; }
.tb-shop-page #payment ul.payment_methods li { margin: 0; padding: 0; border-bottom: 1px solid var(--tb-line-strong); list-style: none; }
.tb-shop-page #payment ul.payment_methods li > label { display: inline-flex; align-items: center; margin: 0; padding: 18px 0; font-size: var(--tb-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; width: calc(100% - 40px); }
.tb-shop-page #payment ul.payment_methods li img { max-height: 22px; width: auto; margin-inline-start: 10px; vertical-align: middle; }
.tb-shop-page #payment div.payment_box { margin: 0 0 18px; padding: 16px 18px; background: #fff; border-radius: 0; color: var(--tb-muted); font-size: 13px; line-height: 1.8; }
.tb-shop-page #payment div.payment_box::before { display: none; }
.tb-shop-page #payment div.payment_box p { margin: 0; }
.tb-shop-page #payment div.form-row { padding: 22px 0 0; }
.tb-shop-page .woocommerce-privacy-policy-text, .tb-shop-page .woocommerce-terms-and-conditions-wrapper { font-size: 12px; line-height: 1.8; color: var(--tb-muted); }
.tb-shop-page .woocommerce-privacy-policy-text a, .tb-shop-page .woocommerce-terms-and-conditions-wrapper a { color: var(--tb-ink); text-decoration: underline; text-underline-offset: 3px; }
.tb-shop-page .woocommerce-terms-and-conditions-wrapper { margin-bottom: 14px; }

/* Login + coupon toggles above the form */
.tb-shop-page .woocommerce-form-login, .tb-shop-page .checkout_coupon, .tb-shop-page form.woocommerce-form-coupon { padding: 26px; margin: 0 0 28px; border: 1px solid var(--tb-line); border-radius: 0; background: #fff; }
.tb-shop-page .checkout_coupon .form-row { margin-bottom: 0; }

/* Flatsome: checkout breadcrumb steps */
.tb-shop-page .checkout-breadcrumbs { margin-bottom: 8px; }
.tb-shop-page .checkout-breadcrumbs a { font-size: var(--tb-label); font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--tb-soft); }
.tb-shop-page .checkout-breadcrumbs a.current { color: var(--tb-ink); font-weight: 600; }

/* ==========================================================================
   Order received
   ========================================================================== */
.tb-shop-page .woocommerce-thankyou-order-received { margin: 0 0 28px; padding: 0; border: 0; background: transparent; font-family: var(--tb-serif); font-size: 30px; line-height: 1.25; color: var(--tb-ink); }
.tb-shop-page ul.order_details { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0 0 40px; padding: 0; border-top: 1px solid var(--tb-line); border-bottom: 1px solid var(--tb-line); list-style: none; }
.tb-shop-page ul.order_details li { float: none; margin: 0; padding: 22px 18px; border: 0; border-inline-end: 1px solid var(--tb-line); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tb-muted); }
.tb-shop-page ul.order_details li:last-child { border-inline-end: 0; }
.tb-shop-page ul.order_details li strong { display: block; margin-top: 8px; font-size: 15px; font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--tb-ink); }
.tb-shop-page .woocommerce-table--order-details tfoot th { text-align: start; }
.tb-shop-page .woocommerce-customer-details address { padding: 24px; border: 1px solid var(--tb-line); border-radius: 0; font-style: normal; line-height: 1.9; color: var(--tb-text); }

/* ==========================================================================
   WooCommerce Blocks (block-based Cart / Checkout)
   ========================================================================== */
.tb-shop-page .wc-block-components-button:not(.is-link) {
  min-height: 54px; border: 1px solid var(--tb-ink); border-radius: 0; background: var(--tb-ink); color: #fff; font-size: var(--tb-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; box-shadow: none; transition: opacity .25s;
}
.tb-shop-page .wc-block-components-button:not(.is-link):hover { opacity: .86; background: var(--tb-ink); color: #fff; }
.tb-shop-page .wc-block-components-button.outlined { background: transparent; color: var(--tb-ink); }
.tb-shop-page .wc-block-components-text-input input[type], .tb-shop-page .wc-block-components-textarea, .tb-shop-page .wc-block-components-combobox .components-combobox-control input, .tb-shop-page .wc-blocks-components-select .wc-blocks-components-select__select {
  border: 1px solid var(--tb-line-strong); border-radius: 0; box-shadow: none; background: #fff; font-size: 15px;
}
.tb-shop-page .wc-block-components-text-input input:focus, .tb-shop-page .wc-block-components-textarea:focus { border-color: var(--tb-ink); box-shadow: none; outline: 0; }
.tb-shop-page .wc-block-components-checkout-step__title, .tb-shop-page .wc-block-cart__totals-title, .tb-shop-page .wc-block-components-title { font-family: var(--tb-serif); font-size: 24px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--tb-ink); }
.tb-shop-page .wc-block-cart-items th, .tb-shop-page .wc-block-cart__totals-title { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-family: inherit; }
.tb-shop-page .wc-block-cart-items td { border-color: var(--tb-line); }
.tb-shop-page .wc-block-cart-item__image img { border-radius: 0; background: linear-gradient(145deg, #f3f0ec, #e4ddd5); }
.tb-shop-page .wc-block-components-product-name { font-family: var(--tb-serif); font-size: 17px; font-weight: 400; color: var(--tb-ink); text-decoration: none; }
.tb-shop-page .wc-block-components-quantity-selector { border: 1px solid var(--tb-line-strong); border-radius: 0; background: #fff; box-shadow: none; }
.tb-shop-page .wc-block-components-quantity-selector::after { display: none; }
.tb-shop-page .wc-block-components-sidebar .wc-block-components-totals-wrapper, .tb-shop-page .wc-block-components-order-summary { border-color: var(--tb-line-strong); }
.tb-shop-page .wc-block-components-sidebar { padding: 30px; background: var(--tb-bg); }
.tb-shop-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value, .tb-shop-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-family: var(--tb-serif); font-size: 22px; font-weight: 400; }
.tb-shop-page .wc-block-components-radio-control__option, .tb-shop-page .wc-block-components-radio-control-accordion-option { border-radius: 0; }
.tb-shop-page .wc-block-components-radio-control__input:checked::before { background: var(--tb-ink); }
.tb-shop-page .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option-checked { box-shadow: inset 0 0 0 1px var(--tb-ink); border-radius: 0; }
.tb-shop-page .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--tb-ink); border-color: var(--tb-ink); border-radius: 0; }
.tb-shop-page .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] { border-radius: 0; }

/* ==========================================================================
   Tablet / phones
   ========================================================================== */
@media (max-width: 1024px) {
  .tb-shop-page.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .tb-shop-page.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) > .woocommerce-cart-form, .tb-shop-page.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form) > .cart-collaterals { grid-column: 1; grid-row: auto; position: static; }
  .tb-shop-page.woocommerce-checkout form.checkout:has(> #customer_details) { grid-template-columns: minmax(0, 1fr); }
  .tb-shop-page.woocommerce-checkout form.checkout:has(> #customer_details) > #customer_details, .tb-shop-page.woocommerce-checkout form.checkout:has(> #customer_details) > #order_review_heading,
  .tb-shop-page.woocommerce-checkout form.checkout:has(> #customer_details) > #order_review { grid-column: 1; grid-row: auto; }
  .tb-shop-page.woocommerce-checkout form.checkout:has(> #customer_details) > #order_review_heading { margin-top: 38px; }
}

@media (max-width: 767px) {
  .tb-shop-page .cart_totals > h2, .tb-shop-page .woocommerce-billing-fields > h3, .tb-shop-page #order_review_heading { font-size: 23px; }
  .tb-shop-page .cart_totals { padding: 26px 20px; }
  .tb-shop-page #order_review { padding: 26px 20px; }
  .tb-shop-page .woocommerce-billing-fields__field-wrapper .form-row-first, .tb-shop-page .woocommerce-billing-fields__field-wrapper .form-row-last,
  .tb-shop-page .woocommerce-shipping-fields__field-wrapper .form-row-first, .tb-shop-page .woocommerce-shipping-fields__field-wrapper .form-row-last { flex-basis: 100%; width: 100%; }
  .tb-shop-page form .form-row input.input-text, .tb-shop-page form .form-row select, .tb-shop-page form .form-row textarea { font-size: 16px; }

  /* Cart rows become compact cards */
  .tb-shop-page table.cart thead { display: none; }
  .tb-shop-page table.cart, .tb-shop-page table.cart tbody { display: block; width: 100%; }
  .tb-shop-page table.cart tr.cart_item, .tb-shop-page table.cart tr.woocommerce-cart-form__cart-item { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); column-gap: 18px; row-gap: 8px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--tb-line); }
  .tb-shop-page table.cart tr.cart_item td { display: block; padding: 0; border: 0; width: auto; text-align: start !important; }
  .tb-shop-page table.cart tr.cart_item td::before { display: none !important; }
  .tb-shop-page table.cart tr.cart_item td.product-thumbnail { grid-column: 1; grid-row: 1 / span 4; width: 92px; }
  .tb-shop-page table.cart tr.cart_item td.product-thumbnail img { width: 92px; }
  .tb-shop-page table.cart tr.cart_item td.product-name { grid-column: 2; padding-inline-end: 30px; }
  .tb-shop-page table.cart tr.cart_item td.product-price { grid-column: 2; font-size: 13px; color: var(--tb-muted); }
  .tb-shop-page table.cart tr.cart_item td.product-quantity { grid-column: 2; }
  .tb-shop-page table.cart tr.cart_item td.product-subtotal { grid-column: 2; font-size: 14px; }
  .tb-shop-page table.cart tr.cart_item td.product-subtotal::before { display: inline !important; content: attr(data-title) ": "; font-weight: 400; color: var(--tb-muted); }
  .tb-shop-page table.cart tr.cart_item td.product-remove { position: absolute; top: 20px; inset-inline-end: 0; width: auto; }
  .tb-shop-page table.cart tr:not(.cart_item) { display: block; }
  .tb-shop-page table.cart td.actions { display: block; padding: 24px 0 0; }
  .tb-shop-page table.cart td.actions .coupon, .rtl.tb-shop-page table.cart td.actions .coupon { float: none; display: flex; width: 100%; margin-bottom: 14px; }
  .tb-shop-page table.cart td.actions input#coupon_code { flex: 1; width: auto; min-width: 0; }
  .tb-shop-page table.cart td.actions > .button, .rtl.tb-shop-page table.cart td.actions > .button { float: none; width: 100%; }

  .tb-shop-page ul.order_details { grid-template-columns: 1fr 1fr; }
  .tb-shop-page ul.order_details li { border-bottom: 1px solid var(--tb-line); }
  .tb-shop-page .woocommerce-thankyou-order-received { font-size: 24px; }
  .tb-shop-page .woocommerce-form-login, .tb-shop-page .checkout_coupon { padding: 20px 16px; }
}
