/* WholeSuite Frontend Styles */

/* Toast Notifications */
.cws-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    pointer-events: none;
}

.cws-toast {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    animation: cwsSlideIn 0.3s ease-out;
    border-left: 4px solid #667eea;
}

.cws-toast.success {
    border-left-color: #4caf50;
}

.cws-toast.error {
    border-left-color: #f44336;
}

.cws-toast.warning {
    border-left-color: #ff9800;
}

.cws-toast.info {
    border-left-color: #2196f3;
}

.cws-toast-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.cws-toast-content {
    flex: 1;
}

.cws-toast-title {
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333;
}

.cws-toast-message {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.cws-toast-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cws-toast-close:hover {
    opacity: 1;
}

@keyframes cwsSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes cwsSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.cws-toast.removing {
    animation: cwsSlideOut 0.3s ease-out forwards;
}

/* Tax Switcher */
.cws-tax-switcher {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.cws-tax-switcher-label {
    color: #333;
    font-weight: 500;
}

.cws-tax-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cws-tax-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cws-tax-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

.cws-tax-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cws-tax-toggle input:checked + .cws-tax-toggle-slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cws-tax-toggle input:checked + .cws-tax-toggle-slider:before {
    transform: translateX(24px);
}

.cws-tax-switcher-text {
    color: #666;
    font-size: 13px;
}

/* Hide Prices */
.cws-price-hidden {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #667eea;
    font-weight: 500;
}

.cws-login-to-see-price {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cws-login-to-see-price:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
}

/* Bulk Order Form */
.cws-bulk-order-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cws-bulk-order-header {
    margin-bottom: 30px;
}

.cws-bulk-order-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.8em;
    color: #333;
}

.cws-bulk-order-header p {
    margin: 0;
    color: #666;
}

.cws-bulk-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cws-bulk-order-table thead {
    background: #f8f9fa;
}

.cws-bulk-order-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
}

.cws-bulk-order-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.cws-bulk-order-input {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
}

.cws-bulk-order-input:focus {
    outline: none;
    border-color: #667eea;
}

.cws-bulk-add-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #667eea;
    border: 2px solid #667eea;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.cws-bulk-add-row:hover {
    background: #667eea;
    color: white;
}

.cws-bulk-submit {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cws-bulk-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Quote Button */
.cws-request-quote-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.cws-request-quote-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
}

/* Minimum Order Notice */
.cws-minimum-order-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.cws-minimum-order-notice p {
    margin: 0;
    color: #856404;
}

/* Responsive */
@media (max-width: 768px) {
    .cws-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .cws-toast {
        min-width: auto;
        max-width: none;
    }
    
    .cws-bulk-order-form {
        padding: 20px;
    }
    
    .cws-bulk-order-table {
        font-size: 14px;
    }
    
    .cws-bulk-order-table th,
    .cws-bulk-order-table td {
        padding: 10px;
    }
}
