/*
 * Rafiely Ópticas — Runtime fixes v0.6.2
 *
 * Este archivo se carga DESPUÉS del contrato visual V11. Solo corrige:
 * - páginas internas cuya maqueta PHP no usa todas las utilidades React;
 * - HTML clásico producido por shortcodes WooCommerce;
 * - normalización de formularios, tablas, Select2 y responsive.
 * No redefine Inicio, catálogo ni la ficha individual.
 */

:root {
  --rf-brand: var(--color-brand, #ffbe00);
  --rf-ink: var(--color-ink, #171819);
  --rf-paper: var(--color-paper, #fffdf8);
  --rf-ivory: var(--color-ivory, #f8f6ef);
  --rf-line: var(--color-line, #dedbd0);
  --rf-mute: var(--color-mute, #686a6a);
}

body.rafiely-theme .rf-main { padding: 0; min-width: 0; }
body.rafiely-theme .rf-site-content { min-width: 0; overflow: clip; }
body.rafiely-theme .rf-section { position: relative; padding-block: clamp(4.5rem, 8vw, 8.5rem); }
body.rafiely-theme .rf-section-ivory { background: var(--rf-ivory); }
body.rafiely-theme .rf-section-dark { background: var(--rf-ink); color: #fff; }
body.rafiely-theme .rf-page-content { padding-block: clamp(3.5rem, 7vw, 7rem); }
body.rafiely-theme .rf-page-hero { min-height: 390px; }
body.rafiely-theme .rf-page-hero-inner { max-width: 930px; }
body.rafiely-theme .rf-page-hero .eyebrow { color: rgba(255,255,255,.62); }
body.rafiely-theme .rf-page-hero .btn-rf { margin-top: 0; }

/* Evita que logotipos y medios de páginas internas excedan sus columnas. */
body.rafiely-theme .rf-about-brand-panel,
body.rafiely-theme .rf-contact-panel,
body.rafiely-theme .rf-contact-form-card,
body.rafiely-theme .rf-location-card,
body.rafiely-theme .rf-inclusive-page-card { min-width: 0; }
body.rafiely-theme .rf-about-brand-panel img {
  display: block;
  width: min(75%, 420px);
  max-width: 100%;
  height: auto;
  margin: auto;
  object-fit: contain;
}
body.rafiely-theme iframe { max-width: 100%; border: 0; }

/* Contacto exacto V11, con datos dinámicos. */
body.rafiely-theme .rf-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 1.5rem;
}
body.rafiely-theme .rf-contact-panel {
  border-radius: 30px;
  background: var(--rf-brand);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
body.rafiely-theme .rf-contact-panel h2,
body.rafiely-theme .rf-contact-form-card h2 {
  margin-top: 1rem;
  font-size: clamp(2.25rem, 4.3vw, 3.65rem);
  line-height: .96;
  font-weight: 800;
}
body.rafiely-theme .rf-contact-lines { display: grid; gap: .5rem; margin-top: 2rem; }
body.rafiely-theme .rf-contact-line {
  display: flex;
  gap: .75rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 1rem;
  background: rgba(255,255,255,.45);
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
body.rafiely-theme .rf-contact-line:hover { background: rgba(255,255,255,.72); transform: translateY(-2px); }
body.rafiely-theme .rf-contact-line svg { flex: 0 0 auto; }
body.rafiely-theme .rf-contact-line span { min-width: 0; }
body.rafiely-theme .rf-contact-line small,
body.rafiely-theme .rf-field-label {
  display: block;
  color: var(--rf-mute);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}
body.rafiely-theme .rf-contact-line small { color: rgba(23,24,25,.55); }
body.rafiely-theme .rf-contact-line strong { display: block; margin-top: .25rem; font-size: .9rem; overflow-wrap: anywhere; }
body.rafiely-theme .rf-contact-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
body.rafiely-theme .rf-contact-form-card {
  border: 1px solid var(--rf-line);
  border-radius: 30px;
  background: #fff;
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
body.rafiely-theme .rf-contact-form-card > p:not(.eyebrow) { margin-top: .75rem; color: var(--rf-mute); line-height: 1.75; }
body.rafiely-theme .rf-contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.75rem; }
body.rafiely-theme .rf-contact-form-grid label { display: block; min-width: 0; }
body.rafiely-theme .rf-contact-form-grid .rf-field-wide { grid-column: 1 / -1; }
body.rafiely-theme .rf-contact-form-grid .rf-input { margin-top: .5rem; }
body.rafiely-theme .rf-contact-form-card .btn-rf { width: 100%; margin-top: 1.5rem; border: 0; cursor: pointer; }
body.rafiely-theme .rf-input {
  display: block;
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--rf-line);
  border-radius: 14px;
  background: var(--rf-paper);
  color: var(--rf-ink);
  padding: .8rem 1rem;
  outline: none;
}
body.rafiely-theme textarea.rf-input { min-height: 140px; resize: vertical; }
body.rafiely-theme .rf-input:focus { border-color: var(--rf-ink); box-shadow: 0 0 0 5px rgba(255,190,0,.13); }

/* Maquetas editoriales que antes quedaban afectadas por el reset de Tailwind. */
body.rafiely-theme .rf-editorial-sticky > h2 {
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: .96;
  font-weight: 800;
}
body.rafiely-theme .rf-editorial-sticky > p:not(.eyebrow) { margin-top: 1.25rem; color: var(--rf-mute); line-height: 1.75; }
body.rafiely-theme .rf-information-card { margin-top: 1.75rem; border-radius: 26px; background: var(--rf-brand); padding: 1.5rem; }
body.rafiely-theme .rf-information-card p { margin-top: .75rem; line-height: 1.65; }
body.rafiely-theme .rf-step-card h2,
body.rafiely-theme .rf-step-card h3 { margin-top: .75rem; font-size: 1.5rem; line-height: 1.2; font-weight: 700; }
body.rafiely-theme .rf-step-card p { margin-top: .5rem; color: var(--rf-mute); line-height: 1.75; }
body.rafiely-theme .rf-step-n { background: var(--rf-brand); border: 0; }
body.rafiely-theme .rf-inclusive-page-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--rf-line);
  border-radius: 30px;
  background: #fff;
}
body.rafiely-theme .rf-inclusive-page-image { min-height: 620px; }
body.rafiely-theme .rf-inclusive-page-image img { width: 100%; height: 100%; object-fit: cover; }
body.rafiely-theme .rf-inclusive-page-copy { align-self: center; padding: clamp(2rem, 5vw, 4rem); }
body.rafiely-theme .rf-inclusive-page-copy h2 { margin-top: 1.25rem; font-size: clamp(2.35rem, 5vw, 4.5rem); line-height: .96; font-weight: 800; }
body.rafiely-theme .rf-inclusive-page-copy > p:not(.eyebrow) { margin-top: 1.25rem; color: var(--rf-mute); line-height: 1.75; }

/* ================================================================
   WooCommerce clásico: [woocommerce_cart], [woocommerce_checkout],
   [woocommerce_my_account]. Estos selectores deben ganar al reset.
   ================================================================ */
body.rafiely-theme .rf-commerce-content { width: 100%; max-width: 1240px; }
body.rafiely-theme .rf-commerce-content > .woocommerce { width: 100%; min-width: 0; }
body.rafiely-theme .woocommerce { color: var(--rf-ink); font-family: "Manrope", ui-sans-serif, system-ui, sans-serif; }
body.rafiely-theme .woocommerce::before,
body.rafiely-theme .woocommerce::after,
body.rafiely-theme .woocommerce form::before,
body.rafiely-theme .woocommerce form::after { content: ""; display: table; clear: both; }
body.rafiely-theme .woocommerce h2,
body.rafiely-theme .woocommerce h3 { font-family: "Sora", ui-sans-serif, system-ui, sans-serif; font-weight: 700; line-height: 1.15; }
body.rafiely-theme .woocommerce h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
body.rafiely-theme .woocommerce h3 { font-size: 1.25rem; }
body.rafiely-theme .woocommerce a { text-decoration: none; }
body.rafiely-theme .woocommerce p { line-height: 1.65; }

body.rafiely-theme .woocommerce-error,
body.rafiely-theme .woocommerce-info,
body.rafiely-theme .woocommerce-message {
  position: relative;
  margin: 0 0 1.25rem !important;
  border: 1px solid var(--rf-line);
  border-top: 4px solid var(--rf-brand);
  border-radius: 16px;
  background: #fff;
  color: var(--rf-ink);
  padding: 1rem 1.2rem 1rem 3rem !important;
  list-style: none;
}
body.rafiely-theme .woocommerce-error::before,
body.rafiely-theme .woocommerce-info::before,
body.rafiely-theme .woocommerce-message::before { color: var(--rf-brand); left: 1rem; top: 1rem; }

body.rafiely-theme .woocommerce form .form-row { display: block; width: 100%; margin: 0 0 1.1rem; padding: 0; }
body.rafiely-theme .woocommerce form .form-row-first,
body.rafiely-theme .woocommerce form .form-row-last { width: calc(50% - .5rem); }
body.rafiely-theme .woocommerce form .form-row-first { float: left; }
body.rafiely-theme .woocommerce form .form-row-last { float: right; }
body.rafiely-theme .woocommerce form .form-row-wide { clear: both; }
body.rafiely-theme .woocommerce form .form-row label {
  display: block;
  margin: 0 0 .45rem;
  color: var(--rf-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}
body.rafiely-theme .woocommerce form .form-row .required { color: #b10000; }
body.rafiely-theme .woocommerce form .form-row input.input-text,
body.rafiely-theme .woocommerce form .form-row textarea,
body.rafiely-theme .woocommerce form .form-row select,
body.rafiely-theme .woocommerce .select2-container .select2-selection--single,
body.rafiely-theme .woocommerce .select2-container .select2-selection--multiple {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--rf-line) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--rf-ink) !important;
  padding: .78rem 1rem !important;
  box-shadow: none !important;
  outline: none;
}
body.rafiely-theme .woocommerce form .form-row textarea { min-height: 120px; }
body.rafiely-theme .woocommerce .select2-container .select2-selection--single { padding-top: .6rem !important; }
body.rafiely-theme .select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; color: var(--rf-ink); line-height: 28px; }
body.rafiely-theme .select2-container--default .select2-selection--single .select2-selection__arrow { top: 11px; right: 9px; }
body.rafiely-theme .woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: #b10000 !important; }
body.rafiely-theme .woocommerce form .form-row.woocommerce-validated input.input-text { border-color: #198754 !important; }

body.rafiely-theme .woocommerce button.button,
body.rafiely-theme .woocommerce a.button,
body.rafiely-theme .woocommerce input.button,
body.rafiely-theme .woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--rf-brand);
  color: var(--rf-ink);
  padding: .75rem 1.35rem;
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
body.rafiely-theme .woocommerce button.button:hover,
body.rafiely-theme .woocommerce a.button:hover,
body.rafiely-theme .woocommerce input.button:hover { background: #e7a900; transform: translateY(-1px); }
body.rafiely-theme .woocommerce button.button.alt,
body.rafiely-theme .woocommerce a.button.alt,
body.rafiely-theme .woocommerce input.button.alt,
body.rafiely-theme .woocommerce #place_order { background: var(--rf-ink); color: #fff; }
body.rafiely-theme .woocommerce button.button:disabled,
body.rafiely-theme .woocommerce button.button:disabled[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* Carrito */
body.rafiely-theme .woocommerce-cart-form { width: 100%; min-width: 0; }
body.rafiely-theme .woocommerce table.shop_table {
  width: 100%;
  margin: 0;
  border: 1px solid var(--rf-line) !important;
  border-radius: 24px;
  border-collapse: separate !important;
  border-spacing: 0;
  background: #fff;
  overflow: hidden;
}
body.rafiely-theme .woocommerce table.shop_table th,
body.rafiely-theme .woocommerce table.shop_table td {
  vertical-align: middle;
  border: 0;
  border-bottom: 1px solid var(--rf-line);
  padding: 1rem;
  text-align: left;
}
body.rafiely-theme .woocommerce table.shop_table thead th { background: var(--rf-ivory); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
body.rafiely-theme .woocommerce table.shop_table tr:last-child td { border-bottom: 0; }
body.rafiely-theme .woocommerce-cart-form__cart-item .product-remove { width: 42px; text-align: center; }
body.rafiely-theme .woocommerce a.remove { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--rf-ivory); color: var(--rf-ink) !important; font-size: 1.25rem; font-weight: 600; line-height: 1; }
body.rafiely-theme .woocommerce a.remove:hover { background: var(--rf-ink); color: #fff !important; }
body.rafiely-theme .woocommerce-cart-form__cart-item .product-thumbnail { width: 145px; }
body.rafiely-theme .woocommerce-cart-form__cart-item .product-thumbnail img { display: block; width: 120px; height: 88px; object-fit: contain; border-radius: 14px; background: var(--rf-ivory); padding: .35rem; }
body.rafiely-theme .woocommerce-cart-form__cart-item .product-name a { font-family: "Sora", ui-sans-serif, system-ui, sans-serif; font-weight: 700; }
body.rafiely-theme .woocommerce-cart-form__cart-item .product-price,
body.rafiely-theme .woocommerce-cart-form__cart-item .product-subtotal { white-space: nowrap; font-weight: 700; }
body.rafiely-theme .woocommerce .quantity .qty { width: 84px; min-height: 44px; border: 1px solid var(--rf-line); border-radius: 999px; background: #fff; padding: .5rem; text-align: center; }
body.rafiely-theme .woocommerce td.actions { padding: 1rem !important; }
body.rafiely-theme .woocommerce td.actions .coupon { display: flex; align-items: center; gap: .6rem; }
body.rafiely-theme .woocommerce td.actions .coupon .input-text { width: min(230px, 50vw); min-height: 48px; border: 1px solid var(--rf-line); border-radius: 999px; background: #fff; padding: .7rem 1rem; }
body.rafiely-theme .woocommerce td.actions > .button { float: right; }
body.rafiely-theme .woocommerce .cart-collaterals { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 2rem; width: 100%; margin-top: 2rem; }
body.rafiely-theme .woocommerce .cart-collaterals::before,
body.rafiely-theme .woocommerce .cart-collaterals::after { display: none; }
body.rafiely-theme .woocommerce .cart-collaterals .cross-sells,
body.rafiely-theme .woocommerce .cart-collaterals .cart_totals { float: none; width: auto; }
body.rafiely-theme .woocommerce .cart_totals { border: 1px solid var(--rf-line); border-radius: 24px; background: #fff; padding: 1.5rem; }
body.rafiely-theme .woocommerce .cart_totals h2 { margin-bottom: 1rem; font-size: 1.65rem; }
body.rafiely-theme .woocommerce .cart_totals table { border: 0 !important; border-radius: 0; }
body.rafiely-theme .woocommerce .cart_totals table th,
body.rafiely-theme .woocommerce .cart_totals table td { padding: .8rem 0; background: transparent; }
body.rafiely-theme .woocommerce .wc-proceed-to-checkout { padding: 1rem 0 0; }
body.rafiely-theme .woocommerce .wc-proceed-to-checkout a.checkout-button { width: 100%; margin: 0; text-align: center; }
body.rafiely-theme .woocommerce .cart-empty { margin-bottom: 1rem; }

/* Checkout */
body.rafiely-theme form.checkout.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: 2.25rem; align-items: start; }
body.rafiely-theme .woocommerce-checkout .col2-set { float: none; width: auto; padding: 0; min-width: 0; }
body.rafiely-theme .woocommerce-checkout .col-1,
body.rafiely-theme .woocommerce-checkout .col-2 { float: none; width: 100%; }
body.rafiely-theme .woocommerce-checkout .col-2 { margin-top: 1.5rem; }
body.rafiely-theme .woocommerce-checkout #customer_details {
  grid-column: 1;
  grid-row: 1;
  border: 1px solid var(--rf-line);
  border-radius: 28px;
  background: #fff;
  padding: clamp(1.25rem, 3vw, 2rem);
}
body.rafiely-theme .woocommerce-checkout #customer_details h3 { margin: 0 0 1.25rem; font-size: 1.55rem; }
body.rafiely-theme .woocommerce-checkout #order_review_heading { display: none; }
body.rafiely-theme .woocommerce-checkout #order_review { grid-column: 2; grid-row: 1; float: none; width: auto; min-width: 0; border: 1px solid var(--rf-line); border-radius: 28px; background: #fff; padding: clamp(1.25rem, 3vw, 2rem); }
body.rafiely-theme .woocommerce-checkout #order_review::before { content: "Tu pedido"; display: block; margin-bottom: 1rem; font-family: "Sora", ui-sans-serif, system-ui, sans-serif; font-size: 1.55rem; font-weight: 700; }
body.rafiely-theme .woocommerce-checkout-review-order-table { margin-bottom: 1.25rem !important; border: 0 !important; border-radius: 0 !important; }
body.rafiely-theme .woocommerce-checkout-review-order-table th,
body.rafiely-theme .woocommerce-checkout-review-order-table td { padding: .8rem 0 !important; background: transparent !important; }
body.rafiely-theme .woocommerce-checkout-review-order-table td.product-total,
body.rafiely-theme .woocommerce-checkout-review-order-table tfoot td { text-align: right; }
body.rafiely-theme .woocommerce-checkout-review-order-table .order-total th,
body.rafiely-theme .woocommerce-checkout-review-order-table .order-total td { font-size: 1.1rem; font-weight: 800; }
body.rafiely-theme .woocommerce-checkout #payment { margin-top: 1rem; border-radius: 20px; background: var(--rf-ivory); }
body.rafiely-theme .woocommerce-checkout #payment ul.payment_methods { margin: 0; padding: 1.1rem; border-bottom: 1px solid var(--rf-line); list-style: none; }
body.rafiely-theme .woocommerce-checkout #payment .wc_payment_method { margin: 0 0 .75rem; }
body.rafiely-theme .woocommerce-checkout #payment .wc_payment_method:last-child { margin-bottom: 0; }
body.rafiely-theme .woocommerce-checkout #payment .wc_payment_method > label { display: flex; align-items: center; gap: .65rem; font-weight: 700; cursor: pointer; }
body.rafiely-theme .woocommerce-checkout #payment .payment_box { margin: .75rem 0 0; border-radius: 14px; background: #fff; color: var(--rf-mute); padding: 1rem; }
body.rafiely-theme .woocommerce-checkout #payment .place-order { margin: 0; padding: 1.1rem; }
body.rafiely-theme .woocommerce-checkout #payment .woocommerce-privacy-policy-text { margin-bottom: 1rem; color: var(--rf-mute); font-size: .83rem; }
body.rafiely-theme .woocommerce-checkout #place_order { width: 100%; }
body.rafiely-theme .woocommerce-form-coupon-toggle { margin-bottom: 1rem; }
body.rafiely-theme form.checkout_coupon { display: flex; align-items: end; gap: .75rem; margin: 0 0 1.5rem !important; border: 1px solid var(--rf-line) !important; border-radius: 20px; background: #fff; padding: 1rem !important; }
body.rafiely-theme form.checkout_coupon .form-row { float: none; width: auto; margin: 0; }
body.rafiely-theme form.checkout_coupon .form-row:first-child { flex: 1; }

/* Mi cuenta */
body.rafiely-theme .woocommerce-account .woocommerce { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.75rem; align-items: start; }
body.rafiely-theme .woocommerce-account .woocommerce::before,
body.rafiely-theme .woocommerce-account .woocommerce::after { display: none; }
body.rafiely-theme .woocommerce-MyAccount-navigation ul { margin: 0; padding: .75rem; border: 1px solid var(--rf-line); border-radius: 22px; background: #fff; list-style: none; }
body.rafiely-theme .woocommerce-MyAccount-navigation li { margin: 0; }
body.rafiely-theme .woocommerce-MyAccount-navigation li a { display: block; padding: .8rem .95rem; border-radius: 13px; font-weight: 700; }
body.rafiely-theme .woocommerce-MyAccount-navigation li.is-active a { background: var(--rf-brand); }
body.rafiely-theme .woocommerce-MyAccount-content { min-width: 0; border: 1px solid var(--rf-line); border-radius: 22px; background: #fff; padding: clamp(1.25rem, 3vw, 2rem); }
body.rafiely-theme .woocommerce .u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
body.rafiely-theme .woocommerce .u-columns.col2-set::before,
body.rafiely-theme .woocommerce .u-columns.col2-set::after { display: none; }
body.rafiely-theme .woocommerce .u-column1,
body.rafiely-theme .woocommerce .u-column2 { float: none; width: auto; }
body.rafiely-theme .woocommerce-form-login,
body.rafiely-theme .woocommerce-form-register,
body.rafiely-theme .woocommerce-ResetPassword {
  margin: 0 !important;
  border: 1px solid var(--rf-line) !important;
  border-radius: 24px !important;
  background: #fff;
  padding: clamp(1.25rem, 3vw, 2rem) !important;
}

/* Traducciones o textos largos nunca deben romper columnas. */
body.rafiely-theme .woocommerce td,
body.rafiely-theme .woocommerce th,
body.rafiely-theme .woocommerce label,
body.rafiely-theme .woocommerce p { overflow-wrap: anywhere; }

@media (max-width: 980px) {
  body.rafiely-theme .rf-contact-grid,
  body.rafiely-theme .rf-inclusive-page-card { grid-template-columns: 1fr; }
  body.rafiely-theme .rf-inclusive-page-image { min-height: 430px; }
  body.rafiely-theme form.checkout.woocommerce-checkout { grid-template-columns: 1fr; }
  body.rafiely-theme .woocommerce-checkout #customer_details,
  body.rafiely-theme .woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; }
  body.rafiely-theme .woocommerce .cart-collaterals { grid-template-columns: 1fr; }
  body.rafiely-theme .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
  body.rafiely-theme .woocommerce-MyAccount-navigation ul { display: flex; gap: .35rem; overflow-x: auto; }
  body.rafiely-theme .woocommerce-MyAccount-navigation li { flex: 0 0 auto; }
}

@media (max-width: 760px) {
  body.rafiely-theme .rf-contact-form-grid { grid-template-columns: 1fr; }
  body.rafiely-theme .rf-contact-form-grid .rf-field-wide { grid-column: auto; }
  body.rafiely-theme .woocommerce form .form-row-first,
  body.rafiely-theme .woocommerce form .form-row-last { float: none; width: 100%; }
  body.rafiely-theme .woocommerce .u-columns.col2-set { grid-template-columns: 1fr; }
  body.rafiely-theme form.checkout_coupon { align-items: stretch; flex-direction: column; }
  body.rafiely-theme form.checkout_coupon .form-row { width: 100%; }
  body.rafiely-theme .woocommerce td.actions .coupon { align-items: stretch; flex-direction: column; }
  body.rafiely-theme .woocommerce td.actions .coupon .input-text { width: 100%; }
  body.rafiely-theme .woocommerce td.actions > .button { float: none; width: 100%; margin-top: .65rem; }
}

@media (max-width: 680px) {
  body.rafiely-theme .rf-page-hero { min-height: 330px; }
  body.rafiely-theme .rf-page-hero h1 { font-size: clamp(2.8rem, 14vw, 4.5rem); }
  body.rafiely-theme .woocommerce table.shop_table_responsive thead { display: none; }
  body.rafiely-theme .woocommerce table.shop_table_responsive tbody,
  body.rafiely-theme .woocommerce table.shop_table_responsive tr,
  body.rafiely-theme .woocommerce table.shop_table_responsive td { display: block; width: 100%; }
  body.rafiely-theme .woocommerce table.shop_table_responsive tr { position: relative; padding: 1rem; border-bottom: 1px solid var(--rf-line); }
  body.rafiely-theme .woocommerce table.shop_table_responsive tr:last-child { border-bottom: 0; }
  body.rafiely-theme .woocommerce table.shop_table_responsive tr td { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 0; padding: .55rem 0 !important; text-align: right !important; }
  body.rafiely-theme .woocommerce table.shop_table_responsive tr td::before { content: attr(data-title); flex: 0 0 42%; color: var(--rf-mute); font-size: .75rem; font-weight: 800; text-align: left; }
  body.rafiely-theme .woocommerce table.shop_table_responsive tr td.product-remove { position: absolute; top: .75rem; right: .75rem; width: auto; padding: 0 !important; }
  body.rafiely-theme .woocommerce table.shop_table_responsive tr td.product-thumbnail { display: block; padding-right: 3rem !important; text-align: left !important; }
  body.rafiely-theme .woocommerce table.shop_table_responsive tr td.product-thumbnail::before { display: none; }
  body.rafiely-theme .woocommerce-cart-form__cart-item .product-thumbnail img { width: 120px; }
  body.rafiely-theme .woocommerce table.shop_table_responsive tr td.product-name { display: block; padding-right: 3rem !important; text-align: left !important; }
  body.rafiely-theme .woocommerce table.shop_table_responsive tr td.product-name::before { display: none; }
  body.rafiely-theme .woocommerce table.shop_table_responsive tr td.actions { display: block; }
  body.rafiely-theme .woocommerce table.shop_table_responsive tr td.actions::before { display: none; }
  body.rafiely-theme .woocommerce .cart_totals { padding: 1.1rem; }
  body.rafiely-theme .woocommerce-checkout #customer_details,
  body.rafiely-theme .woocommerce-checkout #order_review { padding: 1.1rem; border-radius: 20px; }
}
