/**
 * WooCommerce Cart & Checkout Blocks compatibility — v5.8.39
 * Scoped to block pages so classic Cart/Checkout remains unchanged.
 */
.hst-wc-block-page {
    --wc-block-components-color-accent: var(--hst-primary, #356caf);
    --wc-block-components-color-accent-60: var(--hst-primary, #356caf);
    --wc-block-components-color-accent-80: var(--hst-primary, #356caf);
}

.hst-wc-block-page :where(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) {
    width: 100%;
    max-width: 100%;
    color: var(--hst-wc-text, #1f2937);
    font-family: var(--hst-font-family, inherit);
}

.hst-wc-block-page :where(.wc-block-components-sidebar-layout, .wc-block-cart, .wc-block-checkout) {
    gap: 28px;
    align-items: flex-start;
}

.hst-wc-block-page :where(
    .wc-block-cart__main,
    .wc-block-cart__sidebar,
    .wc-block-checkout__main,
    .wc-block-checkout__sidebar
) {
    min-width: 0;
}

.hst-wc-block-page :where(
    .wc-block-cart-items,
    .wc-block-cart__sidebar,
    .wc-block-checkout__main,
    .wc-block-checkout__sidebar,
    .wc-block-components-order-summary,
    .wc-block-components-checkout-step
) {
    border-color: #e3eaf3;
}

.hst-wc-block-page :where(.wc-block-cart__sidebar, .wc-block-checkout__sidebar) {
    position: sticky;
    top: 96px;
    border: 1px solid #e3eaf3;
    border-radius: 18px;
    padding: 22px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(23, 43, 77, .06);
}

.hst-wc-block-page :where(.wc-block-components-checkout-step__heading, .wc-block-components-title) {
    color: var(--hst-wc-text, #1f2937);
    font-weight: 700;
}

.hst-wc-block-page :where(
    .wc-block-components-text-input input,
    .wc-block-components-combobox .wc-block-components-combobox-control input,
    .wc-block-components-textarea,
    .wc-block-components-select .wc-block-components-select__select
) {
    min-height: 50px;
    border: 1px solid #d7e1ed;
    border-radius: 12px;
    background: #fff;
    color: var(--hst-wc-text, #1f2937);
    font: inherit;
    box-shadow: none;
}

.hst-wc-block-page :where(
    .wc-block-components-text-input input,
    .wc-block-components-combobox .wc-block-components-combobox-control input,
    .wc-block-components-textarea,
    .wc-block-components-select .wc-block-components-select__select
):focus {
    border-color: var(--hst-primary, #356caf);
    box-shadow: 0 0 0 3px rgba(53, 108, 175, .12);
    outline: 0;
}

.hst-wc-block-page .wc-block-components-textarea {
    min-height: 112px;
    padding: 14px 16px;
}

.hst-wc-block-page :where(
    .wc-block-components-button,
    .wc-block-cart__submit-button,
    .wc-block-components-checkout-place-order-button
) {
    min-height: 50px;
    border: 0;
    border-radius: 12px;
    background: var(--hst-button, var(--hst-primary, #356caf));
    color: #fff;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
    transition: filter .18s ease, transform .18s ease;
}

.hst-wc-block-page :where(
    .wc-block-components-button,
    .wc-block-cart__submit-button,
    .wc-block-components-checkout-place-order-button
):hover {
    color: #fff;
    filter: brightness(.94);
    transform: translateY(-1px);
}

.hst-wc-block-page :where(
    .wc-block-components-formatted-money-amount,
    .wc-block-components-product-price,
    .wc-block-components-totals-item__value,
    .wc-block-cart-item__total
) {
    white-space: nowrap;
}

.hst-wc-block-page :where(.wc-block-cart-items__row, .wc-block-components-order-summary-item) {
    border-color: #e8edf4;
}

.hst-wc-block-page .wc-block-cart-items__row td {
    padding-top: 20px;
    padding-bottom: 20px;
}

.hst-wc-block-page :where(.wc-block-components-product-name, .wc-block-components-order-summary-item__description) {
    color: var(--hst-wc-text, #1f2937);
    font-weight: 650;
    line-height: 1.4;
}

.hst-wc-block-page .wc-block-components-quantity-selector {
    min-height: 38px;
    border-color: #d7e1ed;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}

.hst-wc-block-page .wc-block-components-product-badge {
    border: 0;
    border-radius: 7px;
    background: #eef5ff;
    color: var(--hst-primary, #356caf);
    font-weight: 700;
}

.hst-wc-block-page :where(.wc-block-components-totals-wrapper, .wc-block-components-totals-footer-item) {
    border-color: #e8edf4;
}

.hst-wc-block-page .wc-block-components-totals-footer-item {
    color: var(--hst-wc-text, #1f2937);
    font-weight: 800;
}

.hst-wc-block-page :where(.wc-block-components-validation-error, .wc-block-components-notice-banner) {
    border-radius: 12px;
}

.hst-wc-block-page :where(.wc-block-cart-item__remove-link, .wc-block-components-button[aria-label*="Kaldır"]) {
    color: #d92d3d;
}

@media (max-width: 782px) {
    .hst-wc-block-page :where(.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout) {
        margin-left: 0;
        margin-right: 0;
    }

    .hst-wc-block-page :where(.wc-block-components-sidebar-layout, .wc-block-cart, .wc-block-checkout) {
        display: block;
    }

    .hst-wc-block-page :where(
        .wc-block-cart__main,
        .wc-block-cart__sidebar,
        .wc-block-checkout__main,
        .wc-block-checkout__sidebar
    ) {
        width: 100%;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .hst-wc-block-page :where(.wc-block-cart__sidebar, .wc-block-checkout__sidebar) {
        position: static;
        margin-top: 18px;
        padding: 16px;
        border-radius: 14px;
    }

    .hst-wc-block-page .wc-block-cart-items__row {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        column-gap: 12px;
        padding: 14px 0;
    }

    .hst-wc-block-page .wc-block-cart-item__image {
        width: 72px;
        padding: 0;
    }

    .hst-wc-block-page .wc-block-cart-item__product {
        min-width: 0;
        padding: 0;
    }

    .hst-wc-block-page :where(.wc-block-components-product-name, .wc-block-components-order-summary-item__description) {
        overflow-wrap: anywhere;
    }

    .hst-wc-block-page :where(
        .wc-block-components-button,
        .wc-block-cart__submit-button,
        .wc-block-components-checkout-place-order-button
    ) {
        width: 100%;
        min-height: 48px;
    }
}
