/* Product Order Form Styles */
.product-order-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.form-section, .product-section {
    flex: 1 1 300px;
    padding: 20px;
    border-radius: 8px;
    background: #f9f9f9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.form-section h2,
.product-section h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.6rem;
    color: #333;
}

label {
    display: block;
    margin-top: 12px;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 0.95rem;
    color: #555;
}

input[type="text"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.2);
}

.qty-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    gap: 10px;
}

.qty-wrapper button {
    width: 35px;
    height: 35px;
    font-size: 18px;
    font-weight: bold;
    background-color: #ddd;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.qty-wrapper button:hover {
    background-color: #ccc;
}

.qty-wrapper input[type="number"] {
    width: 70px;
    text-align: center;
    font-size: 16px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.delivery-options {
    margin-top: 10px;
    padding: 10px;
    background: #e8f5e8;
    border-radius: 8px;
    text-align: center;
}

.coupon-section {
    margin: 15px 0;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.coupon-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.coupon-input-wrapper input {
    flex: 1;
}

#apply_coupon {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#apply_coupon:hover {
    background: #005a87;
}

.coupon-message {
    margin-top: 8px;
    font-size: 0.9rem;
    min-height: 20px;
    font-weight: bold;
}

.coupon-success {
    color: #28a745;
}

.coupon-error {
    color: #dc3545;
}

.price-breakdown {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #ddd;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.price-row:last-child {
    border-bottom: none;
}

.final-price {
    font-weight: bold;
    font-size: 1.1rem;
    color: #28a745;
}

.total-price {
    font-size: 1.2rem;
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
    color: #28a745;
}

#checkoutBtn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background-color: #28a745;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#checkoutBtn:hover {
    background-color: #218838;
}

.product-option {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.product-option:hover {
    background-color: #f8f9fa;
    border-color: #007cba;
}

.product-option.selected {
    border-color: #28a745;
    background-color: #e6f3e6;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.product-option h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.product-option p {
    margin: 5px 0 0;
    font-size: 0.9rem;
    color: #666;
}

#scp-msg {
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .product-order-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .coupon-input-wrapper {
        flex-direction: column;
    }
    
    .form-section, .product-section {
        flex: 1 1 100%;
    }
}