/* WooCommerce Tax Exempt Certificates - Checkout & Frontend Styles */

.wcte-checkout-section {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.wcte-checkout-section h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* Status badges */
.wcte-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

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

.wcte-badge-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

.wcte-badge-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Valid certificate display */
.wcte-status-valid {
    padding: 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

.wcte-status-valid p {
    margin: 5px 0;
}

.wcte-status-pending {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
}

/* Upload form */
.wcte-upload-form {
    margin-top: 15px;
}

.wcte-file-field {
    margin-top: 10px;
}

.wcte-file-field input[type="file"] {
    display: block;
    margin-top: 5px;
    padding: 8px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    width: 100%;
    cursor: pointer;
}

.wcte-file-field input[type="file"]:hover {
    border-color: #999;
}

.wcte-file-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.wcte-guest-notice {
    color: #666;
    font-style: italic;
}

/* Order details */
.wcte-order-exempt-notice {
    margin: 15px 0;
    padding: 12px 15px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

.wcte-order-pending-notice {
    margin: 15px 0;
    padding: 12px 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
}

/* My Account page */
.wcte-myaccount {
    max-width: 800px;
}

.wcte-active-cert {
    margin: 15px 0;
}

.wcte-status-banner {
    margin-bottom: 15px;
}

.wcte-cert-details {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.wcte-cert-details th,
.wcte-cert-details td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.wcte-cert-details th {
    width: 150px;
    font-weight: 600;
    color: #555;
}

.wcte-cert-note {
    color: #27ae60;
    font-weight: 500;
}

.wcte-upload-form-account {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.wcte-upload-form-account label {
    font-weight: 600;
}

.wcte-upload-form-account .required {
    color: #e74c3c;
}

.wcte-upload-btn {
    background: #c0392b !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 25px !important;
    font-size: 14px !important;
    cursor: pointer;
}

.wcte-upload-btn:hover {
    background: #a93226 !important;
}

.wcte-upload-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wcte-upload-status {
    margin-left: 10px;
    font-size: 13px;
}

.wcte-upload-status.success {
    color: #27ae60;
}

.wcte-upload-status.error {
    color: #e74c3c;
}

.wcte-no-cert {
    padding: 15px;
    background: #f0f0f0;
    border-radius: 4px;
    margin-bottom: 20px;
}
