/* WordPress Custom Order Form Styles */

.wcf-container {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    direction: rtl;
    text-align: right;
}

.wcf-product-section {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.wcf-product-image {
    flex: 0 0 200px;
}

.wcf-product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.wcf-product-info {
    flex: 1;
}

/* Removed .wcf-product-title and .wcf-product-details styles */

.wcf-product-price {
    color: #666;
    margin: 5px 0;
}

.wcf-product-code {
    font-weight: bold;
    color: #007cba;
}

.wcf-form-section {
    padding: 20px;
}

.wcf-form-section h4 {
    margin: 20px 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: bold;
}

.wcf-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.wcf-form-group {
    flex: 1;
}

.wcf-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.wcf-form-group input,
.wcf-form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.wcf-form-group input:focus,
.wcf-form-group select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* New styles for action section */
.wcf-action-section-new {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: nowrap;
    justify-content: center;
}

.wcf-action-section-new #wcf-decrease-qty,
.wcf-action-section-new #wcf-increase-qty {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #007cba;
    background: #fff;
    color: #007cba;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wcf-action-section-new #wcf-decrease-qty:hover,
.wcf-action-section-new #wcf-increase-qty:hover {
    background: #007cba;
    color: #fff;
    transform: scale(1.1);
}

.wcf-action-section-new #wcf-quantity {
    width: 60px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    font-size: 16px;
    font-weight: bold;
}

.wcf-action-section-new .wcf-add-to-cart-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.wcf-action-section-new .wcf-confirm-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #007cba, #005a8b);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.wcf-action-section-new .wcf-add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.wcf-action-section-new .wcf-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.3);
}

.wcf-action-section-new .wcf-add-to-cart-btn:active,
.wcf-action-section-new .wcf-confirm-btn:active {
    transform: translateY(0);
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .wcf-action-section-new {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .wcf-action-section-new #wcf-decrease-qty,
    .wcf-action-section-new #wcf-increase-qty {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .wcf-action-section-new #wcf-quantity {
        width: 50px;
        padding: 6px;
        font-size: 14px;
    }
    
    .wcf-action-section-new .wcf-add-to-cart-btn,
    .wcf-action-section-new .wcf-confirm-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}



.wcf-confirm-btn,
.wcf-add-to-cart-btn {
    flex: 1; /* Allow buttons to take available space */
    padding: 15px;
    background: linear-gradient(135deg, #007cba, #005a8b);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap; /* Prevent text wrapping */
}

.wcf-add-to-cart-btn {
    background: linear-gradient(135deg, #28a745, #218838); /* Green for Add to Cart */
}

.wcf-confirm-btn:hover,
.wcf-add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.3);
}

.wcf-add-to-cart-btn:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.wcf-confirm-btn:active,
.wcf-add-to-cart-btn:active {
    transform: translateY(0);
}

.wcf-order-summary {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.wcf-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.wcf-summary-row:last-child {
    border-bottom: none;
}

.wcf-summary-row.wcf-total {
    font-weight: bold;
    font-size: 18px;
    color: #007cba;
    border-top: 2px solid #007cba;
    margin-top: 10px;
    padding-top: 15px;
}

.wcf-quantity-display {
    font-size: 14px;
    color: #666;
}

.wcf-multiplier {
    font-weight: bold;
    color: #007cba;
}

.wcf-order-notes {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
}

/* Loading and Messages */
.wcf-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}

.wcf-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: wcf-spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes wcf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wcf-message {
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.wcf-message.wcf-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.wcf-message.wcf-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.wcf-message h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.wcf-message p {
    margin: 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wcf-container {
        margin: 10px;
        border-radius: 8px;
    }
    
    .wcf-product-section {
        flex-direction: column;
        text-align: center;
    }
    
    .wcf-product-image {
        flex: none;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .wcf-form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .wcf-action-section-new {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wcf-quantity-controls-new {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .wcf-confirm-btn,
    .wcf-add-to-cart-btn {
        width: 100%;
    }
    
    .wcf-order-summary {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .wcf-container {
        margin: 5px;
    }
    
    .wcf-product-section,
    .wcf-form-section {
        padding: 15px;
    }
    
    .wcf-confirm-btn,
    .wcf-add-to-cart-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .wcf-summary-row.wcf-total {
        font-size: 16px;
    }
}

/* Animation Effects */
.wcf-container {
    animation: wcf-fadeIn 0.5s ease-out;
}

@keyframes wcf-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wcf-form-group input:focus,
.wcf-form-group select:focus {
    animation: wcf-pulse 0.3s ease-out;
}

@keyframes wcf-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Custom Scrollbar */
.wcf-container::-webkit-scrollbar {
    width: 8px;
}

.wcf-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.wcf-container::-webkit-scrollbar-thumb {
    background: #007cba;
    border-radius: 4px;
}

.wcf-container::-webkit-scrollbar-thumb:hover {
    background: #005a8b;
}



