/* AhaPay Modal styles for Product page */
/* Modal container */
.ahapay-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow: auto;
}

/* Modal content */
.ahapay-modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    position: relative;
    text-align: center;
    font-family: Arial, sans-serif;
}

.ahapay-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.ahapay-close:hover {
    color: #000;
}

.ahapay-logo {
    height: 40px;
    margin-bottom: 15px;
}

.ahapay-description {
    font-size: 15px;
    color: #444;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.ahapay-steps {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.ahapay-steps .step {
    flex: 1;
    min-width: 100px;
    max-width: 150px;
    text-align: center;
    margin: 10px;
}

.ahapay-steps .step img {
    width: 48px;
    height: 48px;
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.ahapay-modal-cta {
    background-color: #fc642d;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 10px;
}

.ahapay-modal-cta:hover {
    background-color: #e95a26;
}

.ahapay-footer {
    font-size: 13px;
    color: #666;
    margin-top: 12px;
}

.ahapay-footer a {
    color: #fc642d;
    text-decoration: none;
}
#openModalBtn.ahapay-payment-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f9f9fb;
    border-radius: 12px;
    padding: 10px 16px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid #f2f2f2;
    max-width: 340px;
    width: 100%;
    transition: background-color 0.2s ease;
    text-align: left;
}

#openModalBtn:hover {
    background-color: #f1f1f3;
}

.ahapay-logo-button {
    height: 20px;
    width: auto;
    max-height: 20px;
    max-width: 60px;
    object-fit: contain;
    display: inline-block;
    margin-right: 12px;
    vertical-align: middle;
}

.ahapay-text {
    flex-grow: 1;
    color: #000;
    font-weight: 500;
}

.ahapay-arrow {
    font-size: 18px;
    color: #555;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .ahapay-modal-content {
        width: 95%;
        padding: 24px 20px;
    }

    .ahapay-steps {
        flex-direction: column;
        align-items: center;
    }

    .ahapay-steps .step {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .ahapay-description {
        font-size: 14px;
    }

    .ahapay-modal-cta {
        width: 100%;
    }
}

@media (max-width: 400px) {
    .ahapay-logo {
        height: 32px;
    }

    .ahapay-description {
        font-size: 13px;
    }

    .ahapay-modal-cta {
        font-size: 14px;
        padding: 10px 20px;
    }
}