html.ppdp-no-scroll,
body.ppdp-no-scroll {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

#ppdp-popup {
    all: initial;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding: 16px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    direction: rtl !important;
    font-family: var(--ppdp-site-font, inherit) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity .2s ease, visibility .2s ease !important;
}

#ppdp-popup,
#ppdp-popup *,
#ppdp-popup *::before,
#ppdp-popup *::after {
    box-sizing: border-box !important;
    font-family: var(--ppdp-site-font, inherit) !important;
}

#ppdp-popup.ppdp-is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

#ppdp-popup .ppdp-overlay {
    all: initial;
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: block !important;
    background: rgba(15, 19, 24, .68) !important;
    backdrop-filter: blur(4px) !important;
    cursor: pointer !important;
}

#ppdp-popup .ppdp-card {
    all: initial;
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: min(420px, calc(100vw - 32px)) !important;
    max-width: 420px !important;
    max-height: calc(100vh - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 42px 28px 28px !important;
    margin: 0 !important;
    border-radius: 22px !important;
    background: #fff !important;
    color: #17212b !important;
    direction: rtl !important;
    text-align: center !important;
    font-family: var(--ppdp-site-font, inherit) !important;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28) !important;
    transform: translateY(18px) scale(.97) !important;
    transition: transform .22s ease !important;
    scrollbar-width: thin !important;
}

#ppdp-popup.ppdp-is-open .ppdp-card {
    transform: translateY(0) scale(1) !important;
}

#ppdp-popup .ppdp-close {
    all: initial;
    position: absolute !important;
    top: 11px !important;
    left: 11px !important;
    z-index: 4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #f0f2f4 !important;
    color: #27313c !important;
    font-family: var(--ppdp-site-font, inherit) !important;
    font-size: 25px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

#ppdp-popup .ppdp-offer-text {
    all: initial;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0 14px !important;
    padding: 7px 14px !important;
    border-radius: 999px !important;
    background: #fff0f2 !important;
    color: #d8233c !important;
    direction: rtl !important;
    font-family: var(--ppdp-site-font, inherit) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.5 !important;
}

#ppdp-popup .ppdp-image-link {
    all: initial;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: clamp(175px, 31vh, 245px) !important;
    margin: 0 0 16px !important;
    padding: 4px !important;
    cursor: pointer !important;
}

#ppdp-popup .ppdp-product-image {
    all: initial;
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    margin: auto !important;
    object-fit: contain !important;
}

#ppdp-popup .ppdp-product-title {
    all: initial;
    display: block !important;
    width: 100% !important;
    margin: 0 0 13px !important;
    color: #17212b !important;
    direction: rtl !important;
    font-family: var(--ppdp-site-font, inherit) !important;
    font-size: clamp(17px, 4.5vw, 20px) !important;
    font-weight: 800 !important;
    line-height: 1.8 !important;
    text-align: center !important;
}

#ppdp-popup .ppdp-product-title a {
    all: initial;
    color: inherit !important;
    direction: rtl !important;
    font-family: var(--ppdp-site-font, inherit) !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

#ppdp-popup .ppdp-product-price {
    all: initial;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 11px 12px !important;
    border-radius: 12px !important;
    background: #f7f8f9 !important;
    color: #176c42 !important;
    direction: rtl !important;
    font-family: var(--ppdp-site-font, inherit) !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

#ppdp-popup .ppdp-product-price del {
    color: #9098a1 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    opacity: 1 !important;
}

#ppdp-popup .ppdp-product-price ins {
    color: #d8233c !important;
    font-size: 19px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

#ppdp-popup .ppdp-product-price .amount,
#ppdp-popup .ppdp-product-price bdi,
#ppdp-popup .ppdp-product-price .woocommerce-Price-currencySymbol,
#ppdp-popup .ppdp-product-price span {
    font-family: var(--ppdp-site-font, inherit) !important;
}

@media (max-width: 600px) {
    #ppdp-popup {
        padding: 10px !important;
    }

    #ppdp-popup .ppdp-card {
        width: calc(100vw - 20px) !important;
        max-width: 390px !important;
        max-height: calc(100dvh - 20px) !important;
        padding: 40px 18px 20px !important;
        border-radius: 18px !important;
    }

    #ppdp-popup .ppdp-image-link {
        height: min(31vh, 210px) !important;
        margin-bottom: 12px !important;
    }

    #ppdp-popup .ppdp-offer-text {
        margin-bottom: 10px !important;
        font-size: 13px !important;
    }

    #ppdp-popup .ppdp-product-title {
        margin-bottom: 10px !important;
        font-size: 17px !important;
        line-height: 1.7 !important;
    }

    #ppdp-popup .ppdp-product-price {
        padding: 9px 10px !important;
        font-size: 16px !important;
    }

    #ppdp-popup .ppdp-product-price ins {
        font-size: 17px !important;
    }
}

@media (max-width: 360px), (max-height: 620px) {
    #ppdp-popup .ppdp-card {
        padding: 37px 15px 16px !important;
    }

    #ppdp-popup .ppdp-image-link {
        height: min(26vh, 165px) !important;
    }

    #ppdp-popup .ppdp-offer-text {
        padding: 5px 11px !important;
        font-size: 12px !important;
    }

    #ppdp-popup .ppdp-product-title {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }

    #ppdp-popup .ppdp-product-price {
        font-size: 14px !important;
    }

    #ppdp-popup .ppdp-product-price ins {
        font-size: 15px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #ppdp-popup,
    #ppdp-popup .ppdp-card {
        transition: none !important;
    }
}
