/* Prevent background scroll */
body.pcm-no-scroll {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    top: 0; left: 0; right: 0; width: 100%;
}
#pcm-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: none;
    -webkit-tap-highlight-color: transparent;
}
#pcm-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 95%; max-width: 800px;
    max-height: 90vh;
    margin: 30px auto;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex; flex-direction: column;
}
#pcm-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none; border: none;
    font-size: 28px; color: #94a3b8;
    cursor: pointer;
    z-index: 10;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
#pcm-close:hover { background: rgba(241, 245, 249, 0.8); }
#pcm-checkout {
    padding: 30px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-grow: 1;
}
.pcm-loader { text-align: center; padding: 60px 20px; font-size: 1.3em; color: #64748b; }
#pcm-checkout .woocommerce { padding: 0 !important; }
#pcm-checkout .woocommerce form.checkout { margin: 0 !important; }

/* Force Select2 z-index for Modal */
.select2-container { z-index: 1000000 !important; }

.pcm-toast {
    position: fixed; top: 24px; right: 24px;
    background: #ffffff; color: #1e293b;
    padding: 16px 24px; border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 9999999;
    animation: slideInRight 0.3s ease forwards;
}

/* Simple Italic Text Style */
.pcm-final-sale-notice {
    font-style: italic;
    color: inherit;
    margin: 10px 0;
    display: block;
    clear: both;
}

/* =========================================
   Redirect Sticky Banner (iPhone Style)
   ========================================= */
.pcm-redirect-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-150%); /* Start hidden above */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #1e293b;
    padding: 12px 24px;
    border-radius: 50px; /* Pill shape */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 99999999;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 15px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: auto;
    max-width: 90%;
    white-space: nowrap;
}
.pcm-redirect-banner.pcm-banner-visible {
    transform: translateX(-50%) translateY(0);
}
.pcm-redirect-text {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pcm-redirect-stop-btn {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pcm-redirect-stop-btn:hover {
    background: #dc2626;
}

@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@media (max-width: 768px) {
    #pcm-content { margin: 15px auto; border-radius: 12px; }
    #pcm-checkout { padding: 20px 15px; }
}