/*the container must be positioned relative:*/
.custom-select {
    position: relative;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 12px;
}

.custom-select select {
    display: none;
}

.select-selected {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    height: 60px;
    background-color: var(--white_bg);
    border: var(--border_standard);
    border-radius: 12px;
}

/*style the arrow inside the select element:*/
.select-selected:after {
    position: absolute;
    content: "";
    top: calc(50% - 2px);
    right: 10px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: var(--text_color) transparent transparent transparent;
}

.select-selected.select-arrow-active{
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/*point the arrow upwards when the select box is open (active):*/
.select-selected.select-arrow-active:after {
    border-color: transparent transparent var(--text_color) transparent;
    top: calc(50% - 9px);
}

/*style the items (options), including the selected item:*/
.select-items div,.select-selected {
    color: var(--text_color);
    padding: 9px 16px;
    cursor: pointer;
    user-select: none;
}

/*style items (options):*/
.select-items {
    position: absolute;
    background-color: var(--white_bg);
    top: 100%;
    left: 0;
    right: 0;
    border: var(--border_standard);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    overflow: hidden;
    max-height: 360px;
    overflow-y: auto;
    -webkit-box-shadow: 0px 10px 13px -4px rgba(34, 60, 80, 0.25);
    -moz-box-shadow: 0px 10px 13px -4px rgba(34, 60, 80, 0.25);
    box-shadow: 0px 10px 13px -4px rgba(34, 60, 80, 0.25);
    z-index: 12;
}

/*hide the items when the select box is closed:*/
.select-hide {
    display: none;
}

.select-items div:hover, .same-as-selected {
    background-color: var(--red);
    color: var(--text_color_white) !important;
}

/* when select is disabled */
.select-disabled{
    background-color: #e1e1e1;
    opacity: 0.5;
    cursor: default;
}

/*///////////////////////////////////////////////////////////////////////*/

.large_service_form{
    position: relative;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    border: var(--border_standard);
    border-radius: var(--border_radius_small);
    box-shadow: var(--box_shadow);
    padding: 1.5rem;
    background-color: #fff;
}

.address_string{
    display: block;
    text-transform: none;
}

.center_name{
    display: block;
    padding-bottom: 2px;
    font-weight: 500;
}

.service_calendar{
    position: relative;
    border: var(--border_standard);
    border-radius: 12px;
    padding: 16px 16px 8px;
}

.days_of_week_container{
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: calc(12.5% / 6);
    width: 100%;
    margin: 8px 0;
    font-size: smaller;
    color: #737373;
}

.day_of_week{
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    width: 12.5%;
}

.days_container{
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: calc(12.5% / 6);
    width: 100%;
}

.day{
    display: flex;
    width: 12.5%;
    padding: 4px 0;
    justify-content: center;
    align-items: center;
    margin-bottom: calc(12.5% / 6);
    border: 1px solid transparent;
    border-radius: 5px;
    aspect-ratio: 1 / 1;
}

.day[data-available="0"]{
    background-color: var(--white_bg);
}

.day[data-available="1"]{
    background-color: #e4e4e4;
    cursor: pointer;
}
.day[data-available="1"]:hover{
    border: var(--border_standard);
}

.day[data-checked="1"]{
    background-color: var(--text_color);
    color: var(--text_color_white);
}

.month_name_container{
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    margin-bottom: 16px;
}

.month{
    display: block;
    width: 100%;
}

.month_name{
    font-weight: 700;
    font-size: 12px;
}

.month_switcher{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    cursor: pointer;
    padding: 8px 0;
}

.service_bottom_part{
    position: relative;
    width: 100%;
}

.service_dots_container{
    position: relative;
    width: 100%;
    margin: 2rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.service_dot{
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--light_gray);
}

.service_dot_active{
    background-color: var(--text_color);
}

.service_buttons_container{
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
}

.service_button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    height: 60px;
    font-size: 12px;
    font-weight: 500;
    flex: 1;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
}

.service_button:disabled{
    background-color: var(--text_color_white) !important;
    color: var(--text_color) !important;
    border: var(--border_standard);
    opacity: 0.6;
    cursor: initial;
}

.form_checkbox_label{
    position: relative;
    font-size: 12px;
    margin-top: 2px;
}

.large_service_form_bottom{
    width: 100%;
    margin: 2rem 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service_details_link{
    color: #696c6d !important;
    font-size: 12px;
    font-weight: 500;
}

.service_details_link:hover{
    text-decoration: underline;
}

.service_result_head{
    width: 100%;
    text-align: center;
    font-weight: 500;
}

.service_result_disclaimer{
    margin: 2rem auto;
    font-size: 13px;
    text-align: center;
    width: 100%;
}

.times_employees_clearable_container{
    position: relative;
    width: 100%;
}

.simple_times_container_wrapper{
    position: relative;
    width: 100%;
    padding: 1.5rem 16px;
    border: var(--border_standard);
    border-radius: 12px;
}

.times_container{
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.employee_time{
    display: flex;
    justify-content: center;
    align-items: center;
    border: var(--border_standard);
    border-radius: 5px;
    max-width: calc((100% - 12px) / 2);
    width: 100%;
    min-height: 45px;
    font-size: 12px;
    font-weight: 600;
}

.employee_time.time_free{
    cursor: pointer;
}

.employee_time.time_free:hover{
    background-color: var(--text_color);
    color: var(--text_color_white);
}

.time_busy{
    opacity: 0.4;
}

.employee_time[data-selected="1"]{
    background-color: var(--text_color);
    color: var(--text_color_white);
}

.day_of_week_string{
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service_form_input{
    line-height: initial !important;
    height: 60px !important;
    padding: 0 16px !important;
    background-color: var(--text_color_white) !important;
    border: var(--border_standard) !important;
    border-radius: 12px !important;
    color: var(--text_color) !important;
    outline: none !important;
    text-align: left !important;
    width: 100%;
    margin-bottom: 12px;
    font-size: 12px;
}

.service_form_textarea{
    line-height: initial !important;
    height: auto;
    max-height: 200px !important;
    padding: 0 16px !important;
    background-color: var(--text_color_white) !important;
    border: var(--border_standard) !important;
    border-radius: 12px !important;
    color: var(--text_color) !important;
    outline: none !important;
    text-align: left !important;
    width: 100%;
    margin-bottom: 12px;
    font-size: 12px;
}

.confetti{
    max-width: 21px;
    display: inline;
    width: 100%;
}

.employee_div{
    position: relative;
    width: 100%;
    border: var(--border_standard);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}
.employee_div:last-child{
    margin-bottom: 0;
}

.employee_div_card{
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    cursor: pointer;
}

.service_person_down_img{
    display: block;
    width: 12px;
    transition: transform 0.2s linear;
}
.service_person_down_img_open{
    transform: rotateZ(180deg);
}

.service_stars_img_wrapper{
    position: relative;
    max-width: fit-content;
    overflow-x: hidden;
}

.service_stars_img{
    display: block;
}

.service_person_img_wrap{
    height: 73px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testdrive_vin{
    font-size: 14px;
    margin-top: 0.25rem;
}

.service_person{
    display: block;
    width: 100%;
}

.service_car_img{
    display: block;
    width: 75%;
}

.employee_text_block{
    flex: 1;
}

.employee_name{
    font-weight: 500;
    font-size: 18px;
}

.employee_rating{
    font-weight: 500;
    font-size: 12px;
    margin: 4px 0;
}

.employee_times_container_wrapper{
    position: relative;
}

.employee_times_divider{
    margin: 1rem 0;
    height: 0;
    width: 100%;
    border-bottom: var(--border_standard);
}

.employee_times_empty_data{
    width: 100%;
    text-align: center;
    font-size: 18px;
    margin: 3rem 0;
    font-weight: 500;
}

@media (max-width: 400px){
    .large_service_form{
        padding: 1.5rem 1rem;
    }
}