.order-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.order-overlay.active .order-modal-box {
    transform: translateY(0);
}

.order-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none; 
    transition: opacity 0.3s ease;
    overflow-y: auto; 
    padding: 30px 20px;
    box-sizing: border-box;
}

.order-modal-box {
    background: #fff;
    width: 100%;
    max-width: 530px;
    height: auto;
    border-radius: 12px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    overflow: visible; 
    margin: auto;
}

.order-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 28px;
    border: none;
    color: #777;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-modal-close:hover {
    color: #1a1a1a;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

@media (max-width: 580px) {
    .order-modal-close {
        top: 12px;
        right: 12px;
        width: 38px;
        height: 38px;
        font-size: 22px;
        background: #f5f5f5;
        box-shadow: none;
    }
}

.order-modal-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
    align-self: center;
}

.order-product-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.order-product-summary img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.order-product-info h4 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    color: #1a1a1a;
    font-weight: 600;
}

.order-product-info span {
    font-size: 1rem;
    color: #B87B5C;
    font-weight: 600;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group-row {
    display: flex;
    gap: 15px;
}

.form-group-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    color: #1a1a1a;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #B87B5C;
    box-shadow: 0 0 0 3px rgba(184, 123, 92, 0.15);
}

.form-group textarea {
    resize: vertical;
}

@media (max-width: 480px) {
    .form-group-row {
        flex-direction: column;
        gap: 16px;
    }
}