/* CS portal: Cart, Checkout and My account in the Quick Order look.
   Loaded after quick-order.css (colours, header, buttons) on those pages only.
   WooCommerce's theme skin (woocommerce-general) is dequeued; its layout CSS stays. */

.fqo-wc { padding-bottom: 48px; }
.fqo-page-title { font-size: 30px; font-weight: 800; margin: 8px 4px 14px; }
.fqo-wc-content > .woocommerce { display: block; }
.fqo-wc p { margin: 0 0 14px; }
.fqo-wc h2, .fqo-wc h3, .fqo-wc h4 { margin: 0 0 14px; color: var(--g); letter-spacing: -0.01em; font-weight: 800; line-height: 1.2; }
.fqo-wc h2 { font-size: 24px; }
.fqo-wc h3 { font-size: 21px; }
.fqo-wc h4 { font-size: 17px; margin-top: 20px; }
.fqo-wc a { color: var(--g); font-weight: 600; }
.fqo-wc a:hover { text-decoration: underline; }
.fqo-wc mark { background: none; color: var(--g); font-weight: 700; }
.fqo-wc ul { padding-left: 20px; }
.fqo-wc .clear { clear: both; }

/* white cards: everything WooCommerce prints sits on one */
.fqo-wc .woocommerce-MyAccount-content,
.fqo-wc .woocommerce-cart-form,
.fqo-wc .cart-collaterals .cart_totals,
.fqo-wc form.checkout #customer_details,
.fqo-wc form.checkout .fqo-review,
.fqo-wc .woocommerce-order,
.fqo-wc .cart-empty-card,
.fqo-wc form.woocommerce-form-login,
.fqo-wc form.woocommerce-form-register,
.fqo-wc form.lost_reset_password {
    background: var(--card); border-radius: 18px; padding: 20px 16px;
}

/* ---------- buttons */
.fqo-wc .button, .fqo-wc button.button, .fqo-wc input.button, .fqo-wc a.button, .fqo-wc #place_order,
.fqo-wc .wc-backward, .fqo-wc .checkout-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
    border-radius: 10px; border: 1.5px solid var(--g); background: #fff; color: var(--g) !important; font: inherit; font-weight: 700;
    text-transform: none; letter-spacing: 0; text-decoration: none !important; cursor: pointer; line-height: 1.2; white-space: nowrap;
    transition: background .15s, color .15s;
}
.fqo-wc .button:hover { background: #eef3f1; }
.fqo-wc .button.alt, .fqo-wc #place_order, .fqo-wc .checkout-button, .fqo-wc .woocommerce-MyAccount-content > p:last-child .button,
.fqo-wc button.woocommerce-form-login__submit, .fqo-wc button.woocommerce-Button {
    background: var(--g); color: #fff !important;
}
.fqo-wc .button.alt:hover, .fqo-wc #place_order:hover, .fqo-wc .checkout-button:hover { background: var(--g-2); }
.fqo-wc .button:disabled, .fqo-wc .button.disabled { opacity: .45; cursor: not-allowed; }
.fqo-wc #place_order, .fqo-wc .checkout-button { display: flex; width: 100%; min-height: 56px; font-size: 17px; }

/* ---------- forms */
.fqo-wc label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.fqo-wc .required { color: var(--red); text-decoration: none; border: 0; }
.fqo-wc .optional { color: var(--muted); font-weight: 400; }
.fqo-wc input.input-text, .fqo-wc input[type=text], .fqo-wc input[type=email], .fqo-wc input[type=tel],
.fqo-wc input[type=password], .fqo-wc input[type=number], .fqo-wc textarea, .fqo-wc select {
    width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #d9d6cf; border-radius: 10px;
    font: inherit; color: var(--ink); background: #fff; box-shadow: none;
}
.fqo-wc textarea { min-height: 96px; }
.fqo-wc input:focus, .fqo-wc textarea:focus, .fqo-wc select:focus { outline: 0; border-color: var(--g); }
.fqo-wc input[type=checkbox], .fqo-wc input[type=radio] { width: auto; min-height: 0; accent-color: var(--g); margin-right: 8px; }
.fqo-wc .form-row { margin: 0 0 16px; padding: 0; }
.fqo-wc .select2-container .select2-selection--single { height: 46px; border: 1px solid #d9d6cf; border-radius: 10px; }
.fqo-wc .select2-container .select2-selection--single .select2-selection__rendered { line-height: 44px; padding-left: 14px; }
.fqo-wc .select2-container .select2-selection--single .select2-selection__arrow { height: 44px; }
.fqo-wc fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; }
.fqo-wc legend { font-weight: 700; padding: 0 6px; }
.fqo-wc .woocommerce-password-strength, .fqo-wc .woocommerce-password-hint { font-size: 13px; }

/* ---------- notices */
.fqo-wc .woocommerce-message, .fqo-wc .woocommerce-info, .fqo-wc .woocommerce-error, .fqo-wc .woocommerce-noreviews {
    list-style: none; margin: 0 0 14px; padding: 14px 16px; border-radius: 12px; border: 0; background: #eef3f1; color: var(--g);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-weight: 500;
}
.fqo-wc .woocommerce-message::before, .fqo-wc .woocommerce-info::before, .fqo-wc .woocommerce-error::before { display: none; }
.fqo-wc .woocommerce-error { background: #fdf2f0; color: var(--red); display: block; }
.fqo-wc .woocommerce-error li { margin: 2px 0; }
.fqo-wc .woocommerce-info { background: #fbf3e3; color: #6b4a00; }
.fqo-wc .woocommerce-message .button, .fqo-wc .woocommerce-info .button { order: 2; min-height: 38px; }

/* ---------- tables */
.fqo-wc table.shop_table, .fqo-wc table.woocommerce-table {
    width: 100%; border-collapse: separate; border-spacing: 0; border: 0; border-radius: 0; margin: 0 0 18px; font-variant-numeric: tabular-nums;
}
.fqo-wc table.shop_table th, .fqo-wc table.shop_table td { padding: 12px 14px; border: 0; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; background: none; }
.fqo-wc table.shop_table thead th { background: var(--chip); border-top: 0; font-weight: 600; font-size: 15px; color: var(--ink); }
.fqo-wc table.shop_table thead th:first-child { border-radius: 8px 0 0 8px; }
.fqo-wc table.shop_table thead th:last-child { border-radius: 0 8px 8px 0; }
.fqo-wc table.shop_table thead + tbody tr:first-child td, .fqo-wc table.shop_table thead + tbody tr:first-child th { border-top: 0; }
.fqo-wc table.shop_table tfoot th, .fqo-wc table.shop_table tfoot td { font-weight: 700; }
.fqo-wc table.shop_table .button { min-height: 38px; padding: 0 14px; font-size: 15px; }
.fqo-wc .woocommerce-orders-table__cell-order-actions .button + .button { margin-left: 6px; }
.fqo-wc .fwp-status, .fqo-wc .woocommerce-orders-table__cell-order-status {
    font-weight: 600;
}
.fqo-wc .fwp-status { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--chip); font-size: 14px; }
.fqo-wc .woocommerce-pagination { display: flex; gap: 8px; }

/* ---------- my account: side menu card + content card */
.fqo-wc .woocommerce-MyAccount-navigation, .fqo-wc .woocommerce-MyAccount-content { float: none; width: auto; }
.fqo-wc .woocommerce-MyAccount-navigation { margin: 0 0 12px; }
.fqo-wc .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 -12px; padding: 0 12px 4px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.fqo-wc .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
.fqo-wc .woocommerce-MyAccount-navigation li { flex: none; margin: 0; padding: 0; border: 0; }
.fqo-wc .woocommerce-MyAccount-navigation a {
    display: flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #d9d6cf; background: #fff;
    color: var(--ink); font-weight: 500; text-decoration: none !important; white-space: nowrap;
}
.fqo-wc .woocommerce-MyAccount-navigation li.is-active a { background: var(--g); border-color: var(--g); color: #fff; font-weight: 700; }
.fqo-wc .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--muted); }
.fqo-wc .woocommerce-MyAccount-navigation-link--downloads { display: none !important; } /* no downloads on this site */
.fqo-wc .woocommerce-MyAccount-content > p:first-child { color: var(--muted); }
.fqo-wc .woocommerce-Addresses { display: grid; gap: 16px; }
/* WooCommerce clearfix ::before/::after would become grid items and push cards out of line */
.fqo-wc .woocommerce-Addresses::before, .fqo-wc .woocommerce-Addresses::after,
.fqo-wc form.checkout::before, .fqo-wc form.checkout::after,
.fqo-wc-content > .woocommerce::before, .fqo-wc-content > .woocommerce::after { display: none; }
.fqo-wc .woocommerce-Addresses .col-1, .fqo-wc .woocommerce-Addresses .col-2 { float: none; width: auto; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.fqo-wc .woocommerce-Address-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fqo-wc .woocommerce-Address-title h3 { margin: 0; font-size: 18px; }
.fqo-wc address { font-style: normal; line-height: 1.6; margin-top: 10px; }

/* sales summary cards (CS_Account dashboard) */
.fqo-wc .top-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 8px; font-variant-numeric: lining-nums tabular-nums; }
.fqo-wc .top-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; }
.fqo-wc .top-card-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.fqo-wc .top-card-value { font-size: 22px; font-weight: 800; color: var(--g); margin: 4px 0 2px; letter-spacing: -0.01em; }
.fqo-wc .top-card-note { font-size: 12px; color: var(--muted); }
.fqo-wc .top-card.is-due { background: #fdf2f0; border-color: #f3d3cd; }
.fqo-wc .top-card.is-due .top-card-value { color: var(--red); }
.fqo-wc .top-card:first-child { grid-column: 1 / -1; background: var(--g); border-color: var(--g); }
.fqo-wc .top-card:first-child .top-card-label, .fqo-wc .top-card:first-child .top-card-note { color: rgba(255,255,255,.75); }
.fqo-wc .top-card:first-child .top-card-value { color: #fff; font-size: 28px; }
.fqo-wc .top-note { font-size: 12px; color: var(--muted); margin: 0 0 22px; }
.fqo-wc .top-range-label { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 6px; }

/* date range filter (CS_Account dashboard): presets as chips, custom range after them */
.fqo-wc .top-range { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; }
.fqo-wc .top-range-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.fqo-wc .top-chip { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink) !important; font-size: 14px; font-weight: 500; text-decoration: none !important; }
.fqo-wc .top-chip:hover { background: var(--chip); }
.fqo-wc .top-chip.is-active { background: var(--g); border-color: var(--g); color: #fff !important; font-weight: 700; }
.fqo-wc .top-range-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid var(--line); }
.fqo-wc .top-range-custom label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin: 0; }
.fqo-wc .top-range-custom input[type=date] { min-height: 36px; padding: 4px 8px; font-size: 14px; width: auto; }
.fqo-wc .top-range-custom .button { min-height: 36px; padding: 0 14px; }
.fqo-wc .top-range-custom.is-active input[type=date] { border-color: var(--g); }

/* sales chart: one series, recessive grid, rounded data ends, hover tooltip */
.fqo-wc .top-chart { position: relative; margin: 6px 0 4px; padding: 14px 14px 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.fqo-wc .top-chart figcaption { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.fqo-wc .top-plot { position: relative; height: 200px; margin: 4px 0 22px 44px; }
.fqo-wc .top-gl { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.fqo-wc .top-gl.is-base { border-top-color: #cfcac0; }
.fqo-wc .top-gl span { position: absolute; right: calc(100% + 6px); top: -8px; font-size: 11px; line-height: 1; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fqo-wc .top-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.fqo-wc .top-bar { position: relative; flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; border-radius: 4px; outline: none; }
.fqo-wc .top-bar:hover, .fqo-wc .top-bar:focus-visible { background: rgba(15, 69, 53, .06); }
.fqo-wc .top-mark { display: block; width: 100%; max-width: 24px; background: var(--g); border-radius: 4px 4px 0 0; }
.fqo-wc .top-bar:hover .top-mark, .fqo-wc .top-bar:focus-visible .top-mark { background: #2b6a55; }
.fqo-wc .top-x { position: absolute; top: calc(100% + 5px); left: 50%; transform: translateX(-50%); font-size: 11px; line-height: 1; color: var(--muted); white-space: nowrap; }
.fqo-wc .top-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 120px; white-space: nowrap; padding: 8px 10px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12px; line-height: 1.4; box-shadow: 0 4px 14px rgba(0,0,0,.18); transform: translate(-50%, calc(-100% - 10px)); }
.fqo-wc .top-tip strong { display: block; font-size: 15px; }
.fqo-wc .top-tip span { display: block; color: rgba(255,255,255,.75); }
.fqo-wc .top-table { margin: 6px 0 4px; font-size: 14px; }
.fqo-wc .top-table summary { cursor: pointer; color: var(--g); font-weight: 600; font-size: 13px; }
.fqo-wc .top-table table { margin-top: 8px; }
@media (min-width: 700px) {
    .fqo-wc .top-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .fqo-wc .top-card:first-child { grid-column: auto; }
    .fqo-wc .top-card:first-child .top-card-value { font-size: 22px; }
}

/* status pills + action buttons (CS_Account dashboard) */
.fqo-wc .top-status { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--chip); font-size: 14px; }
.fqo-wc .top-status.is-paid { background: #e7f2ec; color: var(--g); }
.fqo-wc .top-status.is-due { background: #fdf2f0; color: var(--red); }
.fqo-wc .top-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.fqo-wc .top-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.fqo-wc .woocommerce-MyAccount-content > p:last-child .top-btn-plain { background: #fff; color: var(--g) !important; } /* outline, next to the solid Order now */

/* ---------- cart */
.fqo-wc .woocommerce-cart-form { margin-bottom: 14px; }
.fqo-wc table.cart img { width: 64px; height: 64px; object-fit: contain; }
.fqo-wc table.cart .product-remove a.remove {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--chip); color: var(--muted) !important;
    font-size: 20px; line-height: 1; text-decoration: none !important; font-weight: 400;
}
.fqo-wc table.cart .product-remove a.remove:hover { background: #fdf2f0; color: var(--red) !important; }
.fqo-wc table.cart .product-name a { color: var(--ink); font-weight: 700; }
.fqo-wc table.cart .product-name small, .fqo-wc .product-name .fwp-sku { color: var(--muted); font-weight: 400; }
.fqo-wc table.cart .quantity .qty { width: 80px; text-align: center; font-weight: 600; }
.fqo-wc table.cart td.actions { padding-top: 16px; }
.fqo-wc table.cart td.actions .coupon { display: flex; gap: 8px; align-items: center; }
.fqo-wc table.cart td.actions .coupon label { display: none; }
.fqo-wc table.cart td.actions .coupon .input-text { width: 180px; }
.fqo-wc .cart-collaterals { display: block; }
.fqo-wc .cart-collaterals .cart_totals { float: none; width: auto; }
.fqo-wc .cart_totals h2 { font-size: 22px; }
.fqo-wc .cart_totals table.shop_table th { width: 40%; font-weight: 600; color: var(--muted); }
.fqo-wc .cart_totals .order-total td, .fqo-wc .cart_totals .order-total th { font-size: 20px; font-weight: 800; color: var(--ink); }
.fqo-wc .wc-proceed-to-checkout { padding: 6px 0 0; }
.fqo-wc ul#shipping_method { list-style: none; margin: 0; padding: 0; }
.fqo-wc ul#shipping_method li { margin: 0; display: flex; align-items: center; gap: 8px; padding: 5px 0; text-align: left; }
.fqo-wc ul#shipping_method li input { margin: 0; flex: none; }
.fqo-wc ul#shipping_method li label { margin: 0; display: inline; }
/* many shipping methods on this site: heading above, options full width and left aligned */
.fqo-wc tr.woocommerce-shipping-totals th, .fqo-wc tr.woocommerce-shipping-totals td { display: block; width: auto; text-align: left; border: 0; }
.fqo-wc tr.woocommerce-shipping-totals th { padding-bottom: 2px; }
.fqo-wc tr.woocommerce-shipping-totals td { padding-top: 0; }
.fqo-wc tr.woocommerce-shipping-totals td::before { display: none; } /* responsive table label, heading already shown */
.fqo-wc .woocommerce-shipping-destination, .fqo-wc .woocommerce-shipping-calculator { text-align: left; }
.fqo-wc .cart-empty { font-size: 18px; }
.fqo-wc .return-to-shop .button { background: var(--g); color: #fff !important; }

/* ---------- checkout */
.fqo-wc form.checkout_coupon { background: var(--card); border-radius: 14px; padding: 16px; margin: 0 0 14px; border: 0; }
.fqo-wc form.checkout { display: grid; gap: 14px; }
.fqo-wc form.checkout #customer_details { margin: 0; }
.fqo-wc form.checkout #customer_details .col-1, .fqo-wc form.checkout #customer_details .col-2 { float: none; width: auto; }
.fqo-wc form.checkout .fqo-review h3 { margin-bottom: 10px; }
.fqo-wc #order_review table.shop_table td.product-total, .fqo-wc #order_review table.shop_table tfoot td { text-align: right; white-space: nowrap; }
.fqo-wc #order_review .order-total th, .fqo-wc #order_review .order-total td { font-size: 20px; font-weight: 800; }
.fqo-wc #payment { background: var(--chip); border-radius: 12px; padding: 4px 0 0; }
.fqo-wc #payment ul.payment_methods { list-style: none; margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.fqo-wc #payment ul.payment_methods li { margin: 4px 0; }
.fqo-wc #payment ul.payment_methods li label { display: inline; font-weight: 700; }
.fqo-wc #payment div.payment_box { background: #fff; border-radius: 10px; padding: 10px 14px; margin: 8px 0 4px; font-size: 14px; color: var(--muted); }
.fqo-wc #payment div.payment_box::before { display: none; }
.fqo-wc #payment div.form-row.place-order { padding: 16px; margin: 0; }
.fqo-wc .woocommerce-terms-and-conditions-wrapper { font-size: 14px; color: var(--muted); }
.fqo-wc .woocommerce-privacy-policy-text p { font-size: 13px; color: var(--muted); }

/* file upload fields (WCCF, e.g. proof of payment): undo old theme offsets in Additional CSS */
.fqo-wc .wccf_field_container_checkout_field, .fqo-wc .wccf_field_container_user_field { top: 0 !important; }
.fqo-wc li.wc_payment_method.payment_method_bacs { top: 0 !important; }
.fqo-wc .wccf_field_container_checkout_field {
    margin: 0 0 18px; padding: 16px; border: 1.5px dashed var(--gold); border-radius: 12px; background: #fbf3e3;
}
.fqo-wc .wccf_field_container_checkout_field label { font-size: 16px; color: var(--g); }
.fqo-wc .wccf_field_container_checkout_field input[type=file] { width: 100%; font: inherit; font-size: 15px; }
.fqo-wc .wccf_field_container_checkout_field input[type=file]::file-selector-button {
    margin-right: 12px; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--g); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.fqo-wc .wccf_field_container_checkout_field small { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }

/* ---------- block cart & checkout (cs1 uses the WooCommerce Cart / Checkout blocks) */
/* Theme global styles paint .wp-element-button near-black; give block buttons the portal green. */
.fqo-wc .wc-block-components-button:not(.is-link):not(.wc-block-components-quantity-selector__button),
.fqo-wc .wc-block-cart__submit-button, .fqo-wc .wc-block-components-checkout-place-order-button {
    background: var(--g) !important; color: #fff !important; border: 0 !important; border-radius: 10px !important;
    min-height: 48px; font: inherit; font-weight: 700 !important; text-decoration: none !important; box-shadow: none !important;
}
.fqo-wc .wc-block-components-button:not(.is-link):not(.wc-block-components-quantity-selector__button):hover,
.fqo-wc .wc-block-cart__submit-button:hover, .fqo-wc .wc-block-components-checkout-place-order-button:hover { background: var(--g-2) !important; }
.fqo-wc .wc-block-components-button .wc-block-components-button__text { color: #fff !important; }
/* white cards like the other portal pages */
.fqo-wc .wc-block-cart__main, .fqo-wc .wc-block-cart__sidebar,
.fqo-wc .wc-block-checkout__main, .fqo-wc .wc-block-checkout__sidebar {
    background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px !important; box-sizing: border-box;
}
.fqo-wc .wc-block-checkout__sidebar .wc-block-components-order-summary,
.fqo-wc .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block { border: 0 !important; padding: 0 !important; }
.fqo-wc .wc-block-components-title, .fqo-wc .wc-block-components-checkout-step__title { color: var(--g); font-weight: 700; }
.fqo-wc .wc-block-components-product-name { color: var(--g) !important; font-weight: 600; text-decoration: none !important; }
.fqo-wc .wc-block-components-text-input input, .fqo-wc .wc-block-components-combobox input,
.fqo-wc .wc-blocks-components-select select, .fqo-wc .wc-block-components-textarea { border-radius: 10px !important; border-color: #d9d5cc !important; }
.fqo-wc .wc-block-components-radio-control-accordion-option, .fqo-wc .wc-block-components-radio-control__option { border-radius: 10px; }
.fqo-wc input.wc-block-components-radio-control__input,
.fqo-wc input.wc-block-components-checkbox__input { width: 20px !important; min-width: 20px; height: 20px; margin: 0 !important; } /* undo the classic width: auto above */

/* ---------- order received / view order */
.fqo-wc ul.order_details { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fqo-wc ul.order_details li { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--muted); text-transform: none; float: none; }
.fqo-wc ul.order_details li strong { display: block; margin-top: 2px; font-size: 16px; color: var(--ink); }
.fqo-wc .woocommerce-thankyou-order-received { background: #eef3f1; color: var(--g); padding: 14px 16px; border-radius: 12px; font-weight: 700; font-size: 18px; }
.fqo-wc .woocommerce-customer-details address { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }

/* ---------- phone: tables become stacked rows */
@media (max-width: 699px) {
    .fqo-wc table.shop_table_responsive thead { display: none; }
    .fqo-wc table.shop_table_responsive tr { display: block; padding: 10px 0; border-top: 1px solid var(--line); }
    .fqo-wc table.shop_table_responsive tbody tr:first-child { border-top: 0; }
    .fqo-wc table.shop_table_responsive td, .fqo-wc table.shop_table_responsive th { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border: 0; text-align: right !important; }
    .fqo-wc table.shop_table_responsive td::before { content: attr(data-title); font-weight: 600; color: var(--muted); text-align: left; float: none; }
    .fqo-wc table.shop_table_responsive td:not([data-title])::before { content: none; }
    .fqo-wc table.shop_table_responsive tr td { background: none !important; } /* WooCommerce zebra tint */
    .fqo-wc table.cart td.product-remove, .fqo-wc table.cart td.product-thumbnail { display: inline-flex; }
    .fqo-wc table.cart td.actions { display: block; text-align: left !important; }
    .fqo-wc table.cart td.actions .coupon { margin-bottom: 10px; }
    .fqo-wc table.cart td.actions .coupon .input-text { flex: 1; width: auto; }
    .fqo-wc table.cart td.actions > .button { width: 100%; }
    /* Bills table has no data-title labels: name the columns here */
    .fqo-wc .woocommerce-MyAccount-content table.shop_table_responsive:not(.woocommerce-orders-table) td:nth-child(1)::before { content: "Month"; }
    .fqo-wc .woocommerce-MyAccount-content table.shop_table_responsive:not(.woocommerce-orders-table) td:nth-child(2)::before { content: "Orders"; }
    .fqo-wc .woocommerce-MyAccount-content table.shop_table_responsive:not(.woocommerce-orders-table) td:nth-child(3)::before { content: "Total"; }
    .fqo-wc .woocommerce-MyAccount-content table.shop_table_responsive:not(.woocommerce-orders-table) td:nth-child(4)::before { content: "Status"; }
    .fqo-wc .woocommerce-MyAccount-content table.shop_table_responsive:not(.woocommerce-orders-table) td:nth-child(5)::before { content: "Balance"; }
    .fqo-wc .woocommerce-MyAccount-content table.shop_table_responsive:not(.woocommerce-orders-table) td:nth-child(6) { justify-content: flex-end; }
    .fqo-wc table.shop_table:not(.shop_table_responsive) { display: block; overflow-x: auto; }
}

/* ---------- tablet+ */
@media (min-width: 700px) {
    .fqo-page-title { font-size: 34px; margin: 10px 0 16px; }
    .fqo-wc .woocommerce-MyAccount-content, .fqo-wc .woocommerce-cart-form, .fqo-wc .cart-collaterals .cart_totals,
    .fqo-wc form.checkout #customer_details, .fqo-wc form.checkout .fqo-review, .fqo-wc .woocommerce-order,
    .fqo-wc form.woocommerce-form-login, .fqo-wc form.woocommerce-form-register { padding: 24px; }
    .fqo-wc .woocommerce-Addresses { grid-template-columns: 1fr 1fr; }
    .fqo-wc ul.order_details { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .fqo-wc form.checkout .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
    .fqo-wc form.checkout .woocommerce-billing-fields__field-wrapper .form-row-wide { grid-column: 1 / -1; }
    /* billing/shipping grid already gives two columns; WooCommerce's 47% width would shrink first/last name again */
    .fqo-wc form.checkout .woocommerce-billing-fields__field-wrapper .form-row-first,
    .fqo-wc form.checkout .woocommerce-billing-fields__field-wrapper .form-row-last { width: auto; float: none; }
    .fqo-wc .form-row-first, .fqo-wc .form-row-last { width: 48.5%; }
}

/* ---------- desktop: account menu on the left, cart/checkout in two columns */
@media (min-width: 960px) {
    .fqo-wc-content > .woocommerce:has(> .woocommerce-MyAccount-navigation) {
        display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start;
    }
    .fqo-wc .woocommerce-MyAccount-navigation { position: sticky; top: 90px; margin: 0; background: var(--card); border-radius: 18px; padding: 12px; }
    .fqo-wc .woocommerce-MyAccount-navigation ul { flex-direction: column; margin: 0; padding: 0; gap: 2px; overflow: visible; }
    .fqo-wc .woocommerce-MyAccount-navigation a { height: 46px; border: 0; border-radius: 10px; background: none; padding: 0 14px; font-size: 16px; }
    .fqo-wc .woocommerce-MyAccount-navigation a:hover { background: var(--chip); }
    .fqo-wc .woocommerce-MyAccount-navigation li.is-active a { background: var(--chip); color: var(--g); box-shadow: inset 3px 0 0 var(--g); border-radius: 0 10px 10px 0; }
    .fqo-wc .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 8px !important; padding-top: 8px !important; border-top: 1px solid var(--line) !important; }

    .fqo-wc-content > .woocommerce:has(> .woocommerce-cart-form) {
        display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 18px; align-items: start;
    }
    .fqo-wc-content > .woocommerce:has(> .woocommerce-cart-form) > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
    .fqo-wc .woocommerce-cart-form { margin: 0; }
    .fqo-wc .cart-collaterals { position: sticky; top: 90px; }

    .fqo-wc form.checkout { grid-template-columns: minmax(0, 1fr) 430px; gap: 18px; align-items: start; }
    .fqo-wc form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
    .fqo-wc form.checkout .fqo-review { position: sticky; top: 90px; }
}

/* ---------- customer mode: login hint */
.fqo-login-hint { margin: 0 0 14px; color: var(--muted, #5b6b64); font-size: 15px; line-height: 1.45; }
