body {
    margin: 0;
    padding: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    overflow-y: hidden; /* Hide scrollbar but keep measuring scrollHeight */
}

#ss-paypal-armor-container {
    position: relative;
}

#paypal-button-container {
    max-width: 100%;
}

/* Hide the PayPal button while the SDK overlay (popup backdrop / mobile interstitial) is up,
   so it doesn't peek through the full-screen overlay. Mirrors mecom's hide_paypal_btn. */
#paypal-button-container.hide_paypal_btn {
    display: none;
}

#armor-loading {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 101;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 4px;
}

#armor-loading p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.armor-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid #e0e0e0;
    border-top-color: #0070ba;
    border-radius: 50%;
    animation: armor-spin 0.8s linear infinite;
}

@keyframes armor-spin {
    to { transform: rotate(360deg); }
}

#armor-errors {
    background-color: #fff1f0;
    border: 1px solid #ffa39e;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    color: #cf1322;
    display: none;
}

#armor-errors p {
    margin: 0;
    font-size: 14px;
}

