/*
 * Site to Go commerce layer.
 * Loaded after WooCommerce and checkout-plugin styles on commerce requests.
 */

body.woocommerce-page,
body.woocommerce-page *,
body.has-fluid-checkout,
body.has-fluid-checkout * {
    box-sizing: border-box;
}

body.woocommerce-page {
    background: var(--stg-offwhite);
}

.stg-commerce-page,
.stg-commerce-page > *,
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout,
.wc-block-components-sidebar-layout,
.wc-block-components-main,
.wc-block-components-sidebar {
    min-width: 0;
    max-width: 100%;
}

body.woocommerce-page :where(
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error,
    .wc-block-components-notice-banner
) {
    width: 100%;
    margin: 0 0 20px;
    padding: 16px 18px;
    border: 1px solid var(--stg-border);
    border-left: 4px solid var(--stg-green);
    border-radius: var(--stg-radius-sm);
    background: var(--stg-white);
    color: var(--stg-dark);
    line-height: 1.5;
}

body.woocommerce-page :where(.woocommerce-error, .wc-block-components-notice-banner.is-error) {
    border-left-color: #C83D4B;
}

body.woocommerce-page :where(
    .button,
    button.button,
    input.button,
    .wp-element-button,
    .wc-block-components-button
):not(:disabled):not([aria-disabled="true"]) {
    border: 1px solid var(--stg-blue) !important;
    border-radius: 11px !important;
    background: var(--stg-blue) !important;
    color: var(--stg-white) !important;
    box-shadow: none !important;
    font-family: var(--stg-font) !important;
    font-weight: 750 !important;
    text-decoration: none !important;
}

body.woocommerce-page :where(
    .button,
    button.button,
    input.button,
    .wp-element-button,
    .wc-block-components-button
):not(:disabled):not([aria-disabled="true"]):hover {
    border-color: color-mix(in srgb, var(--stg-blue) 84%, black) !important;
    background: color-mix(in srgb, var(--stg-blue) 84%, black) !important;
}

body.woocommerce-page :where(button, .button, .wc-block-components-button):focus-visible,
body.has-fluid-checkout :where(button, a, input, select, textarea):focus-visible {
    outline: 3px solid color-mix(in srgb, var(--stg-blue) 28%, transparent) !important;
    outline-offset: 3px;
}

/* Shop archive. */
body.woocommerce-shop .stg-main.stg-theme-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(180deg, #F6F9FF 0, var(--stg-white) 420px);
}

body.woocommerce-shop .stg-content-shell--commerce {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, auto);
    gap: 24px;
    align-items: end;
}

body.woocommerce-shop .page-title {
    grid-column: 1 / -1;
    margin: 0 0 12px;
    padding: clamp(34px, 6vw, 66px);
    border-radius: var(--stg-radius-lg);
    background:
        radial-gradient(circle at 88% 14%, rgba(54, 162, 105, 0.30), transparent 26%),
        linear-gradient(135deg, #071A32 0%, #123E70 62%, #0B6077 100%);
    box-shadow: var(--stg-shadow);
    color: var(--stg-white);
    font-size: clamp(2.35rem, 6vw, 4.8rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

body.woocommerce-shop .woocommerce-notices-wrapper {
    grid-column: 1 / -1;
}

body.woocommerce-shop .woocommerce-result-count {
    float: none;
    margin: 0;
    color: var(--stg-muted);
    font-size: 0.94rem;
}

body.woocommerce-shop .woocommerce-ordering {
    float: none;
    margin: 0;
    justify-self: end;
}

body.woocommerce-shop .woocommerce-ordering .orderby {
    width: min(100%, 320px);
    min-height: 48px;
    padding: 10px 42px 10px 14px;
    border: 1px solid var(--stg-border);
    border-radius: 12px;
    background-color: var(--stg-white);
    color: var(--stg-dark);
    font: inherit;
}

body.woocommerce-shop ul.products {
    display: grid !important;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100%;
    margin: 8px 0 0 !important;
    padding: 0;
    list-style: none;
}

body.woocommerce-shop ul.products::before,
body.woocommerce-shop ul.products::after {
    display: none !important;
}

body.woocommerce-shop ul.products li.product {
    display: flex !important;
    float: none !important;
    flex-direction: column;
    width: auto !important;
    min-width: 0;
    height: 100%;
    margin: 0 !important;
    padding: 20px !important;
    overflow: hidden;
    border: 1px solid var(--stg-border);
    border-radius: var(--stg-radius-lg);
    background: var(--stg-white);
    box-shadow: 0 12px 34px rgba(18, 35, 63, 0.08);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body.woocommerce-shop ul.products li.product:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--stg-blue) 32%, var(--stg-border));
    box-shadow: 0 18px 42px rgba(18, 35, 63, 0.13);
}

body.woocommerce-shop ul.products li.product .woocommerce-loop-product__link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

body.woocommerce-shop ul.products li.product img {
    display: block;
    width: 100% !important;
    max-height: 270px;
    aspect-ratio: 4 / 3;
    margin: 0 0 20px !important;
    padding: 12px;
    border-radius: var(--stg-radius-md);
    background: #F4F8FF;
    object-fit: contain;
}

body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title {
    margin: 0;
    padding: 0 !important;
    color: var(--stg-navy);
    font-size: clamp(1.08rem, 1.7vw, 1.32rem) !important;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

body.woocommerce-shop ul.products li.product .price {
    display: block;
    margin: auto 0 0 !important;
    padding-top: 14px;
    color: var(--stg-navy) !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1.45;
}

body.woocommerce-shop ul.products li.product > .button,
body.woocommerce-shop ul.products li.product > .added_to_cart {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 18px 0 0 !important;
    padding: 11px 16px !important;
    text-align: center;
    white-space: normal;
}

body.woocommerce-shop .onsale {
    min-width: 0;
    min-height: 0;
    padding: 7px 11px;
    border-radius: 999px;
    background: var(--stg-green);
    line-height: 1.2;
}

body.woocommerce-shop .woocommerce-pagination {
    grid-column: 1 / -1;
}

/* Product details. */
body.single-product .stg-content-shell--commerce {
    padding: clamp(24px, 4vw, 46px);
    border: 1px solid var(--stg-border);
    border-radius: var(--stg-radius-lg);
    background: var(--stg-white);
    box-shadow: 0 12px 36px rgba(18, 35, 63, 0.08);
}

body.single-product .quantity .qty,
body.woocommerce-cart .quantity .qty {
    width: 5.25rem;
    min-height: 48px;
}

body.single-product .reset_variations {
    color: var(--stg-blue);
    font-weight: 700;
}

/* Classic cart, including the currently assigned custom cart page. */
body.woocommerce-cart .stg-page {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: var(--stg-white);
}

body.woocommerce-cart .stg-page > section[aria-labelledby="stg-cart-title"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

body.woocommerce-cart section[aria-labelledby="stg-cart-title"] > div > div:first-child {
    max-width: 100%;
    box-shadow: 0 20px 52px rgba(7, 26, 50, 0.18);
}

body.woocommerce-cart section[aria-labelledby="stg-cart-title"] > div > div:first-child > * {
    min-width: 0;
    max-width: 100%;
}

body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals,
body.woocommerce-cart .cart_totals {
    min-width: 0;
    max-width: 100%;
}

body.woocommerce-cart table.shop_table {
    width: 100%;
    border: 1px solid var(--stg-border) !important;
    border-radius: var(--stg-radius-md) !important;
    border-collapse: separate !important;
    background: var(--stg-white);
}

body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td {
    padding: 15px !important;
    border-color: var(--stg-border) !important;
}

body.woocommerce-cart .woocommerce-cart-form .product-thumbnail img {
    width: 82px;
    height: 82px;
    border-radius: 12px;
    background: #F4F8FF;
    object-fit: contain;
}

body.woocommerce-cart .woocommerce-cart-form .product-name a {
    color: var(--stg-navy);
    font-weight: 750;
    text-decoration: none;
}

body.woocommerce-cart .woocommerce-cart-form .product-name a:hover {
    color: var(--stg-blue);
}

body.woocommerce-cart .woocommerce-cart-form .product-remove .remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #F0CCD1;
    border-radius: 50%;
    background: #FFF7F8;
    color: #B52D3C !important;
    font-size: 1.35rem;
    text-decoration: none;
}

body.woocommerce-cart .woocommerce-cart-form td.actions {
    padding: 18px !important;
}

body.woocommerce-cart .woocommerce-cart-form .coupon {
    display: grid;
    float: left;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 10px;
    width: min(100%, 500px);
}

body.woocommerce-cart .woocommerce-cart-form .coupon .input-text {
    width: 100% !important;
    min-height: 48px;
    margin: 0 !important;
    padding: 11px 13px;
    border: 1px solid var(--stg-border);
    border-radius: 11px;
}

body.woocommerce-cart .woocommerce-cart-form button.button,
body.woocommerce-cart .wc-proceed-to-checkout .checkout-button,
body.woocommerce-cart .return-to-shop .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 17px !important;
    text-align: center;
    white-space: normal;
}

body.woocommerce-cart .cart-collaterals::before,
body.woocommerce-cart .cart-collaterals::after {
    display: table;
    clear: both;
    content: "";
}

body.woocommerce-cart .cart-collaterals .cart_totals {
    float: right;
    width: min(100%, 480px) !important;
    margin-top: 28px;
    padding: clamp(20px, 4vw, 32px);
    border: 1px solid var(--stg-border);
    border-radius: var(--stg-radius-lg);
    background: #F9FBFF;
    box-shadow: 0 12px 34px rgba(18, 35, 63, 0.08);
}

body.woocommerce-cart .cart_totals h2 {
    margin: 0 0 18px;
    color: var(--stg-navy);
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    line-height: 1.2;
}

body.woocommerce-cart .cart_totals table.shop_table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed;
}

body.woocommerce-cart .cart_totals table.shop_table :where(th, td, span, small) {
    min-width: 0;
    overflow-wrap: anywhere;
}

body.woocommerce-cart .cart_totals table.shop_table th {
    width: 58%;
}

body.woocommerce-cart .cart_totals table.shop_table td {
    width: 42%;
}

body.woocommerce-cart .wc-proceed-to-checkout {
    padding-bottom: 0;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    width: 100%;
    min-height: 54px;
    margin: 18px 0 0 !important;
}

body.woocommerce-page .subscription-recurring-total td {
    background: #F7FAFF;
}

body.woocommerce-page .recurring-total-header,
body.woocommerce-page .recurring-total-schedule {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

body.woocommerce-page .recurring-total-header {
    color: var(--stg-navy);
    font-weight: 800;
}

body.woocommerce-page .recurring-total-schedule {
    margin-top: 5px;
    color: var(--stg-muted);
}

body.woocommerce-page .recurring-total-details {
    margin-top: 10px;
}

body.woocommerce-page .recurring-total-details > summary {
    color: var(--stg-blue);
    cursor: pointer;
    font-weight: 700;
}

body.woocommerce-page table.recurring-totals-table {
    margin: 10px 0 0 !important;
}

/* Classic checkout and account pages. */
body.woocommerce-checkout:not(.has-fluid-checkout) .stg-commerce-page,
body.woocommerce-account .stg-commerce-page,
body.woocommerce-order-received .stg-commerce-page {
    padding: clamp(38px, 7vw, 80px) 20px;
    background: linear-gradient(180deg, #F6F9FF, var(--stg-white) 480px);
}

body.woocommerce-checkout:not(.has-fluid-checkout) .stg-commerce-page > .woocommerce,
body.woocommerce-account .stg-commerce-page > .woocommerce,
body.woocommerce-order-received .stg-commerce-page > .woocommerce {
    width: min(100%, 1180px);
    margin-inline: auto;
}

.stg-woocommerce form.checkout {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.stg-woocommerce form.checkout #customer_details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.stg-woocommerce #customer_details::before,
.stg-woocommerce #customer_details::after {
    display: none;
}

.stg-woocommerce #customer_details > .col-1,
.stg-woocommerce #customer_details > .col-2 {
    float: none;
    width: 100%;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--stg-border);
    border-radius: var(--stg-radius-lg);
    background: var(--stg-white);
    box-shadow: 0 10px 30px rgba(18, 35, 63, 0.07);
}

.stg-woocommerce form.checkout :where(label, .form-row label) {
    color: var(--stg-navy);
    font-weight: 700;
}

.stg-woocommerce form.checkout .required {
    color: #B52D3C;
}

.stg-woocommerce form.checkout :where(input.input-text, select, textarea) {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--stg-border);
    border-radius: 11px;
    background: var(--stg-white);
}

.stg-woocommerce form.checkout :where(input.input-text, select, textarea):focus {
    border-color: var(--stg-blue);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--stg-blue) 15%, transparent);
    outline: 0;
}

.stg-woocommerce .select2-container {
    width: 100% !important;
}

.stg-woocommerce .select2-container .select2-selection--single {
    min-height: 50px;
    border-color: var(--stg-border);
    border-radius: 11px;
}

.stg-woocommerce .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 48px;
}

.stg-woocommerce .select2-container .select2-selection--single .select2-selection__arrow {
    height: 48px;
}

.stg-woocommerce #order_review,
.stg-woocommerce #payment,
.stg-woocommerce form.woocommerce-form-login,
.stg-woocommerce form.checkout_coupon {
    margin-top: 24px;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid var(--stg-border);
    border-radius: var(--stg-radius-lg);
    background: var(--stg-white);
    box-shadow: 0 10px 30px rgba(18, 35, 63, 0.07);
}

.stg-woocommerce #payment {
    background: #F7FAFF !important;
}

.stg-woocommerce #place_order {
    width: 100%;
    min-height: 54px;
    margin-top: 12px;
}

/* Order confirmation: remove WooCommerce's fragile floated overview list. */
body.woocommerce-order-received ul.woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 14px;
    width: 100%;
    margin: 22px 0 30px !important;
    padding: 0;
    list-style: none;
}

body.woocommerce-order-received ul.woocommerce-order-overview li {
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 16px !important;
    border: 1px solid var(--stg-border) !important;
    border-radius: 14px;
    background: var(--stg-white);
    overflow-wrap: anywhere;
}

body.woocommerce-order-received :where(
    .woocommerce-order-details,
    .woocommerce-customer-details
) {
    margin-top: 24px;
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid var(--stg-border);
    border-radius: var(--stg-radius-lg);
    background: var(--stg-white);
    box-shadow: 0 10px 30px rgba(18, 35, 63, 0.07);
}

/* WooCommerce cart and checkout blocks. */
body.woocommerce-cart .stg-page > .wp-block-woocommerce-cart,
body.woocommerce-checkout:not(.has-fluid-checkout) .stg-page > .wp-block-woocommerce-checkout {
    width: min(calc(100% - 40px), 1180px) !important;
    max-width: 1180px !important;
    margin-inline: auto !important;
    padding-block: clamp(36px, 6vw, 72px);
}

body:not(.has-fluid-checkout) :where(
    .wp-block-woocommerce-cart,
    .wp-block-woocommerce-checkout
) .wc-block-components-sidebar-layout {
    gap: clamp(24px, 4vw, 42px);
}

body:not(.has-fluid-checkout) :where(
    .wc-block-cart__main,
    .wc-block-cart__sidebar,
    .wc-block-checkout__main,
    .wc-block-checkout__sidebar
) {
    min-width: 0;
}

body:not(.has-fluid-checkout) .wc-block-checkout__sidebar.is-sticky {
    top: calc(var(--stg-header-height) + var(--stg-admin-offset) + 24px);
}

body:not(.has-fluid-checkout) :where(
    .wc-block-components-checkout-step,
    .wp-block-woocommerce-checkout-order-summary-block,
    .wc-block-cart__totals-title,
    .wc-block-components-totals-wrapper
) {
    border-color: var(--stg-border);
    border-radius: var(--stg-radius-md);
}

body:not(.has-fluid-checkout) :where(
    .wc-block-components-text-input input,
    .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input
) {
    min-height: 52px;
    border-color: var(--stg-border);
    border-radius: 11px;
}

body:not(.has-fluid-checkout) .wc-block-components-checkout-place-order-button {
    width: 100%;
    min-height: 54px;
}

.stg-page .wc-empty-cart-message .cart-empty.woocommerce-info {
    width: 100%;
    box-sizing: border-box;
}

.stg-page .return-to-shop .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 18px !important;
}

/* Fluid Checkout, which replaces the normal theme page template on this site. */
body.has-fluid-checkout {
    background: #F4F7FB !important;
    color: var(--stg-dark);
    font-family: var(--stg-font);
}

body.has-fluid-checkout .fc-checkout-header {
    border-bottom: 1px solid var(--stg-border);
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 8px 28px rgba(18, 35, 63, 0.07);
}

body.has-fluid-checkout .fc-checkout-header__inner {
    width: min(calc(100% - 40px), 1100px) !important;
    max-width: 1100px !important;
    margin-inline: auto !important;
}

body.has-fluid-checkout .fc-checkout__branding .custom-logo {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 185px !important;
    max-height: 52px !important;
    object-fit: contain;
}

body.has-fluid-checkout .fc-checkout__cart-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid var(--stg-border);
    border-radius: 999px;
    background: #F7FAFF;
    color: var(--stg-navy);
    text-decoration: none;
}

body.has-fluid-checkout .fc-main {
    width: 100%;
    max-width: 100%;
    padding-bottom: clamp(48px, 7vw, 88px);
    background: linear-gradient(180deg, #F4F7FB 0, #FFFFFF 620px);
}

body.has-fluid-checkout .fc-content {
    width: min(calc(100% - 40px), 1100px) !important;
    max-width: 1100px !important;
    margin-inline: auto !important;
}

body.has-fluid-checkout :where(
    .wp-block-woocommerce-checkout,
    .woocommerce,
    form.checkout,
    #fc-wrapper,
    .fc-inside,
    .fc-checkout-steps,
    .fc-sidebar,
    .fc-progress-bar
) {
    min-width: 0;
    max-width: 100%;
}

body.has-fluid-checkout .fc-progress-bar {
    width: 100% !important;
    margin: 0 0 22px !important;
}

body.has-fluid-checkout .fc-progress-bar__step.is-current,
body.has-fluid-checkout .fc-progress-bar__step.is-complete {
    color: var(--stg-blue) !important;
}

body.has-fluid-checkout .fc-progress-bar__step.is-current::before,
body.has-fluid-checkout .fc-progress-bar__step.is-complete::before {
    border-color: var(--stg-blue) !important;
    background-color: var(--stg-blue) !important;
}

body.has-fluid-checkout .fc-step__substep {
    margin-bottom: 18px !important;
    padding: clamp(20px, 3vw, 30px) !important;
    border: 1px solid var(--stg-border) !important;
    border-radius: 18px !important;
    background: var(--stg-white) !important;
    box-shadow: 0 10px 30px rgba(18, 35, 63, 0.07);
}

body.has-fluid-checkout .fc-step__substep-title,
body.has-fluid-checkout .fc-checkout-order-review-title {
    color: var(--stg-navy) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

body.has-fluid-checkout .fc-contact-login {
    padding: 16px !important;
    border: 1px solid #D7E4FA !important;
    border-radius: 13px !important;
    background: #F2F7FF !important;
}

body.has-fluid-checkout .fc-contact-login__action,
body.has-fluid-checkout .fc-step__substep-edit,
body.has-fluid-checkout .fc-checkout-order-review__edit-cart {
    color: var(--stg-blue) !important;
    font-weight: 750;
}

body.has-fluid-checkout form.checkout :where(
    input.input-text,
    input[type="email"],
    input[type="tel"],
    input[type="text"],
    input[type="password"],
    select,
    textarea
) {
    width: 100%;
    min-height: 52px;
    padding: 12px 13px;
    border: 1px solid var(--stg-border) !important;
    border-radius: 11px !important;
    background: var(--stg-white) !important;
    color: var(--stg-dark);
    font: inherit;
}

body.has-fluid-checkout form.checkout :where(
    input.input-text,
    input[type="email"],
    input[type="tel"],
    input[type="text"],
    input[type="password"],
    select,
    textarea
):focus {
    border-color: var(--stg-blue) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--stg-blue) 15%, transparent) !important;
    outline: 0;
}

body.has-fluid-checkout :where(
    .fc-step__next-step,
    .fc-step__substep-save,
    .fc-place-order-button,
    .fc-checkout-order-review__close-order-summary
):not(:disabled):not([aria-disabled="true"]) {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 52px !important;
    padding: 12px 18px !important;
    border: 1px solid var(--stg-blue) !important;
    border-radius: 11px !important;
    background: var(--stg-blue) !important;
    color: var(--stg-white) !important;
    font-weight: 800 !important;
    text-align: center;
    white-space: normal;
}

body.has-fluid-checkout :where(
    .fc-step__next-step,
    .fc-step__substep-save,
    .fc-place-order-button
):disabled {
    min-height: 52px !important;
    border-color: #CBD3DE !important;
    border-radius: 11px !important;
    background: #E1E6ED !important;
    color: #687486 !important;
    cursor: not-allowed;
    opacity: 1 !important;
}

body.has-fluid-checkout .fc-step__actions,
body.has-fluid-checkout .fc-place-order {
    width: 100%;
}

body.has-fluid-checkout .fc-step__next-step,
body.has-fluid-checkout .fc-place-order-button {
    width: 100% !important;
    max-width: 100%;
    min-width: 0 !important;
}

body.has-fluid-checkout .fc-sidebar__inner,
body.has-fluid-checkout .fc-checkout-order-review__inner {
    border: 1px solid var(--stg-border);
    border-radius: 18px;
    background: var(--stg-white);
    box-shadow: 0 12px 34px rgba(18, 35, 63, 0.08);
}

body.has-fluid-checkout .woocommerce-checkout-review-order-table {
    width: 100%;
    max-width: 100%;
}

body.has-fluid-checkout .woocommerce-checkout-review-order-table img {
    border-radius: 10px;
    background: #F4F8FF;
    object-fit: contain;
}

@media (max-width: 900px) {
    body.woocommerce-shop ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body:not(.has-fluid-checkout) .wc-block-components-sidebar-layout {
        flex-direction: column !important;
    }

    body:not(.has-fluid-checkout) :where(
        .wc-block-cart__main,
        .wc-block-cart__sidebar,
        .wc-block-checkout__main,
        .wc-block-checkout__sidebar
    ) {
        width: 100% !important;
        padding: 0 !important;
    }
}

@media (max-width: 820px) {
    body.woocommerce-cart .stg-page > section[aria-labelledby="stg-cart-title"] {
        padding: 32px 16px 56px !important;
    }

    body.woocommerce-cart section[aria-labelledby="stg-cart-title"] > div > div:first-child,
    body.page-id-434 .stg-page > section > div > div:first-child {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 24px !important;
        padding: clamp(24px, 8vw, 38px) !important;
    }

    body.woocommerce-cart section[aria-labelledby="stg-cart-title"] > div > div:first-child > *,
    body.page-id-434 .stg-page > section > div > div:first-child > * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.woocommerce-cart section[aria-labelledby="stg-cart-title"] > div > div:first-child > div:last-child,
    body.page-id-434 .stg-page > section > div > div:first-child > div:last-child {
        align-self: flex-start !important;
        justify-content: flex-start !important;
        width: auto !important;
        white-space: normal !important;
    }

    .stg-woocommerce form.checkout #customer_details {
        grid-template-columns: minmax(0, 1fr);
    }

    .stg-woocommerce .form-row-first,
    .stg-woocommerce .form-row-last {
        float: none;
        width: 100%;
    }
}

@media (max-width: 700px) {
    body.woocommerce-shop .stg-content-shell--commerce {
        grid-template-columns: minmax(0, 1fr);
    }

    body.woocommerce-shop .page-title,
    body.woocommerce-shop .woocommerce-notices-wrapper,
    body.woocommerce-shop ul.products,
    body.woocommerce-shop .woocommerce-pagination {
        grid-column: 1;
    }

    body.woocommerce-shop .woocommerce-result-count,
    body.woocommerce-shop .woocommerce-ordering {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
        justify-self: stretch;
    }

    body.woocommerce-shop .woocommerce-ordering .orderby {
        width: 100% !important;
        max-width: none;
    }

    body.woocommerce-cart section[aria-labelledby="stg-cart-title"] > div > div:nth-child(2) {
        margin-top: 28px !important;
        padding: 16px !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.cart {
        display: block !important;
        border: 0 !important;
        background: transparent;
    }

    body.woocommerce-cart .woocommerce-cart-form table.cart thead {
        display: none;
    }

    body.woocommerce-cart .woocommerce-cart-form table.cart tbody,
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item {
        display: block !important;
        width: 100%;
    }

    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item {
        position: relative;
        margin-bottom: 16px;
        padding: 12px;
        border: 1px solid var(--stg-border);
        border-radius: 16px;
        background: var(--stg-white);
        box-shadow: 0 8px 24px rgba(18, 35, 63, 0.06);
    }

    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100% !important;
        padding: 11px 4px !important;
        border: 0 !important;
        border-bottom: 1px solid #EDF0F4 !important;
        text-align: right !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td:last-child {
        border-bottom: 0 !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td::before {
        flex: 0 0 auto;
        margin-right: 18px;
        color: var(--stg-navy);
        font-weight: 750;
    }

    body.woocommerce-cart .woocommerce-cart-form table.cart td.product-remove {
        justify-content: flex-end;
    }

    body.woocommerce-cart .woocommerce-cart-form table.cart td.product-remove::before,
    body.woocommerce-cart .woocommerce-cart-form table.cart td.product-thumbnail::before {
        display: none;
    }

    body.woocommerce-cart .woocommerce-cart-form table.cart td.product-thumbnail {
        display: block !important;
        text-align: center !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.cart td.product-thumbnail img {
        width: min(132px, 48vw);
        height: auto;
        aspect-ratio: 1;
    }

    body.woocommerce-cart .woocommerce-cart-form table.cart td.product-name {
        display: block !important;
        text-align: left !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.cart td.product-name::before {
        display: block;
        margin: 0 0 5px;
    }

    body.woocommerce-cart .woocommerce-cart-form table.cart td.product-quantity:has(input[type="hidden"]) {
        display: none !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.cart tr:last-child,
    body.woocommerce-cart .woocommerce-cart-form table.cart td.actions {
        display: block !important;
        width: 100%;
    }

    body.woocommerce-cart .woocommerce-cart-form .coupon {
        display: grid;
        float: none;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        margin-bottom: 10px;
    }

    body.woocommerce-cart .woocommerce-cart-form .coupon .button,
    body.woocommerce-cart .woocommerce-cart-form td.actions > button.button {
        float: none !important;
        width: 100% !important;
        margin: 0 !important;
    }

    body.woocommerce-cart .cart-collaterals .cart_totals {
        float: none;
        width: 100% !important;
        margin: 22px 0 0;
        padding: 18px;
    }

    body.woocommerce-cart .cart_totals table.shop_table {
        display: table !important;
        overflow: visible !important;
    }

    body.woocommerce-cart .cart_totals table.shop_table > tbody > tr {
        display: table-row !important;
    }

    body.woocommerce-cart .cart_totals table.shop_table > tbody > tr > th,
    body.woocommerce-cart .cart_totals table.shop_table > tbody > tr > td {
        display: table-cell !important;
        float: none !important;
        width: auto !important;
        text-align: left !important;
    }

    body.woocommerce-cart .cart_totals table.shop_table > tbody > tr > td::before {
        display: none !important;
    }

    body.has-fluid-checkout .fc-checkout-header__inner,
    body.has-fluid-checkout .fc-content {
        width: calc(100% - 32px) !important;
        max-width: calc(100% - 32px) !important;
    }

    body.has-fluid-checkout :where(
        .wp-block-woocommerce-checkout,
        .woocommerce,
        form.checkout,
        #fc-wrapper,
        .fc-inside,
        .fc-checkout-steps,
        .fc-sidebar,
        .fc-progress-bar
    ) {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    body.has-fluid-checkout .fc-step__substep {
        padding: 18px !important;
        border-radius: 15px !important;
    }

    body.has-fluid-checkout .fc-checkout__branding .custom-logo {
        max-width: min(145px, calc(100vw - 150px)) !important;
    }

    body.has-fluid-checkout .fc-checkout__cart-link {
        padding: 7px 10px;
        font-size: 0.86rem;
    }
}

@media (max-width: 620px) {
    body.woocommerce-shop ul.products {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.woocommerce-shop ul.products li.product img {
        max-height: 250px;
    }

    body.woocommerce-order-received ul.woocommerce-order-overview {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 430px) {
    body.woocommerce-page .recurring-total-header,
    body.woocommerce-page .recurring-total-schedule {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    body.has-fluid-checkout .fc-checkout-header__inner,
    body.has-fluid-checkout .fc-content {
        width: calc(100% - 24px) !important;
        max-width: calc(100% - 24px) !important;
    }

    body.has-fluid-checkout .fc-step__substep {
        padding: 16px !important;
    }
}

@media (max-width: 360px) {
    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        text-align: left !important;
    }

    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td::before {
        margin-right: 0;
    }

    body.woocommerce-cart .woocommerce-cart-form table.cart tr.cart_item td.product-remove {
        align-items: flex-end;
    }

    body.woocommerce-cart .cart_totals > table.shop_table {
        display: block !important;
        table-layout: auto;
    }

    body.woocommerce-cart .cart_totals > table.shop_table > tbody,
    body.woocommerce-cart .cart_totals > table.shop_table > tbody > tr {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
    }

    body.woocommerce-cart .cart_totals > table.shop_table > tbody > tr > th,
    body.woocommerce-cart .cart_totals > table.shop_table > tbody > tr > td {
        display: block !important;
        width: 100% !important;
        padding: 10px 12px !important;
        text-align: left !important;
    }

    body.woocommerce-cart .cart_totals > table.shop_table > tbody > tr > th {
        padding-bottom: 2px !important;
        border-bottom: 0 !important;
    }

    body.has-fluid-checkout .fc-checkout__branding .custom-logo {
        max-width: min(100px, calc(100vw - 200px)) !important;
    }

    body.has-fluid-checkout .fc-checkout__cart-link {
        font-size: 0.8rem;
    }
}
