/**
 * Fat Farmer cart and checkout design, v1.2.5.
 * Appearance only: leave WooCommerce markup, payment controls, coupons,
 * shipping rates, quantity and order calculations untouched.
 * Sources: Elementor Pro Cart/Checkout widgets, classic WooCommerce templates,
 * and the public-facing WooCommerce Cart/Checkout blocks.
 */

/* Palette is set from the plugin's existing color controls via wp_add_inline_style. */
body.woocommerce-cart,
body.woocommerce-checkout {
    background-color: var(--ffcd-cream, #f8f6ef);
    color: #283c2d;
}

/* Elementor widgets and WooCommerce use a variety of wrappers. Keeping the
 * typography scoped avoids altering the theme header, footer and other forms. */
:is(body.woocommerce-cart, body.woocommerce-checkout) :is(.woocommerce, .wc-block-cart, .wc-block-checkout),
:is(.elementor-widget-woocommerce-cart, .elementor-widget-woocommerce-checkout) {
    color: #2b392e;
    font-family: inherit;
}
:is(body.woocommerce-cart, body.woocommerce-checkout) .woocommerce :is(h1, h2, h3, h4),
:is(.elementor-widget-woocommerce-cart, .elementor-widget-woocommerce-checkout) :is(h2, h3, h4),
:is(.wc-block-cart, .wc-block-checkout) :is(h2, h3, h4) {
    color: var(--ffcd-green, #17482b);
    letter-spacing: -.025em;
    line-height: 1.25;
}
:is(body.woocommerce-cart, body.woocommerce-checkout) .woocommerce a:not(.button):not(.checkout-button),
:is(.elementor-widget-woocommerce-cart, .elementor-widget-woocommerce-checkout) a:not(.button) {
    color: var(--ffcd-green, #17482b);
    text-decoration-color: rgba(23,72,43,.35);
    text-underline-offset: 3px;
}
:is(body.woocommerce-cart, body.woocommerce-checkout) .woocommerce :is(a, button, input, select, textarea):focus-visible,
:is(.wc-block-cart, .wc-block-checkout) :is(a, button, input, select, textarea):focus-visible {
    outline: 3px solid var(--ffcd-accent, #bf7827);
    outline-offset: 2px;
}

/* Universal white cards — preserve Elementor's own grid/columns. */
:is(body.woocommerce-cart, body.woocommerce-checkout) .woocommerce :is(.cart_totals, .woocommerce-checkout-review-order, #customer_details, .cross-sells),
body.woocommerce-cart .woocommerce table.shop_table,
body.woocommerce-checkout .woocommerce table.shop_table,
:is(.elementor-widget-woocommerce-cart, .elementor-widget-woocommerce-checkout) :is(.e-cart__section, .e-checkout__section),
:is(.wc-block-cart, .wc-block-checkout) :is(.wc-block-cart-items, .wc-block-components-sidebar-layout .wc-block-components-sidebar, .wc-block-components-checkout-step) {
    border: 1px solid #dfe6da;
    border-radius: var(--ffcd-radius, 16px);
    background: #fff;
    box-shadow: 0 10px 30px rgba(30, 67, 37, .045);
}

/* Classic cart table and line items. */
body.woocommerce-cart .woocommerce table.shop_table,
body.woocommerce-checkout .woocommerce table.shop_table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    width: 100%;
    margin-bottom: 24px;
}
body.woocommerce-cart .woocommerce table.shop_table :is(th, td),
body.woocommerce-checkout .woocommerce table.shop_table :is(th, td) {
    padding: 16px 19px;
    border-color: #e9eee5;
    line-height: 1.45;
}
body.woocommerce-cart .woocommerce table.shop_table thead th {
    background: #f3f5f0;
    color: var(--ffcd-green, #17482b);
    font-size: 13px;
    font-weight: 750;
    border-bottom: 1px solid #e3e9df;
}
body.woocommerce-cart .woocommerce table.shop_table tbody tr:last-child > td,
body.woocommerce-checkout .woocommerce table.shop_table tbody tr:last-child > td { border-bottom: 0; }
body.woocommerce-cart .woocommerce table.shop_table img {
    width: 76px;
    height: 76px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #e6ecdf;
}
body.woocommerce-cart .woocommerce .product-name a,
.elementor-widget-woocommerce-cart .product-name a {font-weight: 700;}
body.woocommerce-cart .woocommerce a.remove {
    color: #a34a39 !important;
    border: 1px solid #efdbd7;
    border-radius: 50%;
    line-height: 1;
    font-weight: 700;
}
body.woocommerce-cart .woocommerce a.remove:hover { background:#a34a39; color:#fff !important; }

/* Cart summary and checkout order total. */
body.woocommerce-cart .woocommerce .cart_totals {padding: 24px;}
body.woocommerce-cart .woocommerce .cart_totals > h2,
body.woocommerce-checkout .woocommerce #order_review_heading {
    font-size: clamp(20px, 2vw, 25px);
    font-weight: 800;
    margin: 0 0 20px;
}
body.woocommerce-cart .woocommerce .cart_totals table.shop_table {
    border: 0;
    box-shadow: none;
    margin-bottom: 16px;
}
body.woocommerce-cart .woocommerce .cart_totals table.shop_table :is(th, td) {
    padding: 13px 8px;
}
body.woocommerce-cart .woocommerce .order-total,
body.woocommerce-checkout .woocommerce .order-total,
:is(.elementor-widget-woocommerce-cart, .elementor-widget-woocommerce-checkout) :is(.order-total, .e-cart-totals__table, .e-checkout__order_review) {
    color: var(--ffcd-green, #17482b);
    font-weight: 800;
}
body.woocommerce-cart .woocommerce .order-total :is(td, th),
body.woocommerce-checkout .woocommerce .order-total :is(td, th) {
    border-top: 2px solid #d6e2d2;
    font-size: 18px;
}

/* Buttons. Scope to purchase/update actions, not payment gateway buttons. */
body.woocommerce-cart .woocommerce :is(a.checkout-button, button[name="apply_coupon"], button[name="update_cart"], .return-to-shop .button),
body.woocommerce-checkout .woocommerce :is(#place_order, button[name="apply_coupon"]),
.elementor-widget-woocommerce-cart :is(.e-cart__container .checkout-button, .e-cart__container button[name="apply_coupon"], .e-cart__container button[name="update_cart"]),
.elementor-widget-woocommerce-checkout :is(#place_order, button[name="apply_coupon"]),
:is(.wc-block-cart, .wc-block-checkout) .wc-block-components-button:not(.is-link) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid var(--ffcd-green, #17482b) !important;
    border-radius: 10px !important;
    background: var(--ffcd-green, #17482b) !important;
    color: #fff !important;
    box-shadow: none !important;
    text-decoration: none !important;
    font: inherit;
    font-weight: 750 !important;
    line-height: 1.35;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}
body.woocommerce-cart .woocommerce :is(a.checkout-button, button[name="apply_coupon"], button[name="update_cart"], .return-to-shop .button):not(:disabled):hover,
body.woocommerce-checkout .woocommerce :is(#place_order, button[name="apply_coupon"]):not(:disabled):hover,
.elementor-widget-woocommerce-cart :is(.checkout-button, button[name="apply_coupon"], button[name="update_cart"]):not(:disabled):hover,
.elementor-widget-woocommerce-checkout :is(#place_order, button[name="apply_coupon"]):not(:disabled):hover,
:is(.wc-block-cart, .wc-block-checkout) .wc-block-components-button:not(.is-link):not(:disabled):hover {
    background: #0f3620 !important;
    color:#fff !important;
    border-color:#0f3620 !important;
    transform: translateY(-1px);
}
:is(body.woocommerce-cart, body.woocommerce-checkout) .woocommerce button:disabled,
:is(.wc-block-cart, .wc-block-checkout) button:disabled {opacity:.6;cursor:not-allowed;}
body.woocommerce-cart .woocommerce .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-checkout .woocommerce #place_order,
.elementor-widget-woocommerce-cart .checkout-button,
.elementor-widget-woocommerce-checkout #place_order,
.wc-block-cart .wc-block-cart__submit-button,
.wc-block-checkout .wc-block-components-checkout-place-order-button {width:100%;}

/* Fields and quantity controls, not hidden radios / checkboxes. */
:is(body.woocommerce-cart, body.woocommerce-checkout) .woocommerce :is(input.input-text, input.qty, select, textarea),
:is(.elementor-widget-woocommerce-cart, .elementor-widget-woocommerce-checkout) :is(input.input-text, input.qty, select, textarea),
:is(.wc-block-cart, .wc-block-checkout) :is(.wc-block-components-text-input input, .wc-block-components-combobox input, .wc-block-components-textarea, .wc-block-components-quantity-selector input) {
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d4dfd2 !important;
    border-radius: 9px !important;
    background: #fff;
    color: #233a2a;
    font: inherit;
    box-shadow: none;
}
:is(body.woocommerce-cart, body.woocommerce-checkout) .woocommerce :is(input.input-text, input.qty, select, textarea):focus,
:is(.elementor-widget-woocommerce-cart, .elementor-widget-woocommerce-checkout) :is(input.input-text, input.qty, select, textarea):focus,
:is(.wc-block-cart, .wc-block-checkout) :is(.wc-block-components-text-input input, .wc-block-components-combobox input):focus {
    border-color: var(--ffcd-green, #17482b) !important;
    box-shadow: 0 0 0 3px rgba(23,72,43,.09);
}
:is(body.woocommerce-cart, body.woocommerce-checkout) .woocommerce input[type="checkbox"],
:is(body.woocommerce-cart, body.woocommerce-checkout) .woocommerce input[type="radio"],
:is(.elementor-widget-woocommerce-cart, .elementor-widget-woocommerce-checkout) input[type="checkbox"],
:is(.elementor-widget-woocommerce-cart, .elementor-widget-woocommerce-checkout) input[type="radio"],
:is(.wc-block-cart, .wc-block-checkout) input[type="checkbox"],
:is(.wc-block-cart, .wc-block-checkout) input[type="radio"] {accent-color:var(--ffcd-green,#17482b);}
body.woocommerce-cart .woocommerce .quantity .qty,
.elementor-widget-woocommerce-cart .quantity .qty {width:72px; text-align:center;}
:is(body.woocommerce-cart, body.woocommerce-checkout) .woocommerce .select2-container .select2-selection,
.elementor-widget-woocommerce-checkout .select2-container .select2-selection {
    border: 1px solid #d4dfd2;
    border-radius:9px;
    background:#fff;
    min-height:44px;
}
:is(body.woocommerce-cart, body.woocommerce-checkout) .woocommerce .select2-container .select2-selection__rendered {line-height:42px; color:#233a2a;}
:is(body.woocommerce-cart, body.woocommerce-checkout) .woocommerce .select2-container .select2-selection__arrow {height:42px;}

/* Elementor Cart/Checkout section backgrounds. More specific than generic Elementor sections. */
.elementor-widget-woocommerce-cart .e-cart__section,
.elementor-widget-woocommerce-checkout .e-checkout__section {
    padding: 22px;
    background: #fff !important;
    border:1px solid #dfe6da !important;
    border-radius:var(--ffcd-radius,16px) !important;
    box-shadow: 0 10px 30px rgba(30,67,37,.045);
}
.elementor-widget-woocommerce-cart .e-cart__container,
.elementor-widget-woocommerce-checkout .e-checkout__container {gap:22px;}
.elementor-widget-woocommerce-cart :is(.e-cart__column-start, .e-cart__column-end),
.elementor-widget-woocommerce-checkout :is(.e-checkout__column-start, .e-checkout__column-end) {min-width:0;}
.elementor-widget-woocommerce-cart :is(.e-cart__section h2, .e-cart__section h3),
.elementor-widget-woocommerce-checkout :is(.e-checkout__section h2, .e-checkout__section h3) {
    color:var(--ffcd-green,#17482b);
    font-weight:800;
}

/* Checkout's standard, classic sections and payment choices. */
body.woocommerce-checkout .woocommerce #customer_details {
    padding:23px;
    margin-bottom:22px;
}
body.woocommerce-checkout .woocommerce #customer_details .col-1,
body.woocommerce-checkout .woocommerce #customer_details .col-2 {max-width:100%;}
body.woocommerce-checkout .woocommerce :is(.form-row label, .woocommerce-billing-fields label, .woocommerce-shipping-fields label) {
    color:#344e39;
    font-size:13px;
    font-weight:700;
}
body.woocommerce-checkout .woocommerce :is(.woocommerce-checkout-review-order, #payment) {
    background:#fff;
    border:1px solid #dfe6da;
    border-radius:var(--ffcd-radius,16px);
    padding:20px;
}
body.woocommerce-checkout .woocommerce #payment ul.payment_methods {
    border-bottom-color:#e2e9de;
    padding:0 0 16px;
}
body.woocommerce-checkout .woocommerce #payment div.payment_box {
    background:#f3f6ef;
    color:#334938;
    border-radius:10px;
    padding:14px;
}
body.woocommerce-checkout .woocommerce #payment div.payment_box::before {border-bottom-color:#f3f6ef;}
body.woocommerce-checkout .woocommerce #payment div.form-row {padding:16px 0 0;}
body.woocommerce-checkout .woocommerce #payment label {color:#29432f;}
body.woocommerce-checkout .woocommerce #payment .place-order {margin-bottom:0;}

/* Status messages, coupons, sign-in prompts and point redemptions. */
:is(body.woocommerce-cart, body.woocommerce-checkout) .woocommerce :is(.woocommerce-message, .woocommerce-info),
:is(.elementor-widget-woocommerce-cart, .elementor-widget-woocommerce-checkout) :is(.woocommerce-message, .woocommerce-info) {
    background:#eef5ed;
    border:1px solid #cfe0ca;
    border-left:4px solid var(--ffcd-green,#17482b);
    border-radius:12px;
    padding:16px 18px;
    color:#29442f;
    box-shadow:none;
}
:is(body.woocommerce-cart, body.woocommerce-checkout) .woocommerce .woocommerce-error {
    background:#fff4ef;
    border:1px solid #f3cabc;
    border-left:4px solid #ad4f31;
    border-radius:12px;
    color:#7f392b;
    padding:16px 18px;
}
:is(body.woocommerce-cart, body.woocommerce-checkout) .woocommerce .woocommerce-info::before,
:is(body.woocommerce-cart, body.woocommerce-checkout) .woocommerce .woocommerce-message::before {color:var(--ffcd-green,#17482b);}
:is(body.woocommerce-cart, body.woocommerce-checkout) .woocommerce :is(.checkout_coupon, .woocommerce-form-login) {
    padding:20px;
    background:#fff;
    border:1px solid #dfe6da;
    border-radius:12px;
}
:is(body.woocommerce-cart, body.woocommerce-checkout) .woocommerce .coupon {max-width:100%;}
:is(body.woocommerce-cart, body.woocommerce-checkout) .woocommerce .ffvd-points-card,
:is(.elementor-widget-woocommerce-cart, .elementor-widget-woocommerce-checkout) .ffvd-points-card,
:is(.wc-block-cart, .wc-block-checkout) .ffvd-points-card {
    border:1px solid #d5e3d0;
    background:var(--ffcd-cream,#f8f6ef);
    border-radius:var(--ffcd-radius,16px);
}
:is(body.woocommerce-cart, body.woocommerce-checkout) .woocommerce .ffvd-points-heading,
:is(.elementor-widget-woocommerce-cart, .elementor-widget-woocommerce-checkout) .ffvd-points-heading {color:var(--ffcd-green,#17482b);}

/* WooCommerce Cart / Checkout blocks. Keep their layout and payment components. */
:is(.wc-block-cart, .wc-block-checkout) {
    --wc-blocks-button-color: #fff;
    --wc-blocks-button-background-color: var(--ffcd-green,#17482b);
    --wc-blocks-button-border-radius: 10px;
    --wc-blocks-border-radius: 12px;
    accent-color:var(--ffcd-green,#17482b);
}
.wc-block-cart :is(.wc-block-cart-items, .wc-block-components-totals-wrapper),
.wc-block-checkout :is(.wc-block-components-checkout-step, .wc-block-components-order-summary) {
    border-color:#dfe6da;
    border-radius:var(--ffcd-radius,16px);
}
:is(.wc-block-cart, .wc-block-checkout) :is(.wc-block-components-totals-item__value, .wc-block-components-formatted-money-amount) {color:var(--ffcd-green,#17482b);}
:is(.wc-block-cart, .wc-block-checkout) .wc-block-components-product-name {font-weight:700;color:var(--ffcd-green,#17482b);}
:is(.wc-block-cart, .wc-block-checkout) :is(.wc-block-components-panel, .wc-block-components-radio-control__option) {border-color:#dde7d8;}
:is(.wc-block-cart, .wc-block-checkout) :is(.wc-block-components-radio-control__option-checked, .wc-block-components-radio-control__option:has(input:checked)) {background:#f1f6ef;}
:is(.wc-block-cart, .wc-block-checkout) .wc-block-components-order-summary-item__quantity {
    background:var(--ffcd-cream,#f8f6ef);
    border-color:var(--ffcd-green,#17482b);
    box-shadow:0 0 0 2px #fff;
    color:var(--ffcd-green,#17482b);
}
.wc-block-cart .wc-block-cart__submit-container {background:var(--ffcd-cream,#f8f6ef);}
.wc-block-cart .wc-block-cart__submit-container::before {color:#e4eadd;}
:is(.wc-block-cart, .wc-block-checkout) .wc-block-components-checkout-step__heading-title {font-weight:800;}

/* Responsive polish without modifying Elementors layout breakpoints. */
@media (max-width: 767px) {
    body.woocommerce-cart .woocommerce table.shop_table :is(th, td),
    body.woocommerce-checkout .woocommerce table.shop_table :is(th, td) {padding:12px;}
    body.woocommerce-cart .woocommerce .cart_totals,
    body.woocommerce-checkout .woocommerce :is(#customer_details, .woocommerce-checkout-review-order, #payment),
    .elementor-widget-woocommerce-cart .e-cart__section,
    .elementor-widget-woocommerce-checkout .e-checkout__section {padding:16px; border-radius:13px;}
    :is(body.woocommerce-cart, body.woocommerce-checkout) .woocommerce :is(input.input-text, select, textarea) {max-width:100%;}
    body.woocommerce-cart .woocommerce table.shop_table_responsive tr td::before {color:var(--ffcd-green,#17482b);font-weight:700;}
    :is(body.woocommerce-cart,body.woocommerce-checkout) .woocommerce .ffvd-points-card {margin-bottom:20px;}
}
@media (max-width: 520px) {
    body.woocommerce-cart .woocommerce table.shop_table img {width:62px;height:62px;}
    body.woocommerce-cart .woocommerce .coupon :is(input, button) {width:100% !important;margin:0 0 8px !important;}
    body.woocommerce-cart .woocommerce button[name="update_cart"] {width:100%;}
    body.woocommerce-checkout .woocommerce #payment div.payment_box {padding:11px;}
}
@media (prefers-reduced-motion: reduce) {
    :is(body.woocommerce-cart,body.woocommerce-checkout) .woocommerce :is(a.button,button),
    :is(.wc-block-cart,.wc-block-checkout) .wc-block-components-button {transition:none!important;transform:none!important;}
}

/* v1.2.1: reduce nested borders from the theme + Elementor Cart widget. */
body.woocommerce-cart .woocommerce .e-cart__section,
body.woocommerce-checkout .woocommerce .e-checkout__section {
    border: 1px solid #e4e8df !important;
    border-radius: 18px !important;
    background: #fff !important;
    padding: clamp(18px, 2.5vw, 28px) !important;
    box-shadow: 0 12px 30px rgba(16, 47, 27, .045) !important;
}
body.woocommerce-cart .woocommerce .e-cart__section .cart_totals,
body.woocommerce-cart .woocommerce .e-cart__section table.shop_table,
body.woocommerce-cart .woocommerce .e-cart__section .e-cart-totals,
body.woocommerce-checkout .woocommerce .e-checkout__section table.shop_table {
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent;
}
body.woocommerce-cart .woocommerce .e-cart__section .cart_totals {padding: 0 !important;}
body.woocommerce-cart .woocommerce-cart-form table.shop_table {
    border: 1px solid #e4e8df !important;
    border-radius: 13px !important;
    box-shadow: none !important;
}
body.woocommerce-cart .woocommerce .product-name a {font-size: 14px; line-height: 1.35;}
body.woocommerce-cart .woocommerce-cart-form .product-price,
body.woocommerce-cart .woocommerce-cart-form .product-subtotal {white-space: nowrap;}
body.woocommerce-cart .woocommerce-cart-form .actions {padding: 14px 0 !important;}
body.woocommerce-cart .woocommerce-cart-form button[name="update_cart"] {
    min-width: 146px;
    opacity: 1;
}

/* Productized list inside WC's genuine cart totals; regenerated on quantity update. */
body.woocommerce-cart .woocommerce .cart_totals {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
body.woocommerce-cart .woocommerce .cart_totals > h2 {order: 0; color: var(--ffcd-green, #17482b);}
body.woocommerce-cart .woocommerce .cart_totals > .ffcd-order-lines {order: 1;}
body.woocommerce-cart .woocommerce .cart_totals > .shop_table {order: 2;}
body.woocommerce-cart .woocommerce .cart_totals > .wc-proceed-to-checkout {order: 3;}
.ffcd-order-lines {
    margin: 0 0 8px;
    padding: 0 0 12px;
    border-bottom: 1px solid #e3e9df;
}
.ffcd-order-lines__heading {
    display:flex;
    justify-content:space-between;
    gap:16px;
    padding: 0 0 12px;
    color:#6b7b69;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .075em;
}
.ffcd-order-line {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 13px 0;
    border-top: 1px solid #f0f2ed;
    font-size: 13px;
}
.ffcd-order-line__picture img {
    display:block;
    width: 45px !important;
    height: 45px !important;
    object-fit: cover;
    border-radius: 10px;
}
.ffcd-order-line__content {min-width: 0;}
.ffcd-order-line__title {font-weight: 750; line-height: 1.25; color: #193e28; overflow-wrap: anywhere;}
.ffcd-order-line__meta, .ffcd-order-line__variation {display:block; color: #6d796e; font-size: 11px; line-height: 1.5; padding-top: 4px;}
.ffcd-order-line__variation :is(dl, dd, dt, p) {display:inline;margin:0;font-size:11px;}
.ffcd-order-line__variation dd::after {content:' · ';}
.ffcd-order-line__total {text-align:right;white-space:nowrap;font-size: 12px; color: #173f28;}
.ffcd-order-line__total .amount {font-size: 12px;}
body.woocommerce-cart .woocommerce .cart_totals table.shop_table {margin-top:0 !important;}
body.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.cart-subtotal > * {padding-top: 15px !important;}
body.woocommerce-cart .woocommerce .cart_totals table.shop_table tr.order-total > * {font-size: 17px;}
body.woocommerce-cart .woocommerce .cart_totals table.shop_table td {text-align:right;}

/* Prominent account access: login, signup and password reset without leaving cart/checkout. */
.ffcd-account {
    margin: 0 0 28px;
    padding: 0;
    border: 1px solid #d9e5d6;
    border-radius: 18px;
    background: #fff;
    color: #283e2c;
    box-shadow: 0 15px 35px rgba(13,44,25,.055);
    overflow: hidden;
}
.ffcd-account__intro {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 23px 26px;
    background: linear-gradient(115deg, #ecf4e9 0%, #f7f8f1 100%);
}
.ffcd-account__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 14px;
    color: var(--ffcd-green,#17482b);
    background: #dbe9d8;
}
.ffcd-account__copy {flex: 1; min-width: 0;}
.ffcd-account__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    min-height: 40px;
    min-width: 92px;
    padding: 9px 13px !important;
    border-radius: 10px !important;
    border: 1px solid #bcd3bb !important;
    background: #fff !important;
    color: var(--ffcd-green,#17482b) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    cursor: pointer;
}
.ffcd-account__toggle:hover, .ffcd-account__toggle:focus-visible {
    border-color: var(--ffcd-green,#17482b) !important;
    background: #f7faf5 !important;
}
.ffcd-account__chevron {transition: transform .2s ease; transform: rotate(180deg);}
.ffcd-account.is-collapsed .ffcd-account__chevron {transform: rotate(0deg);}
.ffcd-account__content[hidden] {display:none!important;}
.ffcd-account.is-collapsed {margin-bottom: 20px;}

.ffcd-account__copy h2,
.woocommerce .ffcd-account__copy h2 {
    margin:0 0 6px!important;
    font-size: clamp(19px, 2.5vw, 25px)!important;
    line-height:1.2;
    color:var(--ffcd-green,#17482b)!important;
    font-weight:850;
}
.ffcd-account__copy p {margin:0;font-size:13px;line-height:1.6;color:#526454;}
.ffcd-account__content {
    padding: 18px 26px 28px;
    border-top: 1px solid #e1e9de;
    background: #fff;
}
.ffcd-account__panel[hidden] {display:none!important;}
.ffcd-account__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
    margin: 0 0 24px;
    padding: 5px;
    background: #f3f5ef;
    border-radius: 12px;
    max-width: 700px;
}
.ffcd-account__tab {
    flex: 1 1 145px;
    min-width: 0;
    appearance: none;
    background: transparent !important;
    border: 0 !important;
    border-radius: 9px !important;
    padding: 13px 12px !important;
    color: #47604d !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    text-align: center;
    line-height: 1.4;
    box-shadow: none !important;
    cursor: pointer;
}
.ffcd-account__tab.is-active,
.ffcd-account__tab[aria-selected="true"] {
    color: #fff !important;
    background: var(--ffcd-green,#17482b) !important;
    box-shadow: 0 3px 9px rgba(20,65,37,.12) !important;
}
.ffcd-account :is(.woocommerce-form-login, .woocommerce-form-register, .ffcd-account__reset) {
    max-width: 620px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    margin: 0 !important;
}
.ffcd-account :is(.form-row, p.form-row) {margin: 0 0 16px;}
.ffcd-account label {display:block;margin-bottom:7px;color:#263e2a;font-size:13px;font-weight:750;}
.ffcd-account input:not([type="checkbox"]):not([type="hidden"]) {
    min-height: 48px;
    max-width: 100%;
    width: 100%;
    border: 1px solid #cfdccc;
    border-radius: 10px;
    padding: 11px 14px;
    background: #fff;
    box-shadow: none;
}
.ffcd-account input[type="checkbox"] {accent-color:var(--ffcd-green,#17482b);}
.ffcd-account input:not([type="checkbox"]):not([type="hidden"]):focus-visible {
    outline: 2px solid var(--ffcd-green,#17482b);
    outline-offset: 1px;
}
.ffcd-account .woocommerce-form-login__rememberme {display:inline-flex;align-items:center;gap:8px;margin-right:12px;}
.ffcd-account .woocommerce-form-login__rememberme input {width:auto;min-height:0;}
.ffcd-account :is(.lost_password, .ffcd-account__hint) {margin:14px 0;font-size:13px;line-height:1.55;color:#526454;}
.ffcd-account__submit,
.ffcd-account .woocommerce-form-login__submit {
    border: 1px solid var(--ffcd-green, #17482b) !important;
    border-radius: 10px !important;
    background: var(--ffcd-green, #17482b) !important;
    color: #fff !important;
    min-height: 48px;
    padding: 12px 23px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer;
    width: min(100%, 340px);
    box-sizing: border-box;
}
.ffcd-account__submit:hover,
.ffcd-account .woocommerce-form-login__submit:hover {background:#0e351f!important;}
.ffcd-account .woocommerce-form-login .show-password-input {right: 12px;}
@media (max-width: 767px) {
    .ffcd-account__intro {
        display:grid;
        grid-template-columns: 42px minmax(0,1fr) auto;
        grid-template-rows: auto auto;
        gap: 9px 11px;
        align-items:center;
        padding:18px;
    }
    .ffcd-account__icon {grid-column:1;grid-row:1;width:42px;height:42px;flex-basis:42px;}
    .ffcd-account__copy {display:contents;}
    .ffcd-account__copy h2 {grid-column:2;grid-row:1;margin:0!important;font-size:19px!important;}
    .ffcd-account__copy p {grid-column:1 / -1;grid-row:2;}
    .ffcd-account__toggle {grid-column:3;grid-row:1;min-height:38px;min-width:76px;margin-left:auto;padding:8px 9px!important;}
    .ffcd-account__content {padding: 16px 17px 22px;}
    .ffcd-account__tabs {gap:6px;}
    .ffcd-account__tab {flex:1 1 100%;}
    .ffcd-account__submit,
    .ffcd-account .woocommerce-form-login__submit {width:100%;}
    body.woocommerce-cart .woocommerce .cart_totals > h2 {font-size: 21px;}
    .ffcd-order-line {grid-template-columns: 42px minmax(0, 1fr) auto;gap:8px;}
    .ffcd-order-line__total {font-size: 11px;}
    .ffcd-order-line__picture img {width:42px!important;height:42px!important;}
}

/* A narrow Elementor column must never force horizontal page overflow. */
:is(.elementor-widget-woocommerce-cart, .elementor-widget-woocommerce-checkout) :is(.e-cart__section, .e-checkout__section, .cart_totals, .woocommerce-cart-form) {
    min-width: 0;
    max-width: 100%;
}
@media (max-width: 520px) {
    .ffcd-order-line { grid-template-columns: 36px minmax(0, 1fr) minmax(66px, auto); }
    .ffcd-order-line__picture img { width: 36px !important; height: 36px !important; }
    .ffcd-order-line__total { white-space: normal; overflow-wrap: anywhere; }
    body.woocommerce-cart .woocommerce .cart_totals table.shop_table { table-layout: auto; }
}

/* v1.2.5 – One clean frame around Elementor's order summary.
 * Elementor Pro's actual Checkout widget class is often
 * .elementor-widget-woocommerce-checkout-page, rather than -checkout.
 * A previous theme + plugin combination bordered EACH nesting level:
 * section -> #order_review -> table.shop_table. Keep only the section.
 */
:is(.elementor-widget-woocommerce-checkout-page, .elementor-widget-woocommerce-checkout) .e-checkout__order_review,
:is(.elementor-widget-woocommerce-checkout-page, .elementor-widget-woocommerce-checkout) .e-checkout__order_review.e-checkout__section,
body.woocommerce-checkout .woocommerce .e-checkout__order_review.e-checkout__section {
    background: #fff !important;
    border: 1px solid #dfe8dc !important;
    border-radius: 18px !important;
    padding: clamp(18px, 2.5vw, 28px) !important;
    box-shadow: 0 12px 32px rgba(23,72,43,.045) !important;
    overflow: hidden;
    min-width: 0;
}

/* No second and third card on the inside of the order review. */
body.woocommerce-checkout .woocommerce .e-checkout__order_review :is(#order_review, .woocommerce-checkout-review-order, .woocommerce-checkout-review-order-table, table.shop_table),
:is(.elementor-widget-woocommerce-checkout-page, .elementor-widget-woocommerce-checkout) .e-checkout__order_review :is(#order_review, .woocommerce-checkout-review-order, .woocommerce-checkout-review-order-table, table.shop_table) {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    outline: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    width: 100%;
    max-width: 100%;
}

/* Classic WooCommerce checkout, when it is not inside the Elementor section:
 * one clean card around the review, then a flat table within that card. */
body.woocommerce-checkout .woocommerce #order_review:not(.e-checkout__order_review) {
    box-shadow: none;
}
body.woocommerce-checkout .woocommerce #order_review > table.shop_table,
body.woocommerce-checkout .woocommerce .woocommerce-checkout-review-order > table.shop_table {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    margin: 0 !important;
}

/* The title is visually part of the same card, not a fourth box. */
body.woocommerce-checkout .woocommerce .e-checkout__order_review :is(h2, h3, .e-checkout__title),
:is(.elementor-widget-woocommerce-checkout-page, .elementor-widget-woocommerce-checkout) .e-checkout__order_review :is(h2, h3, .e-checkout__title) {
    color: var(--ffcd-green,#17482b) !important;
    font-size: clamp(20px, 2.2vw, 25px) !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    margin: 0 0 18px !important;
    padding: 0 0 13px !important;
    border: 0 !important;
    border-bottom: 1px solid #e9eee7 !important;
    background: none !important;
    box-shadow: none !important;
}

/* Lightweight, legible rows and a single emphasized total. */
body.woocommerce-checkout .woocommerce .woocommerce-checkout-review-order-table {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    table-layout: auto;
}
body.woocommerce-checkout .woocommerce .woocommerce-checkout-review-order-table :is(th, td) {
    background: transparent !important;
    box-shadow: none !important;
    border-left: 0 !important;
    border-right: 0 !important;
    padding: 13px 0 !important;
    line-height: 1.5;
    vertical-align: top;
    overflow-wrap: anywhere;
}
body.woocommerce-checkout .woocommerce .woocommerce-checkout-review-order-table thead th {
    color: #617365 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .02em;
    border-top: 0 !important;
    border-bottom: 1px solid #e9eee7 !important;
}
body.woocommerce-checkout .woocommerce .woocommerce-checkout-review-order-table tbody :is(th, td) {
    border-top: 0 !important;
    border-bottom: 1px solid #edf0eb !important;
    color: #263e2d;
}
body.woocommerce-checkout .woocommerce .woocommerce-checkout-review-order-table :is(th, td).product-total {
    text-align: right !important;
    white-space: nowrap;
    padding-left: 12px !important;
}
body.woocommerce-checkout .woocommerce .woocommerce-checkout-review-order-table .product-name {
    font-weight: 600;
}
body.woocommerce-checkout .woocommerce .woocommerce-checkout-review-order-table .product-name .variation,
body.woocommerce-checkout .woocommerce .woocommerce-checkout-review-order-table .product-name .wc-item-meta {
    color: #68786b;
    font-size: 12px;
    font-weight: 400;
}
body.woocommerce-checkout .woocommerce .woocommerce-checkout-review-order-table tfoot tr:not(.order-total) > * {
    font-size: 13px;
    font-weight: 500;
    border-top: 0 !important;
    border-bottom: 0 !important;
    color: #4d6453 !important;
}
body.woocommerce-checkout .woocommerce .woocommerce-checkout-review-order-table tfoot tr.order-total > * {
    border-top: 1px solid #d8e5d8 !important;
    border-bottom: 0 !important;
    color: var(--ffcd-green,#17482b) !important;
    font-weight: 800 !important;
    font-size: clamp(16px,1.8vw,20px) !important;
    padding-top: 17px !important;
    padding-bottom: 3px !important;
}
body.woocommerce-checkout .woocommerce .woocommerce-checkout-review-order-table tfoot tr.order-total td {
    text-align: right !important;
}
body.woocommerce-checkout .woocommerce .woocommerce-checkout-review-order-table tfoot tr.order-total .amount {
    color: var(--ffcd-green,#17482b) !important;
}

/* Mobile checkout: no nested padding stealing half the available width. */
@media (max-width:767px) {
    body.woocommerce-checkout .woocommerce .e-checkout__order_review.e-checkout__section,
    :is(.elementor-widget-woocommerce-checkout-page,.elementor-widget-woocommerce-checkout) .e-checkout__order_review {
        padding: 18px !important;
        border-radius: 15px !important;
    }
    body.woocommerce-checkout .woocommerce .woocommerce-checkout-review-order-table :is(th,td) {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
}

/* v1.3.8 — Unified button dimensions on cart and checkout.
   Quantity steppers, gateway-owned controls and links remain untouched. */
.ffcd-account .ffcd-account__toggle,
.ffcd-account .ffcd-account__tab,
.ffcd-account .ffcd-account__submit,
.ffcd-account .woocommerce-form-login__submit {
  box-sizing: border-box !important;
  min-height: 48px !important;
  border-radius: 11px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ffcd-account .ffcd-account__tab { padding: 10px 14px !important; }
.ffcd-account .ffcd-account__toggle { min-width: 90px; padding: 10px 16px !important; }
body.woocommerce-cart .woocommerce :is(a.checkout-button, button[name="apply_coupon"], button[name="update_cart"], .return-to-shop .button),
body.woocommerce-checkout .woocommerce :is(#place_order, button[name="apply_coupon"]),
:is(.elementor-widget-woocommerce-cart, .elementor-widget-woocommerce-checkout, .elementor-widget-woocommerce-checkout-page) :is(a.checkout-button, button[name="apply_coupon"], button[name="update_cart"], #place_order) {
  box-sizing: border-box !important;
  min-height: 48px !important;
  border-radius: 11px !important;
  padding: 10px 18px !important;
}
