/*
 Theme Name:   Divi Child
 Description:  Divi child theme
 Version:      1.0.0
 Author:       SkyNo Digital
 Template:     Divi
*/

.phone_number_icon {
    position: relative;
}

.number_pop {
    position: absolute;
    top: calc(100% + 20px);
    right: 0;
    background: #fff;
    padding: 30px;
    width: 200px;
    box-shadow: 0 0 20px rgb(0 0 0 / 40%);
    text-align: left;
    z-index: 3;
    visibility: hidden;
    opacity: 0;
    transition: .4s all;
}

.number_pop:before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: #fff;
    top: -8px;
    transform: rotate(45deg);
    right: 30px;
}

.number_pop *,
.number_pop a {
    color: #000 !important;
}

.number_pop .number_module {
    margin-bottom: 15px;
}

.number_pop .number_module:last-child {
    margin-bottom: 0px;
}

.number_pop.show {
    opacity: 1;
    visibility: visible;
}

.floating_btns {
    position: fixed;
    right: -50px;
    z-index: 99;
    top: 55%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    transition: .4s all;
    display: none;
}

.floating_btns .btn_btn {
    padding: 20px 4px;
    font-size: 13px;
    background: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
    writing-mode: vertical-rl;
}

.floating_btns .phone_number_icon {
    margin: 0;
    font-size: 0;
    background: #a97d2d;
}

.floating_btns .phone_number_icon>a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating_btns .phone_number_icon a img {
    margin: 0;
    filter: brightness(100);
}

header#main-header.et-fixed-header.header-scrolled+.floating_btns {
    right: -50px;
}

header#main-header.et-fixed-header+.floating_btns {
    right: 0px;
}

/****** Side Panel ****/
#openPanel {
    padding: 10px 20px;
    margin: 20px;
    cursor: pointer;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
}

#sidePanel {
    height: 100%;
    width: 90%;
    max-width: 500px;
    position: fixed;
    top: 0;
    right: -500px;
    background-color: white;
    color: #333;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    padding: 20px;
    z-index: 999999999;
}

#sidePanel h2 {
    margin-top: 0;
    font-family: inherit;
    font-size: 22px;
    font-weight: 600;
    border-bottom: 1px solid #ccc;
}

#sidePanel .closeBtn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    text-decoration: none;
    color: #333;
    cursor: pointer;
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#sidePanel .cwrap {
    text-align: center;
    padding-top: 30px;
}

#sidePanel .appt_wrap {
    display: none;
}

.back_location {
    font-size: 14px;
    float: right;
    display: block;
    position: relative;
    z-index: 4;
}

#sidePanel h2 {
    margin-top: 0;
    font-size: 22px;
    border-bottom: 1px solid #ccc;
    line-height: 1.5;
    padding: 0 25px 15px 0;
}

.page-id-3904 .floating_btns {
    display: flex !important;
}


/************* responsive **************/

@media (max-width: 767px) {
    .number_pop {
        right: 50px;
        top: 50%;
        transform: translateY(-50%);
        padding: 16px;
        font-size: 14px;
        width: 160px;
    }

    .number_pop:before {
        top: calc(50% - 7px);
        right: -7px;
    }
}