.uaf-widget {
  --uaf-accent: var(--color_main, var(--wp--preset--color--primary, #14647e));
  box-sizing: border-box; margin: 1.5em 0 2em; padding: clamp(18px, 3vw, 28px);
  border: 1px solid #d8e0e5; border-top: 4px solid var(--uaf-accent);
  border-radius: 12px; background: #f8fafb; color: #24323c;
}
.uaf-widget *, .uaf-widget *::before, .uaf-widget *::after { box-sizing: border-box; }
.uaf-widget .uaf-heading { display: block; margin: 0 0 10px; color: #24323c; font-size: 1.2em; font-weight: 700; line-height: 1.6; }
.uaf-widget .uaf-help { margin: 0 0 14px; color: #485765; font-size: .9em; line-height: 1.7; }
.uaf-widget .uaf-controls { display: flex; gap: 10px; align-items: stretch; }
.uaf-widget .uaf-query { flex: 1; min-width: 0; width: 100%; min-height: 48px; margin: 0; padding: 10px 14px; border: 1px solid #889ba8; border-radius: 8px; background: #fff; color: #24323c; font: inherit; font-size: 16px; }
.uaf-widget .uaf-submit { flex: 0 0 auto; min-width: 76px; min-height: 48px; margin: 0; padding: 10px 18px; border: 2px solid var(--uaf-accent); border-radius: 8px; background: #fff; color: #24323c; font: inherit; font-weight: 700; cursor: pointer; }
.uaf-widget .uaf-submit:hover { background: #edf2f6; }
.uaf-widget .uaf-submit:disabled { opacity: .6; cursor: wait; }
.uaf-widget :is(input, button, a):focus-visible { outline: 3px solid var(--uaf-accent); outline-offset: 3px; }
.uaf-widget .uaf-status { margin: 12px 0 0; color: #344654; font-size: .92em; line-height: 1.8; }
.uaf-widget .uaf-status:empty { display: none; }
.uaf-widget .uaf-results { display: block; margin: 16px 0 0; padding: 0; list-style: none; border: 1px solid #d8e0e5; border-radius: 8px; background: #fff; }
.uaf-widget .uaf-results li { margin: 0; padding: 0; list-style: none; }
.uaf-widget .uaf-results li + li { border-top: 1px solid #e6ebee; }
.uaf-widget .uaf-results a { display: block; padding: 13px 15px; border-left: 3px solid var(--uaf-accent); color: #234e6c; line-height: 1.7; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.uaf-widget .uaf-results a:hover { background: #f0f4f6; }
.uaf-widget .uaf-privacy { margin: 14px 0 0; color: #566471; font-size: .78em; line-height: 1.7; }
.uaf-widget .uaf-trap { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.uaf-widget [hidden] { display: none !important; }
@media (max-width: 400px) { .uaf-widget .uaf-controls { gap: 6px; } .uaf-widget .uaf-submit { min-width: 64px; padding: 10px; } }

@media (max-width: 600px) { .uaf-widget .uaf-heading { font-size: 1.05em; } }
