/*
 * Stylesheet for the Snapp Pay banner plugin. This file defines styles for the banner itself
 * and for the popup that appears when users click the banner. The popup is hidden by default
 * and is displayed via JavaScript. Direction is set to RTL for Persian text.
 */

.snapp-pay-banner-wrapper {
    text-align: center;
    margin: 20px 0;
    cursor: pointer;
}

.snapp-pay-banner-image {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* Overlay covering the screen when popup is shown */
.snapp-pay-popup {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
    display: none; /* hide by default */
}

/* Inner popup box */
.snapp-pay-popup-inner {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-family: inherit;
    direction: rtl;
    position: relative;
}

/* Close icon */
.snapp-pay-popup-close {
    color: #aaaaaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    left: 10px;
    top: 10px;
}
.snapp-pay-popup-close:hover,
.snapp-pay-popup-close:focus {
    color: #000000;
}

/* Popup title */
.snapp-pay-popup-title {
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.5rem;
}

/* Popup content list */
.snapp-pay-popup-text p {
    margin-top: 0;
}
.snapp-pay-popup-text ol {
    padding-right: 20px;
    list-style-type: decimal;
}
.snapp-pay-popup-text li {
    margin-bottom: 0.5rem;
}

/* Popup button */
.snapp-pay-popup-button {
    display: block;
    width: 100%;
    background-color: #0077cc;
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    margin-top: 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
.snapp-pay-popup-button:hover {
    background-color: #005fa3;
}