.dihinstallment__nav-tabs {
    display: flex;
    justify-content: center;
}

.dihinstallment__modal-row {
    padding: 2rem;
    border-bottom: 1px solid #E9E9E9;
}

.dihinstallment__modal-amount-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dihinstallment__modal-installment-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dihinstallment__modal-result {
    text-align: center;
}

.dihinstallment__modal-result-title {
    font-size: 48px;
    color: #DB0000;
    font-weight: 900;
    margin-bottom: 0;
    line-height: 1.2;
}

.dihinstallment__modal-result {
    text-align: center;
    width: fit-content;
}

.dihinstallment__modal-col {
    flex: 1;
}

.dihinstallment__modal-col .dihinstallment__modal-result {
    margin-inline: auto;
}

.dihinstallment__modal-col-spacer {
    font-size: 32px;
}

.dihinstallment__modal-amount-input {
    max-width: 78px;
    margin-left: 1rem;
    margin-right: .5rem;
}

.dihinstallment__modal-installment-select {
    max-width: 91px;
    margin-left: 1rem;
}

.dihinstallment__modal-col-spacer {
    text-align: center;
    margin: 1rem 0;
}

.dihinstallment-modal .modal-header {
    text-align: center;
}

.dihinstallment__modal-amount-slider {
    width: 100%;
    max-width: 256px;
    margin-inline: auto;
    display: block;
    margin-top: 2rem;
}

@media (min-width: 576px) {
    .dihinstallment__modal-row {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 42px;
    }

    .dihinstallment__modal-amount-item {
        justify-content: flex-end;
    }

    .dihinstallment__modal-installment-item {
        justify-content: flex-start;
    }

    .dihinstallment__modal-col_first .dihinstallment__modal-result {
        margin-right: 0;
    }

    .dihinstallment__modal-col_last .dihinstallment__modal-result {
        margin-left: 0;
    }

    .dihinstallment__modal-amount-slider {
        margin-right: 0;
    }

    .dihinstallment__modal-col_installment {
        margin-bottom: 35px;
    }
}

.dihinstallment-modal input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    width: 15rem;
    background-color: #DDDDDD;
    border-radius: 5px;
    background-image: linear-gradient(#222222, #222222);
    background-repeat: no-repeat;
}

.dihinstallment-modal input[type="range"]::-webkit-slider-runnable-track {
    background: transparent;
    height: 3px;
}

.dihinstallment-modal input[type="range"]::-moz-range-track {
    background: transparent;
    height: 3px;
}

.dihinstallment-modal input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -8px;
    background-color: #fff;
    border: 1px solid #DDDDDD;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, .36));
    height: 18px;
    width: 18px;
    border-radius: 50rem;
}

.dihinstallment-accordion {
    max-width: 550px;
    margin: 12px auto;
}

.accordion-collapse-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px;
    color: #222222;
}

.accordion-body {
    padding: 12px;
}

.dihinstallment-accordion .accordion-item:not(:last-child) {
    margin-bottom: 12px;
}

.dihinstallment-modal .modal-header, .dihinstallment-modal .close {
    background-color: #222222;
    color: #fff;
    opacity: 1;
}

.dihinstallment-modal .modal-dialog {
    max-width: 900px!important;
}

.dihinstallment-button-init-modal {
    padding: 0;
    color: #DB0000;
    font-size: 16px;
    text-decoration: underline;
}

.dihinstallment-button-init-modal:active, .dihinstallment-button-init-modal:hover {
    color: #DB0000;
    text-decoration: underline;
}

.cart-summary-totals .dihinstallment-button-wrapper {
    margin-top: 1rem;
}

.dihinstallment-button-wrapper {
    text-align: right;
}

.dihinstallment-button-wrapper {
    line-height: 1;
}