/* WML Quotes My Account Styles - Minimal Theme Defaults */

/* Basic quote list styles */
.wml-quotes-list {
    margin: 20px 0;
}

.wml-quote-summary {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
}

.wml-quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.wml-quote-header h3 {
    margin: 0;
}

.wml-quote-header h3 a {
    color: #333;
    text-decoration: none;
}

.wml-quote-header h3 a:hover {
    color: #0073aa;
}

/* Status badges */
.wml-quote-status {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.wml-status-pending {
    background: #ffc107;
    color: #856404;
}

.wml-status-quoted {
    background: #17a2b8;
    color: white;
}

.wml-status-accepted {
    background: #28a745;
    color: white;
}

.wml-status-expired {
    background: #dc3545;
    color: white;
}

.wml-status-closed {
    background: #6c757d;
    color: white;
}

/* Quote meta information */
.wml-quote-meta {
    margin-bottom: 15px;
    font-size: 14px;
}

.wml-quote-meta > div {
    margin-bottom: 8px;
}

.wml-quote-meta strong {
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
}

/* Quote actions */
.wml-quote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.wml-quote-actions .button {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wml-quote-actions .button-primary {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.wml-quote-actions .button-primary:hover {
    background: #218838;
    border-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.wml-quote-actions-note {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 0;
    font-size: 14px;
    color: #495057;
}

.wml-quote-actions-note strong {
    color: #28a745;
}

/* Quote Purchased Notice */
.wml-quote-purchased-notice {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.wml-quote-purchased-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.wml-quote-purchased-content strong {
    color: #155724;
    font-size: 18px;
    display: block;
    margin-bottom: 5px;
}

.wml-quote-purchased-content p {
    margin: 0;
    color: #155724;
    opacity: 0.8;
}

/* Quote detail page */
.wml-quote-detail {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    background: white;
}

.wml-quote-detail-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.wml-quote-detail-header h2 {
    margin: 0 0 10px 0;
}

.wml-quote-detail-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.wml-quote-section {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #0073aa;
}

.wml-quote-section h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

/* Customer information */
.wml-customer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.wml-customer-info > div {
    margin-bottom: 10px;
}

.wml-customer-info strong {
    display: block;
    color: #666;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.wml-customer-info span {
    color: #333;
}

/* Quote products table */
.wml-quote-products {
    margin: 15px 0;
}

.wml-quote-products table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.wml-quote-products th,
.wml-quote-products td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.wml-quote-products th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.wml-product-image {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
}

.wml-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wml-product-name {
    font-weight: 500;
}

.wml-product-price {
    color: #666;
}

.wml-quoted-price {
    font-weight: 600;
    color: #0073aa;
}

.wml-original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
    margin-right: 8px;
}

.wml-quote-total {
    text-align: right;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #eee;
}

/* Basic modal styles */
.wml-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.wml-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wml-modal-content {
    background: white;
    border-radius: 4px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.wml-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wml-modal-header h3 {
    margin: 0;
}

.wml-modal-body {
    padding: 20px;
}

.wml-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    text-align: right;
}

/* Form styles */
.wml-form-row {
    margin-bottom: 15px;
}

.wml-form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.wml-form-row textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-height: 100px;
    resize: vertical;
}

.wml-form-row textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.wml-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.wml-form-actions button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

/* Message styles */
.wml-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
}

.wml-message.show {
    display: block;
}

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

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

.wml-message.wml-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive */
@media (max-width: 768px) {
    .wml-quote-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .wml-quote-meta {
        grid-template-columns: 1fr;
    }
    
    .wml-quote-actions {
        flex-direction: column;
    }
    
    .wml-quote-actions .button {
        flex: none;
        min-width: auto;
    }
    
    .wml-customer-info {
        grid-template-columns: 1fr;
    }
    
    .wml-quote-products {
        overflow-x: auto;
    }
    
    .wml-quote-products th,
    .wml-quote-products td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    .wml-modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .wml-form-actions {
        flex-direction: column;
    }
    
    .wml-form-actions button {
        width: 100%;
    }
    
    .wml-quote-purchased-notice {
        padding: 15px;
        gap: 12px;
    }
    
    .wml-quote-purchased-icon {
        font-size: 24px;
    }
    
    .wml-quote-purchased-content strong {
        font-size: 16px;
    }
} 