/* WC Frontend Vendor Tools Styles */
.wcfvt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wcfvt-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.wcfvt-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.wcfvt-success {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.15);
}

.wcfvt-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.15);
}

.wcfvt-form {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.wcfvt-form-group {
    margin-bottom: 25px;
}

.wcfvt-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
    font-size: 14px;
}

.wcfvt-form-group input[type="text"],
.wcfvt-form-group input[type="number"],
.wcfvt-form-group select,
.wcfvt-form-group textarea {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.wcfvt-form-group input:focus,
.wcfvt-form-group select:focus,
.wcfvt-form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
    transform: translateY(-1px);
}

.wcfvt-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.wcfvt-btn:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #cc4914 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: white;
}

.wcfvt-btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: white;
}

.wcfvt-btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.wcfvt-btn-secondary:hover {
    background: linear-gradient(135deg, #545b62 0%, #3d4043 100%);
}

.wcfvt-btn-large {
    padding: 18px 35px;
    font-size: 16px;
    width: 100%;
    text-align: center;
    border-radius: 12px;
}

.wcfvt-btn-small {
    padding: 8px 15px;
    font-size: 12px;
    border-radius: 8px;
}

.wcfvt-search-box {
    margin-bottom: 20px;
}

.wcfvt-search-box input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.wcfvt-search-box input:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
}

.wcfvt-table-container {
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.wcfvt-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.wcfvt-table th,
.wcfvt-table td {
    padding: 18px 20px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.wcfvt-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.wcfvt-table tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
}

.wcfvt-stock-input {
    width: 100px;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.wcfvt-stock-input:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.wcfvt-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wcfvt-status-instock {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wcfvt-status-outofstock {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wcfvt-status-pending {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.wcfvt-status-processing {
    background: linear-gradient(135deg, #cce5ff 0%, #b3d9ff 100%);
    color: #004085;
    border: 1px solid #b3d9ff;
}

.wcfvt-status-on-hold {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wcfvt-status-completed {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wcfvt-status-cancelled {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wcfvt-status-refunded {
    background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%);
    color: #383d41;
    border: 1px solid #d6d8db;
}

.wcfvt-status-failed {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wcfvt-products-grid {
    display: grid;
    gap: 15px;
    max-height: 450px;
    overflow-y: auto;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.05);
}

.wcfvt-product-item {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.wcfvt-product-item:hover {
    border-color: #ff6b35;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.15);
    transform: translateY(-2px);
}

.wcfvt-product-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.wcfvt-product-info label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;
    width: 100%;
    font-weight: 500;
}

.wcfvt-product-info input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #ff6b35;
}

.wcfvt-product-name {
    flex: 1;
    font-weight: 600;
    color: #495057;
}

.wcfvt-product-price {
    font-weight: 700;
    color: #ff6b35;
    font-size: 16px;
}

.wcfvt-quantity-control {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e9ecef;
}

.wcfvt-quantity-control label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    color: #6c757d;
    font-weight: 600;
}

.wcfvt-quantity-control input {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.wcfvt-quantity-control input:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.wcfvt-payment-methods {
    display: grid;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.wcfvt-payment-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wcfvt-payment-method:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    border-color: #ff6b35;
    transform: translateY(-1px);
}

.wcfvt-payment-method input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #ff6b35;
}

.wcfvt-orders-grid {
    display: grid;
    gap: 25px;
}

.wcfvt-order-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.wcfvt-order-card:hover {
    border-color: #ff6b35;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.15);
    transform: translateY(-2px);
}

.wcfvt-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 20px;
}

.wcfvt-order-header h3 {
    margin: 0;
    color: #495057;
    font-size: 20px;
    font-weight: 700;
}

.wcfvt-order-items,
.wcfvt-delivery-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f8f9fa;
}

.wcfvt-order-items h4,
.wcfvt-delivery-info h4 {
    margin: 0 0 12px 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

.wcfvt-order-items p,
.wcfvt-delivery-info p {
    margin: 8px 0;
    font-size: 14px;
    color: #6c757d;
}

/* Order Details Styles */
.wcfvt-order-details {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.wcfvt-back-link {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    overflow: hidden;
}

.wcfvt-order-detail-content {
    padding: 0;
}

.wcfvt-order-detail-content h2 {
    margin: 0 0 35px 0;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #fff;
    border-radius: 12px;
}

.wcfvt-order-info-section,
.wcfvt-customer-info-section,
.wcfvt-address-section,
.wcfvt-order-items-section,
.wcfvt-order-totals-section,
.wcfvt-delivery-info-section,
.wcfvt-order-notes-section {
    margin-bottom: 25px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    border-radius: 12px;
    border: 2px solid #e9ecef;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.wcfvt-order-info-section h3,
.wcfvt-customer-info-section h3,
.wcfvt-address-section h3,
.wcfvt-order-items-section h3,
.wcfvt-order-totals-section h3,
.wcfvt-delivery-info-section h3,
.wcfvt-order-notes-section h3 {
    margin: 0 0 18px 0;
    color: #495057;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 3px solid #ff6b35;
    padding-bottom: 10px;
}

.wcfvt-order-info-table,
.wcfvt-order-items-table,
.wcfvt-order-totals-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.wcfvt-order-info-table td,
.wcfvt-order-items-table th,
.wcfvt-order-items-table td,
.wcfvt-order-totals-table td {
    padding: 15px 18px;
    border-bottom: 1px solid #e9ecef;
}

.wcfvt-order-info-table td:first-child,
.wcfvt-order-totals-table td:first-child {
    font-weight: 600;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    width: 200px;
    color: #495057;
}

.wcfvt-order-items-table th {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: white;
    font-weight: 600;
    text-align: left;
}

.wcfvt-order-totals-table .wcfvt-total-row {
    border-top: 3px solid #ff6b35;
    background: linear-gradient(135deg, #fff4f1 0%, #ffede5 100%);
}

.wcfvt-order-totals-table .wcfvt-total-row td {
    font-weight: bold;
    font-size: 18px;
    color: #ff6b35;
}

.wcfvt-address {
    background: #fff;
    padding: 18px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    line-height: 1.6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.wcfvt-order-note {
    background: #fff;
    padding: 18px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.wcfvt-orders-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.wcfvt-order-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 2px 6px 2px 4px;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
}

.wcfvt-order-link:after {
    content: "→";
    margin-left: 4px;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 12px;
}

.wcfvt-order-link:hover {
    color: #e55a2b;
    background-color: rgba(255, 107, 53, 0.1);
    text-decoration: none;
    transform: translateY(-1px);
}

.wcfvt-order-link:hover:after {
    opacity: 1;
    margin-left: 6px;
}

.required {
    color: #dc3545;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wcfvt-container {
        padding: 15px;
    }
    
    .wcfvt-card {
        padding: 20px;
    }
    
    .wcfvt-form {
        padding: 20px;
    }
    
    .wcfvt-table-container {
        font-size: 14px;
    }
    
    .wcfvt-table th,
    .wcfvt-table td {
        padding: 12px 10px;
    }
    
    .wcfvt-order-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .wcfvt-btn {
        width: 100%;
        text-align: center;
    }
    
    .wcfvt-order-detail-content h2 {
        font-size: 24px;
    }
}

/* Print Styles */
@media print {
    .wcfvt-btn {
        display: none !important;
    }
    
    .wcfvt-back-link {
        display: none !important;
    }
    
    .wcfvt-order-card {
        border: 1px solid #000;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .wcfvt-order-detail-content {
        padding: 0;
    }
    
    .wcfvt-order-info-section,
    .wcfvt-customer-info-section,
    .wcfvt-address-section,
    .wcfvt-order-items-section,
    .wcfvt-order-totals-section,
    .wcfvt-delivery-info-section {
        background: #fff !important;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* Animation for success messages */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wcfvt-success {
    animation: fadeInUp 0.5s ease;
}

/* Hover effects for interactive elements */
.wcfvt-product-item:hover,
.wcfvt-payment-method:hover,
.wcfvt-order-card:hover {
    animation: none;
}

/* Focus styles for accessibility */
.wcfvt-btn:focus,
.wcfvt-form-group input:focus,
.wcfvt-form-group select:focus,
.wcfvt-form-group textarea:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}