.wd-header-info-icons {
    display: flex;
    align-items: center;
    gap: 16px;
    direction: rtl;
}

.wd-header-info-trigger {
    width: 25px;
    height: 25px;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
}

.wd-header-info-trigger:focus {
    outline: none;
    box-shadow: none;
}

.wd-header-info-trigger img {
    width: 25px;
    height: 25px!important;
    display: block;
    object-fit: contain;
}

.wd-header-info-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 100px 16px 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
    z-index: 999999;
    box-sizing: border-box;
}

.wd-header-info-popup-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wd-header-info-popup {
    width: 100%;
    max-width: 320px;
    background: #1f1f1f;
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
    position: relative;
    padding: 18px 18px 16px;
    box-sizing: border-box;
    animation: wdHeaderPopupIn .2s ease;
}

@keyframes wdHeaderPopupIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wd-header-info-popup-close {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.wd-header-info-popup-close:focus {
    outline: none;
    box-shadow: none;
}

.wd-header-info-popup-body {
    display: block;
}

.wd-header-info-popup-panel {
    display: none;
    direction: rtl;
    text-align: right;
}

.wd-header-info-popup-panel.is-active {
    display: block;
}

.wd-header-info-popup-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    padding-left: 30px;
}

.wd-header-info-popup-content {
    font-size: 14px;
    line-height: 1.6;
    color: #fff;
    word-break: break-word;
}

.wd-header-info-popup-content p {
    margin: 0 0 8px;
}

.wd-header-info-popup-content p:last-child {
    margin-bottom: 0;
}

.wd-header-info-popup-content a {
    color: #fff;
    text-decoration: underline;
}

.wd-header-info-popup-content strong,
.wd-header-info-popup-content b {
    font-weight: 700;
}

body.wd-header-info-popup-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .wd-header-info-icons {
        gap: 14px;
        display: flex !important;
    }

    .wd-header-info-trigger,
    .wd-header-info-trigger img {
        width: 25px!important;
        height: 25px!important;
    }

    .wd-header-info-popup-overlay {
        padding: 90px 12px 12px;
        z-index: 2147483647;
    }

    .wd-header-info-popup {
        max-width: 280px;
        border-radius: 14px;
        padding: 16px 16px 14px;
    }

    .wd-header-info-popup-title {
        font-size: 15px;
    }

    .wd-header-info-popup-content {
        font-size: 13px;
        line-height: 1.5;
    }

    /* Temporary fix: Prevent scroll lock on mobile if popup is hidden */
    body.wd-header-info-popup-open {
        overflow: visible !important;
    }
}