div#popup-shadow {
    background-color: rgba(0, 0, 0, 0.6);
    width: 100vw;
    height: 100vh;
    top: 0px;
    left: 0px;
    position: fixed;
    z-index: 5;
    display: none;
}

div#popup-shadow.active-popup {
    display: block;
}

.custom-popup {
    display: none !important;
    position: fixed !important;
    width: 90vw;
    margin-left: auto;
    margin-right: auto;
    top: 5vh;
    max-height: 80vh;
    background-color: var(--wp--preset--color--base, white);
    z-index: 6;
    border-radius: 50px;
    padding: 50px;
    overflow-y: scroll;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #eee;
}

.custom-popup .wp-block-button__link,
#phone-index-table .wp-block-button__link {
    color: white !important;
}


.active-popup {
    display: block !important;
}

@media only screen and (max-width: 782px) {
    .active-popup {
        position: absolute;
        top: 10vh;
    }
}

/* Tabber styles */
.popup-tabs-header {
    background-color: #f1f5f9 !important;
    padding: 6px !important;
    border-radius: 12px !important;
    border-bottom: none !important;
    display: flex !important;
    gap: 0 !important;
    margin-bottom: 25px !important;
}

.tab-button {
    flex: 1 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    opacity: 1 !important;
    border-radius: 8px !important;
    background-color: transparent !important;
    color: #64748b !important;
    font-weight: 600 !important;
    padding: 12px 10px !important;
    margin: 0 !important;
    font-size: 1.05em !important;
}

.tab-button.active {
    background-color: white !important;
    color: #0f172a !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06) !important;
}

.tab-button:hover:not(.active) {
    background-color: #e2e8f0 !important;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Notifications */
@keyframes notification-slide {
    0% {
        right: -100%;
    }

    100% {
        right: 50px;
    }
}

.notification {
    position: fixed;
    right: -100%;
    width: auto;
    max-width: 350px;
    top: 5vh;
    animation-duration: 0.5s;
    z-index: 10;
    padding: 20px;
    border-radius: 10px;
    color: black;
}

.notification.success {
    background-color: #a6ffcc;
}

.notification.fail {
    background-color: #ffcca6;
    top: 25vh;
}

.notification.active {
    animation-name: notification-slide;
    animation-direction: normal;
    right: 50px;
}

/* Responsive styles for obligations popup */
@media screen and (max-width: 768px) {
    #obligations-table-container th.hide-on-mobile,
    #obligations-table-container td.hide-on-mobile {
        display: none !important;
    }
    .mobile-expand-btn {
        display: inline-block !important;
        margin-right: 10px;
        cursor: pointer;
        background: #eee;
        border: 1px solid #ccc;
        border-radius: 4px;
        padding: 2px 8px;
        font-weight: bold;
    }
    
    /* Make the details row stop acting like a table cell on mobile to ignore the colspan=6 */
    .obl-details-row td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }
}
.mobile-expand-btn {
    display: none;
}
.obl-details-row {
    background: #fdfdfd;
}