/* B2B Forms & Account Pages Styles - Armenian */

/* Armenian Font */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Armenian:wght@400;500;600;700&display=swap');

/* --- CONTENT WRAPPER --- */
.b2b-account-content-wrapper {
    font-family: "Noto Sans Armenian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    width: 100%;
}

/* --- EMPTY STATE CARD --- */
.b2b-empty-state-card {
    background: white;
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    margin: 32px 0;
}

.b2b-empty-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.b2b-empty-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px;
    font-family: "Noto Sans Armenian", sans-serif;
}

.b2b-empty-text {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 32px;
    line-height: 1.6;
    font-family: "Noto Sans Armenian", sans-serif;
}

/* --- BUTTONS --- */
.b2b-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #233E2A 0%, #1a2e1f 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(35, 62, 42, 0.3);
    font-family: "Noto Sans Armenian", sans-serif;
}

.b2b-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(35, 62, 42, 0.4);
    background: linear-gradient(135deg, #1a2e1f 0%, #233E2A 100%);
}

.b2b-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #233E2A;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #233E2A;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Noto Sans Armenian", sans-serif;
}

.b2b-btn-secondary:hover {
    background: #233E2A;
    color: white;
    transform: translateY(-1px);
}

.b2b-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #28462F;
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(35, 62, 42, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Noto Sans Armenian", sans-serif;
}

.b2b-btn-small:hover {
    background: #233E2A;
    color: white;
    border-color: #233E2A;
}

/* --- FORM CARD --- */
.b2b-form-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    margin: 32px 0;
}

.b2b-form-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Noto Sans Armenian", sans-serif;
    padding-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
}

.b2b-form-title svg {
    color: #233E2A;
}

/* --- FORM SECTIONS --- */
.b2b-form-section {
    margin-bottom: 32px;
}

.b2b-form-section:last-child {
    margin-bottom: 0;
}

.b2b-form-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 20px;
    font-family: "Noto Sans Armenian", sans-serif;
}

/* --- FORM FIELDS --- */
.b2b-form-fields,
.b2b-address-form,
.b2b-account-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.b2b-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.b2b-form-field-wrapper {
    margin: 0;
}

.b2b-form-field-wrapper label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-family: "Noto Sans Armenian", sans-serif;
}

.b2b-form-field-wrapper .required {
    color: #233E2A;
}

.b2b-form-input,
.b2b-form-field input[type="text"],
.b2b-form-field input[type="email"],
.b2b-form-field input[type="tel"],
.b2b-form-field input[type="password"],
.b2b-form-field select,
.b2b-form-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    font-family: "Noto Sans Armenian", sans-serif;
    transition: all 0.3s ease;
    background: white;
    color: #111827;
}

.b2b-form-input:focus,
.b2b-form-field input:focus,
.b2b-form-field select:focus,
.b2b-form-field textarea:focus {
    outline: none;
    border-color: #233E2A;
    box-shadow: 0 0 0 3px rgba(35, 62, 42, 0.1);
}

.b2b-form-hint {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
    font-style: italic;
    font-family: "Noto Sans Armenian", sans-serif;
}

/* --- FORM ACTIONS --- */
.b2b-form-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #f3f4f6;
    display: flex;
    gap: 12px;
}

/* --- ORDERS TABLE --- */
.b2b-orders-table-wrapper {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    margin: 32px 0;
    overflow-x: auto;
}

.b2b-orders-table {
    width: 100%;
    border-collapse: collapse;
    font-family: "Noto Sans Armenian", sans-serif;
}

.b2b-orders-table__header {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #111827;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #f3f4f6;
    background: #f9fafb;
}

.b2b-orders-table__row {
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s ease;
}

.b2b-orders-table__row:hover {
    background: #f9fafb;
}

.b2b-orders-table__cell {
    padding: 16px;
    font-size: 15px;
    color: #374151;
}

.b2b-order-link {
    color: #233E2A;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.b2b-order-link:hover {
    color: #1a2e1f;
    text-decoration: underline;
}

.b2b-order-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    font-family: "Noto Sans Armenian", sans-serif;
}

.b2b-order-status--pending {
    background: #FEF3C7;
    color: #92400E;
}

.b2b-order-status--processing {
    background: #DBEAFE;
    color: #1E40AF;
}

.b2b-order-status--completed {
    background: #D1FAE5;
    color: #065F46;
}

.b2b-order-status--cancelled,
.b2b-order-status--failed {
    background: #FEE2E2;
    color: #991B1B;
}

.b2b-order-items {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* --- PAGINATION --- */
.b2b-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

/* --- WOOCOMMERCE FORM FIELDS OVERRIDE --- */
.b2b-form-field .woocommerce-input-wrapper {
    width: 100%;
}

.b2b-form-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .b2b-form-card {
        padding: 24px 16px;
    }
    
    .b2b-form-row {
        grid-template-columns: 1fr;
    }
    
    .b2b-orders-table-wrapper {
        padding: 16px;
        overflow-x: auto;
    }
    
    .b2b-orders-table {
        min-width: 600px;
    }
    
    .b2b-empty-state-card {
        padding: 32px 20px;
    }
}
