/* ==========================================================================
   TS Shop · cart / checkout / thank-you (replaces WooCommerce's + Astra's Woo stylesheets on these pages)
   Same layout as the Yomi and Screen Pro stores, in TS Shop's palette:
   navy #001540 · orange #CA6812 · paper #F8FAFF · the theme's own type
   ========================================================================== */

:root {
  --tsg-dark: #001540;
  --tsg-dark-2: #0A2352;
  --tsg-accent: #CA6812;
  --tsg-accent-2: #A5550E;
  --tsg-text: #3A4658;
  --tsg-muted: #6B7A90;
  --tsg-line: #E3E9F0;
  --tsg-line-2: #D3DCE8;
  --tsg-paper: #F8FAFF;
  --tsg-light: #EAF2FF;
  --tsg-white: #FFFFFF;
  --tsg-r-card: 12px;
  --tsg-r-ctl: 8px;
  --tsg-r-btn: 8px;
  --tsg-font-body: inherit;
  --tsg-font-display: inherit;
  --tsg-shadow: 0 24px 48px -36px rgba(0, 21, 64, 0.45);
}

/* ---- base inside the shop pages ------------------------------------------ */
.tsg-shop-page .entry-content { color: var(--tsg-text); font-family: var(--tsg-font-body); font-size: 16px; line-height: 1.55; }
.tsg-shop-page .entry-content h1, .tsg-shop-page .entry-content h2, .tsg-shop-page .entry-content h3, .tsg-shop-page .entry-content p, .tsg-shop-page .entry-content ul { margin: 0; }
.tsg-shop-page .entry-content ul { padding: 0; list-style: none; }
.tsg-shop-page .entry-content a { color: var(--tsg-accent); text-decoration: none; }
.tsg-shop-page .entry-content a:hover { color: var(--tsg-accent-2); }
.tsg-display { font-family: var(--tsg-font-display); font-weight: 700; letter-spacing: 0.01em; color: var(--tsg-dark); line-height: 1.15; }
.tsg-muted { color: var(--tsg-muted); font-size: 15px; }
.tsg-link { font-size: 15px; font-weight: 600; color: var(--tsg-accent); white-space: nowrap; }
.tsg-cta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.tsg-shop-page .entry-content img { max-width: 100%; height: auto; }

/* ---- buttons ---------------------------------------------------------------- */
.tsg-shop-page .tsg-btn, .tsg-shop-page .entry-content a.tsg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: var(--tsg-r-btn); font-family: var(--tsg-font-body); font-weight: 600; font-size: 16px; line-height: 1; letter-spacing: 0; text-transform: none; white-space: nowrap; border: 0; cursor: pointer; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.tsg-shop-page .tsg-btn:hover { transform: translateY(-1px); }
.tsg-shop-page .tsg-btn-dark, .tsg-shop-page .entry-content a.tsg-btn-dark { background: var(--tsg-dark); color: #fff; }
.tsg-shop-page .tsg-btn-dark:hover, .tsg-shop-page .entry-content a.tsg-btn-dark:hover { background: var(--tsg-accent); color: #fff; }
.tsg-shop-page .tsg-btn-blue, .tsg-shop-page .entry-content a.tsg-btn-blue { background: var(--tsg-accent); color: #fff; }
.tsg-shop-page .tsg-btn-blue:hover, .tsg-shop-page .entry-content a.tsg-btn-blue:hover { background: var(--tsg-accent-2); color: #fff; }
.tsg-shop-page .tsg-btn-ghost, .tsg-shop-page .entry-content a.tsg-btn-ghost { background: var(--tsg-white); border: 1px solid var(--tsg-line-2); color: var(--tsg-dark); padding: 0 20px; }
.tsg-shop-page .tsg-btn-ghost:hover, .tsg-shop-page .entry-content a.tsg-btn-ghost:hover { border-color: var(--tsg-accent); color: var(--tsg-accent); }
.tsg-shop-page .tsg-btn-block { width: 100%; }
.tsg-shop-page .tsg-btn svg { flex: none; }
.tsg-shop-page .tsg-btn:disabled, .tsg-shop-page .tsg-btn.disabled { opacity: .5; cursor: default; transform: none; }

/* buttons Woo prints itself (notices, order-again, account) */
.tsg-shop-page .entry-content .button, .tsg-shop-page .entry-content button.button, .tsg-shop-page .entry-content input[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: var(--tsg-r-btn); background: var(--tsg-dark); color: #fff; font-weight: 600; font-size: 15px; line-height: 1; border: 0; cursor: pointer; transition: background .2s ease; }
.tsg-shop-page .entry-content .button:hover, .tsg-shop-page .entry-content button.button:hover { background: var(--tsg-accent); color: #fff; }
.tsg-shop-page .entry-content a.button { color: #fff; letter-spacing: 0; text-transform: none; }
.tsg-shop-page .entry-content .button:disabled, .tsg-shop-page .entry-content button:disabled { opacity: .5; cursor: default; }

/* ---- page frame --------------------------------------------------------------- */
.tsg-shop-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 32px; }
.tsg-shop-page .entry-content .tsg-shop-page-head h1 { font-family: var(--tsg-font-display); font-weight: 700; font-size: 44px; line-height: 1.1; text-transform: none; letter-spacing: 0.01em; color: var(--tsg-dark); margin: 0; }
.tsg-steps { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--tsg-muted); margin: 0; padding: 0; list-style: none; }
.tsg-steps li { display: flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; }
.tsg-steps li + li::before { content: ""; width: 36px; height: 2px; background: var(--tsg-line-2); margin-inline-end: 8px; }
.tsg-step-num { width: 26px; height: 26px; border-radius: 999px; border: 2px solid var(--tsg-line-2); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-family: var(--tsg-font-display); }
.tsg-steps .is-current { color: var(--tsg-dark); }
.tsg-steps .is-current .tsg-step-num { background: var(--tsg-dark); border-color: var(--tsg-dark); color: #fff; }
.tsg-steps .is-done { color: var(--tsg-accent); }
.tsg-steps .is-done .tsg-step-num { background: var(--tsg-accent); border-color: var(--tsg-accent); color: #fff; }
.tsg-steps .is-done + li::before { background: var(--tsg-accent); }

/* ---- notices ------------------------------------------------------------------ */
.tsg-shop-page .woocommerce-notices-wrapper:empty { display: none; }
.tsg-shop-page .woocommerce-error, .tsg-shop-page .woocommerce-message, .tsg-shop-page .woocommerce-info, .tsg-shop-page .woocommerce-notice { list-style: none; margin: 0 0 20px; padding: 14px 18px; border-radius: var(--tsg-r-card); font-size: 15px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.tsg-shop-page .woocommerce-error { background: #FDECEE; color: #8E1B26; border: 1px solid #F3C2C8; }
.tsg-shop-page .woocommerce-message { background: #E6F6EE; color: #0E5A38; border: 1px solid #BEE5D0; }
.tsg-shop-page .woocommerce-info, .tsg-shop-page .woocommerce-notice { background: var(--tsg-light); color: var(--tsg-dark); border: 1px solid #C7E6F7; }
.tsg-shop-page .woocommerce-error li, .tsg-shop-page .woocommerce-message li { flex: 1 1 100%; }
.tsg-shop-page .woocommerce-message .button, .tsg-shop-page .woocommerce-info .button, .tsg-shop-page .woocommerce-error .button { margin-inline-start: auto; }
.tsg-shop-page .woocommerce-error a, .tsg-shop-page .woocommerce-message a, .tsg-shop-page .woocommerce-info a { text-decoration: underline; }

/* ---- form controls -------------------------------------------------------------- */
.tsg-shop-page .form-row { margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tsg-shop-page .form-row label { font-size: 13px; font-weight: 600; color: var(--tsg-dark); margin: 0; }
.tsg-shop-page .form-row label .optional { font-weight: 400; color: var(--tsg-muted); font-size: 12px; }
.tsg-shop-page .form-row label .required { color: var(--tsg-accent); text-decoration: none; }
.tsg-shop-page .entry-content .input-text, .tsg-shop-page .entry-content input[type="text"], .tsg-shop-page .entry-content input[type="email"], .tsg-shop-page .entry-content input[type="tel"], .tsg-shop-page .entry-content input[type="password"], .tsg-shop-page .entry-content input[type="number"], .tsg-shop-page .entry-content textarea, .tsg-shop-page .entry-content select { width: 100%; background: var(--tsg-paper); border: 1px solid var(--tsg-line-2); border-radius: var(--tsg-r-ctl); height: 48px; padding: 0 14px; margin: 0; color: var(--tsg-dark); font-family: var(--tsg-font-body); font-size: 15px; line-height: normal; direction: rtl; text-align: right; box-shadow: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.tsg-shop-page .entry-content textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.tsg-shop-page .entry-content input:focus, .tsg-shop-page .entry-content textarea:focus, .tsg-shop-page .entry-content select:focus { outline: none; background: var(--tsg-white); border-color: var(--tsg-accent); box-shadow: 0 0 0 3px rgba(0, 103, 255, 0.15); }
.tsg-shop-page .entry-content input[type="tel"], .tsg-shop-page .entry-content input[type="email"] { unicode-bidi: plaintext; }
.tsg-shop-page .form-row.woocommerce-invalid input { border-color: #C9303C; }
.tsg-shop-page .form-row.woocommerce-validated input { border-color: #2AA36B; }
.tsg-shop-page .woocommerce-input-wrapper { display: block; }
.tsg-shop-page .tsg-hidden-field { display: none !important; }
.tsg-shop-page .form-row-first, .tsg-shop-page .form-row-last { width: 100%; float: none; }
.tsg-shop-page .woocommerce-billing-fields__field-wrapper, .tsg-shop-page .woocommerce-shipping-fields__field-wrapper, .tsg-shop-page .woocommerce-additional-fields__field-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.tsg-shop-page .woocommerce-billing-fields__field-wrapper .form-row-wide, .tsg-shop-page .woocommerce-shipping-fields__field-wrapper .form-row-wide, .tsg-shop-page .woocommerce-additional-fields__field-wrapper .form-row { grid-column: span 2; }
.tsg-shop-page .form-row.create-account, .tsg-shop-page .form-row label.checkbox { flex-direction: row; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.tsg-shop-page .entry-content input[type="checkbox"], .tsg-shop-page .entry-content input[type="radio"] { width: 18px; height: 18px; accent-color: var(--tsg-dark); margin: 0; flex: none; }
.tsg-shop-page .woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: 10px; font-weight: 500 !important; font-size: 14px !important; }
.tsg-shop-page .select2-container .select2-selection--single { height: 48px; border: 1px solid var(--tsg-line-2); border-radius: var(--tsg-r-ctl); background: var(--tsg-paper); }
.tsg-shop-page .select2-container .select2-selection--single .select2-selection__rendered { line-height: 46px; padding: 0 14px; color: var(--tsg-dark); }
.tsg-shop-page .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; }

/* ---- cart -------------------------------------------------------------------------- */
.tsg-cart-page { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.tsg-cart-items { display: flex; flex-direction: column; gap: 14px; }
.tsg-cart-item { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto auto auto; align-items: center; gap: 20px; padding: 14px 18px 14px 14px; background: var(--tsg-white); border: 1px solid var(--tsg-line-2); border-radius: var(--tsg-r-card); transition: box-shadow .25s ease, border-color .25s ease; }
.tsg-cart-item:hover { border-color: #B9C6D4; box-shadow: var(--tsg-shadow); }
.tsg-cart-thumb { width: 112px; height: 112px; border-radius: 6px; background: var(--tsg-paper); border: 1px solid var(--tsg-line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tsg-shop-page .entry-content .tsg-cart-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tsg-cart-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tsg-cart-model { font-family: var(--tsg-font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tsg-accent); }
.tsg-shop-page .entry-content .tsg-cart-name { font-weight: 600; font-size: 17px; color: var(--tsg-dark); line-height: 1.3; }
.tsg-shop-page .entry-content .tsg-cart-name:hover { color: var(--tsg-accent); }
.tsg-cart-unit { font-size: 13px; color: var(--tsg-muted); }
.tsg-cart-unit .amount { font-weight: 600; color: var(--tsg-dark); }
.tsg-cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--tsg-line-2); border-radius: var(--tsg-r-ctl); height: 44px; padding: 0 2px; background: var(--tsg-white); }
.tsg-cart-qty .quantity { display: contents; }
.tsg-shop-page .entry-content .tsg-cart-qty input.qty { width: 48px; height: 36px; border: 0; background: transparent; text-align: center; font-weight: 600; font-size: 15px; padding: 0; -moz-appearance: textfield; appearance: textfield; direction: ltr; }
.tsg-cart-qty input.qty::-webkit-inner-spin-button, .tsg-cart-qty input.qty::-webkit-outer-spin-button { -webkit-appearance: none; }
.tsg-shop-page .entry-content .tsg-cart-qty input.qty:focus { box-shadow: none; background: transparent; }
.tsg-shop-page .entry-content .tsg-qty-btn { width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--tsg-r-ctl); background: transparent; font-size: 20px; line-height: 1; color: var(--tsg-dark); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.tsg-shop-page .entry-content .tsg-qty-btn:hover { background: var(--tsg-paper); color: var(--tsg-accent); }
.tsg-shop-page .ast-qty-placeholder { display: none !important; }
.tsg-cart-sub { font-family: var(--tsg-font-display); font-weight: 700; font-size: 20px; color: var(--tsg-dark); min-width: 88px; text-align: start; white-space: nowrap; }
.tsg-shop-page .entry-content .product-remove .remove { width: 36px; height: 36px; border-radius: var(--tsg-r-ctl); display: inline-flex; align-items: center; justify-content: center; color: var(--tsg-muted); border: 1px solid transparent; font-size: 0; }
.tsg-shop-page .entry-content .product-remove .remove:hover { color: #B4232C; border-color: #F3C2C8; background: #FDECEE; }
.tsg-cart-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 6px 4px 0; }
.tsg-update-cart { display: none !important; }
.tsg-coupon summary { list-style: none; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--tsg-accent); display: inline-flex; align-items: center; gap: 6px; }
.tsg-coupon summary::-webkit-details-marker { display: none; }
.tsg-coupon summary::before { content: "+"; font-weight: 700; }
.tsg-coupon[open] summary::before { content: "–"; }
.tsg-coupon-row { display: flex; gap: 8px; margin-top: 10px; }
.tsg-shop-page .entry-content .tsg-coupon-row input { width: 200px; height: 44px; }
.tsg-shop-page .tsg-coupon-row .tsg-btn { height: 44px; }
.tsg-cart-continue { font-size: 14px; }

.tsg-cart-aside { position: sticky; top: 150px; display: flex; flex-direction: column; gap: 16px; }
.tsg-summary { background: var(--tsg-white); border: 1px solid var(--tsg-line-2); border-radius: var(--tsg-r-card); padding: 24px; box-shadow: var(--tsg-shadow); }
.tsg-shop-page .entry-content .tsg-summary-title { font-family: var(--tsg-font-display); font-weight: 700; font-size: 22px; letter-spacing: 0.01em; text-transform: none; color: var(--tsg-dark); margin: 0 0 14px; }
.tsg-shop-page .tsg-summary-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; border: 0; }
.tsg-shop-page .tsg-summary-table th, .tsg-shop-page .tsg-summary-table td { padding: 10px 0; border: 0; border-bottom: 1px solid var(--tsg-line); vertical-align: top; text-align: start; background: transparent; }
.tsg-shop-page .tsg-summary-table th { font-weight: 700; color: var(--tsg-muted); white-space: nowrap; padding-inline-end: 12px; }
.tsg-shop-page .tsg-summary-table td { text-align: end; font-weight: 600; color: var(--tsg-dark); }
.tsg-shop-page .tsg-summary-table tr.order-total th, .tsg-shop-page .tsg-summary-table tr.order-total td { border-bottom: 0; padding-top: 14px; font-family: var(--tsg-font-display); font-size: 20px; color: var(--tsg-dark); font-weight: 700; }
.tsg-shop-page .woocommerce-shipping-methods { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tsg-shop-page .woocommerce-shipping-methods li { display: flex; align-items: center; justify-content: flex-end; gap: 8px; font-weight: 700; font-size: 14px; margin: 0; }
.tsg-shop-page .woocommerce-shipping-methods label { cursor: pointer; margin: 0; }
.tsg-shop-page .woocommerce-shipping-destination, .tsg-shop-page .woocommerce-shipping-contents { font-size: 12px; color: var(--tsg-muted); margin-top: 6px; font-weight: 400; }
.tsg-shop-page .woocommerce-shipping-calculator { display: none; }
.tsg-summary-fine { font-size: 12px; color: var(--tsg-muted); margin: 10px 0 14px; }
.tsg-shop-page .wc-proceed-to-checkout .tsg-btn { height: 54px; }
.tsg-trust { display: flex; flex-direction: column; gap: 10px; padding: 4px 8px; font-size: 13px; color: var(--tsg-muted); }
.tsg-trust li { display: flex; align-items: center; gap: 10px; }
.tsg-trust svg { flex: none; color: var(--tsg-accent); }
.tsg-shop-page .cross-sells { display: none; }

.tsg-cart-empty { background: var(--tsg-paper); border: 1px solid var(--tsg-line); border-radius: var(--tsg-r-card); padding: 64px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.tsg-badge { width: 56px; height: 56px; border-radius: 999px; background: var(--tsg-white); border: 2px solid var(--tsg-accent); color: var(--tsg-dark); display: flex; align-items: center; justify-content: center; }
.tsg-shop-page .entry-content .tsg-cart-empty h2 { font-size: 34px; text-transform: none; }
.tsg-cart-empty .tsg-muted { max-width: 420px; }
.tsg-cart-empty .tsg-cta-row { margin-top: 10px; justify-content: center; }

/* ---- checkout ----------------------------------------------------------------------- */
.tsg-shop-page .tsg-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
/* Woo drops validation notices into the form itself; as grid items they would land in a column
   and push the cards around, so they span the full width and stay on top. */
.tsg-shop-page .tsg-checkout > .woocommerce-NoticeGroup,
.tsg-shop-page .tsg-checkout > .woocommerce-error,
.tsg-shop-page .tsg-checkout > .woocommerce-message,
.tsg-shop-page .tsg-checkout > .woocommerce-info { grid-column: 1 / -1; order: -1; margin: 0 0 4px; }
.tsg-shop-page .tsg-checkout > .woocommerce-NoticeGroup > ul { margin: 0; }
.tsg-checkout-main { display: flex; flex-direction: column; gap: 16px; }
.tsg-shop-page .tsg-checkout-details { display: flex; flex-direction: column; gap: 16px; width: auto; margin: 0; }
.tsg-shop-page .tsg-checkout-details .col-1, .tsg-shop-page .tsg-checkout-details .col-2 { float: none; width: auto; }
.tsg-checkout-card { background: var(--tsg-white); border: 1px solid var(--tsg-line-2); border-radius: var(--tsg-r-card); padding: 24px 24px 12px; }
.tsg-checkout-card:empty, .tsg-checkout-card.col-2:not(:has(.woocommerce-shipping-fields)) { display: none; }
.tsg-shop-page .entry-content .tsg-checkout-card h3, .tsg-shop-page .entry-content .woocommerce-shipping-fields h3, .tsg-shop-page .entry-content .woocommerce-additional-fields h3 { font-family: var(--tsg-font-display); font-weight: 700; font-size: 20px; text-transform: none; letter-spacing: 0.01em; color: var(--tsg-dark); margin: 0 0 16px; }
.tsg-shop-page .woocommerce-shipping-fields h3 label { font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.tsg-shop-page .woocommerce-additional-fields { margin-top: 4px; }
.tsg-shop-page .woocommerce-account-fields { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--tsg-line); }
.tsg-checkout-help { font-size: 14px; color: var(--tsg-muted); display: flex; gap: 8px; align-items: center; padding: 0 6px; }
.tsg-checkout-help svg { vertical-align: middle; }
.tsg-checkout-help a { font-weight: 600; }
.tsg-shop-page .woocommerce-form-login-toggle, .tsg-shop-page .woocommerce-form-coupon-toggle { margin-bottom: 14px; }
.tsg-shop-page .woocommerce-form-login-toggle .woocommerce-info, .tsg-shop-page .woocommerce-form-coupon-toggle .woocommerce-info { margin: 0; }
.tsg-shop-page .woocommerce-form-login, .tsg-shop-page .checkout_coupon { background: var(--tsg-white); border: 1px solid var(--tsg-line-2); border-radius: var(--tsg-r-card); padding: 20px; margin-bottom: 14px; display: none; }
.tsg-shop-page .checkout_coupon { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.tsg-shop-page .checkout_coupon p { margin: 0; }
.tsg-shop-page .checkout_coupon .form-row-first { flex: 1 1 200px; }
.tsg-shop-page .checkout_coupon .form-row-last { flex: none; }
.tsg-shop-page .checkout_coupon .clear { display: none; }

.tsg-checkout-aside { position: sticky; top: 150px; background: var(--tsg-white); border: 1px solid var(--tsg-line-2); border-radius: var(--tsg-r-card); padding: 24px; box-shadow: var(--tsg-shadow); }
.tsg-shop-page .woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; border: 0; }
.tsg-shop-page .woocommerce-checkout-review-order-table thead { display: none; }
.tsg-shop-page .woocommerce-checkout-review-order-table td, .tsg-shop-page .woocommerce-checkout-review-order-table th { padding: 10px 0; border: 0; text-align: start; vertical-align: top; background: transparent; }
.tsg-shop-page .woocommerce-checkout-review-order-table tbody td.product-name { font-weight: 600; color: var(--tsg-dark); display: flex; align-items: center; }
.tsg-shop-page .woocommerce-checkout-review-order-table .product-quantity { color: var(--tsg-muted); font-weight: 700; font-size: 13px; }
.tsg-shop-page .woocommerce-checkout-review-order-table tbody td.product-total, .tsg-shop-page .woocommerce-checkout-review-order-table tfoot td { text-align: end; font-weight: 600; color: var(--tsg-dark); }
.tsg-shop-page .woocommerce-checkout-review-order-table tbody td.product-total { white-space: nowrap; padding-inline-start: 12px; }
.tsg-shop-page .woocommerce-checkout-review-order-table tfoot th { font-weight: 700; color: var(--tsg-muted); }
.tsg-shop-page .woocommerce-checkout-review-order-table tr.order-total th, .tsg-shop-page .woocommerce-checkout-review-order-table tr.order-total td { padding-top: 14px; font-family: var(--tsg-font-display); font-size: 20px; color: var(--tsg-dark); font-weight: 700; }
.tsg-shop-page .woocommerce-checkout-review-order-table .woocommerce-shipping-totals th { padding-top: 12px; }
/* rows as grid so a tall product cell and a short price cell share one divider */
.tsg-shop-page .woocommerce-checkout-review-order-table, .tsg-shop-page .woocommerce-checkout-review-order-table tbody, .tsg-shop-page .woocommerce-checkout-review-order-table tfoot { display: block; width: 100%; }
.tsg-shop-page .woocommerce-checkout-review-order-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid var(--tsg-line); }
.tsg-shop-page .woocommerce-checkout-review-order-table tr.order-total { border-bottom: 0; }
.tsg-shop-page .woocommerce-checkout-review-order-table tbody tr { padding: 4px 0; }
.tsg-review-item { display: flex; width: 100%; align-items: center; gap: 12px; }
.tsg-review-thumb { flex: none; width: 52px; height: 52px; border-radius: 6px; background: var(--tsg-paper); border: 1px solid var(--tsg-line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tsg-shop-page .entry-content .tsg-review-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tsg-review-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.tsg-review-name small { font-size: 11px; color: var(--tsg-muted); font-weight: 700; }

.tsg-shop-page #payment { margin-top: 18px; background: transparent; border-radius: 0; }
.tsg-shop-page .wc_payment_methods { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tsg-shop-page .wc_payment_method { border: 1px solid var(--tsg-line-2); border-radius: var(--tsg-r-ctl); padding: 12px 14px; margin: 0; background: var(--tsg-paper); }
.tsg-shop-page .wc_payment_method > label { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; cursor: pointer; margin: 0; color: var(--tsg-dark); }
.tsg-shop-page .wc_payment_method > label img { max-height: 24px; width: auto; margin-inline-start: auto; }
.tsg-shop-page .wc_payment_method input[type="radio"] { margin: 0; }
.tsg-shop-page .wc_payment_method:has(input:checked) { border-color: var(--tsg-dark); background: var(--tsg-white); }
.tsg-shop-page .payment_box { margin-top: 10px; padding: 0; background: transparent; font-size: 13px; color: var(--tsg-muted); line-height: 1.5; }
.tsg-shop-page .payment_box::before { display: none; }
.tsg-shop-page .payment_box p { margin: 0; }
.tsg-shop-page .woocommerce-terms-and-conditions-wrapper { margin: 16px 0 12px; font-size: 13px; color: var(--tsg-muted); }
.tsg-shop-page .woocommerce-privacy-policy-text p { margin: 0 0 10px; }
.tsg-shop-page .woocommerce-terms-and-conditions-checkbox-text { font-weight: 700; }
.tsg-shop-page .woocommerce-terms-and-conditions { display: none; }
.tsg-shop-page .place-order { margin: 8px 0 0; padding: 0; }
.tsg-shop-page .entry-content #place_order { width: 100%; height: 56px; font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; border-radius: var(--tsg-r-btn); background: var(--tsg-accent); color: #fff; border: 0; cursor: pointer; transition: background .2s ease; }
.tsg-shop-page .entry-content #place_order:hover { background: var(--tsg-accent-2); }
.tsg-checkout-aside .tsg-trust { margin-top: 16px; padding: 0 4px; }
.tsg-shop-page .blockUI.blockOverlay { border-radius: var(--tsg-r-card); }

/* ---- thank-you --------------------------------------------------------------------------- */
.tsg-thanks { max-width: 820px; margin-inline: auto; }
.tsg-thanks-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 0 28px; }
.tsg-shop-page .entry-content .tsg-thanks-head h2 { font-size: 38px; text-transform: none; }
.tsg-thanks-head .tsg-muted { font-size: 16px; max-width: 520px; }
.tsg-thanks-check { width: 72px; height: 72px; border-radius: 999px; background: #E6F6EE; color: #0E7A4A; display: inline-flex; align-items: center; justify-content: center; }
.tsg-thanks-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.tsg-thanks-overview li { background: var(--tsg-white); border: 1px solid var(--tsg-line-2); border-radius: var(--tsg-r-card); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; margin: 0; }
.tsg-thanks-overview small { font-size: 12px; color: var(--tsg-muted); font-weight: 700; }
.tsg-thanks-overview strong { font-size: 16px; color: var(--tsg-dark); }
.tsg-thanks-body { display: flex; flex-direction: column; gap: 20px; }
.tsg-shop-page .entry-content .tsg-thanks-body h2, .tsg-shop-page .entry-content .tsg-thanks-body h3 { font-family: var(--tsg-font-display); font-weight: 700; font-size: 20px; text-transform: none; color: var(--tsg-dark); margin: 0 0 10px; }
.tsg-thanks-body section, .tsg-thanks-body .woocommerce-bacs-bank-details { background: var(--tsg-white); border: 1px solid var(--tsg-line-2); border-radius: var(--tsg-r-card); padding: 20px; }
.tsg-shop-page .woocommerce-table--order-details { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; border: 0; }
.tsg-shop-page .woocommerce-table--order-details th, .tsg-shop-page .woocommerce-table--order-details td { padding: 10px 0; border: 0; border-bottom: 1px solid var(--tsg-line); text-align: start; background: transparent; }
.tsg-shop-page .woocommerce-table--order-details tfoot th { font-weight: 700; color: var(--tsg-muted); }
.tsg-shop-page .woocommerce-table--order-details tfoot tr:last-child th, .tsg-shop-page .woocommerce-table--order-details tfoot tr:last-child td { border-bottom: 0; font-family: var(--tsg-font-display); font-size: 18px; color: var(--tsg-dark); font-weight: 700; }
.tsg-shop-page .woocommerce-table--order-details td:last-child, .tsg-shop-page .woocommerce-table--order-details th:last-child { text-align: end; }
.tsg-shop-page .woocommerce-columns--addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tsg-shop-page .woocommerce-columns--addresses .woocommerce-column { float: none; width: auto; }
.tsg-shop-page .woocommerce-customer-details address { font-style: normal; line-height: 1.7; font-size: 15px; color: var(--tsg-muted); border: 0; padding: 0; }
.tsg-thanks-cta { justify-content: center; margin-top: 28px; }

/* ---- cancellation-request form (ביטול עסקה) ------------------------------------------------ */
.tsg-cancel { scroll-margin-top: 150px; }
.tsg-cancel-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.tsg-shop-page .tsg-cancel-form { padding: 28px 28px 24px; }
.tsg-shop-page .entry-content .tsg-cancel-title { font-family: var(--tsg-font-display); font-weight: 700; font-size: 24px; text-transform: none; letter-spacing: 0.01em; color: var(--tsg-dark); margin: 0 0 6px; }
.tsg-cancel-form > .tsg-muted { margin-bottom: 20px; }
.tsg-cancel-form .tsg-muted .required { color: var(--tsg-accent); }
.tsg-cancel-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.tsg-cancel-fields .form-row-wide { grid-column: span 2; }
.tsg-field-error { font-size: 12px; font-weight: 600; color: #B4232C; }
.tsg-field-hint { font-size: 12px; color: var(--tsg-muted); }
.tsg-shop-page .entry-content .tsg-cancel-form input[dir="ltr"] { direction: ltr; text-align: left; }
.tsg-shop-page .entry-content .tsg-cancel-form input[dir="ltr"]::placeholder { text-align: left; }
.tsg-website-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.tsg-shop-page .tsg-cancel-form .tsg-btn { height: 56px; margin-top: 6px; }
.tsg-cancel-legal { margin: 16px 0 0; font-size: 13px; line-height: 1.6; color: var(--tsg-muted); }
.tsg-cancel-privacy { margin: 10px 0 0; font-size: 12px; color: var(--tsg-muted); display: flex; align-items: center; gap: 6px; }
.tsg-cancel-privacy svg { flex: none; color: var(--tsg-accent); }
.tsg-cancel-aside { position: sticky; top: 150px; background: var(--tsg-paper); border: 1px solid var(--tsg-line); border-radius: var(--tsg-r-card); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.tsg-cancel-aside .tsg-summary-title { margin-bottom: 0; }
.tsg-cancel-how { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; color: var(--tsg-text); }
.tsg-cancel-how li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.tsg-cancel-how .tsg-step-num { flex: none; background: var(--tsg-dark); border-color: var(--tsg-dark); color: #fff; margin-top: 1px; }
.tsg-cancel-aside .tsg-trust { padding: 12px 0 0; border-top: 1px solid var(--tsg-line-2); }
.tsg-cancel-policy-link { font-size: 14px; font-weight: 600; }
.tsg-cancel-success { max-width: 640px; margin-inline: auto; background: var(--tsg-white); border: 1px solid var(--tsg-line-2); border-radius: var(--tsg-r-card); padding: 40px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.tsg-shop-page .entry-content .tsg-cancel-success h2 { font-size: 32px; text-transform: none; }
.tsg-cancel-success .tsg-cancel-fine { font-size: 13px; line-height: 1.6; }
.tsg-cancel-success .tsg-cta-row { margin-top: 10px; justify-content: center; }
@media (max-width: 1024px) {
  .tsg-cancel-grid { grid-template-columns: 1fr; }
  .tsg-cancel-aside { position: static; }
}
@media (max-width: 640px) {
  .tsg-cancel-fields { grid-template-columns: 1fr; }
  .tsg-cancel-fields .form-row-wide { grid-column: auto; }
  .tsg-shop-page .tsg-cancel-form { padding: 18px; }
  .tsg-cancel-success { padding: 28px 18px; }
}

/* ---- my account (light touch, same tokens) ----------------------------------------------- */
.tsg-shop-page .woocommerce-MyAccount-navigation { float: none; width: 100%; margin-bottom: 20px; }
.tsg-shop-page .woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tsg-shop-page .woocommerce-MyAccount-navigation li { margin: 0; }
.tsg-shop-page .entry-content .woocommerce-MyAccount-navigation li a { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border-radius: var(--tsg-r-btn); background: var(--tsg-paper); color: var(--tsg-dark); font-weight: 600; font-size: 14px; border: 1px solid transparent; }
.tsg-shop-page .entry-content .woocommerce-MyAccount-navigation li a:hover { border-color: var(--tsg-accent); }
.tsg-shop-page .entry-content .woocommerce-MyAccount-navigation li.is-active a { background: var(--tsg-dark); color: #fff; }
.tsg-shop-page .woocommerce-MyAccount-content { float: none; width: 100%; background: var(--tsg-white); border: 1px solid var(--tsg-line-2); border-radius: var(--tsg-r-card); padding: 28px; font-size: 15px; }
.tsg-shop-page .woocommerce-MyAccount-content p { margin: 0 0 12px; }
.tsg-shop-page .entry-content .woocommerce-MyAccount-content h2, .tsg-shop-page .entry-content .woocommerce-MyAccount-content h3 { font-family: var(--tsg-font-display); font-weight: 700; font-size: 20px; text-transform: none; margin: 0 0 12px; }
.tsg-shop-page .woocommerce-orders-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tsg-shop-page .woocommerce-orders-table th, .tsg-shop-page .woocommerce-orders-table td { padding: 12px 8px; border: 0; border-bottom: 1px solid var(--tsg-line); text-align: start; }
.tsg-shop-page .woocommerce-orders-table th { font-size: 12px; color: var(--tsg-muted); }
.tsg-shop-page .entry-content .woocommerce-orders-table .button { height: 38px; padding: 0 16px; font-size: 13px; }
.tsg-shop-page .woocommerce-Addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tsg-shop-page .woocommerce-Address { background: var(--tsg-paper); border-radius: var(--tsg-r-card); padding: 18px; float: none; width: auto; }
.tsg-shop-page .woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tsg-shop-page .entry-content .woocommerce-Address-title h2 { margin: 0; font-size: 18px; }
.tsg-shop-page .woocommerce-Address address { font-style: normal; line-height: 1.7; color: var(--tsg-muted); }
.tsg-shop-page .woocommerce-form-login, .tsg-shop-page .woocommerce-form-register, .tsg-shop-page .woocommerce-ResetPassword { background: var(--tsg-white); border: 1px solid var(--tsg-line-2); border-radius: var(--tsg-r-card); padding: 24px; }
.tsg-shop-page.woocommerce-account .woocommerce-form-login { display: block; }
.tsg-shop-page .woocommerce-form-login .form-row:last-of-type, .tsg-shop-page .woocommerce-form-register .form-row:last-of-type { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.tsg-shop-page .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500 !important; }
.tsg-shop-page .woocommerce-LostPassword { font-size: 14px; margin-top: 8px; }
.tsg-shop-page .show-password-input { display: none; }

/* ---- responsive ---------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .tsg-cart-page, .tsg-shop-page .tsg-checkout { grid-template-columns: 1fr; }
  .tsg-cart-aside, .tsg-checkout-aside { position: static; }
  .tsg-shop-page .entry-content .tsg-shop-page-head h1 { font-size: 38px; }
  .tsg-thanks-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tsg-shop-page .entry-content .tsg-shop-page-head h1 { font-size: 30px; }
  .tsg-steps { font-size: 12px; gap: 4px; }
  .tsg-steps li + li::before { width: 16px; margin-inline-end: 4px; }
  .tsg-cart-item { grid-template-columns: 84px minmax(0, 1fr) auto; grid-template-areas: "thumb info remove" "thumb qty sub"; gap: 10px 14px; padding: 12px; }
  .tsg-cart-thumb { grid-area: thumb; width: 84px; height: 84px; }
  .tsg-cart-info { grid-area: info; }
  .tsg-cart-qty { grid-area: qty; justify-self: start; height: 40px; }
  .tsg-shop-page .entry-content .tsg-cart-qty input.qty { width: 40px; height: 32px; }
  .tsg-shop-page .entry-content .tsg-qty-btn { width: 32px; height: 32px; }
  .tsg-cart-sub { grid-area: sub; text-align: end; font-size: 18px; min-width: 0; }
  .product-remove { grid-area: remove; justify-self: end; }
  .tsg-shop-page .entry-content .tsg-cart-name { font-size: 16px; }
  .tsg-cart-actions { flex-direction: column; align-items: flex-start; }
  .tsg-shop-page .entry-content .tsg-coupon-row input { width: 100%; }
  .tsg-shop-page .woocommerce-billing-fields__field-wrapper, .tsg-shop-page .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
  .tsg-shop-page .woocommerce-billing-fields__field-wrapper .form-row, .tsg-shop-page .woocommerce-shipping-fields__field-wrapper .form-row { grid-column: auto; }
  .tsg-checkout-card, .tsg-checkout-aside, .tsg-summary, .tsg-shop-page .woocommerce-MyAccount-content { padding: 18px; }
  .tsg-thanks-overview { grid-template-columns: 1fr; }
  .tsg-shop-page .woocommerce-columns--addresses, .tsg-shop-page .woocommerce-Addresses { grid-template-columns: 1fr; }
  .tsg-cart-empty { padding: 44px 20px; }
  .tsg-shop-page .entry-content .tsg-cart-empty h2 { font-size: 26px; }
  .tsg-shop-page .tsg-btn { height: 48px; font-size: 15px; padding: 0 20px; }
}
