.block-product-buy-button-group .quantity-selector__input,
.block-product-buy-button-group .block-product-buy-button-wrapper {
    align-self: stretch;
}

.block-product-buy-button-group .block-product-buy-button-wrapper {
    flex-grow: 1;
}

.block-product-buy-button-group .payment-button-wrapper {
    width: 100%;
    min-height: 46px;
}

@media (max-width: 959px) {
    .block-product-buy-button-group .payment-button-wrapper {
        min-height: 100px;
    }
}

.block-product-buy-button-group .payment-button-wrapper.is-disabled {
    display: none;
}

/* 预留空间防止渐进加载导致的布局偏移（移动端按钮逐个异步加载会挤压已渲染元素） */
.block-product-buy-button-group .block-product-buy-button-wrapper {
    min-height: 46px;
}

.block-product-buy-button-group .block-product-buy-button {
    min-height: 46px;
}

.block-product-buy-button-group .quantity-selector__input {
    min-height: 44px;
}

/* Payment logos under checkout-security extension on PDP */
.theme-app-extension-cb-checkout-security-trust-pdp .productSecurityPay {
    border-top: none !important;
    border-block-start: none !important;
    box-shadow: none !important;
    padding-block: 4px !important;
}

.theme-app-extension-cb-checkout-security-trust-pdp .productSecurityPay::before,
.theme-app-extension-cb-checkout-security-trust-pdp .productSecurityPay::after {
    display: none !important;
    border-top: none !important;
    border-block-start: none !important;
}

.theme-app-extension-cb-checkout-security-trust-pdp .productSecurityPay .pcImages,
.theme-app-extension-cb-checkout-security-trust-pdp .productSecurityPay .mobileImages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
    border-top: none !important;
}

.theme-app-extension-cb-checkout-security-trust-pdp .productSecurityPay .pcImages img,
.theme-app-extension-cb-checkout-security-trust-pdp .productSecurityPay .mobileImages img {
    border: none !important;
    outline: none !important;
}

/* Avoid duplicated icon rows: desktop shows pcImages, mobile shows mobileImages */
.theme-app-extension-cb-checkout-security-trust-pdp .productSecurityPay .mobileImages {
    display: none;
}

@media (max-width: 959px) {
    .theme-app-extension-cb-checkout-security-trust-pdp .productSecurityPay .pcImages {
        display: none;
    }

    .theme-app-extension-cb-checkout-security-trust-pdp .productSecurityPay .mobileImages {
        display: flex;
    }
}

.theme-app-extension-cb-checkout-security-trust-pdp .productSecurityPay .pcImages::before,
.theme-app-extension-cb-checkout-security-trust-pdp .productSecurityPay .pcImages::after,
.theme-app-extension-cb-checkout-security-trust-pdp .productSecurityPay .mobileImages::before,
.theme-app-extension-cb-checkout-security-trust-pdp .productSecurityPay .mobileImages::after {
    display: none !important;
    border-top: none !important;
    border-block-start: none !important;
}

@media (max-width: 959px) {
    .is-sticky>.block-product-buy-button-group {
        position: fixed;
        inset-block-end: var(--fixed-bottom, 0);
        inset-inline-start: 0;
        z-index: var(--z-index-sticky);
        width: 100%;
        padding: 20px var(--page-padding);
        background-color: rgba(var(--color-background));
        border-block-start: 1px solid rgba(var(--color-text), 0.05);
        box-shadow: 0 0 40px rgb(0 0 0 / 8%);
        animation: animation-slide-in-bottom 0.3s;
    }
}