.popup-container {
    display: none;
    position: fixed;
    font-family: "Ubuntu", serif;
    z-index: 20;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-container h3.popup-title {
    font-size: 1.25rem;
    text-align: center;
}

/* The popup content */
.cancel-question-popup-content,
.reschedule-popup-content,
.reschedule-result-popup-content,
.reschedule-failure-popup-content {
    background-color: white;
    margin: 5% auto 15% auto;
    padding: 20px 25px;
    border: 1px solid #888;
    width: 30%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.cancel-question-popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40%;
}

.reschedule-popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 50%;
    width: 70%;
}

.cancel-question-popup-content p.popup-message {
    margin-top: 7%;
}

.wdm-popup-buttons-wrap {
    margin: 15% 0 10% 0;
    display: flex;
    justify-content: center;
    column-gap: 10%;
}

.wdm-popup-buttons-wrap>button,
.wdm-cancel-popup-button {
    text-transform: capitalize;
    font-size: 1.1rem;
    line-height: 1.5;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    border: none;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    column-gap: 12px;
    color: white;
    transition: background-color 0.3s ease;
}

.wdm-popup-buttons-wrap .button-text,
.wdm-cancel-popup-button .button-text {
    display: inline-block;
}

.wdm-popup-buttons-wrap .button-icon-wrapper,
.wdm-cancel-popup-button .button-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 2px;
}

.wdm-popup-buttons-wrap .button-chevron-icon,
.wdm-cancel-popup-button .button-chevron-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.cancel-result-content.content-show {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.popup-icons {
    width: 3rem;
}


/* Yes, Cancel button - Green */
.wdm-popup-buttons-wrap button.button-confirm-cancel {
    background-color: #097F66;
}

.wdm-popup-buttons-wrap button.button-confirm-cancel:hover {
    background-color: #0F4A39;
}

/* No, Go Back button - Red */
.wdm-popup-buttons-wrap button.button-close-cancel {
    background-color: #FF3131;
}

.wdm-popup-buttons-wrap button.button-close-cancel:hover {
    background-color: #c82333;
}

.popup-container .cancel-result-content.content-hide,
.cancel-result-content img.ajax-result-icons {
    display: none;
}

.cancel-result-message {
    text-align: center;
}

/* ------ Spinner CSS -----*/
.spinner {
    display: none;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

/* Spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*----------- Reschedule Container CSS -----------------*/
.live-course-select-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
}


input.wdm-live-course-calendar {
    border: none;
    border-bottom: 2px solid grey;
    border-radius: 0;
    padding: 10px;
    font-size: 16px;
    outline: none;
    margin-bottom: 10px;
    width: 100%;
    color: #000000;
}

input.wdm-live-course-calendar:focus {
    border-bottom: 2px solid #000;
}

.reschedule-popup-content .live-courses-outer-container.no-list {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 65%;
}

.reschedule-popup-content .live-courses-outer-container:not(.no-list) {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 65%;
    min-height: 300px;
    position: relative;
}

.wdm-live-course-option {
    display: flex;
    column-gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
}

.wdm-live-course-option .live-course-input {
    margin-right: 20px;
    width: 20px;
    height: 20px;
    transform: scale(1.5);
}

.wdm-live-course-option .course-details {
    padding: 10px;
    border: 1px solid #1b1a1a;
    border-radius: 5px;
    width: 100%;
}

.wdm-live-course-option .course-details .course-title {
    font-weight: 600;
}

.wdm-reschedule-popup-buttons-wrap {
    margin-top: 1.5rem;
}

.wdm-reschedule-popup-buttons-wrap button.button-confirm {
    margin-right: 1rem;
}

/* Reschedule popup button - Yellow */
.wdm-reschedule-popup-buttons-wrap button.button-reschedule-popup {
    background-color: #E6C200;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
}

.wdm-reschedule-popup-buttons-wrap button.button-reschedule-popup:hover {
    background-color: #D4B000;
}

/* Close button in reschedule popup - Red */
.wdm-reschedule-popup-buttons-wrap button.button-close-popup {
    background-color: #FF3131;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 20px;
}

.wdm-reschedule-popup-buttons-wrap button.button-close-popup:hover {
    background-color: #c82333;
}

.pagination-icons {
    width: 1.1rem;
}

.wdm-live-course-pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
    width: 100%;
}

.live-courses-list {
    width: 100%;
}

.wdm-live-course-option .course-details .course-title,
.wdm-live-course-option .course-details .course-points {
    font-weight: 600;
    color: #0e86d4;
}

.live-courses-outer-container:not(.no-list) .wdm-live-course-list-pagination {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

/*-- Rescheduling result popup container --*/
.reschedule-result-popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.reschedule-result-popup-content h3 {
    font-size: 1.1rem;
}

.reschedule-result-popup-content hr {
    width: 100%;
}

.reschedule-result-popup-content .rescheduling-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reschedule-result-popup-content .rescheduling-details p {
    margin: 0;
}

.reschedule-result-popup-content .rescheduling-details .details-row {
    display: flex;
    column-gap: 2rem;
}

.reschedule-result-popup-content .rescheduling-details .details-row p.strikethrough {
    color: #a6a6a6;
    text-decoration: line-through;
}

.reschedule-result-popup-content .rescheduling-details .details-row p.active {
    font-weight: 600;
}

.reschedule-result-popup-content .rescheduling-details .details-row .row-title {
    width: 10%;
}

.reschedule-result-popup-content .close-confirmation-popup {
    background-color: #FF3131;
    margin-top: 2rem;
}

.reschedule-failure-popup-content .close-error-popup {
    background-color: #FF3131;
    margin-top: 2rem;
}

.popup-container #wdm-reschedule-course-result-spinner {
    margin: 15% auto 0 auto;
}

.reschedule-failure-popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 15%;
}

.reschedule-failure-popup-content .reschedule-result-message {
    font-size: 1.5rem;
}

.div-hide {
    display: none;
}

/*----------- Shortcode Button Styles -----------------*/
.wdm-reschedule-shortcode-container {
    border: 2px solid #7DBFE9;
    border-radius: 10px;
    padding: 20px;
    display: block;
    width: 100%;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.wdm-reschedule-shortcode-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wdm-reschedule-shortcode-button {
    font-family: "Ubuntu", serif;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.2;
    border-radius: 20px;
    cursor: pointer;
    border: none;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    column-gap: 12px;
    color: white;
    transition: background-color 0.3s ease;
}

.wdm-reschedule-shortcode-button .button-text {
    display: inline-block;
}

.wdm-reschedule-shortcode-button .button-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 2px;
}

.wdm-reschedule-shortcode-button .button-chevron-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* Enrolled status shortcode */
.wdm-course-start-time-shortcode {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.wdm-course-start-time-shortcode .course-starts-at-heading {
    font-size: 30px;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #0e86d4;
    margin: 0 0.5rem 0 0;
}

.wdm-course-start-time-shortcode .course-start-date {
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 25px;
    color: #000000;
    font-weight: bold;
}

.wdm-enrolled-status-shortcode {
    font-family: "Ubuntu", serif;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.2;
    border-radius: 20px;
    border: none;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: #097F66;
}

.wdm-enrolled-status-shortcode .status-text {
    display: inline-block;
}

/* Reschedule button shortcode */
.wdm-reschedule-shortcode-button.button-reschedule-shortcode {
    background-color: #E6C200;
}

.wdm-reschedule-shortcode-button.button-reschedule-shortcode:hover {
    background-color: #D4B000;
}

/* Cancel button shortcode */
.wdm-reschedule-shortcode-button.button-cancel-shortcode {
    background-color: #FF3131;
}

.wdm-reschedule-shortcode-button.button-cancel-shortcode:hover {
    background-color: #c82333;
}

/* Tooltip styles */
.wdm-tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.wdm-tooltip-text {
    display: none;
    visibility: hidden;
    opacity: 0;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 12px 16px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: normal;
    width: 300px;
    max-width: 90vw;
    font-size: 0.875rem;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-weight: normal;
    text-transform: none;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.wdm-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.wdm-tooltip-wrapper:hover .wdm-tooltip-text {
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Mobile responsive styles for shortcode */
@media screen and (max-width: 768px) {
    .wdm-reschedule-shortcode-wrap {
        flex-direction: column;
        row-gap: 15px;
        align-items: stretch;
        justify-content: flex-start;
    }

    .wdm-enrolled-status-shortcode {
        width: 100%;
        text-align: center;
    }

    .wdm-reschedule-shortcode-button {
        flex: 1;
        min-width: 0;
    }
}
