/* Yarsahome Pro: product features, readable sale prices and Iranian checkout.
 * All presentation lives in this external stylesheet; brand tokens come from main.css.
 */
/* Classic WooCommerce notices contain raw text (not a text wrapper). Reserve a
 * gutter for the existing absolute ::before icon instead of using flex/gap.
 * Text starts at 52px; icon ends at 16px + 24px, leaving a true 12px gap.
 */
body.yarsa-pro .woocommerce-info,
body.yarsa-pro .woocommerce-message,
body.yarsa-pro .woocommerce-error {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 14px 16px !important;
  padding-inline-start: 52px !important;
  border: 0 !important;
  border-inline-start: 3px solid var(--yarsa-tan) !important;
  border-radius: var(--yarsa-radius-sm) !important;
  background: var(--yarsa-soft-green) !important;
  color: var(--yarsa-green) !important;
  font-size: 14px !important;
  line-height: 26px;
  text-align: start;
  white-space: normal;
  overflow-wrap: anywhere;
  list-style: none;
}
body.yarsa-pro .woocommerce-info::before,
body.yarsa-pro .woocommerce-message::before,
body.yarsa-pro .woocommerce-error::before {
  position: absolute;
  display: inline-grid;
  place-items: center;
  top: 14px !important;
  bottom: auto;
  left: auto !important;
  right: auto !important;
  inset-inline-start: 16px !important;
  width: 24px;
  height: 26px;
  padding: 0;
  margin: 0;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  color: var(--yarsa-tan) !important;
  transform: none;
  pointer-events: none;
}
body.yarsa-pro .woocommerce-error {
  border-inline-start-color: var(--yarsa-danger) !important;
  background: var(--yarsa-soft-tan) !important;
  color: var(--yarsa-green-dark) !important;
}
body.yarsa-pro .woocommerce-error::before { color: var(--yarsa-green-dark) !important; }
body.yarsa-pro .woocommerce-error > li { margin: 0; padding: 0; list-style: none; }
body.yarsa-pro .woocommerce-error > li + li { margin-block-start: 6px; }
.woocommerce-account .woocommerce > .woocommerce-error,
.woocommerce-account .woocommerce > .woocommerce-message,
.woocommerce-account .woocommerce > .woocommerce-info { grid-column: 1 / -1; }

body.yarsa-pro .price del,
body.yarsa-pro .woocommerce ul.products li.product .price del,
body.yarsa-pro .yarsa-product-card .price del,
body.yarsa-pro .yarsa-single-product__purchase-card .price del,
body.yarsa-pro .wc-block-components-product-price__regular,
body.yarsa-pro del .woocommerce-Price-amount {
  color: var(--yarsa-green) !important;
  opacity: 1 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.7 !important;
  text-decoration: line-through !important;
  text-decoration-thickness: 1.5px !important;
  text-decoration-color: var(--yarsa-tan-hover) !important;
  text-decoration-skip-ink: none;
}
/* A del decoration does not propagate into atomic inline-block price amounts.
 * Apply the line to the actual amount/bdi too, without touching the sale price.
 */
body.yarsa-pro del .woocommerce-Price-amount,
body.yarsa-pro del .woocommerce-Price-amount bdi {
  text-decoration: line-through !important;
  text-decoration-thickness: 1.5px !important;
  text-decoration-color: var(--yarsa-tan-hover) !important;
  text-decoration-skip-ink: none;
}
body.yarsa-pro .yarsa-single-product__purchase-card .price del,
body.yarsa-pro .yarsa-single-product__purchase-card .price del .amount { font-size: 15px !important; }
body.yarsa-pro .price del .woocommerce-Price-currencySymbol { opacity: 1; }
body.yarsa-pro .yarsa-discount-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  align-self: flex-start;
  justify-content: center;
  order: 3;
  max-width: 100%;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--yarsa-green);
  color: var(--yarsa-white);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.8;
  white-space: normal;
  text-decoration: none;
}
body.yarsa-pro .onsale[hidden] { display: none !important; }
body.yarsa-pro .yarsa-cart-unit-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.yarsa-cart-unit-price ins { color: var(--yarsa-tan); text-decoration: none; font-weight: 800; background: none; }

/* Short description: six preview cards, with a complete no-JavaScript fallback. */
.yarsa-specs { min-width: 0; max-width: 100%; margin-top: 18px; }
.yarsa-specs__title { margin: 0 0 14px; font-size: 17px; line-height: 1.7; color: var(--yarsa-green); }
.yarsa-specs__title::after { content: ''; display: block; width: 36px; height: 3px; margin-top: 6px; border-radius: 3px; background: var(--yarsa-tan); }
.yarsa-specs__scroll { width: 100%; min-width: 0; max-width: 100%; }
.yarsa-specs .yarsa-specs__list {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.yarsa-specs .yarsa-specs__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 13px;
  border: 1px solid var(--yarsa-line);
  border-radius: 12px;
  background: var(--yarsa-soft-green);
  overflow-wrap: anywhere;
}
.yarsa-specs__card::before { content: none; }
.yarsa-specs__label { color: var(--yarsa-muted); font-size: 12px; line-height: 1.8; }
.yarsa-specs__value { color: var(--yarsa-green-dark); font-size: 13px; font-weight: 700; line-height: 1.9; }
.yarsa-specs.is-enhanced:not(.is-expanded) .yarsa-specs__card--extra { display: none; }
body.yarsa-pro .yarsa-specs__toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin-top: 14px;
  padding: 8px 14px;
  border: 1px solid var(--yarsa-line);
  border-radius: 10px;
  background: var(--yarsa-white);
  color: var(--yarsa-green);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
  white-space: normal;
  cursor: pointer;
}
body.yarsa-pro .yarsa-specs__toggle[hidden] { display: none; }
body.yarsa-pro .yarsa-specs__toggle:hover { background: var(--yarsa-soft-tan); border-color: var(--yarsa-tan); }
.yarsa-specs__toggle:focus-visible,
.yarsa-specs__scroll:focus-visible,
.yarsa-specs-dialog__close:focus-visible { outline: 2px solid var(--yarsa-tan); outline-offset: 3px; }
.yarsa-specs-dialog:not([open]) { display: none; }
.yarsa-specs-dialog {
  --yarsa-specs-inset: 20px;
  width: min(100%, 580px);
  min-width: 0;
  max-width: 100%;
  max-height: 85vh;
  max-height: 85dvh;
  padding: 0;
  margin: auto auto 0;
  border: 1px solid var(--yarsa-line);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  color: var(--yarsa-green);
  background: var(--yarsa-white);
  overflow: hidden;
  overscroll-behavior: contain;
  direction: rtl;
}
.yarsa-specs-dialog[open] { display: flex; flex-direction: column; }
.yarsa-specs-dialog::backdrop { background: rgba(21, 71, 60, .55); }
.yarsa-specs-dialog__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  gap: 12px;
  padding: 16px var(--yarsa-specs-inset);
  border-bottom: 1px solid var(--yarsa-line);
}
.yarsa-specs-dialog__head h2 { min-width: 0; margin: 0; font-size: 17px; font-weight: 700; line-height: 1.8; overflow-wrap: anywhere; }
body.yarsa-pro .yarsa-specs-dialog__close {
  border: 1px solid var(--yarsa-line);
  border-radius: 50%;
  color: var(--yarsa-green);
  background: var(--yarsa-soft-green);
}
body.yarsa-pro .yarsa-specs-dialog__close:hover,
body.yarsa-pro .yarsa-specs-dialog__close:active { border-color: var(--yarsa-tan); background: var(--yarsa-soft-tan); }
.yarsa-specs-dialog__body {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 var(--yarsa-specs-inset) calc(24px + env(safe-area-inset-bottom));
}
.yarsa-specs-dialog__body ul { padding: 0; margin: 0; list-style: none; }
.yarsa-specs-dialog__body li {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 6px 16px;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--yarsa-line);
  overflow-wrap: anywhere;
}
.yarsa-specs-dialog__body li:last-child { border-bottom: 0; }
.yarsa-specs-dialog__body li span { min-width: 0; color: var(--yarsa-muted); font-size: 13px; line-height: 1.9; }
.yarsa-specs-dialog__body li strong { min-width: 0; color: var(--yarsa-green-dark); font-size: 14px; font-weight: 700; line-height: 1.9; }
.yarsa-specs-dialog__body li strong:only-child { grid-column: 1 / -1; }
body.yarsa-specs-dialog-open { overflow: hidden; }

@media (max-width: 360px) {
  .yarsa-specs-dialog { --yarsa-specs-inset: 16px; }
  .yarsa-specs-dialog__head { padding-block: 12px; }
  .yarsa-specs-dialog__body li { grid-template-columns: minmax(0, 1fr); }
}

/* Commerce pages: one page-width system, native WooCommerce forms and fragments. */
body.woocommerce-cart .yarsa-page-content,
body.woocommerce-checkout .yarsa-page-content { width: min(100% - 40px, var(--yarsa-container)); margin-block: 24px 48px; }
body.woocommerce-cart .yarsa-page-hero,
body.woocommerce-checkout .yarsa-page-hero { padding-block: 22px; }
body.woocommerce-cart .yarsa-entry-content,
body.woocommerce-checkout .yarsa-entry-content { line-height: 1.85; }
body.woocommerce-cart .yarsa-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  align-items: start;
  gap: 24px;
  direction: rtl;
}
body.woocommerce-cart .yarsa-cart-layout > :not(.woocommerce-cart-form):not(.cart-collaterals) { grid-column: 1 / -1; }
body.woocommerce-cart .yarsa-cart-layout::before,
body.woocommerce-cart .yarsa-cart-layout::after { content: none; }
body.woocommerce-cart .yarsa-cart-layout > *,
body.woocommerce-checkout .yarsa-checkout-summary { min-width: 0; }
body.woocommerce-cart .yarsa-cart-layout .woocommerce-cart-form { margin: 0; padding: 0; overflow: visible; }
body.woocommerce-cart .yarsa-cart-layout .cart-collaterals,
body.woocommerce-cart .yarsa-cart-layout .cart-collaterals .cart_totals,
body.woocommerce-cart .yarsa-cart-layout .cart-collaterals .cross-sells { float: none !important; width: 100% !important; }
body.woocommerce-cart .yarsa-cart-layout .cart-collaterals .cart_totals {
  position: sticky;
  top: 24px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--yarsa-line);
  border-radius: 16px;
  background: var(--yarsa-white);
  box-shadow: var(--yarsa-shadow-sm);
}
body.admin-bar.woocommerce-cart .yarsa-cart-layout .cart-collaterals .cart_totals { top: 56px; }
body.woocommerce-cart .yarsa-cart-layout .cart-collaterals h2 {
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--yarsa-line);
  color: var(--yarsa-green-dark);
  font-size: 19px;
}
body.woocommerce-cart .yarsa-cart-products-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 17px 18px;
  border: 1px solid var(--yarsa-line);
  border-radius: 14px;
  background: var(--yarsa-soft-green);
}
body.woocommerce-cart .yarsa-cart-products-heading span {
  display: block;
  color: var(--yarsa-tan-hover);
  font-size: 10px;
  font-weight: 800;
}
body.woocommerce-cart .yarsa-cart-products-heading h2 {
  margin: 1px 0 0;
  color: var(--yarsa-green-dark);
  font-size: 18px;
  line-height: 1.6;
}
body.woocommerce-cart .yarsa-cart-products-heading > strong {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 9px;
  background: var(--yarsa-white);
  color: var(--yarsa-green);
  font-size: 11px;
}
body.woocommerce-cart .woocommerce-cart-form table.shop_table,
body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody {
  display: block;
  width: 100%;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
}
body.woocommerce-cart .woocommerce-cart-form table.shop_table thead {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody {
  display: grid;
  gap: 12px;
}
body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item {
  display: grid;
  grid-template-columns: 38px 96px minmax(170px, 1fr) minmax(125px, .42fr) 84px minmax(118px, .34fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--yarsa-line);
  border-radius: 15px;
  background: var(--yarsa-white);
  box-shadow: 0 3px 12px rgba(30, 98, 83, .04);
}
body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td {
  display: block !important;
  width: auto !important;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: start !important;
  overflow-wrap: anywhere;
}
body.woocommerce-cart .woocommerce-cart-form td.product-remove { grid-column: 1; grid-row: 1; }
body.woocommerce-cart .woocommerce-cart-form td.product-thumbnail { grid-column: 2; grid-row: 1; }
body.woocommerce-cart .woocommerce-cart-form td.product-name { grid-column: 3; grid-row: 1; }
body.woocommerce-cart .woocommerce-cart-form td.product-price { grid-column: 4; grid-row: 1; }
body.woocommerce-cart .woocommerce-cart-form td.product-quantity { grid-column: 5; grid-row: 1; }
body.woocommerce-cart .woocommerce-cart-form td.product-subtotal { grid-column: 6; grid-row: 1; }
body.woocommerce-cart .woocommerce-cart-form td.product-price::before,
body.woocommerce-cart .woocommerce-cart-form td.product-quantity::before,
body.woocommerce-cart .woocommerce-cart-form td.product-subtotal::before {
  display: block;
  float: none;
  margin-bottom: 5px;
  color: var(--yarsa-muted);
  font-size: 10px;
  font-weight: 700;
  content: attr(data-title);
}
body.woocommerce-cart .woocommerce-cart-form td.product-remove a.remove {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--yarsa-line);
  border-radius: 10px;
  background: var(--yarsa-white);
  color: var(--yarsa-tan-hover) !important;
  font-size: 21px;
  line-height: 1;
}
body.woocommerce-cart .woocommerce-cart-form td.product-remove a.remove:hover {
  border-color: var(--yarsa-tan);
  background: var(--yarsa-soft-tan);
}
body.woocommerce-cart .yarsa-cart-layout .woocommerce-cart-form .product-thumbnail img {
  width: 92px !important;
  height: 92px !important;
  padding: 4px;
  border: 1px solid var(--yarsa-line);
  border-radius: 12px;
  background: var(--yarsa-white);
  object-fit: contain;
}
body.woocommerce-cart .woocommerce-cart-form td.product-name > a {
  display: block;
  color: var(--yarsa-green-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.85;
}
body.woocommerce-cart .woocommerce-cart-form .variation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 6px;
  margin: 7px 0 0;
  color: var(--yarsa-muted);
  font-size: 11px;
}
body.woocommerce-cart .woocommerce-cart-form .variation dt,
body.woocommerce-cart .woocommerce-cart-form .variation dd,
body.woocommerce-cart .woocommerce-cart-form .variation p { margin: 0; }
body.woocommerce-cart .woocommerce-cart-form td.product-price .yarsa-cart-unit-price {
  display: grid;
  justify-items: start;
  gap: 3px;
}
body.woocommerce-cart .woocommerce-cart-form td.product-subtotal { color: var(--yarsa-green-dark); font-weight: 800; }
body.woocommerce-cart .woocommerce-cart-form .quantity .qty {
  width: 70px;
  min-height: 44px;
  max-width: 100%;
  border: 1px solid var(--yarsa-line);
  border-radius: 9px;
  background: var(--yarsa-white);
  color: var(--yarsa-green-dark);
  text-align: center;
}
body.woocommerce-cart .woocommerce-cart-form table.shop_table tr:not(.cart_item) { display: block; }
body.woocommerce-cart .woocommerce-cart-form td.actions {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100% !important;
  margin-top: 2px;
  padding: 14px !important;
  border: 1px solid var(--yarsa-line) !important;
  border-radius: 14px;
  background: var(--yarsa-bg-light) !important;
}
body.woocommerce-cart .yarsa-cart-layout .coupon {
  display: flex;
  flex: 1 1 360px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  float: none !important;
  margin: 0;
}
body.woocommerce-cart .coupon #coupon_code {
  float: none;
  width: auto !important;
  flex: 1 1 150px;
  min-height: 46px;
  margin: 0;
  padding-inline: 12px;
  border: 1px solid var(--yarsa-line);
  border-radius: 9px;
  background: var(--yarsa-white);
  text-align: start;
}
body.woocommerce-cart .cart_totals table.shop_table {
  margin-bottom: 0;
  border: 0 !important;
  border-radius: 0 !important;
}
body.woocommerce-cart .cart_totals table.shop_table th,
body.woocommerce-cart .cart_totals table.shop_table td {
  padding: 13px 6px !important;
  border-bottom: 1px solid var(--yarsa-line) !important;
  background: none !important;
  color: var(--yarsa-green-dark);
  font-size: 13px;
  text-align: start;
  vertical-align: top;
}
body.woocommerce-cart .cart_totals table.shop_table td { text-align: end; }
body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
  border-bottom: 0 !important;
  font-size: 15px;
  font-weight: 800;
}
body.woocommerce-cart .yarsa-cart-layout .wc-proceed-to-checkout { padding: 18px 0 0; }
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 12px;
  border-radius: 11px;
  font-size: 15px;
  line-height: 1.8;
  white-space: normal;
}
body.woocommerce-cart .yarsa-cart-assurance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
body.woocommerce-cart .yarsa-cart-assurance li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--yarsa-muted);
  font-size: 10px;
}
body.woocommerce-cart .yarsa-cart-assurance i { flex: 0 0 auto; color: var(--yarsa-tan); }

body.woocommerce-checkout form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .8fr);
  align-items: start;
  gap: 24px;
}
body.woocommerce-checkout form.checkout::before,
body.woocommerce-checkout form.checkout::after,
body.woocommerce-checkout #customer_details::before,
body.woocommerce-checkout #customer_details::after { display: none; content: none; }
body.woocommerce-checkout form.checkout > :not(#customer_details):not(.yarsa-checkout-summary) { grid-column: 1 / -1; }
body.woocommerce-checkout #customer_details,
body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 { float: none; width: 100%; max-width: 100%; min-width: 0; margin: 0; }
body.woocommerce-checkout #customer_details { padding: 24px; box-shadow: var(--yarsa-shadow-sm); }
body.woocommerce-checkout #customer_details h3 { font-size: 19px; line-height: 1.8; margin: 0 0 18px; }
body.woocommerce-checkout #customer_details .woocommerce-shipping-fields,
body.woocommerce-checkout #customer_details .woocommerce-additional-fields { margin-top: 20px; }
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper::before,
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper::after,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper::before,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper::after { content: none; }
body.woocommerce-checkout .woocommerce form .form-row { float: none; width: 100%; min-width: 0; max-width: 100%; margin: 0; padding: 0; }
body.woocommerce-checkout .woocommerce form .form-row-wide,
body.woocommerce-checkout #billing_phone_field,
body.woocommerce-checkout #billing_company_field,
body.woocommerce-checkout #shipping_company_field,
body.woocommerce-checkout #billing_address_1_field,
body.woocommerce-checkout #billing_address_2_field,
body.woocommerce-checkout #shipping_address_1_field,
body.woocommerce-checkout #shipping_address_2_field { grid-column: 1 / -1; }
body.woocommerce-checkout #billing_state_field,
body.woocommerce-checkout #billing_city_field,
body.woocommerce-checkout #shipping_state_field,
body.woocommerce-checkout #shipping_city_field { grid-column: auto; }
body.woocommerce-checkout .woocommerce-input-wrapper { display: block; width: 100%; }
body.woocommerce-checkout .woocommerce form .form-row label { display: block; font-size: 13px; line-height: 1.8; margin-bottom: 7px; }
body.woocommerce-checkout .woocommerce form .form-row input.input-text,
body.woocommerce-checkout .woocommerce form .form-row select,
body.woocommerce-checkout .woocommerce form .form-row textarea { width: 100%; max-width: 100%; min-width: 0; min-height: 48px; font-size: 16px; line-height: 1.6; }
body.woocommerce-checkout .woocommerce form .form-row textarea { min-height: 100px; resize: vertical; }
body.woocommerce-checkout .select2-container { width: 100% !important; max-width: 100%; }
body.woocommerce-checkout .select2-container .select2-selection--single { min-height: 48px !important; height: auto !important; border: 1px solid var(--yarsa-line); border-radius: 8px; background: var(--yarsa-white); }
body.woocommerce-checkout .select2-container .select2-selection__rendered { min-width: 0; width: 100%; line-height: 1.6 !important; padding-inline: 0 24px !important; color: var(--yarsa-green); font-size: 16px !important; }
body.woocommerce-checkout .select2-container .select2-selection__arrow { height: 46px !important; }
body.woocommerce-checkout #ship-to-different-address label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
body.woocommerce-checkout input[type="checkbox"],
body.woocommerce-checkout input[type="radio"] { accent-color: var(--yarsa-green); min-width: 18px; min-height: 18px; flex-shrink: 0; }
.yarsa-checkout-summary { padding: 22px; border: 1px solid var(--yarsa-line); border-radius: var(--yarsa-radius); background: var(--yarsa-white); box-shadow: var(--yarsa-shadow-sm); }
body.woocommerce-checkout .yarsa-checkout-summary #order_review_heading,
body.woocommerce-checkout .yarsa-checkout-summary #order_review { float: none; width: 100%; padding: 0; border: 0; border-radius: 0; margin: 0; box-shadow: none; }
body.woocommerce-checkout .yarsa-checkout-summary #order_review_heading { font-size: 19px; padding-bottom: 16px; }
body.woocommerce-checkout .yarsa-checkout-summary table.shop_table { width: 100%; table-layout: fixed; border: 0 !important; border-radius: 0 !important; margin: 0 0 20px; }
body.woocommerce-checkout .yarsa-checkout-summary table.shop_table th,
body.woocommerce-checkout .yarsa-checkout-summary table.shop_table td { padding: 14px 6px !important; text-align: start; vertical-align: top; overflow-wrap: anywhere; background: none !important; }
.yarsa-checkout-summary .product-total { width: 30%; }
.yarsa-checkout-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 700; }
.yarsa-checkout-item__body { flex: 1; min-width: 0; }
body.woocommerce-checkout .yarsa-checkout-item__image { width: 56px; height: 66px; flex: 0 0 56px; object-fit: contain; border: 1px solid var(--yarsa-line); border-radius: 8px; padding: 3px; }
.yarsa-checkout-item__price { margin-top: 6px; font-size: 12px; }
body.yarsa-pro .yarsa-checkout-item__price .price { flex-direction: column; align-items: flex-start; }
.yarsa-checkout-summary .product-quantity { display: block; margin-top: 6px; font-size: 12px; color: var(--yarsa-muted); }
body.woocommerce-checkout #payment { border-radius: 12px; background: var(--yarsa-soft-green); padding: 16px; }
body.woocommerce-checkout #payment ul.payment_methods { padding: 0; border-bottom: 1px solid var(--yarsa-line); list-style: none; }
body.woocommerce-checkout #payment ul.payment_methods li { margin-bottom: 12px; line-height: 1.9; }
body.woocommerce-checkout #payment ul.payment_methods li label { cursor: pointer; font-size: 14px; }
body.woocommerce-checkout #payment ul.payment_methods li img { max-width: 90px; max-height: 36px; object-fit: contain; vertical-align: middle; }
body.woocommerce-checkout #payment .payment_box { width: 100%; padding: 12px; background: var(--yarsa-white); border: 1px solid var(--yarsa-line); border-radius: 10px; color: var(--yarsa-green); font-size: 13px; }
body.woocommerce-checkout #payment .payment_box::before { display: none; }
body.woocommerce-checkout #payment .place-order { padding: 16px 0 0; }
body.woocommerce-checkout #payment .woocommerce-privacy-policy-text { font-size: 12px; line-height: 2; }
body.woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper { margin-bottom: 16px; }
body.woocommerce-checkout #place_order { display: flex; align-items: center; justify-content: center; float: none; width: 100%; min-height: 52px; padding: 12px 16px; font-size: 16px; line-height: 1.8; white-space: normal; }
body.woocommerce-checkout .woocommerce-terms-and-conditions { max-height: 240px; }
body.woocommerce-checkout ul#shipping_method,
body.woocommerce-cart ul#shipping_method { padding: 0; margin: 0; list-style: none; }

@media (max-width: 1180px) {
  body.woocommerce-cart .yarsa-cart-layout { grid-template-columns: minmax(0, 1fr); }
  body.woocommerce-cart .yarsa-cart-layout .cart-collaterals .cart_totals { position: static; top: auto; }
  body.woocommerce-checkout form.checkout { grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 16px; }
  body.woocommerce-checkout #customer_details, .yarsa-checkout-summary { padding: 18px; }
}
@media (max-width: 991px) {
  .yarsa-specs__scroll { overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; padding-bottom: 8px; scrollbar-color: var(--yarsa-tan) var(--yarsa-soft-green); scrollbar-width: thin; }
  .yarsa-specs .yarsa-specs__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(140px, 46%); }
  .yarsa-specs .yarsa-specs__card { scroll-snap-align: start; }
  .yarsa-specs.is-expanded .yarsa-specs__list { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  body.woocommerce-checkout form.checkout { grid-template-columns: minmax(0, 1fr); }
  body.woocommerce-cart .yarsa-page-content, body.woocommerce-checkout .yarsa-page-content { width: calc(100% - 24px); }
}
@media (max-width: 768px) {
  body.woocommerce-cart .woocommerce-cart-form table.shop_table,
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tbody { display: block; border: 0 !important; border-radius: 0 !important; background: none; }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table thead { display: none; }
  body.woocommerce-cart .yarsa-cart-products-heading { padding: 14px; }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item { display: grid; grid-template-columns: 78px minmax(0, 1fr) 38px; gap: 9px; padding: 13px; margin-bottom: 12px; border: 1px solid var(--yarsa-line); border-radius: 14px; background: var(--yarsa-white); }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item td { display: block !important; width: auto; min-width: 0; padding: 0 !important; border: 0; text-align: start !important; background: none !important; }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-thumbnail { grid-column: 1; grid-row: 1 / span 2; }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name { grid-column: 2; grid-row: 1; padding-top: 4px !important; }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-remove { grid-column: 3; grid-row: 1; }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-remove a.remove { width: 36px; height: 36px; text-align: center; }
  body.woocommerce-cart .yarsa-cart-layout .woocommerce-cart-form .product-thumbnail img { width: 78px !important; height: 78px !important; }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-price { grid-column: 2 / -1; grid-row: 2; }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity { grid-column: 1; grid-row: 3; }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-subtotal { grid-column: 2 / -1; grid-row: 3; align-self: center; text-align: end !important; font-weight: 800; }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td::before { display: none !important; }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-subtotal::before { display: block !important; content: attr(data-title); float: none; color: var(--yarsa-muted); font-size: 11px; font-weight: 400; }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table td.actions { display: block !important; padding: 14px !important; border: 1px solid var(--yarsa-line) !important; border-radius: 14px; }
  body.woocommerce-cart .woocommerce-cart-form td.actions > button { width: 100%; min-height: 46px; }
  body.woocommerce-cart .yarsa-cart-layout .coupon { margin-bottom: 10px; }
  body.woocommerce-cart .yarsa-cart-layout .coupon > .button { flex: 0 1 auto; width: auto !important; min-height: 46px; }
}
@media (max-width: 480px) {
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
  body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  body.woocommerce-checkout #customer_details, .yarsa-checkout-summary,
  body.woocommerce-cart .yarsa-cart-layout .cart-collaterals .cart_totals { padding: 16px; }
  body.woocommerce-cart .yarsa-cart-products-heading { align-items: flex-start; }
  body.woocommerce-cart .woocommerce-cart-form table.shop_table tr.cart_item { grid-template-columns: 68px minmax(0, 1fr) 36px; padding: 11px; }
  body.woocommerce-cart .yarsa-cart-layout .woocommerce-cart-form .product-thumbnail img { width: 68px !important; height: 68px !important; }
  body.woocommerce-cart .woocommerce-cart-form td.product-name > a { font-size: 13px; }
  body.woocommerce-cart .yarsa-cart-assurance { grid-template-columns: minmax(0, 1fr); }
  .yarsa-checkout-item { gap: 7px; }
  body.woocommerce-checkout .yarsa-checkout-item__image { width: 42px; height: 54px; flex-basis: 42px; }
  .yarsa-checkout-summary .product-total { width: 32%; font-size: 12px; }
  body.woocommerce-checkout #payment { padding: 12px; }
}
