/*
 * Push Me Home storefront polish — 0.2.69.
 *
 * This stylesheet is loaded only for the Push Me Home storefront profile.
 * The profile body class remains on every selector as a second isolation
 * boundary because Tomedia WooCommerce serves multiple brand worlds.
 */
body.tmwc-profile--push-me-home.woocommerce-cart .tmwc-commerce-surface__body,
body.tmwc-profile--push-me-home.woocommerce-checkout .tmwc-commerce-surface__body {
    padding: clamp(1rem, 2vw, 1.5rem);
}

body.tmwc-profile--push-me-home.woocommerce-checkout .woocommerce-checkout {
    gap: 1.15rem;
}

body.tmwc-profile--push-me-home.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.tmwc-profile--push-me-home.woocommerce-checkout form.checkout_coupon {
    margin-bottom: 0.75rem;
}

body.tmwc-profile--push-me-home.home ul.pmh-news-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: clamp(1rem, 1.6vw, 1.5rem) !important;
    padding: 0 !important;
    list-style: none;
}

body.tmwc-profile--push-me-home.home ul.pmh-news-grid > li {
    display: grid;
    align-content: start;
    min-width: 0;
    width: auto !important;
    height: 100%;
    margin: 0 !important;
}

body.tmwc-profile--push-me-home.home .pmh-brand-grid > .wp-block-image {
    display: grid !important;
    place-items: center;
    min-width: 0;
    overflow: hidden;
}

body.tmwc-profile--push-me-home.home .pmh-brand-grid > .wp-block-image > a {
    display: grid;
    width: 100%;
    place-items: center;
}

body.tmwc-profile--push-me-home.home .pmh-brand-grid > .wp-block-image img {
    display: block;
    width: min(100%, 220px) !important;
    max-width: 100% !important;
    height: clamp(64px, 7vw, 90px) !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    object-position: center !important;
}

@media (max-width: 960px) {
    body.tmwc-profile--push-me-home.home ul.pmh-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 680px) {
    body.tmwc-profile--push-me-home.home ul.pmh-news-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.tmwc-profile--push-me-home.woocommerce-checkout tr.woocommerce-shipping-totals > th {
        width: 30% !important;
        padding-inline: 0.75rem !important;
    }

    body.tmwc-profile--push-me-home.woocommerce-checkout tr.woocommerce-shipping-totals > td {
        width: 70% !important;
        padding-inline: 0.75rem !important;
    }

    body.tmwc-profile--push-me-home.woocommerce-checkout #shipping_method {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    body.tmwc-profile--push-me-home.woocommerce-checkout #shipping_method li {
        display: grid;
        grid-template-columns: 18px minmax(0, 1fr);
        align-items: start;
        gap: 0.5rem;
        margin: 0 0 0.75rem !important;
        list-style: none !important;
    }

    body.tmwc-profile--push-me-home.woocommerce-checkout #shipping_method li:last-child {
        margin-bottom: 0 !important;
    }

    body.tmwc-profile--push-me-home.woocommerce-checkout #shipping_method input {
        margin: 0.3rem 0 0 !important;
    }

    body.tmwc-profile--push-me-home.woocommerce-checkout #shipping_method label {
        margin: 0 !important;
        line-height: 1.45;
    }
}

@media (max-width: 860px) {
    body.tmwc-profile--push-me-home.woocommerce-cart .tmwc-commerce-surface__body,
    body.tmwc-profile--push-me-home.woocommerce-checkout .tmwc-commerce-surface__body {
        padding: 0.9rem;
    }

    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive thead {
        display: none !important;
    }

    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive tbody {
        display: block;
    }

    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive tr.cart_item {
        position: relative;
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 0.4rem 0.9rem;
        padding: 0.2rem 0 1.25rem;
        border-bottom: 1px solid rgba(20, 36, 95, 0.14);
    }

    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive tr.cart_item td {
        width: auto !important;
        min-width: 0;
        padding: 0.2rem 0 !important;
        border: 0 !important;
    }

    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive td.product-remove {
        position: absolute;
        z-index: 2;
        top: -0.1rem;
        right: 0;
    }

    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive td.product-remove a.remove {
        display: grid;
        width: 36px;
        height: 36px;
        place-items: center;
        border: 1px solid rgba(20, 36, 95, 0.16);
        border-radius: 50%;
        background: #ffffff;
        color: #14245f !important;
        font-size: 1.25rem;
        line-height: 1;
    }

    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive td.product-thumbnail {
        display: block !important;
        grid-column: 1;
        grid-row: 1 / span 4;
        align-self: start;
    }

    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive td.product-thumbnail img {
        display: block;
        width: 76px !important;
        height: 76px !important;
        border-radius: 0.75rem;
        object-fit: cover;
    }

    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive td.product-name {
        grid-column: 2;
        padding-right: 2.5rem !important;
        font-weight: 700;
        line-height: 1.35;
    }

    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive td.product-name::before,
    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive td.product-thumbnail::before,
    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive td.product-remove::before {
        display: none !important;
        content: none !important;
    }

    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive td.product-price,
    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive td.product-quantity,
    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive td.product-subtotal {
        display: flex !important;
        grid-column: 2;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive td[data-title]::before {
        float: none !important;
        margin: 0;
        color: #536078;
        font-family: var(--tmwc-font-accent);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        content: attr(data-title);
    }

    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive td.product-quantity .quantity {
        margin-left: auto;
    }

    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive td.product-quantity input.qty {
        width: 76px;
        min-height: 44px;
    }

    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive tr:not(.cart_item) {
        display: block;
        padding: 1rem 0 0;
        border: 0;
    }

    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive td.actions {
        display: grid;
        gap: 0.75rem;
        padding: 0 !important;
        border: 0 !important;
    }

    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive td.actions .coupon {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive td.actions .coupon input,
    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive td.actions .coupon button,
    body.tmwc-profile--push-me-home.woocommerce-cart table.shop_table_responsive td.actions > button {
        width: 100%;
        margin: 0 !important;
    }

    body.tmwc-profile--push-me-home.woocommerce-checkout .woocommerce form.checkout_coupon {
        padding: 1rem;
        border-radius: 0.9rem;
    }
}
