/* Order Platform Modal Styles - Minimal styling to use existing homepage button styles */
.order-platform-modal {
    z-index: 3000; /* Higher than image modal */
}

.order-platform-content {
    background: #fff;
    border-radius: 1.6rem;
    padding: 3rem 2rem 2rem;
    max-width: 50rem;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-2rem);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.order-platform-title {
    font-family: "Rubik Mono One", monospace;
    font-size: 2.4rem;
    color: #de2c45;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 400;
}

.order-platform-subtitle {
    font-size: 1.6rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.5;
}

/* Ensure the order-items containers are centered in the popup */
.order-platform-content .order-items {
    margin: 0 auto;
    width: 100%;
    max-width: 34rem;
}

@media only screen and (max-width: 56.25em) {
    .order-platform-content {
        padding: 2rem 1.5rem 1.5rem;
        width: 95%;
    }
    
    .order-platform-title {
        font-size: 2rem;
    }
    
    .order-platform-subtitle {
        font-size: 1.4rem;
        margin-bottom: 2rem;
    }
}

/* Close button styling for the modal */
.order-platform-modal .close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #666;
    font-size: 2.4rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    z-index: 10;
    transition: color 0.3s ease;
}

.order-platform-modal .close:hover,
.order-platform-modal .close:focus {
    color: #de2c45;
    text-decoration: none;
}

.order-platform-modal .close:focus {
    outline: 2px solid #de2c45;
    outline-offset: 2px;
    border-radius: 0.2rem;
}