.custom-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 999;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.tooltip-arrow {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.arrow-up .tooltip-arrow {
    bottom: 100%;
    border-width: 0 6px 6px 6px;
    border-color: transparent transparent rgba(0, 0, 0, 0.8) transparent;
}

.arrow-down .tooltip-arrow {
    top: 100%;
    border-width: 6px 6px 0 6px;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

/* Blurred background effect */
.custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Show overlay with fade-in effect */
.custom-popup-overlay.show {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
}

/* Popup container */
.custom-popup {
    background: white;
    padding: 22px 16px 16px 16px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0px 3px 3px 0px #00000012;
    border: 1px solid #F5F5F5;
    position: relative;
    min-width: 300px;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    font-size: 16px;
}

/* Animate popup appearance with scaling effect */
.custom-popup.popup-show {
    transform: scale(1);
    opacity: 1;
}

.popup-buttons {
    margin-top: 15px;
}

.popup-btn {
    display: inline-block;
    padding: 8px 18px;
    margin: 5px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
}

.login-btn {
    background: #1475BC;
    color: white;
}

.register-btn {
    background: #DC9E27;
    color: white;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
    cursor: pointer;
}

@media (max-width: 768px){
    .custom-popup{
        font-size: 14px;
        margin: 0 15px;
    }
}

body:not(.logged-in) .wpd-form-foot{
    display: none !important;
}

body:not(.logged-in) .ql-editor {
    pointer-events: none;
    background-color: #f5f5f5 !important;
    color: #999 !important;
    cursor: not-allowed !important;
}