/* Order Modal Styles */

/* Modal container */
.order-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.order-modal--active {
    display: flex;
}

/* Modal overlay */
.order-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

/* Modal content */
.order-modal__content {
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

/* Close button */
.order-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #555;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 10;
}

.order-modal__close:hover {
    background-color: #f5f5f5;
    color: #000;
    transform: rotate(90deg);
}

/* Header */
.order-modal__header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.order-modal__header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #000;
    font-family: inherit;
}

/* Body */
.order-modal__body {
    padding: 30px;
}

/* Product info */
.order-modal__product {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    margin-bottom: 30px;
}

.order-modal__product-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.order-modal__product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-modal__product-title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #000;
}

.order-modal__product-subtitle {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #555;
}

.order-modal__product-label {
    display: inline-block;
    background-color: #8b1638;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    align-self: flex-start;
}

/* Product pricing */
.order-modal__product-pricing {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.order-modal__product-price {
    font-size: 24px;
    font-weight: bold;
    color: #000;
}

.order-modal__product-full-price {
    font-size: 16px;
    color: #888;
    text-decoration: line-through;
}

/* Form */
.order-modal__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-modal__form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-modal__form-group label {
    font-size: 14px;
    font-weight: bold;
    color: #000;
}

.order-modal__form-group input {
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.order-modal__form-group input:focus {
    outline: none;
    border-color: #8b1638;
    box-shadow: 0 0 0 3px rgba(139, 22, 56, 0.1);
}

.order-modal__form-group input::placeholder {
    color: #999;
}

/* Submit button */
.order-modal__submit {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-modal__submit:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.order-modal__submit:active {
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .order-modal {
        padding: 10px;
    }

    .order-modal__content {
        border-radius: 4px;
        max-height: 95vh;
    }

    .order-modal__header {
        padding: 20px 20px 15px;
    }

    .order-modal__header h2 {
        font-size: 20px;
        padding-right: 30px;
    }

    .order-modal__body {
        padding: 20px;
    }

    .order-modal__product {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .order-modal__product-image {
        width: 80px;
        height: 80px;
    }

    .order-modal__product-info {
        align-items: center;
    }

    .order-modal__product-title {
        font-size: 16px;
    }

    .order-modal__product-subtitle {
        font-size: 13px;
    }

    .order-modal__product-pricing {
        justify-content: center;
    }

    .order-modal__product-price {
        font-size: 20px;
    }

    .order-modal__product-full-price {
        font-size: 14px;
    }

    .order-modal__close {
        top: 10px;
        right: 10px;
        font-size: 28px;
    }
}

/* Scrollbar styling for modal content */
.order-modal__content::-webkit-scrollbar {
    width: 8px;
}

.order-modal__content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0 8px 8px 0;
}

.order-modal__content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.order-modal__content::-webkit-scrollbar-thumb:hover {
    background: #555;
}
