/**
 * V12 Finance Cart Blocks Styles
 */

/* Calculator modal frame */
.v12-finance-calculator-modal.components-modal__frame {
    width: 100% !important;
    max-width: 1100px !important;
    max-height: 90vh !important;
}

.v12-finance-calculator-modal .components-modal__content {
    padding: 0;
    max-height: calc(90vh - 60px);
}

@media (max-width: 767px) {
    .v12-finance-calculator-modal.components-modal__frame {
        max-width: 100% !important;
        max-height: 100% !important;
    }

    .v12-finance-calculator-modal .finance-view-popup {
        display: block;
    }
}

/* Styled deposit slider (native range input, mirrors the jQuery UI slider look) */
.v12-block-deposit-slider {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 16px;
    margin: 0;
    border: 1px solid rgba(29, 29, 29, 0.15);
    border-top: 0;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(
        to right,
        var(--v12-color-primary) var(--v12-range-fill, 0%),
        var(--v12-color-primary-tint-strong) var(--v12-range-fill, 0%)
    );
    cursor: pointer;
}

.v12-block-deposit-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--v12-color-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: grab;
}

.v12-block-deposit-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--v12-color-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: grab;
}

.v12-block-deposit-slider::-moz-range-track {
    height: 16px;
    border-radius: 0 0 6px 6px;
    background: var(--v12-color-primary-tint-strong);
}

.v12-block-deposit-slider::-moz-range-progress {
    height: 16px;
    border-radius: 6px 0 0 6px;
    background: var(--v12-color-primary);
}

/* Footer branding */
.modal-content-footer .logo-with-autifybrand {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.modal-content-footer .logo-with-autifybrand img {
    width: 100px;
}

.modal-content-footer .logo-with-autifybrand .brand-copyright {
    font-weight: 400;
    color: #333;
    font-size: 16px;
}

.modal-content-footer .logo-with-autifybrand .brand-copyright a {
    color: #006bb4;
}

.modal-content-footer .logo-with-autifybrand .brand-copyright a:hover {
    text-decoration: underline;
}

/* Form field errors */
.finance-checkout-section .form-row .field .field-error {
    color: #cc0000;
    font-size: 12px;
}
