/* Prevent background scroll when modal open */
body.pcm-no-scroll {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}
/* Modal */
#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;
    padding: 6px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}
#pcm-close:hover {
    color: #1e293b;
    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;
    font-weight: 500;
}
#pcm-checkout .woocommerce {
    padding: 0 !important;
}
#pcm-checkout .woocommerce form.checkout {
    margin: 0 !important;
}
.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 -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 9999999;
    font-size: 15px;
    line-height: 1.5;
    max-width: 380px;
    animation: slideInRight 0.3s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@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;
    }
    #pcm-close {
        top: 12px;
        right: 12px;
    }
}