.ug-afm-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:7px}
.ug-afm-button{appearance:none;border:1px solid #9fb7c8!important;border-radius:8px!important;background:#edf5fa!important;color:#244f6e!important;min-height:32px!important;height:32px!important;padding:0 11px!important;font-size:12px!important;font-weight:800!important;line-height:30px!important;cursor:pointer!important;box-shadow:none!important;text-transform:none!important}
.ug-afm-button:hover{background:#e2eff7!important;border-color:#7fa3bb!important}.ug-afm-button:disabled{opacity:.65;cursor:wait!important}
.ug-afm-status{font-size:11px;font-weight:700;color:#6f8290;line-height:1.3}.ug-afm-status.is-success{color:#2c7650}.ug-afm-status.is-error{color:#a33f45}
.ugbo-field>.ug-afm-tools{margin-top:6px}.ugaw-new-customer-form .ug-afm-tools{margin-top:6px}
@media(max-width:680px){.ug-afm-tools{align-items:flex-start;flex-direction:column}.ug-afm-button{width:100%}}

/* v1.0.1 — AFM is the first registration field */
.ug-afm-first-field{order:-100!important}
.ug-afm-first-field .ug-afm-tools{margin-top:7px}

/* v1.0.2 — registered customer check happens before Oxygen autofill */
.ug-afm-status.is-existing{color:#1f5f91;background:#eef6fc;border:1px solid #cfe3f1;border-radius:7px;padding:6px 8px}
.ug-afm-status.is-warning{color:#8a5a17;background:#fff8e9;border:1px solid #efd9aa;border-radius:7px;padding:6px 8px}
.ug-afm-registration-blocked .ug-afm-first-field{border-color:#d9a3a6!important}


/* v1.0.3 — UG Admin Workspace CRM: AFM first + explicit existing-customer check */
.ugaw-new-customer-form .ug-afm-crm-first{order:-200!important;grid-column:span 2}
.ugaw-new-customer-form .ug-afm-crm-first .ug-afm-tools{display:flex;align-items:center;gap:8px;margin-top:6px}
.ugaw-new-customer-form .ug-afm-crm-first .ug-afm-status{flex:1;min-width:180px}
.ug-afm-crm-blocked button[name="ugaw_create_customer"]{opacity:.55!important;cursor:not-allowed!important}
