body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce,
body.woocommerce-order-received .woocommerce,
body.woocommerce-view-order .woocommerce {
    --fe-ink: #111111;
    --fe-ivory: #F7F5F0;
    --fe-paper: #FFFDF8;
    --fe-gold: #C6A87A;
    --fe-muted: #4A4A4A;
    --fe-line: #DDD8CF;
}

body.woocommerce-cart .woocommerce .fe-review-live-preview,
body.woocommerce-cart .woocommerce .fe-generic-preview,
body.woocommerce-cart .woocommerce .fe-admin-design-preview,
body.woocommerce-cart .woocommerce .fe-static-preview-grid,
body.woocommerce-checkout .woocommerce .fe-review-live-preview,
body.woocommerce-checkout .woocommerce .fe-generic-preview,
body.woocommerce-checkout .woocommerce .fe-admin-design-preview,
body.woocommerce-checkout .woocommerce .fe-static-preview-grid {
    display: none !important;
}

body.woocommerce-cart .woocommerce td.product-name dl.variation,
body.woocommerce-checkout .woocommerce .woocommerce-checkout-review-order-table dl.variation {
    color: var(--fe-muted);
    font-size: 13px;
    line-height: 1.55;
}

body.woocommerce-cart .woocommerce td.product-name dl.variation dt,
body.woocommerce-checkout .woocommerce .woocommerce-checkout-review-order-table dl.variation dt {
    color: var(--fe-ink);
    font-weight: 700;
}

body.woocommerce-checkout form.checkout {
    display: block !important;
    max-width: 1120px;
    margin: 0 auto;
}

body.woocommerce-checkout form.checkout #customer_details {
    width: 100% !important;
    float: none !important;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 18px;
}

/* FEDELE checkout/cart refinement 2: compact address cards and thumbnail rows. */
body.woocommerce-cart .woocommerce-cart-form__cart-item .product-name,
body.woocommerce-cart table.shop_table .product-name,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name {
    width: auto !important;
    text-align: left !important;
}

body.woocommerce-cart table.shop_table .product-price,
body.woocommerce-cart table.shop_table .product-subtotal,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total {
    width: 1% !important;
    min-width: 96px !important;
    white-space: nowrap !important;
    text-align: right !important;
}

body.woocommerce-cart .fe-order-item-line,
body.woocommerce-checkout .fe-order-item-line {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    text-align: left !important;
}

body.woocommerce-cart .fe-order-item-thumb,
body.woocommerce-checkout .fe-order-item-thumb {
    width: 54px !important;
    height: 54px !important;
    border: 1px solid var(--fe-line) !important;
    border-radius: 6px !important;
    background: #ffffff !important;
}

body.woocommerce-cart .fe-order-item-name,
body.woocommerce-checkout .fe-order-item-name {
    min-width: 0 !important;
    text-align: left !important;
}

body.woocommerce-cart td.product-name dl.variation,
body.woocommerce-cart td.product-name .wc-item-meta,
body.woocommerce-checkout .woocommerce-checkout-review-order-table dl.variation,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .wc-item-meta {
    max-width: 100% !important;
    margin-top: 8px !important;
    text-align: left !important;
}

body.woocommerce-checkout form.checkout #customer_details {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    align-items: start !important;
}

body.woocommerce-checkout .fe-checkout-address-card {
    min-width: 0 !important;
}

body.woocommerce-checkout #place_order,
body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout #place_order:focus,
body.woocommerce-checkout #place_order:active {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    body.woocommerce-checkout form.checkout #customer_details {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body.woocommerce-checkout .fe-checkout-address-card > summary {
        min-height: 48px !important;
        padding: 10px !important;
        gap: 6px !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
    }

    body.woocommerce-checkout .fe-checkout-address-summary {
        margin-top: 3px !important;
        font-size: 10px !important;
        line-height: 1.3 !important;
    }

    body.woocommerce-checkout .fe-checkout-address-content {
        padding: 10px !important;
    }

    body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
    body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr !important;
    }

    body.woocommerce-cart .fe-order-item-line,
    body.woocommerce-checkout .fe-order-item-line {
        grid-template-columns: 46px minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    body.woocommerce-cart .fe-order-item-thumb,
    body.woocommerce-checkout .fe-order-item-thumb {
        width: 46px !important;
        height: 46px !important;
    }

    body.woocommerce-cart table.shop_table .product-price,
    body.woocommerce-cart table.shop_table .product-subtotal,
    body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total {
        min-width: 82px !important;
        padding-left: 8px !important;
    }
}

@media (max-width: 390px) {
    body.woocommerce-checkout form.checkout #customer_details {
        grid-template-columns: 1fr !important;
    }
}

/* FEDELE 2.6.191: final checkout/order safeguards. */
body.woocommerce-checkout form.checkout #customer_details,
body.woocommerce-checkout .woocommerce-checkout #customer_details {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    align-items: start !important;
    width: 100% !important;
}

body.woocommerce-checkout form.checkout #customer_details .col-1,
body.woocommerce-checkout form.checkout #customer_details .col-2 {
    width: auto !important;
    float: none !important;
    min-width: 0 !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-name,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name,
body.woocommerce-order-received .woocommerce-table--order-details th.product-name,
body.woocommerce-order-received .woocommerce-table--order-details td.product-name,
body.woocommerce-view-order .woocommerce-table--order-details th.product-name,
body.woocommerce-view-order .woocommerce-table--order-details td.product-name {
    width: auto !important;
    max-width: none !important;
    text-align: left !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-total,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total,
body.woocommerce-order-received .woocommerce-table--order-details th.product-total,
body.woocommerce-order-received .woocommerce-table--order-details td.product-total,
body.woocommerce-view-order .woocommerce-table--order-details th.product-total,
body.woocommerce-view-order .woocommerce-table--order-details td.product-total,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td,
body.woocommerce-order-received .woocommerce-table--order-details tfoot td,
body.woocommerce-view-order .woocommerce-table--order-details tfoot td {
    width: 1% !important;
    min-width: 96px !important;
    white-space: nowrap !important;
    text-align: right !important;
}

body.woocommerce-checkout .fe-order-item-line,
body.woocommerce-order-received .fe-order-item-line,
body.woocommerce-view-order .fe-order-item-line,
body.woocommerce-cart .fe-order-item-line {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
}

body.woocommerce-checkout .fe-order-item-name,
body.woocommerce-order-received .fe-order-item-name,
body.woocommerce-view-order .fe-order-item-name,
body.woocommerce-cart .fe-order-item-name {
    min-width: 0 !important;
    text-align: left !important;
}

body.woocommerce-checkout #place_order,
body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout #place_order:focus,
body.woocommerce-checkout #place_order:active,
body.woocommerce-checkout #place_order.loading,
body.woocommerce-checkout #place_order.processing,
body.woocommerce-checkout #place_order:disabled,
body.woocommerce-cart .checkout-button,
body.woocommerce-cart .checkout-button:hover,
body.woocommerce-cart .checkout-button:focus,
body.woocommerce-cart .checkout-button:active,
body.woocommerce-cart button[name="apply_coupon"],
body.woocommerce-cart button[name="apply_coupon"]:hover,
body.woocommerce-cart button[name="apply_coupon"]:focus,
body.woocommerce-cart button[name="update_cart"],
body.woocommerce-cart button[name="update_cart"]:hover,
body.woocommerce-cart button[name="update_cart"]:focus,
.woocommerce .button.wc-forward,
.woocommerce .button.wc-forward:hover,
.woocommerce .button.wc-forward:focus {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
    box-shadow: none !important;
    outline-color: #c6a87a !important;
}

@media (max-width: 768px) {
    body.woocommerce-checkout form.checkout #customer_details,
    body.woocommerce-checkout .woocommerce-checkout #customer_details {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body.woocommerce-checkout .fe-checkout-address-card > summary {
        min-height: 46px !important;
        padding: 9px !important;
        font-size: 10px !important;
        line-height: 1.15 !important;
    }

    body.woocommerce-checkout .fe-checkout-address-summary {
        margin-top: 3px !important;
        font-size: 10px !important;
        line-height: 1.3 !important;
    }

    body.woocommerce-checkout .fe-order-item-line,
    body.woocommerce-order-received .fe-order-item-line,
    body.woocommerce-view-order .fe-order-item-line,
    body.woocommerce-cart .fe-order-item-line {
        grid-template-columns: 44px minmax(0, 1fr) !important;
        gap: 9px !important;
    }

    body.woocommerce-checkout .fe-order-item-thumb,
    body.woocommerce-order-received .fe-order-item-thumb,
    body.woocommerce-view-order .fe-order-item-thumb,
    body.woocommerce-cart .fe-order-item-thumb {
        width: 44px !important;
        height: 44px !important;
    }

    body.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-total,
    body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total,
    body.woocommerce-order-received .woocommerce-table--order-details th.product-total,
    body.woocommerce-order-received .woocommerce-table--order-details td.product-total,
    body.woocommerce-view-order .woocommerce-table--order-details th.product-total,
    body.woocommerce-view-order .woocommerce-table--order-details td.product-total {
        min-width: 78px !important;
        padding-left: 8px !important;
    }
}

/* FEDELE 2.6.191: checkout/order compact visual system. */
body.woocommerce-checkout form.checkout #customer_details,
body.woocommerce-checkout .woocommerce-checkout #customer_details {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    align-items: start !important;
}

body.woocommerce-checkout .col2-set .col-1,
body.woocommerce-checkout .col2-set .col-2 {
    width: auto !important;
    float: none !important;
}

body.woocommerce-checkout .fe-checkout-address-card,
body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields {
    min-width: 0 !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name,
body.woocommerce-order-received .woocommerce-table--order-details .product-name,
body.woocommerce-view-order .woocommerce-table--order-details .product-name {
    width: auto !important;
    text-align: left !important;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total,
body.woocommerce-order-received .woocommerce-table--order-details .product-total,
body.woocommerce-view-order .woocommerce-table--order-details .product-total,
body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td,
body.woocommerce-order-received .woocommerce-table--order-details tfoot td,
body.woocommerce-view-order .woocommerce-table--order-details tfoot td {
    width: 1% !important;
    min-width: 104px !important;
    white-space: nowrap !important;
    text-align: right !important;
    padding-left: 14px !important;
}

body.woocommerce-checkout .fe-order-item-line,
body.woocommerce-order-received .fe-order-item-line,
body.woocommerce-view-order .fe-order-item-line,
body.woocommerce-cart .fe-order-item-line {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    text-align: left !important;
    max-width: 100% !important;
}

body.woocommerce-checkout .fe-order-item-thumb,
body.woocommerce-order-received .fe-order-item-thumb,
body.woocommerce-view-order .fe-order-item-thumb,
body.woocommerce-cart .fe-order-item-thumb {
    width: 54px !important;
    height: 54px !important;
    display: block !important;
    border: 1px solid rgba(221, 216, 207, .72) !important;
    border-radius: 6px !important;
    background: #fff !important;
    overflow: hidden !important;
}

body.woocommerce-checkout .fe-order-item-thumb img,
body.woocommerce-order-received .fe-order-item-thumb img,
body.woocommerce-view-order .fe-order-item-thumb img,
body.woocommerce-cart .fe-order-item-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}

body.woocommerce-checkout .fe-order-meta-block--compact,
body.woocommerce-order-received .fe-order-meta-block--compact,
body.woocommerce-view-order .fe-order-meta-block--compact {
    padding: 10px 12px !important;
    margin: 8px 0 0 !important;
    border: 1px solid rgba(221, 216, 207, .62) !important;
    border-radius: 6px !important;
    background: #fffdf8 !important;
    color: #4a4a4a !important;
    text-align: left !important;
}

body.woocommerce-checkout #place_order,
body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout #place_order:focus,
body.woocommerce-checkout #place_order:active,
body.woocommerce-checkout #place_order:disabled,
body.woocommerce-cart .checkout-button,
body.woocommerce-cart .checkout-button:hover,
body.woocommerce-cart .checkout-button:focus,
body.woocommerce-cart .checkout-button:active,
body.woocommerce-cart button[name="apply_coupon"],
body.woocommerce-cart button[name="apply_coupon"]:hover,
body.woocommerce-cart button[name="apply_coupon"]:focus,
body.woocommerce-cart button[name="update_cart"],
body.woocommerce-cart button[name="update_cart"]:hover,
body.woocommerce-cart button[name="update_cart"]:focus,
body.woocommerce .return-to-shop .button,
body.woocommerce .return-to-shop .button:hover,
body.woocommerce .return-to-shop .button:focus {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
    box-shadow: none !important;
    outline-color: #c6a87a !important;
}

@media (max-width: 768px) {
    body.woocommerce-checkout form.checkout #customer_details,
    body.woocommerce-checkout .woocommerce-checkout #customer_details {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body.woocommerce-checkout .woocommerce-billing-fields h3,
    body.woocommerce-checkout .woocommerce-shipping-fields h3 {
        font-size: 13px !important;
        line-height: 1.2 !important;
        letter-spacing: .07em !important;
    }

    body.woocommerce-checkout .fe-order-item-line,
    body.woocommerce-order-received .fe-order-item-line,
    body.woocommerce-view-order .fe-order-item-line,
    body.woocommerce-cart .fe-order-item-line {
        grid-template-columns: 44px minmax(0, 1fr) !important;
        gap: 9px !important;
    }

    body.woocommerce-checkout .fe-order-item-thumb,
    body.woocommerce-order-received .fe-order-item-thumb,
    body.woocommerce-view-order .fe-order-item-thumb,
    body.woocommerce-cart .fe-order-item-thumb {
        width: 44px !important;
        height: 44px !important;
    }
}

body.woocommerce-checkout form.checkout #customer_details::before,
body.woocommerce-checkout form.checkout #customer_details::after {
    display: none;
}

body.woocommerce-checkout form.checkout #customer_details .col-1,
body.woocommerce-checkout form.checkout #customer_details .col-2 {
    width: auto !important;
    float: none !important;
}

body.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout #order_review {
    width: 100% !important;
    float: none !important;
    clear: both;
}

body.woocommerce-checkout #order_review_heading {
    margin-top: 26px;
}

body.woocommerce-checkout #order_review {
    border: 1px solid var(--fe-line);
    border-radius: 6px;
    background: var(--fe-paper);
    padding: clamp(16px, 2.5vw, 26px);
}

.fe-checkout-address-card {
    border: 1px solid var(--fe-line);
    border-radius: 6px;
    background: var(--fe-paper);
    overflow: hidden;
}

.fe-checkout-address-card > summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 52px;
    padding: 12px 15px;
    color: var(--fe-ink);
    cursor: pointer;
    font-weight: 700;
    letter-spacing: .06em;
    list-style: none;
    text-transform: uppercase;
}

.fe-checkout-address-card > summary::-webkit-details-marker {
    display: none;
}

.fe-checkout-address-card > summary::after {
    content: "+";
    width: 28px;
    height: 28px;
    border: 1px solid var(--fe-line);
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--fe-gold);
}

.fe-checkout-address-card[open] > summary::after {
    content: "-";
}

.fe-checkout-address-summary {
    grid-column: 1 / -1;
    margin: -4px 42px 0 0;
    color: var(--fe-muted);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.45;
    text-transform: none;
}

.fe-checkout-address-content {
    border-top: 1px solid var(--fe-line);
    padding: 14px;
}

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: 10px 12px;
}

body.woocommerce-checkout .woocommerce form .form-row {
    margin-bottom: 10px;
}

.fe-family-referral-apply {
    display: flex;
    gap: 10px;
    align-items: stretch;
    max-width: 560px;
}

.fe-family-referral-apply input {
    flex: 1 1 auto;
}

.fe-family-referral-apply__button {
    min-width: 112px;
    border-color: var(--fe-ink) !important;
    background: var(--fe-ink) !important;
    color: #fff !important;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.fe-family-referral-apply__button:disabled {
    opacity: .58;
    cursor: wait;
}

.fe-family-referral-apply__status {
    min-height: 18px;
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.4;
}

.fe-family-referral-apply__status.is-success {
    color: #61703a;
}

.fe-family-referral-apply__status.is-error {
    color: #9f1f2d;
}

.fe-family-referral-apply__status.is-loading {
    color: var(--fe-muted);
}

body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-shipping-fields h3 {
    margin-top: 0;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td .amount,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .order-total td bdi {
    color: #8c0000 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

body.woocommerce-checkout #place_order {
    width: 100% !important;
    min-height: 54px;
    border: none !important;
    border-radius: 8px;
    background: #111111 !important;
    color: #ffffff !important;
    box-sizing: border-box;
    float: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: opacity .2s ease, transform .2s ease;
}

body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout #place_order:focus,
body.woocommerce-checkout #place_order:active,
body.woocommerce-checkout #place_order.loading,
body.woocommerce-checkout #place_order.processing {
    background: #111111 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    outline-color: var(--fe-gold);
    opacity: .9;
    transform: translateY(-1px);
}

body.woocommerce-checkout #place_order:disabled,
body.woocommerce-checkout #place_order.disabled {
    background: #111111 !important;
    color: #ffffff !important;
    opacity: .58;
    transform: none;
}

body.woocommerce-cart .woocommerce td.product-name dl.variation,
body.woocommerce-checkout .woocommerce .woocommerce-checkout-review-order-table dl.variation {
    text-align: left;
}

.fe-order-item-line {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    text-align: left;
}

.fe-order-item-thumb {
    width: 54px;
    height: 54px;
    border: 1px solid var(--fe-line);
    border-radius: 6px;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.fe-order-item-thumb img,
.fe-order-item-thumb__image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    display: block;
}

.fe-order-item-name {
    min-width: 0;
    color: var(--fe-ink);
    line-height: 1.35;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table,
body.woocommerce-order-received .woocommerce-table--order-details,
body.woocommerce-view-order .woocommerce-table--order-details {
    table-layout: auto;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-name,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name,
body.woocommerce-order-received .woocommerce-table--order-details th.product-name,
body.woocommerce-order-received .woocommerce-table--order-details td.product-name,
body.woocommerce-view-order .woocommerce-table--order-details th.product-name,
body.woocommerce-view-order .woocommerce-table--order-details td.product-name {
    width: auto;
    text-align: left;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-total,
body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total,
body.woocommerce-order-received .woocommerce-table--order-details th.product-total,
body.woocommerce-order-received .woocommerce-table--order-details td.product-total,
body.woocommerce-view-order .woocommerce-table--order-details th.product-total,
body.woocommerce-view-order .woocommerce-table--order-details td.product-total {
    width: 1%;
    min-width: 118px;
    white-space: nowrap;
    text-align: right;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .wc-item-meta,
body.woocommerce-order-received .woocommerce-table--order-details .wc-item-meta,
body.woocommerce-view-order .woocommerce-table--order-details .wc-item-meta {
    margin: 8px 0 0;
    padding: 0;
    text-align: left;
}

body.woocommerce-checkout .woocommerce-checkout-review-order-table .wc-item-meta li,
body.woocommerce-order-received .woocommerce-table--order-details .wc-item-meta li,
body.woocommerce-view-order .woocommerce-table--order-details .wc-item-meta li {
    text-align: left;
}

.fe-order-meta-compact-list {
    margin: 0;
    padding-left: 18px;
    text-align: left;
}

.fe-order-meta-compact-list li {
    margin: 0 0 3px;
    text-align: left;
}

.fe-order-meta-block--compact {
    max-width: 100%;
    background: #fffdf8;
    text-align: left;
}

@media (max-width: 768px) {
    body.woocommerce-checkout form.checkout #customer_details {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    body.woocommerce-checkout #order_review {
        padding: 14px;
    }

    body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
    body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr;
    }

    .fe-checkout-address-card > summary {
        min-height: 54px;
        padding: 12px 14px;
        font-size: 12px;
    }

    .fe-family-referral-apply {
        flex-direction: column;
    }

    .fe-family-referral-apply__button {
        min-height: 46px;
        width: 100%;
    }

    .fe-order-item-line {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 10px;
    }

    .fe-order-item-thumb {
        width: 46px;
        height: 46px;
    }

    body.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-total,
    body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total,
    body.woocommerce-order-received .woocommerce-table--order-details th.product-total,
    body.woocommerce-order-received .woocommerce-table--order-details td.product-total,
    body.woocommerce-view-order .woocommerce-table--order-details th.product-total,
    body.woocommerce-view-order .woocommerce-table--order-details td.product-total {
        min-width: 88px;
        padding-left: 8px;
    }
}

/* FEDELE checkout/cart refinement 2: final override. */
body.woocommerce-cart .woocommerce-cart-form__cart-item .product-name,
body.woocommerce-cart table.shop_table .product-name,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name {
    width: auto !important;
    text-align: left !important;
}

body.woocommerce-cart table.shop_table .product-price,
body.woocommerce-cart table.shop_table .product-subtotal,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total {
    width: 1% !important;
    min-width: 96px !important;
    white-space: nowrap !important;
    text-align: right !important;
}

body.woocommerce-cart .fe-order-item-line,
body.woocommerce-checkout .fe-order-item-line {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    text-align: left !important;
}

body.woocommerce-cart .fe-order-item-thumb,
body.woocommerce-checkout .fe-order-item-thumb {
    width: 54px !important;
    height: 54px !important;
    border: 1px solid var(--fe-line) !important;
    border-radius: 6px !important;
    background: #ffffff !important;
}

body.woocommerce-cart .fe-order-item-name,
body.woocommerce-checkout .fe-order-item-name {
    min-width: 0 !important;
    text-align: left !important;
}

body.woocommerce-cart td.product-name dl.variation,
body.woocommerce-cart td.product-name .wc-item-meta,
body.woocommerce-checkout .woocommerce-checkout-review-order-table dl.variation,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .wc-item-meta {
    max-width: 100% !important;
    margin-top: 8px !important;
    text-align: left !important;
}

body.woocommerce-checkout form.checkout #customer_details {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
    align-items: start !important;
}

body.woocommerce-checkout .fe-checkout-address-card {
    min-width: 0 !important;
}

body.woocommerce-checkout #place_order,
body.woocommerce-checkout #place_order:hover,
body.woocommerce-checkout #place_order:focus,
body.woocommerce-checkout #place_order:active {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    body.woocommerce-checkout form.checkout #customer_details {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body.woocommerce-checkout .fe-checkout-address-card > summary {
        min-height: 48px !important;
        padding: 10px !important;
        gap: 6px !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
    }

    body.woocommerce-checkout .fe-checkout-address-summary {
        margin-top: 3px !important;
        font-size: 10px !important;
        line-height: 1.3 !important;
    }

    body.woocommerce-checkout .fe-checkout-address-content {
        padding: 10px !important;
    }

    body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
    body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: 1fr !important;
    }

    body.woocommerce-cart .fe-order-item-line,
    body.woocommerce-checkout .fe-order-item-line {
        grid-template-columns: 46px minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    body.woocommerce-cart .fe-order-item-thumb,
    body.woocommerce-checkout .fe-order-item-thumb {
        width: 46px !important;
        height: 46px !important;
    }

    body.woocommerce-cart table.shop_table .product-price,
    body.woocommerce-cart table.shop_table .product-subtotal,
    body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total {
        min-width: 82px !important;
        padding-left: 8px !important;
    }
}

@media (max-width: 390px) {
    body.woocommerce-checkout form.checkout #customer_details {
        grid-template-columns: 1fr !important;
    }
}
