/**
 * Rasid SMM — product-page Apple Pay (safe express flow).
 *
 * Native Apple Pay button styling; the button is only revealed when
 * Apple Pay is actually eligible on the device (§21). It is visually
 * disabled (not actionable) until the server preflight succeeds —
 * client readiness is UX only.
 */

/* Container sits inside the SMM form, after the notice, before Add to Cart. */
.rasid-smm-applepay {
    margin: 14px 0 4px;
}

#rasid_smm_apay_button {
    -webkit-appearance: -apple-pay-button;
    -apple-pay-button-type: buy;
    -apple-pay-button-style: black;
    display: block;
    width: 100%;
    min-height: 48px;
    border-radius: 10px;
    cursor: pointer;
}

/* Not actionable until the server preflight is READY. */
#rasid_smm_apay_button[data-state="DISABLED"],
#rasid_smm_apay_button[data-state="CHECKING"],
#rasid_smm_apay_button[data-state="IN_PROGRESS"] {
    opacity: 0.45;
    cursor: not-allowed;
}

#rasid_smm_apay_button[data-state="READY"] {
    opacity: 1;
}

.rasid-smm-apay-status {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.6;
    min-height: 0;
}

.rasid-smm-apay-status:empty {
    display: none;
}

.rasid-smm-apay-error {
    color: #b3261e;
}

.rasid-smm-apay-error::before {
    content: "⚠ ";
}

/* DEVICE_NOT_ELIGIBLE notice (e.g. embedded in-app browser): an explicit
 * fallback instruction — never a silent disappearance. */
.rasid-smm-apay-device-notice {
    border: 1px solid #e2e5ea;
    background: #f7f8fa;
    border-radius: 10px;
    padding: 12px 14px;
    margin: 0;
}

.rasid-smm-apay-device-notice-title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.rasid-smm-apay-device-notice-hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: #5b6470;
}

/* Guest email modal */
.rasid-smm-apay-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rasid-smm-apay-modal {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.rasid-smm-apay-modal p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.7;
}

.rasid-smm-apay-modal input[type="email"] {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cfd4dc;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 16px; /* no iOS auto-zoom */
    box-sizing: border-box;
}

.rasid-smm-apay-modal-error {
    color: #b3261e;
    font-size: 13px;
    margin: 8px 0 0;
}

.rasid-smm-apay-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.rasid-smm-apay-modal-actions button {
    flex: 1;
    min-height: 48px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    cursor: pointer;
}

#rasid_smm_apay_email_ok {
    background: #000;
    color: #fff;
}

#rasid_smm_apay_email_cancel {
    background: #eef0f3;
    color: #111;
}
