.apqv-button {
    position: relative;
    background-color: #003087 !important;
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    line-height: 1.2;
    border: none;
    box-shadow: none;
    border-radius: 0px;
    text-decoration: none;
    outline: none;
    cursor: pointer;
}

.apqv-button .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    display: inline-block;
    position: absolute;
    left: 40%;
    /* top: 50%; */
    transform: translateY(-50%);
    animation: apqvspin 1s linear infinite;
    opacity: 0;
}


.apqv-button.loading .spinner {
    opacity: 1; /* Show the spinner when loading */
}

.apqv-button.loading {
    color: transparent; /* Hide button text when loading */
}

@keyframes apqvspin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/*******************************************************
***********************Pop up css***********************
********************************************************/

/*.apqv-popup-calendar td:nth-child(1), .apqv-popup-calendar th:nth-child(1) {*/
/*    position: sticky;*/
/*    left: 0;*/
/*    background: white;*/
/*    top: 0;*/
/*    font-weight: bold;*/
/*    z-index: 1;*/
/*}*/

#apqv-popup .popup-body-spinner {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(0, 48, 135, 0.61);
    border-top: 2px solid transparent;
    border-radius: 50%;
    position: absolute;
    left: 45%;
    top: 45%;
    animation: apqvspin 1s linear infinite;
    display: none;
}


#apqv-popup .popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Popup box */
#apqv-popup .popup-content-wrapper {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 90vw;
    position: relative;
    /* top: 50%; */
    /* left: 50%; */
    /* transform: translate(-50%, -50%); */
    z-index: 9999;
    overflow: hidden;
}

/* pop up content */
#apqv-popup .popup-content {
    display: flex;
    max-height: 70vh;
    gap: 20px;
    /*flex-wrap: wrap;*/
}

#apqv-popup .popup-sidebar {
    /*display: flex;*/
    display: none; /** hide sidebar for all **/
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding-right: 10px;
    flex: 0 0 270px;
    border-right: 1px solid #e6e6e6;
}

#apqv-popup .popup-summary {
    border-left: 1px solid #e6e6e6;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    flex: 0 0 270px;
}

#apqv-popup .popup-sidebar-content, #apqv-popup .popup-sidebar-contact {
    text-align: center;
}

.apqv-popup-available-dates {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    /* justify-content: center; */
    margin: 5px 0;
}

#apqv-popup .popup-progress-container {
    display: flex;
    gap: 10px;
}

#apqv-popup .popup-progress {
    height: 6px;
    width: 6px;
    background-color: rgba(0, 0, 0, 0.07);
    display: block;
    color: #8e97b3;
    text-decoration: none;
    position: relative;
    box-shadow: none;
    font-weight: 500;
}

#apqv-popup .popup-progress.active {
    background: #003087;
}


#apqv-popup .popup-sidebar-contact--question {
    color: #003087;
    font-size: 14px;
}

#apqv-popup .popup-sidebar-contact--email {
    color: #003087;
    font-size: 14px;
    text-decoration: underline;
}

#apqv-popup .popup-step-title {
    color: #003087;
    font-size: 18px;
}

#apqv-popup .popup-summary-title {
    color: #003087;
    font-size: 18px;
}

#apqv-popup .popup-body-title {
    color: #003087;
    font-size: 18px;
}

#apqv-popup .popup-step-description, #apqv-popup .popup-body-desc {
    color: #8e97b3;
    font-size: 14px;
}

#apqv-popup .popup-summary-description {
    font-size: 12px;
    border-bottom: 1px solid #e6e6e6;
}

#apqv-popup .popup-error {
    font-size: 12px;
    color: red;
}

#apqv-popup .popup-body-wrapper {
    flex: 1;
    max-width: 70vw;
}

#apqv-popup .popup-icon {
    background-size: contain;
    height: 100px;
    width: 100px;
    background-repeat: no-repeat;
    margin: auto;
}

/* Close button */
#apqv-popup .popup-close {
    font-size: 1.5em;
    color: #333;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    right: 10px;
    top: 0;
    position: absolute;
}

#apqv-popup .popup-back-button {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    width: fit-content;
}

#apqv-popup .popup-back-button i {
    font-size: 5px;
}

.apqv-popup-calendar-container {
    overflow: auto;
}

#apqv-popup .apqv-popup-calendar {
    display: block !important;
    overflow: auto;
    margin-top: 10px;
}

.apqv-popup-calendar table {
    border-collapse: collapse; /* Ensures borders don't double up between cells */
    min-width: 100%;
}

button.agent-availability-close {
    margin: 10px 0;
    color: white;
    border: none;
    background: red;
    position: sticky;
    right: 0;
    font-size: 10px;
    display: flex;
    gap: 2px;
    align-items: center;
    padding: 6px;
}

.apqv-agents-availability {
    position: absolute;
    top: 0;
    background: white;
    z-index: 10;
    padding: 10px;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.apqv-popup-calendar th {
    min-width: 105px;
}

.apqv-popup-calendar th, .apqv-popup-calendar td {
    font-size: 12px;
    max-width: max-content !important;
    border: 1px solid #ddd;
    text-align: center;
    position: relative; /**to keep the displayed time on hover within td**/
}

.apqv-popup-calendar td.apqv-popup-calendar-is-available:hover {
    cursor: pointer;
    background: #013088;
}

.apqv-popup-calendar td.apqv-popup-calendar-is-available:hover::before {
    content: attr(data-display); /* Display time */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.apqv-popup-calendar td.apqv-popup-calendar-is-available:hover:hover span {
    visibility: hidden; /* Hide "Available" text */
}

.apqv-popup-calendar td.apqv-popup-calendar-is-available {
    background-color: #c8f8b8;
}

.apqv-popup-calendar td.apqv-popup-calendar-is-available:hover span {
    color: white !important;
}

.apqv-popup-button {
    background: #ffffff;
    border: 1px solid #E5E7EE;
    align-items: center;
    box-shadow: none;
    outline: none;
    padding: 10px 15px;
    color: #68696d !important;
    font-size: 14px;
    border-radius: 5px !important;
    min-width: fit-content;
    /* height: fit-content; */
    /* flex: 1; */
    display: flex;
    gap: 10px;
    cursor: pointer;
}

img.apqv-popup-button-icon {
    height: 30px;
    width: 30px;
    border-radius: 5px;
}

.apqv-popup-button span {
    transition: transform 0.2s ease-out;
    display: block;
}

.apqv-popup-button:hover span {
    transform: translateX(3px);
}

.apqv-popup-button-active, .apqv-popup-button:hover {
    border-color: #1eb300;
}


/* Popup body content */
#apqv-popup .popup-body {
    font-size: 1em;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 60vh;
    min-height: 250px;
    min-width: 250px;
    overflow: auto;
    margin-top: 10px;
    position: relative; /* to hold the spinner absolute position */
}

/* Popup body content */
#apqv-popup .popup-input-password {
    border: 2px solid #cad2e0 !important;
    padding: 12px 10px 12px 10px !important;
    border-radius: 5px !important;
    background-color: #fff !important;
}

/* Popup body content */
#apqv-popup .popup-restriction-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

@media screen and (max-width: 630px) {
    #apqv-popup .popup-sidebar, #apqv-popup .popup-summary {
        display: none;
    }
}

@media screen and (max-width: 1180px) {
    #apqv-popup .popup-summary {
        display: none;
    }
}

