/* =========================================
   REBATE CALCULATOR
========================================= */

.cal-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e6e9ef;
    border-radius: 12px;
    box-sizing: border-box;
}


/* =========================================
   FORM ROW
========================================= */

.cal-container .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}


/* =========================================
   COLUMN
========================================= */

.cal-container .col-md-6 {
    width: 50%;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}

.cal-container .col-md-12 {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
}


/* =========================================
   SELECT CONTAINER
========================================= */

.cal-container .wrap-input100 {
    width: 100%;
    margin-bottom: 25px;
}


/* =========================================
   LABEL
========================================= */

.cal-container .label-input100 {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
}


/* =========================================
   SELECT WRAPPER
========================================= */

.cal-container .select-wrapper {
    position: relative;
    width: 100%;
}


/* =========================================
   NORMAL SELECT
========================================= */

.cal-container .style-select {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #d9dde5;
    border-radius: 6px;
    background: #ffffff;
    font-size: 15px;
    color: #333333;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cal-container .style-select:focus {
    border-color: #e00000;
    box-shadow: 0 0 0 3px rgba(224, 0, 0, 0.08);
}


/* =========================================
   SELECT2
========================================= */

.cal-container .select2-container {
    width: 100% !important;
}

.cal-container .select2-container .select2-selection--single {
    height: 48px !important;
    border: 1px solid #d9dde5 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

.cal-container
.select2-container
.select2-selection--single
.select2-selection__rendered {
    height: 46px !important;
    line-height: 46px !important;
    padding-left: 15px !important;
    padding-right: 40px !important;
    font-size: 15px !important;
    color: #333333 !important;
}

.cal-container
.select2-container
.select2-selection--single
.select2-selection__arrow {
    height: 46px !important;
    right: 10px !important;
}

.cal-container
.select2-container--default.select2-container--focus
.select2-selection--single,
.cal-container
.select2-container--default.select2-container--open
.select2-selection--single {
    border-color: #e00000 !important;
    box-shadow: 0 0 0 3px rgba(224, 0, 0, 0.08) !important;
}


/* =========================================
   SELECT2 DROPDOWN
========================================= */

.select2-dropdown {
    border: 1px solid #d9dde5 !important;
    border-radius: 6px !important;
}

.select2-results__option {
    padding: 9px 14px !important;
    font-size: 14px !important;
}

.select2-container--default
.select2-results__option--highlighted[aria-selected] {
    background: #e00000 !important;
    color: #ffffff !important;
}


/* =========================================
   LOT LABEL
========================================= */

.cal-container .label-range {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #333333;
}


/* =========================================
   LOT VALUE
========================================= */

.cal-container .result-value.lot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 32px;
    margin-left: 8px;
    padding: 0 10px;
    background: #f5f6f8;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 700;
    color: #e00000;
    box-sizing: border-box;
}


/* =========================================
   RANGE SLIDER
========================================= */

.cal-container #totalLots {
    width: 100%;
    height: 6px;
    margin: 5px 0 15px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: #e5e7eb;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}


/* Chrome / Edge / Safari */
.cal-container #totalLots::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #e00000;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}


/* Firefox */
.cal-container #totalLots::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #e00000;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}


/* =========================================
   RESULT CONTAINER
========================================= */

.cal-container .center-result-box {
    width: 100%;
    margin-top: 25px;
}


/* =========================================
   RESULT BOX
========================================= */

.cal-container .result-box {
    width: 100%;
    margin-top: 30px !important;
    padding: 25px 20px;
    background: #f7f9fc;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    box-sizing: border-box;
}


/* =========================================
   CENTER
========================================= */

.cal-container .center-box {
    text-align: center;
}


/* =========================================
   ESTIMATED REBATES LABEL
========================================= */

.cal-container .result-text {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 500;
    color: #666666;
}


/* =========================================
   USD SYMBOL
========================================= */

.cal-container .symbol-cal-rebate {
    display: inline-block;
    margin-right: 5px;
    font-size: 21px;
    font-weight: 600;
    color: #222222;
}


/* =========================================
   MAIN REBATE RESULT
========================================= */

.cal-container .val-cal-rebate {
    display: inline-block;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 700;
    color: #e00000;
}


/* =========================================
   REBATE PER LOT
========================================= */

.cal-container #rPerLot {
    font-weight: 700;
    color: #222222;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .cal-container {
        padding: 20px 15px;
        border-radius: 8px;
    }

    .cal-container .row {
        margin-left: 0;
        margin-right: 0;
    }

    .cal-container .col-md-6, .cal-container .col-md-4,
    .cal-container .col-md-12 {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .cal-container .wrap-input100 {
        margin-bottom: 18px;
    }

    .cal-container .style-select,
    .cal-container
    .select2-container
    .select2-selection--single {
        height: 46px !important;
    }

    .cal-container
    .select2-container
    .select2-selection--single
    .select2-selection__rendered {
        height: 44px !important;
        line-height: 44px !important;
    }

    .cal-container
    .select2-container
    .select2-selection--single
    .select2-selection__arrow {
        height: 44px !important;
    }

    .cal-container .result-box {
        margin-top: 20px !important;
        padding: 20px 15px;
    }

    .cal-container .val-cal-rebate {
        font-size: 30px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .cal-container {
        padding: 18px 12px;
    }

    .cal-container .label-input100,
    .cal-container .label-range {
        font-size: 13px;
    }

    .cal-container .val-cal-rebate {
        font-size: 27px;
    }

    .cal-container .symbol-cal-rebate {
        font-size: 18px;
    }

}

/* =========================================
   SELECT2
========================================= */

.cal-container .select2-container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}


/* SELECT2 MAIN FIELD */
.cal-container
.select2-container--default
.select2-selection--single {
    position: relative !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    border: 1px solid #d9dde5 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box !important;
}


/* SELECTED TEXT */
.cal-container
.select2-container--default
.select2-selection--single
.select2-selection__rendered {
    display: block !important;
    width: 100% !important;
    height: 46px !important;
    padding: 0 40px 0 15px !important;
    margin: 0 !important;
    line-height: 46px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #333333 !important;
    box-sizing: border-box !important;
}


/* PLACEHOLDER */
.cal-container
.select2-container--default
.select2-selection--single
.select2-selection__placeholder {
    color: #777777 !important;
}


/* SELECT2 ARROW */
.cal-container
.select2-container--default
.select2-selection--single
.select2-selection__arrow {
    position: absolute !important;
    top: 0 !important;
    right: 10px !important;
    width: 25px !important;
    height: 46px !important;
}


/* FOCUS / OPEN */
.cal-container
.select2-container--default.select2-container--focus
.select2-selection--single,

.cal-container
.select2-container--default.select2-container--open
.select2-selection--single {
    border-color: #e00000 !important;
    box-shadow: 0 0 0 3px rgba(224, 0, 0, 0.08) !important;
}


/* =========================================
   SELECT2 DROPDOWN
========================================= */

.select2-container--open .select2-dropdown {
    background: #ffffff !important;
    border: 1px solid #d9dde5 !important;
    border-radius: 6px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
    z-index: 999999 !important;
}


/* =========================================
   SELECT2 SEARCH WRAPPER
========================================= */

.select2-container--default
.select2-search--dropdown {
    width: 100% !important;
    padding: 8px !important;
    margin: 0 !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}


/* =========================================
   SELECT2 SEARCH INPUT
   Dibuat sama dengan input calculator
========================================= */

.select2-container--default
.select2-search--dropdown
.select2-search__field {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;

    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;

    margin: 0 !important;
    padding: 0 15px !important;

    background: #ffffff !important;

    border: 1px solid #d9dde5 !important;
    border-radius: 6px !important;

    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 46px !important;

    color: #333333 !important;

    outline: none !important;
    box-shadow: none !important;

    box-sizing: border-box !important;

    appearance: none !important;
    -webkit-appearance: none !important;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease !important;
}


/* SEARCH INPUT FOCUS */
.select2-container--default
.select2-search--dropdown
.select2-search__field:focus {
    border-color: #e00000 !important;
    box-shadow: 0 0 0 3px rgba(224, 0, 0, 0.08) !important;
    outline: none !important;
}


/* =========================================
   SELECT2 RESULTS
========================================= */

.select2-container--default
.select2-results {
    background: #ffffff !important;
}


/* RESULT LIST */
.select2-container--default
.select2-results__options {
    max-height: 250px !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* OPTION */
.select2-container--default
.select2-results__option {
    display: block !important;

    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 9px 14px !important;

    background: #ffffff !important;

    border: 0 !important;

    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 20px !important;

    color: #333333 !important;

    box-sizing: border-box !important;
    cursor: pointer !important;
}


/* REMOVE THEME PSEUDO ELEMENT */
.select2-container--default
.select2-results__option::before,

.select2-container--default
.select2-results__option::after {
    display: none !important;
    content: none !important;
}


/* HOVER */
.select2-container--default
.select2-results__option--highlighted[aria-selected] {
    background: #e00000 !important;
    color: #ffffff !important;
}


/* SELECTED */
.select2-container--default
.select2-results__option[aria-selected="true"] {
    background: #f5f6f8 !important;
    color: #333333 !important;
}


/* SELECTED + HOVER */
.select2-container--default
.select2-results__option--highlighted[aria-selected="true"] {
    background: #e00000 !important;
    color: #ffffff !important;
}


/* =========================================
   SELECT2 MOBILE
========================================= */

@media (max-width: 767px) {

    .cal-container
    .select2-container--default
    .select2-selection--single {
        height: 46px !important;
        min-height: 46px !important;
    }


    .cal-container
    .select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
        height: 44px !important;
        line-height: 44px !important;
        font-size: 14px !important;
    }


    .cal-container
    .select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
        height: 44px !important;
    }


    .select2-container--default
    .select2-search--dropdown
    .select2-search__field {
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;

        padding: 0 13px !important;

        /*
         * 16px mencegah auto zoom di iPhone
         */
        font-size: 16px !important;
        line-height: 44px !important;
    }

}
/* =========================================
   SPREAD REBATE NOTICE
========================================= */

.cal-container .spread-rebate-notice {
    display: block;

    width: 100%;

    margin-top: 15px;
    padding: 10px 15px;

    background: #fff8e6;

    border: 1px solid #f1d58a;
    border-radius: 6px;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;

    color: #775b00;

    text-align: left;

    box-sizing: border-box;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .cal-container .spread-rebate-notice {
        margin-top: 12px;

        padding: 9px 12px;

        font-size: 12px;
        line-height: 1.5;
    }

}