
{% set primary_color = theme.global_colors.primary_color.color  %}
.buttons {
    margin-top: 24px;
}
.payments-items.selectable-box-items-product-page {
    grid-template-columns: repeat(6, 1fr)
}
.payments-product {
    padding: 24px;
    border-radius: 20px 20px 0 0;
}
.modal-bottom-bar {
    position: static;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 24px;
    margin-top: 24px;
}


.payments-product .selectable-box-item.width-one-third {
    grid-column: span 2;
}
.payments-product .selectable-box-item.width-one-half {
    grid-column: span 3;
}
.payments-product .selectable-box-item.width-one {
    grid-column: span 6;
}
.modal-bottom-bar .button {
    margin: 0;
}

.modal-bottom-bar .buttons-left {
    display: flex;
    align-items: center;
}
.modal-bottom-bar .buttons-left {
    display: flex;
    align-items: center;
    gap: 24px;
}
.modal-bottom-bar .buttons-left .line {
    height: 24px;
    width: 1px;
    background-color: #dbe0eb;
}
.modal-bottom-bar .buttons-left .line,
.modal-bottom-bar .buttons-left .close-modal-button {
    display: none;
}
.selected-payments {
    margin-bottom: 40px;
}
.payments-product {
    h2 {
        margin-top: 24px;
    }
}
.payments-product-header {
    padding: 24px;
    background-color: #fff;
    /* box-shadow: 0 8px 13px rgba(1,64,190,.1); */
    z-index: 2;
    border-radius: 12px 12px 0px 0px;
    box-shadow: none;
    transition: box-shadow .2s ease-in-out;
}
.payments-product-header.on-scroll {
    box-shadow: 0 8px 13px rgba(1,64,190,.1);
}
body.product-page .payments-product-header h2 {
    margin-bottom: 0;
}
.payments-product,
.payments-product-header {
    left: 0;
    top: 32px;
    right: 0;
    position: fixed;
}
.payments-product {
    /* position: relative; */
    background-color: white;
    /* border-radius: 10px; */
    width: 100%;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: none;
    /* transition: all 0s, opacity 0.2s ease-in-out; */
    padding: 198px 24px 24px;
    height: calc(100vh - 32px);
    overflow: auto;
}
.payments-items .with-subpayments {
    flex-direction: column;
}
.close-modal-button-inner {
    display: flex;
    align-items: center;
    gap: 2px;
}

button.close-modal-button-inner, 
button.modal-bottom-bar-link {
  border: 0;
  background: none;
  color: #0140BE;
  font-weight: 700;
  cursor: pointer;
}

@media screen and (min-width: 1024px) {
    .selected-payments {
        display: flex;
        gap: 24px;
    }
    .selected-payments .subtitle-modal{
        flex-shrink: 0;
        margin-top: 10px;
    }
    .selected-payments .subtitle-modal,
    .selected-payments .selected-services {
        margin-bottom: 0;
    }
    .modal-bottom-bar {
        display: block;
        margin-top: 0;
    }
    .modal-bottom-bar .buttons-left .line,
    .modal-bottom-bar .buttons-left .close-modal-button  {
        display: block;
    }
    .payments-items .with-subpayments {
        flex-direction: row;
    }

    body.product-page .payments-product-header h2 {
        margin-bottom: 24px;
        margin-top: 0;
    }
    .payments-product-header {
        position: static;
        box-shadow: none;
        padding: 0;
    }
    .payments-product {
        padding: 48px 56px 156px 56px;
        top: 0;
        height: 100vh;
        border-radius: 20px 0 0 20px;
    }
    .payments-product,
    .modal-bottom-bar {
        position: fixed;
        bottom: 0;
        left: 10%;
        right: 0;
        width: auto;
    }
    .modal-bottom-bar {
        padding: 22px 78px;
        display: flex;
        justify-content: space-between;
        box-shadow: 0px -14px 35px 0px #0140be0f;
        background-color: white;
        border-radius: 0 0 0 20px;
        flex-direction: row;
    }
}