/*
Theme Name: 	   EasyBuy
Text Domain: 	   easybuy
Template: 		   shopire
Version:            1.0.65
Tested up to:       7.0
Requires at least:  4.7
Requires PHP:       5.6
Author:             WPFable
Author URI:         https://wpfable.com/
Theme URI:          https://wpfable.com/themes/easybuy-free/
Description:        EasyBuy is a fast, clean, lightweight theme. EasyBuy is customizable and modern-looking free responsive WooCommerce WordPress theme for e-commerce stores like clothing, fashion, electronics, ebooks, dress store, sports shop, marketplace, multivendor, equipments or online products. Theme is compatible with Elementor, WPML, Polylang, Yoast SEO, WooCommerce, Contact Form 7, Jetpack and other popular plugins. The theme is SEO friendly, WPML and RTL ready. Looking for a WooCommerce theme? Look no further! EasyBuy Pro demo https://demos.wpfable.com/premium/easybuy/
Tags:               one-column, two-columns ,right-sidebar, flexible-header, custom-background, custom-header, custom-menu, editor-style, featured-images, footer-widgets, post-formats, theme-options, threaded-comments, translation-ready, full-width-template, custom-logo, blog, e-commerce, portfolio
License: GPLv3 or later
License URI:  https://www.gnu.org/licenses/gpl-3.0.html

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned
with others.
*/

:root {
    --wf-main-rgb: 27, 132, 21;
    --wf-secondary-color: #0A214F;
}

.wf_navbar-list-right .wf_navbar-search-form {
    width: 100%;
}

/* Header--five */

.header--five .wf_mobilenav-topbar-content,
.header--five .wf_header-topbar {
    color: #fff;
    background-color: var(--wf-secondary-color);
}

.header--five .wf_mobilenav > .wf-container {
    border-bottom: 1px solid rgba(189, 189, 189, 0.4);
}

.header--five .wf_header-topbar {
    position: relative;
    border-bottom: 1px solid rgba(189, 189, 189, 0.4);
    z-index: 1;
}

.header--five .wf_header-topbar .widget.widget_none .wp-block-heading,
.header--five .wf_header-topbar .widget.widget_none .widget-title {
    color: #fff;
}

@media (max-width: 991px) {
    .header--five .wf_mobilenav-topbar-content {
        padding: 0.75rem 0 0.5rem;
    }

    .header--five .wf_mobilenav-topbar-content .wf_header-widget > .wf-container > .wf-row > .wf-col-lg-7 {
        display: none;
    }

    .header--five .wf_mobilenav-topbar-content .widget--left,
    .header--five .wf_mobilenav-topbar-content .widget--right,
    .header--five .wf_mobilenav-topbar-content .widget--center {
        min-height: 0;
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header--five .wf_mobilenav-topbar-content .wf_header-widget .widget {
        margin-bottom: 0.5rem;
    }

    .header--five .wf_mobilenav-topbar-content .wf_header-widget .widget:last-child {
        margin-bottom: 0;
    }

    .header--five .wf_mobilenav-topbar-content .widget_contact .contact__list {
        min-height: 0;
    }

    .header--five .wf_mobilenav-topbar-content .widget_contact .title {
        margin-bottom: 0.35rem;
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .header--five .wf_mobilenav-topbar-toggle {
        margin: 0.35rem 0;
    }
}

.header--five .product-categories .wf_navbar-nav .wf_navbar-mainmenu {
    color: var(--wf-secondary-color);
    margin-top: 10px;
    border-radius: 10px;
    background-color: #fff;
    border: 1px solid rgba(189, 189, 189, 0.4);
}

.header--five .product-categories .wf_navbar-nav .wf_navbar-mainmenu>li a {
    background-color: transparent;
    line-height: 4.5rem;
}

.header--five .product-categories .wf_navbar-nav .wf_navbar-mainmenu>li a:hover,
.header--five .product-categories .wf_navbar-nav .wf_navbar-mainmenu>li a:focus {
    color: var(--wf-main-color);
}

.header--five .product-categories .wf_navbar-nav .wf_navbar-mainmenu>li a::before {
    display: none;
}

.header--five.wf_header .widget.widget_nav_menu a:not(:hover, :focus),
.header--five .woo-multi-currency.wmc-shortcode .wmc-currency.wmc-active,
.header--five .woo-multi-currency.wmc-shortcode .wmc-current-currency {
    color: currentColor;
}

.header--five .product-categories .product-categories-btn {
    padding: 0.875em 2rem;
    border-radius: 50px;
}

.header--five .product-categories .product-categories-btn::after {
    top: 44%;
    right: 2rem;
}

.header--five .wf_navbar-wrapper {
    background-color: #eff4f8;
    transition: all 0.2s ease-in-out;
}

.header--five .wf_navbar-wrapper.is--sticky.on {
    background-color: #fff;
}

.header--five .wf_navbar-menu {
    min-height: 6rem;
    padding-left: 1.6rem;
    justify-content: space-between;
}

.header--five button.wf_navbar-sidebar-toggle,
.header--five .wf_navbar-info-contact .contact__list i {
    width: 4.2rem;
    height: 4.2rem;
    line-height: 4.2rem;
    padding: 0.9rem;
    outline: none;
    border-radius: 50px;
}

.header--five button.wf_navbar-sidebar-toggle {
    border: 1px solid rgba(189, 189, 189, 0.4);
}

.header--five .wf_navbar-info-contact .contact__list i {
    font-size: 2rem;
    background-color: rgba(var(--wf-main-rgb), 0.2);
    color: var(--wf-main-color);
}

.header--five .wf_navbar-wrapper button.wf_navbar-sidebar-toggle,
.header--five .wf_navbar-wrapper .wf_navbar-info-contact .contact__list i {
    background-color: rgba(255, 255, 255, 0.15);
    --wf-secondary-color: #fff;
}

.header--five button.wf_navbar-sidebar-toggle .lines {
    transform: translateY(-1px);
}

.header--five .wf_navbar-menu .wf_navbar-nav .wf_navbar-mainmenu > .menu-item-has-children>a:after {
    border-color: currentColor;
}

.header--five .wf_navbar-list-right>li:not(:last-child) {
    margin-right: 1.8rem;
}

.header--five .wf_navbar-wrapper .wf_navbar-compare-item .wf_compare_btn,
.header--five .wf_navbar-wrapper .wf_navbar-favourite-item .wf_favourite_btn,
.header--five .wf_navbar-wrapper .wf_navbar-user-item .wf_user_btn,
.header--five .wf_navbar-wrapper .wf_navbar-cart-item .wf_navbar-cart-icon {
    width: 2.2rem;
    height: 2.2rem;
    outline: none;
    line-height: 1.3;
    font-size: 2rem;
    vertical-align: middle;
}

.header--five .wf_mobilenav-right .wf_navbar-compare-item .wf_compare_btn,
.header--five .wf_mobilenav-right .wf_navbar-favourite-item .wf_favourite_btn,
.header--five .wf_mobilenav-right .wf_navbar-user-item .wf_user_btn,
.header--five .wf_mobilenav-right .wf_navbar-cart-item .wf_navbar-cart-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.header--five .wf_navbar-wrapper .wf_navbar-compare-item .wf_compare_btn:after,
.header--five .wf_navbar-wrapper .wf_navbar-favourite-item .wf_favourite_btn:after,
.header--five .wf_navbar-wrapper .wf_navbar-user-item .wf_user_btn:after,
.header--five .wf_navbar-wrapper .wf_navbar-cart-item .wf_navbar-cart-icon:after,
.header--five .wf_navbar-wrapper .wf_navbar-search-item button.wf_navbar-search-toggle:after {
    display: none;
}

.header--five .header-search-form .header-search-button:focus {
    outline: 1px solid #fff;
    outline-offset: -3px;
}

.header--five .wf_navbar-compare-item .wf_compare_btn:focus,
.header--five .wf_navbar-favourite-item .wf_favourite_btn:focus,
.header--five .wf_navbar-user-item .wf_user_btn:focus,
.header--five .wf_navbar-cart-item .wf_navbar-cart-icon:focus {
    outline: 1px solid;
    outline-offset: 4px;
}

.header--five .wf_navbar-right .shopire-wcwl-items-count,
.header--five .wf_navbar-right .cart_count {
    top: -12px;
    right: -10px;
    width: 2.1rem;
    height: 2.1rem;
    line-height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.header--five .wf_navbar-wrapper .wf_navbar-menu .wf_navbar-right .wf_navbar-cart-item:after,
.header--five .wf_navbar-nav .wf_navbar-mainmenu>li:after {
    content: "";
    display: block;
    width: 100%;
    height: 1.7rem;
    position: absolute;
}

.header--five .wf_mobilenav .wf_navbar-cart-item a .cart_count {
    top: -11px;
    right: -9px;
}

.header--five .header-search-form {
    background-color: transparent;
    padding-right: 0;
}

.header--five .header-search-form .header-search-select-wrapper {
    float: left;
    border-radius: 50px 0 0 50px;
    overflow: hidden;
    border-right: none;
}

.header--five .header-search-form input.header-search-input {
    float: right;
    border-radius: 0 50px 50px 0;
	padding-right: 38px;
}

.header--five .header-search-form input.header-search-input:focus {
    border: none;
    outline-offset: -2px;
    outline: 1px solid;
}

.header--five .header-search-form .header-search-select {
    border-right: none;
    min-height: 4rem;
    height: 4rem;
}

.header--five .header-search-form .header-search-button {
    width: 3.8rem;
    height: 3.8rem;
    top: 2px;
    right: 3px;
    border-radius: 50px;
}

.header--five .header-search-form .search-wrapper svg {
    left: 88%;
}

@media (min-width: 62em) {
    .header--five .wf_header-widget .widget:not(:last-child):after {
        height: 2.5rem;
        margin-top: 0.4rem;
        background: rgba(189, 189, 189, 0.4);
    }
}

/* Slider Four / Banner */

.wf-flex-row-reverse {
    flex-direction: row-reverse;
}

.wf_slider_banner {
    margin-top: 2.4rem;
}

.wf_slider_banner .last {
    display: none;
}

.wf_slider_banner .wf_owl_carousel,
.wf_slider_banner .wf_slider-item,
.wf_slider_banner .wf_slider-innercell,
.wf_slider_banner .wf_slider-item>img {
    max-height: 51rem;
    min-height: 51rem;
}

.wf_slider_banner .wf_slider-content {
    padding: 1.2rem;
    margin-bottom: 3rem;
}

.wf_slider_banner .wf_slider-content .title {
    font-size: 3.8rem;
}

.wf_slider_banner .wf_slider-content .subtitle {
    color: #fff;
    font-size: 1.8rem;
}

.banner-wrapper:not(.wf-row) {
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 2.4rem;
}

.banner-wrapper .banner-wrapper-item .wf-image,
.banner-wrapper .banner-wrapper-item .wf-image a,
.banner-wrapper .banner-wrapper-item .wf-image img {
    height: 100%;
}

.banner-wrapper .banner-wrapper-item .wf-image img {
    object-fit: cover;
}

.banner-wrapper .banner-wrapper-item,
.wf-image {
    position: relative;
    overflow: hidden;
}

.banner-wrapper .banner-wrapper-item .wf-image a,
.banner-wrapper .banner-wrapper-item .wf-image img {
    width: 100%;
    display: inline-block;
}

.effect_1 .wf-image img {
    backface-visibility: hidden;
    filter: alpha(opacity = 100);
    transition: opacity 1s ease 0s, transform 1s ease 0s;
}

.effect_1:focus-within .wf-image img,
.effect_1:hover .wf-image img {
    filter: alpha(opacity = 80);
    transform: scale3d(1.1, 1.1, 1);
}

.banner-wrapper .banner-wrapper-item .banner-wrapper-inner {
    position: absolute;
    top: 0;
    left: 0;
    bottom: auto;
    transform: translateY(0);
    width: 100%;
    display: flex;
    text-align: left;
    justify-content: flex-start;
}

.banner-wrapper .banner-wrapper-item:nth-child(3) .banner-wrapper-inner {
    text-align: center;
    justify-content: center;
}

.banner-wrapper .banner-wrapper-item .banner-wrapper-inner .info {
    padding: 2.6rem 2.4rem 0;
}

.banner-wrapper .banner-wrapper-item .banner-wrapper-inner .info .subtitle {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 1.2rem;
}

.banner-wrapper .banner-wrapper-item .banner-wrapper-inner .info .title {
    font-size: 2.2rem;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0 0 2.4rem;
}

.banner-wrapper .banner-wrapper-item .banner-wrapper-inner .info .title a {
    color: #fff;
    text-decoration: none;
}

/* Slider Four */

.wf_slider--four .wf-container .wf-row {
    --wf-gutter-x: 1.4rem;
    --wf-gutter-y: 1.4rem;
}

.wf_slider--four .banner-wrapper {
    grid-gap: 1.4rem;
}

.wf_slider--four .banner-wrapper .banner-wrapper-item {
    border-radius: 1rem;
}

.wf_slider--four.wf_slider_banner .wf_owl_carousel {
    border-radius: 1rem;
    overflow: hidden;
}

.wf_slider--four .banner-wrapper .banner-wrapper-item:first-child {
    grid-area: 1 / 1 / span 2 / span 2;
}

.wf_slider--four .banner-wrapper .banner-wrapper-item .wf-image img {
    height: 24.801rem;
}

.wf_slider--four .banner-wrapper .banner-wrapper-item:nth-child(3) .banner-wrapper-inner,
.wf_slider--four .banner-wrapper .banner-wrapper-item .banner-wrapper-inner {
    text-align: start;
    justify-content: start;
    align-items: center;
    height: 100%;
}

.wf_slider--four .banner-wrapper .banner-wrapper-item .banner-wrapper-inner .info {
    padding: 0 2.4rem 0;
}

@media (max-width: 767px) {
	.wf_slider--four .banner-wrapper {
		grid-template-columns: auto;
	}
	.wf_slider--four .banner-wrapper .banner-wrapper-item:first-child {
		grid-area: unset;
	}
    .wf_slider--four .banner-wrapper .banner-wrapper-item .banner-wrapper-inner .info {
        padding: 2rem;
    }
}

/* Information */

.wf_information .widget.widget_contact {
    padding: 20px;
    background-color: #fff;
    margin-top: 0;
    border-radius: 1rem;
    border: 1px solid rgba(189, 189, 189, 0.4);
    transition: 0.3s all;
}

.wf_information .widget.widget_contact:hover,
.wf_information .widget.widget_contact:focus-within {
    border-color: transparent;
    box-shadow: 0px 6px 26px 2px rgba(55, 54, 54, .14);
}

.wf_information .widget.widget_contact .contact__list {
    margin-top: 0;
}

.wf_information .widget.widget_contact i {
    width: 6.2rem;
    height: 6.2rem;
    border-radius: 50%;
    position: relative;
    margin-right: 2rem;
    color: var(--wf-secondary-color);
    border: 1px solid rgba(189, 189, 189, 0.4);
    transition: 0.3s all;
}

.wf_information .widget.widget_contact i:after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background-color: rgba(189, 189, 189, 0.4);
    transition: 0.3s all;
    z-index: -1;
}

.wf_information .widget.widget_contact:hover i,
.wf_information .widget.widget_contact:focus-within i {
    color: #fff;
    border-color: var(--wf-main-color);
}

.wf_information .widget.widget_contact:hover i::after,
.wf_information .widget.widget_contact:focus-within i::after {
    background-color: var(--wf-main-color);
}

.wf_information .widget.widget_contact .contact__body .description {
    font-size: 1.4rem;
}

/* Grid Products */

.wc-block-grid__products .wc-block-components-product-button__button {
    border-radius: 0;
    text-decoration: none;
}

.wp-block-page-list {
    list-style: none;
    padding: 0;
}

.wp-block-page-list a {
    color: var(--wf-secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.wc-block-components-product-title a.wc-block-components-product-name:hover, 
.wc-block-components-product-title a.wc-block-components-product-name:focus {
    color: var(--wf-main-color);
}

.wp-block-page-list a:hover,
.wp-block-page-list a:focus {
    color: var(--wf-main-color);
}

.wp-block-verse.has-background {
    padding: 1.25em 2.375em;
}

.wp-block-preformatted.has-background {
    padding: 1em;
}

.wp-block-archives {
    list-style: none;
    padding: 0;
}

.wp-block-archives-list a {
    font-weight: 600;
    color: var(--wf-secondary-color);
}

.wp-block-archives-list a:hover, 
.wp-block-archives-list a:focus {
    color: var(--wf-main-color);
}

.wp-block-page-list.has-background {
    padding: 1rem;
}

a.wp-block-button__link:hover, 
a.wp-block-button__link:focus {
    color: #fff;
    text-decoration: none;
}

.wp-block-button.is-style-outline a.wp-block-button__link {
    color: var(--wf-main-color);
}

.wp-block-latest-comments {
    padding-left: 0;
}

.wp-block-latest-comments li a:not(:hover, :focus) {
    color: var(--wf-secondary-color);
}

.wp-block-latest-comments li a {
    text-decoration:none;
}

.wf_footer ul.product_list_widget li .woocommerce-Price-amount {
    color: var(--wf-main-color);
}

.wf_footer ul.product_list_widget li {
    border-bottom: none;
}

.wf_footer .widget_shopping_cart .button:not(.checkout):not(.add_to_cart_button) {
    background-color: var(--wf-secondary-color);
}

.wf_footer .widget_shopping_cart .button:not(.checkout):not(.add_to_cart_button):hover,
.wf_footer .widget_shopping_cart .button:not(.checkout):not(.add_to_cart_button):focus {
    background-color: var(--wf-secondary-color) !important;
}

.wf_footer .widget_shopping_cart a.checkout:hover, 
.wf_footer .widget_shopping_cart a.checkout:focus {
        background-color: var(--wf-main-color) !important;
}

.wf_footer .widget_shopping_cart span.amount {
    color: var(--wf-main-color);
}

.wf_footer .widget_shopping_cart li img {
   object-fit: contain !important;
   padding-right: 10px;
}

.wc-block-mini-cart__footer .wc-block-components-button {
    text-decoration: none;
}

.wf_footer .widget .wc-block-cart-link {
    color:#fff;
    background: var(--wf-main-color);
}

.wf_footer .widget .wc-block-cart-link:hover, 
.wf_footer .widget .wc-block-cart-link:focus {
    text-decoration: none;
}

.woocommerce-account .woocommerce-Address-title h2 {
    font-size: 4rem;
}

.wp-block-button.is-style-outline a.wp-block-button__link {
    border-color: inherit;
    background: transparent
}

.wp-block-categories-list.has-background {
    padding: 1rem;
}

.wp-block-latest-comments.has-background {
    padding: 1rem;
}

.wp-block-file a {
    text-decoration: none;
}

.wp-block-file.has-background {
    padding: 1rem;
}

.woocommerce .summary .product_meta>span a {
    text-decoration: none;
}

table.wc-block-cart-items .wc-block-cart-items__header th:not(.wc-block-cart-items__header-product) {
    color: var(--wf-secondary-color);
    font-size: 1.6rem;
    font-weight: 700;
}

.wc-block-components-sidebar-layout.wc-block-cart .wc-block-cart__totals-title {
    font-weight: 700;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__label, 
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-weight: 600;
}

.wp-block-woocommerce-customer-account.has-background {
    padding: 1rem;
}

.wp-block-woocommerce-customer-account a:focus {
    text-decoration: underline !important;
}

.wc-block-customer-account__link {
    text-decoration: none;
}

.wc-block-mini-cart__footer .wc-block-components-totals-item.wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__description {
    font-size: 1.2rem !important;
}

/* Single product — gallery image size (match EasyBuy demo) */
.single-product div.product div.images.woocommerce-product-gallery {
    float: left;
    width: 48%;
    max-width: 48%;
    margin: 0 0 2em;
}

.single-product div.product div.summary {
    float: right;
    width: 48%;
    margin: 0 0 2em;
}

.single-product div.product::after {
    content: "";
    display: table;
    clear: both;
}

.single-product div.product .woocommerce-tabs {
    clear: both;
    width: 100%;
}

.single-product div.product .woocommerce-tabs ul.tabs {
    padding-top: 0;
}

.single-product div.product div.images .woocommerce-product-gallery__wrapper {
    width: 100%;
}

.single-product div.product div.images .woocommerce-product-gallery__image:first-child {
    max-height: 440px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    padding: 30px;
    box-sizing: border-box;
}

.single-product div.product div.images .woocommerce-product-gallery__image:first-child a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 380px;
}

.single-product div.product div.images .woocommerce-product-gallery__image:first-child img {
    max-width: 100%;
    max-height: 380px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.single-product div.product div.images .woocommerce-product-gallery__image:nth-child(n+2) {
    max-height: none;
    overflow: visible;
    display: inline-block;
    padding: 0;
}

.single-product div.product div.images .woocommerce-product-gallery__image:nth-child(n+2) img {
    max-width: 100%;
    max-height: 86px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 767px) {
    .single-product div.product div.images.woocommerce-product-gallery,
    .single-product div.product div.summary {
        float: none;
        width: 100%;
        max-width: 100%;
    }

    .single-product div.product div.images .woocommerce-product-gallery__image:first-child {
        max-height: 360px;
        padding: 20px;
    }

    .single-product div.product div.images .woocommerce-product-gallery__image:first-child img {
        max-height: 300px;
    }
}

/* Cart & Checkout — shared form polish */
body.woocommerce-cart .wc-block-components-radio-control__option,
body.woocommerce-checkout .wc-block-components-radio-control__option {
    padding: 1rem 1.25rem 1rem 3.75rem !important;
    border-radius: 0.5rem;
    box-sizing: border-box;
}

body.woocommerce-cart .wc-block-components-radio-control__input,
body.woocommerce-checkout .wc-block-components-radio-control__input {
    left: 1.25rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
}

body.woocommerce-checkout .wc-block-components-radio-control__label,
body.woocommerce-checkout .wc-block-components-radio-control__label-group {
    margin-left: 0.35rem;
    padding-left: 0.15rem;
}

body.woocommerce-cart .wc-block-components-checkbox,
body.woocommerce-checkout .wc-block-components-checkbox {
    margin: 0.5rem 0;
}

body.woocommerce-cart .wc-block-components-text-input input,
body.woocommerce-cart .wc-block-components-combobox input,
body.woocommerce-cart .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-combobox input,
body.woocommerce-checkout .wc-block-components-select select {
    border-radius: 0.5rem;
    border-color: rgba(189, 189, 189, 0.55);
    min-height: 2.75rem;
    box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-address-card {
    border-radius: 0.5rem;
    padding: 1.15rem 1.25rem;
}

body.woocommerce-checkout .wc-block-components-address-card__edit {
    flex-shrink: 0;
    margin-left: 0.75rem;
}

/* Cart & Checkout — coordinated two-column layout */
@media (min-width: 992px) {
    body.woocommerce-cart .wf_content,
    body.woocommerce-checkout .wf_content {
        background: #eff4f8;
    }

    body.woocommerce-cart .wf_posts > .wf-container,
    body.woocommerce-checkout .wf_posts > .wf-container {
        max-width: 120rem;
        width: 100%;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    body.woocommerce-cart #wf-main,
    body.woocommerce-checkout #wf-main,
    body.woocommerce-cart .wf_posts .wf-col-lg-8,
    body.woocommerce-checkout .wf_posts .wf-col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    body.woocommerce-cart #wf-sidebar,
    body.woocommerce-checkout #wf-sidebar {
        display: none !important;
    }

    body.woocommerce-cart .entry-content,
    body.woocommerce-checkout .entry-content,
    body.woocommerce-cart .wp-block-post-content,
    body.woocommerce-checkout .wp-block-post-content,
    body.woocommerce-cart .wp-block-woocommerce-cart,
    body.woocommerce-checkout .wp-block-woocommerce-checkout,
    body.woocommerce-cart .wc-block-cart,
    body.woocommerce-checkout .wc-block-checkout,
    body.woocommerce-cart .alignwide,
    body.woocommerce-checkout .alignwide {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* 两栏 Grid：主内容 + 右侧汇总，宽屏布局 */
    body.woocommerce-cart .wc-block-components-sidebar-layout,
    body.woocommerce-checkout .wc-block-components-sidebar-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(24rem, 32rem);
        align-items: start;
        gap: 2.25rem !important;
        margin: 0 auto 2.5rem;
        width: 100%;
        max-width: 108rem;
        box-sizing: border-box;
    }

    body.woocommerce-cart .wc-block-components-sidebar-layout > .wc-block-components-main,
    body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        grid-column: 1;
    }

    body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-main {
        padding: 0 !important;
    }

    body.woocommerce-cart .wc-block-components-sidebar-layout > .wc-block-components-sidebar,
    body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-sidebar,
    body.woocommerce-cart .wc-block-components-sidebar-layout > .wc-block-cart__sidebar,
    body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-checkout__sidebar {
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
        grid-column: 2;
        justify-self: stretch;
        box-sizing: border-box;
    }

    /* 外层 sidebar 仅作布局容器时透明 */
    body.woocommerce-cart .wc-block-components-sidebar:has(.wc-block-cart__sidebar),
    body.woocommerce-checkout .wc-block-components-sidebar:has(.wc-block-checkout__sidebar) {
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0 !important;
        position: static;
        overflow: visible;
    }

    /* 统一卡片：左侧主区 + 右侧汇总 + 结账步骤 */
    body.woocommerce-cart .wc-block-cart__main,
    body.woocommerce-cart .wc-block-cart__sidebar,
    body.woocommerce-checkout .wc-block-checkout__sidebar,
    body.woocommerce-cart .wc-block-components-sidebar:not(:has(.wc-block-cart__sidebar)),
    body.woocommerce-checkout .wc-block-components-sidebar:not(:has(.wc-block-checkout__sidebar)),
    body.woocommerce-checkout .wc-block-components-checkout-step {
        background: #fff;
        border: 1px solid rgba(189, 189, 189, 0.35);
        border-radius: 1rem;
        box-shadow: 0 2px 12px rgba(10, 33, 79, 0.04);
        box-sizing: border-box;
    }

    body.woocommerce-cart .wc-block-cart__main {
        padding: 20px;
    }

    body.woocommerce-cart .wc-block-cart__sidebar,
    body.woocommerce-checkout .wc-block-checkout__sidebar,
    body.woocommerce-cart .wc-block-components-sidebar:not(:has(.wc-block-cart__sidebar)),
    body.woocommerce-checkout .wc-block-components-sidebar:not(:has(.wc-block-checkout__sidebar)) {
        padding: 1.5rem !important;
        position: sticky;
        top: 2rem;
        overflow: visible;
        align-self: start;
    }

    /* WC 内层 order summary 去边框，由外层卡片留白 */
    body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block,
    body.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block,
    body.woocommerce-cart .wc-block-components-sidebar .wp-block-woocommerce-cart-order-summary-block,
    body.woocommerce-checkout .wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block,
    body.woocommerce-checkout .wc-block-checkout__sidebar .checkout-order-summary-block-fill,
    body.woocommerce-checkout .wc-block-components-sidebar .checkout-order-summary-block-fill {
        border: none !important;
        border-radius: 0 !important;
        margin: 0;
        padding: 0;
        box-shadow: none !important;
        outline: none !important;
        background: transparent;
    }

    body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block .wc-block-components-panel,
    body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-coupon,
    body.woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-item,
    body.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-panel,
    body.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-coupon,
    body.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item,
    body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary,
    body.woocommerce-cart .wc-block-components-sidebar .wp-block-woocommerce-cart-order-summary-block .wc-block-components-panel,
    body.woocommerce-cart .wc-block-components-sidebar .wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-coupon,
    body.woocommerce-cart .wc-block-components-sidebar .wp-block-woocommerce-cart-order-summary-block .wc-block-components-totals-item,
    body.woocommerce-checkout .wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-panel,
    body.woocommerce-checkout .wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-coupon,
    body.woocommerce-checkout .wc-block-components-sidebar .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-totals-item,
    body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-order-summary {
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box;
    }

    /* 统一区块标题：短绿色下划线（左侧 Details / 右侧 Cart totals） */
    body.woocommerce-cart .wc-block-cart__totals-title,
    body.woocommerce-cart table.wc-block-cart-items tr.wc-block-cart-items__header .wc-block-cart-items__header-product,
    body.woocommerce-checkout .wc-block-components-checkout-order-summary__title,
    body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-heading-block,
    body.woocommerce-checkout .wc-block-components-checkout-step__title {
        color: var(--wf-secondary-color, #0a214f);
        font-size: 1.2rem !important;
        font-weight: 700;
        letter-spacing: 0.01em;
        line-height: 1.3;
        margin: 0;
        padding: 0;
        border-bottom: none;
        position: relative;
        text-transform: none;
    }

    body.woocommerce-cart table.wc-block-cart-items tr.wc-block-cart-items__header .wc-block-cart-items__header-total {
        color: var(--wf-secondary-color, #0a214f) !important;
        font-size: 1.2rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.01em;
        text-transform: none;
        margin: 0;
        padding: 0 !important;
        border-bottom: none;
        text-align: right !important;
    }

    body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header .wc-block-cart-items__header-total::after {
        display: none !important;
        content: none !important;
    }

    body.woocommerce-cart .wc-block-cart__totals-title::after,
    body.woocommerce-cart table.wc-block-cart-items tr.wc-block-cart-items__header .wc-block-cart-items__header-product::after,
    body.woocommerce-checkout .wc-block-components-checkout-order-summary__title::after,
    body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-heading-block::after,
    body.woocommerce-checkout .wc-block-components-checkout-step__title::after {
        content: "";
        display: block;
        width: 3.5rem;
        height: 3px;
        margin-top: 10px;
        border-radius: 2px;
        background: var(--wf-main-color, #1b8415);
    }

    body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-heading-block h2,
    body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-heading-block h2 {
        color: inherit;
        font-size: inherit !important;
        font-weight: inherit;
        margin: 0;
        padding: 0;
        border: none;
    }

    body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-panel__button,
    body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-panel__button,
    body.woocommerce-cart .wc-block-components-sidebar .wc-block-components-panel__button,
    body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-panel__button {
        padding-left: 0 !important;
        padding-right: 2rem !important;
        box-sizing: border-box;
    }

    body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-heading-block {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-heading-block::after {
        display: none !important;
        content: none !important;
    }

    body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item,
    body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-item,
    body.woocommerce-cart .wc-block-components-sidebar .wc-block-components-totals-item,
    body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals-item {
        gap: 0.75rem;
        padding-top: 0.35rem;
        padding-bottom: 0.35rem;
    }

    body.woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item__value,
    body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-item__value,
    body.woocommerce-cart .wc-block-components-sidebar .wc-block-components-totals-item__value,
    body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-totals-item__value {
        text-align: right;
        flex-shrink: 0;
    }

    body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item,
    body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-order-summary-item {
        gap: 0.85rem;
        padding: 0.85rem 0;
        border-bottom: 1px solid rgba(189, 189, 189, 0.25);
    }

    body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item__description,
    body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-order-summary-item__description {
        min-width: 0;
        flex: 1 1 auto;
        line-height: 1.5;
        font-size: 0.92rem;
    }

    body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item__description .wc-block-components-product-metadata,
    body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-order-summary-item__description .wc-block-components-product-metadata {
        margin-top: 0.35rem;
        line-height: 1.45;
        color: #555;
    }

    body.woocommerce-cart .wc-block-cart__sidebar .wc-block-cart__submit-container,
    body.woocommerce-cart .wc-block-components-sidebar .wc-block-cart__submit-container {
        padding: 1.25rem 0 0 !important;
        margin: 0;
    }

    /* 购物车左侧卡片 — 打破 table 布局，用 block + grid 重排 */
    body.woocommerce-cart .wc-block-cart__main table.wc-block-cart-items,
    body.woocommerce-cart .wc-block-cart table.wc-block-cart-items {
        display: block !important;
        width: 100%;
        border-collapse: collapse;
        border-spacing: 0;
        box-sizing: border-box;
    }

    body.woocommerce-cart .wc-block-cart__main table.wc-block-cart-items thead,
    body.woocommerce-cart .wc-block-cart__main table.wc-block-cart-items tbody,
    body.woocommerce-cart .wc-block-cart table.wc-block-cart-items thead,
    body.woocommerce-cart .wc-block-cart table.wc-block-cart-items tbody {
        display: block !important;
        width: 100%;
    }

    body.woocommerce-cart .wc-block-cart__main table.wc-block-cart-items tr:not(.wc-block-cart-items__header),
    body.woocommerce-cart .wc-block-cart table.wc-block-cart-items tr:not(.wc-block-cart-items__header) {
        display: grid !important;
        width: 100%;
        box-sizing: border-box;
    }

    body.woocommerce-cart .wc-block-cart__main table.wc-block-cart-items td,
    body.woocommerce-cart .wc-block-cart__main table.wc-block-cart-items th,
    body.woocommerce-cart .wc-block-cart table.wc-block-cart-items td,
    body.woocommerce-cart .wc-block-cart table.wc-block-cart-items th {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        background: none !important;
    }

    /* 表头容器高度由 cart-checkout-layout.css 统一控制 */
    body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__header,
    body.woocommerce-cart .wc-block-cart__main table.wc-block-cart-items .wc-block-cart-items__header {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    body.woocommerce-cart .wc-block-cart table.wc-block-cart-items tr.wc-block-cart-items__header,
    body.woocommerce-cart .wc-block-cart__main table.wc-block-cart-items tr.wc-block-cart-items__header {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: baseline !important;
        column-gap: 1rem !important;
        width: 100%;
    }

    body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__header .wc-block-cart-items__header-image,
    body.woocommerce-cart .wc-block-cart__main table.wc-block-cart-items .wc-block-cart-items__header .wc-block-cart-items__header-image {
        display: none !important;
    }

    body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__header .wc-block-cart-items__header-product,
    body.woocommerce-cart .wc-block-cart__main table.wc-block-cart-items .wc-block-cart-items__header .wc-block-cart-items__header-product {
        flex: 1 1 auto !important;
        text-align: left;
        visibility: visible !important;
    }

    body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__header .wc-block-cart-items__header-total,
    body.woocommerce-cart .wc-block-cart__main table.wc-block-cart-items .wc-block-cart-items__header .wc-block-cart-items__header-total {
        flex: 0 0 auto !important;
        text-align: right !important;
        visibility: visible !important;
        font-size: 1.2rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.01em;
        text-transform: none;
        color: var(--wf-secondary-color, #0a214f) !important;
        padding-bottom: 0 !important;
        align-self: baseline;
    }

    body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__header .wc-block-cart-items__header-total::after {
        display: none !important;
        content: none !important;
    }

    /* 商品行：图片 | 信息 | 总价 */
    body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row,
    body.woocommerce-cart .wc-block-cart__main table.wc-block-cart-items .wc-block-cart-items__row {
        grid-template-columns: 88px minmax(0, 1fr) 110px !important;
        grid-template-rows: auto auto !important;
        column-gap: 1rem !important;
        row-gap: 0.65rem !important;
        align-items: start !important;
        padding: 1.25rem 0 !important;
        border-bottom: 1px solid rgba(189, 189, 189, 0.35);
    }

    body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row:last-child,
    body.woocommerce-cart .wc-block-cart__main table.wc-block-cart-items .wc-block-cart-items__row:last-child {
        border-bottom: none;
        padding-bottom: 0 !important;
    }

    body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__image,
    body.woocommerce-cart .wc-block-cart__main table.wc-block-cart-items .wc-block-cart-item__image {
        grid-column: 1 !important;
        grid-row: 1 / span 2 !important;
        width: 88px !important;
        padding: 0 !important;
    }

    body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__product,
    body.woocommerce-cart .wc-block-cart__main table.wc-block-cart-items .wc-block-cart-item__product {
        grid-column: 2 !important;
        grid-row: 1 !important;
        min-width: 0;
        text-align: left;
    }

    body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__quantity,
    body.woocommerce-cart .wc-block-cart__main table.wc-block-cart-items .wc-block-cart-item__quantity {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }

    body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__total,
    body.woocommerce-cart .wc-block-cart__main table.wc-block-cart-items .wc-block-cart-item__total {
        grid-column: 3 !important;
        grid-row: 1 !important;
        text-align: right !important;
        white-space: nowrap;
        align-self: start;
    }

    body.woocommerce-cart .wc-block-cart-item__wrap {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        width: 100%;
        min-width: 0;
    }

    body.woocommerce-cart .wc-block-cart-item__product .wc-block-components-product-metadata {
        font-size: 0.875rem;
        line-height: 1.45;
        color: #555;
        margin: 0;
    }

    body.woocommerce-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector {
        margin: 0;
    }

    body.woocommerce-cart .wc-block-cart-item__product .wc-block-components-product-name {
        color: var(--wf-secondary-color, #0a214f);
        font-size: 1.05rem;
        font-weight: 600;
        line-height: 1.4;
    }

    body.woocommerce-cart .wc-block-cart-item__product .wc-block-components-product-price,
    body.woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price {
        color: var(--wf-main-color, #1b8415);
        font-weight: 700;
    }

    body.woocommerce-cart .wc-block-cart-item__image img {
        max-width: 80px;
        max-height: 80px;
        width: 80px;
        height: auto;
        object-fit: contain;
        border-radius: 0.5rem;
        background: #f9f9f9;
        padding: 0.25rem;
        display: block;
    }

    body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item__image img,
    body.woocommerce-checkout .wc-block-components-sidebar .wc-block-components-order-summary-item__image img {
        max-width: 72px;
        max-height: 72px;
        width: auto;
        height: auto;
        object-fit: contain;
        border-radius: 0.5rem;
        background: #f9f9f9;
        padding: 0.25rem;
    }

    /* 结账表单 */
    body.woocommerce-checkout .wc-block-components-checkout-step {
        padding: 2.25rem 3rem;
        margin-bottom: 1.25rem;
    }

    body.woocommerce-checkout .wc-block-components-checkout-step:last-child {
        margin-bottom: 0;
    }

    body.woocommerce-checkout .wc-block-components-shipping-rates-control__package,
    body.woocommerce-checkout .wc-block-checkout__payment-method {
        margin-top: 0.5rem;
    }

    body.woocommerce-checkout .wc-block-components-radio-control-accordion-option {
        border-radius: 0.5rem;
        overflow: hidden;
    }

    body.woocommerce-checkout .wc-block-components-text-input input,
    body.woocommerce-checkout .wc-block-components-combobox input,
    body.woocommerce-checkout .wc-block-components-select select {
        border-radius: 0.5rem;
        border-color: rgba(189, 189, 189, 0.55);
    }

    body.woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name {
        color: var(--wf-secondary-color, #0a214f);
        font-weight: 600;
    }

    /* 按钮 */
    body.woocommerce-cart .wc-block-cart__submit-button,
    body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
        border-radius: 999px !important;
        background: var(--wf-main-color, #1b8415) !important;
        color: #fff !important;
        font-weight: 600;
        min-height: 3.2rem;
        transition: opacity 0.2s ease;
    }

    body.woocommerce-cart .wc-block-cart__submit-button:hover,
    body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
        opacity: 0.92;
    }

    body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
    body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
        color: var(--wf-secondary-color, #0a214f);
        font-size: 1.35rem;
        font-weight: 700;
    }
}

@media (max-width: 991px) {
    body.woocommerce-cart .wf_content,
    body.woocommerce-checkout .wf_content {
        background: #eff4f8;
    }

    body.woocommerce-cart,
    body.woocommerce-checkout {
        overflow-x: hidden;
    }

    body.woocommerce-cart #content,
    body.woocommerce-checkout #content,
    body.woocommerce-cart .wf_content,
    body.woocommerce-checkout .wf_content,
    body.woocommerce-cart .wf_posts > .wf-container,
    body.woocommerce-checkout .wf_posts > .wf-container {
        padding-left: 12px;
        padding-right: 12px;
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0));
        box-sizing: border-box;
    }

    body.woocommerce-cart #wf-main,
    body.woocommerce-checkout #wf-main,
    body.woocommerce-cart .wf_posts .wf-col-lg-8,
    body.woocommerce-checkout .wf_posts .wf-col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    body.woocommerce-cart .wf_pagetitle,
    body.woocommerce-checkout .wf_pagetitle {
        padding: 1.25rem 0 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    body.woocommerce-cart .wf_pagetitle .title,
    body.woocommerce-checkout .wf_pagetitle .title {
        font-size: 1.5rem !important;
        line-height: 1.25 !important;
    }

    body.woocommerce-cart .entry-content,
    body.woocommerce-checkout .entry-content,
    body.woocommerce-cart .wc-block-cart,
    body.woocommerce-checkout .wc-block-checkout {
        color: #1a1a2e;
        max-width: 100% !important;
        overflow-x: clip;
    }

    body.woocommerce-cart .wc-block-components-sidebar-layout,
    body.woocommerce-checkout .wc-block-components-sidebar-layout,
    body.woocommerce-cart .wc-block-cart,
    body.woocommerce-checkout .wc-block-checkout {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.woocommerce-cart .wc-block-components-main,
    body.woocommerce-cart .wc-block-components-sidebar,
    body.woocommerce-checkout .wc-block-components-main,
    body.woocommerce-checkout .wc-block-components-sidebar,
    body.woocommerce-cart .wc-block-cart__main,
    body.woocommerce-cart .wc-block-cart__sidebar,
    body.woocommerce-checkout .wc-block-checkout__main,
    body.woocommerce-checkout .wc-block-checkout__sidebar {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    body.woocommerce-cart .wc-block-components-sidebar:has(.wc-block-cart__sidebar),
    body.woocommerce-checkout .wc-block-components-sidebar:has(.wc-block-checkout__sidebar) {
        background: transparent;
        border: none;
        padding: 0 !important;
        box-shadow: none;
    }

    body.woocommerce-cart .wc-block-cart__sidebar,
    body.woocommerce-checkout .wc-block-checkout__sidebar,
    body.woocommerce-cart .wc-block-components-sidebar:not(:has(.wc-block-cart__sidebar)),
    body.woocommerce-checkout .wc-block-components-sidebar:not(:has(.wc-block-checkout__sidebar)) {
        padding: 1.5rem !important;
        max-width: 100% !important;
        background: #fff;
        border: 1px solid rgba(189, 189, 189, 0.35);
        border-radius: 1rem;
        box-shadow: 0 2px 12px rgba(10, 33, 79, 0.04);
        box-sizing: border-box;
        position: static !important;
        top: auto !important;
    }

    body.woocommerce-cart .wc-block-cart__main {
        background: #fff;
        border: 1px solid rgba(189, 189, 189, 0.35);
        border-radius: 1rem;
        padding: 1.5rem;
        box-shadow: 0 2px 12px rgba(10, 33, 79, 0.04);
        box-sizing: border-box;
    }

    body.woocommerce-cart .wc-block-cart-items__row {
        display: grid !important;
        grid-template-columns: 72px minmax(0, 1fr) auto;
        grid-template-areas:
            "image product remove"
            "image meta meta"
            "image qty price";
        gap: 0.35rem 0.75rem;
        align-items: start;
        padding: 1rem 0 !important;
    }

    body.woocommerce-cart .wc-block-cart-item__image {
        grid-area: image;
        width: 72px !important;
    }

    body.woocommerce-cart .wc-block-cart-item__image img {
        max-width: 72px;
        max-height: 72px;
        object-fit: contain;
    }

    body.woocommerce-cart .wc-block-cart-item__product {
        grid-area: product;
        min-width: 0 !important;
    }

    body.woocommerce-cart .wc-block-cart-item__quantity {
        grid-area: qty;
    }

    body.woocommerce-cart .wc-block-cart-item__total,
    body.woocommerce-cart .wc-block-cart-items__row .wc-block-components-product-price {
        grid-area: price;
        justify-self: end;
        white-space: nowrap;
    }

    body.woocommerce-cart .wc-block-cart__submit-container .wc-block-components-button,
    body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
        width: 100% !important;
        min-height: 48px;
    }

    body.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input,
    body.woocommerce-checkout .wc-block-components-form .wc-block-components-combobox,
    body.woocommerce-checkout .wc-block-components-form .wc-block-components-select {
        width: 100% !important;
    }

    body.woocommerce-checkout .wc-block-components-address-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    body.woocommerce-checkout .wc-block-components-checkout-step {
        border: 1px solid rgba(189, 189, 189, 0.35);
        border-radius: 1rem;
        padding: 1.35rem 1.75rem !important;
        margin-bottom: 1rem;
        background: #fff;
        box-shadow: 0 2px 12px rgba(10, 33, 79, 0.04);
    }

    body.woocommerce-checkout .wc-block-components-checkout-step__title {
        color: var(--wf-secondary-color, #0a214f);
        font-size: 1.05rem;
        font-weight: 700;
        margin: 0 0 0.85rem;
        padding: 0 0 0.65rem;
        border-bottom: none;
    }

    body.woocommerce-checkout .wc-block-components-checkout-step__title::after {
        content: "";
        display: block;
        width: 3rem;
        height: 3px;
        margin-top: 0.55rem;
        border-radius: 2px;
        background: var(--wf-main-color, #1b8415);
    }

    body.woocommerce-cart .wc-block-cart__totals-title,
    body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header .wc-block-cart-items__header-product,
    body.woocommerce-checkout .wc-block-components-checkout-order-summary__title,
    body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-heading-block,
    body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-heading-block {
        color: var(--wf-secondary-color, #0a214f);
        font-size: 1.1rem !important;
        font-weight: 700;
        margin: 0 0 1rem;
        padding: 0 0 0.65rem;
        border-bottom: none;
    }

    body.woocommerce-cart .wc-block-cart__totals-title::after,
    body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__header .wc-block-cart-items__header-product::after,
    body.woocommerce-checkout .wc-block-components-checkout-order-summary__title::after,
    body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-heading-block::after,
    body.woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-heading-block::after {
        content: "";
        display: block;
        width: 3rem;
        height: 3px;
        margin-top: 0.55rem;
        border-radius: 2px;
        background: var(--wf-main-color, #1b8415);
    }

    /* 手机端：订单摘要放表单上方 */
    body.woocommerce-checkout .wc-block-components-sidebar,
    body.woocommerce-checkout .wc-block-checkout__sidebar {
        order: -1;
    }

    body.woocommerce-checkout .wc-block-components-main {
        order: 1;
    }

    body.woocommerce-cart .wc-block-cart__submit-button,
    body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
        border-radius: 999px !important;
        background: var(--wf-main-color, #1b8415) !important;
        color: #fff !important;
    }
}