/* Modal Wrapper: Full-screen container */
#pcm-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Overlay: Dark background */
#pcm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 100001;
}

/* Modal Content: The box itself */
#pcm-modal-content {
    position: relative;
    z-index: 100002;
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 800px; /* Adjust as needed */
    height: 90vh; /* 90% of the viewport height */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

/* Close Button */
#pcm-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    line-height: 1;
    color: #888;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-weight: bold;
    z-index: 100003;
}

#pcm-modal-close:hover {
    color: #000;
}

/* Checkout Form Container */
#pcm-checkout-container {
    padding: 30px;
    overflow-y: auto; /* Makes the content scrollable */
    flex-grow: 1;
}

/* Simple Loader */
.pcm-loader {
    text-align: center;
    padding: 50px;
    font-size: 1.2em;
    color: #555;
}

/* Make sure WooCommerce styles apply inside */
#pcm-checkout-container .woocommerce {
    padding: 0;
}