.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%;
}

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

.gf-floating-cart-summary {
    display: none;
}

@media (max-width: 959px) {
    .is-sticky>.block-product-buy-button-group {
        position: fixed !important;
        left: 8px !important;
        right: 8px !important;
        bottom: 8px !important;
        width: auto !important;
        z-index: 999 !important;

        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        gap: 5px !important;

        padding: 8px 12px 12px !important;
        border-radius: 18px !important;
        background: #fff !important;
        border: 1px solid rgba(160, 190, 220, 0.45) !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14) !important;
        animation: animation-slide-in-bottom 0.3s;
    }

    .is-sticky .gf-floating-cart-summary,
    .is-sticky .gf-floating-cart-content {
        display: contents !important;
    }

    .is-sticky .gf-floating-cart-handle {
        order: 0 !important;
        flex: 0 0 100% !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 120px !important;
        height: 10px !important;
        padding: 0 !important;

        border: 0 !important;
        background: transparent !important;
    }
    
    .gf-handle-label {
        font-size: 14px;
        font-weight: 700;
        color: #5a84b7;
        line-height: 1;
    
        display: flex;
        align-items: center;
    }

    .is-sticky .gf-floating-cart-handle::before {
        content: "";
        width: 10px;
        height: 10px;
        border-left: 3px solid #7aa7d9;
        border-bottom: 3px solid #7aa7d9;
        transform: rotate(-45deg);
    }

    .is-sticky .quantity-selector__input {
        order: 1 !important;
        flex: 0 0 120px !important;
        width: 120px !important;
        min-width: 120px !important;
        height: 45px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        border-radius: 16px !important;
        align-self: center !important;
        background-color: #ffffff;
    }

    .is-sticky .gf-floating-cart-price-box {
        order: 2 !important;
        flex: 1 1 0 !important;
        width: auto !important;
        min-width: 0 !important;

        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;

        box-sizing: border-box !important;
        padding: 8px 14px !important;

        border: 1px solid rgba(160, 190, 220, 0.55) !important;
        border-radius: 16px !important;
        background: #f8fbff !important;
        align-self: center !important;
    }

    .is-sticky .gf-floating-cart-line,
    .is-sticky .gf-floating-cart-total {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        font-size: 14px !important;
        line-height: 1.2 !important;
    }

    .is-sticky .gf-floating-cart-line span {
        color: #6b7280 !important;
    }

.is-sticky .gf-floating-cart-line strong:not(.gf-floating-discount):not(.gf-floating-cart-discount) {
    color: #1f2937 !important;
}

    .is-sticky .gf-floating-cart-discount {
        color: #ff0000 !important;
    }

    .is-sticky .gf-floating-cart-total {
        margin-top: 6px !important;
        border-top: 1px solid rgba(160, 190, 220, 0.45) !important;
        font-weight: 700 !important;
    }

    .is-sticky .gf-floating-cart-total strong {
        font-size: 22px !important;
        color: #ff0000 !important;
        white-space: nowrap !important;
    }

    .is-sticky .gf-floating-cart-upsell {
        order: 3 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        text-align: center !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #2563eb !important;
    }

    .is-sticky .block-product-buy-button-group>*:not(.gf-floating-cart-summary):not(.payment-button-wrapper) {
        display: contents !important;
    }

    .is-sticky .block-product-buy-button-wrapper {
        order: 4 !important;
        flex: 0 0 calc(50% - 5px) !important;
        width: calc(50% - 5px) !important;
        height: 45px !important;
    }

    .is-sticky .payment-button-wrapper {
        order: 5 !important;
        flex: 0 0 calc(50% - 5px) !important;
        width: calc(50% - 5px) !important;
        height: 45px !important;
    }

    .is-sticky .block-product-buy-button-wrapper button,
    .is-sticky .payment-button-wrapper button,
    .is-sticky .shopline-payment-button,
    .is-sticky .shopline-payment-button button {
        width: 100% !important;
        height: 45px !important;
        min-height: 45px !important;
        border-radius: 5px !important;
        font-size: 18px !important;
        font-weight: 700 !important;
    }

    .is-sticky .payment-button-wrapper button {
        background: linear-gradient(135deg, #6b35ff, #4c22e8) !important;
    }

    .is-sticky>.block-product-buy-button-group.gf-floating-cart-collapsed {
        height: 34px !important;
        min-height: 34px !important;
        padding: 5px 12px !important;
        overflow: hidden !important;
    }

    .is-sticky>.block-product-buy-button-group.gf-floating-cart-collapsed>*:not(.gf-floating-cart-summary) {
        display: none !important;
    }

    .is-sticky>.block-product-buy-button-group.gf-floating-cart-collapsed .gf-floating-cart-content {
        display: none !important;
    }

    .is-sticky>.block-product-buy-button-group.gf-floating-cart-collapsed .gf-floating-cart-handle {
        margin: 0 auto !important;
    }

.is-sticky>.block-product-buy-button-group.gf-floating-cart-collapsed .gf-floating-cart-handle::before {
    content: "";
    width: 8px !important;
    height: 8px !important;

    border-left: 2px solid #5a84b7 !important;
    border-top: 2px solid #5a84b7 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;

    transform: rotate(45deg) !important;

    margin-right: 6px !important;

    flex-shrink: 0;
}

.is-sticky>.block-product-buy-button-group:not(.gf-floating-cart-collapsed) .gf-handle-label {
    display: none;
}
  .is-sticky .shopline-payment-button-wrapper .pay-button-common-item {
      margin: 6px !important;
  }

  .is-sticky .shopline-payment-button-wrapper[data-pay-button-layout="column"] .pay-button-common-item,
  .is-sticky .shopline-payment-button-wrapper[data-pay-button-layout="buyNowRow"] .pay-button-common-item {
      margin: 6px !important;
  }
.is-sticky .gf-floating-discount,
.is-sticky .gf-floating-cart-discount {
    color: #ff0000 !important;
}
.is-sticky>.block-product-buy-button-group.gf-floating-cart-collapsed .gf-floating-cart-handle {
    width: auto !important;
    height: auto !important;

    padding: 0 !important;
    margin: 0 auto !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 6px !important;
}
}