/* Herbal Product Finder: shared design layer (v3.1.2). One field size, moderate corners, gentle card motion. */
:root{--hpf-r-field:clamp(4px,var(--hpf-radius,8px),10px);--hpf-r-card:clamp(8px,calc(var(--hpf-radius,8px) + 4px),14px);--hpf-field-h:44px}

/* Fields: same height, padding, border and corners everywhere on the front end */
.hpf-widget input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]),
.hpf-widget select,
.hpf-chat .hpf-chat-input input{height:var(--hpf-field-h)!important;min-height:var(--hpf-field-h)!important;padding:0 12px!important;margin:0!important;font-family:inherit!important;font-size:15px!important;line-height:normal!important;color:#263b2a!important;background:#fff!important;border:1px solid #cfd5cc!important;border-radius:var(--hpf-r-field)!important;box-sizing:border-box!important;box-shadow:none!important;width:100%}
.hpf-widget select{padding-right:34px!important}
.hpf-widget textarea{min-height:110px!important;height:auto!important;padding:10px 12px!important;margin:0!important;font-family:inherit!important;font-size:15px!important;line-height:1.5!important;color:#263b2a!important;background:#fff!important;border:1px solid #cfd5cc!important;border-radius:var(--hpf-r-field)!important;box-sizing:border-box!important;box-shadow:none!important;width:100%;resize:vertical}
.hpf-widget input:focus,.hpf-widget select:focus,.hpf-widget textarea:focus,.hpf-chat .hpf-chat-input input:focus{outline:none!important;border-color:var(--hpf-primary,#4A5D23)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--hpf-primary,#4A5D23) 14%,transparent)!important}
.hpf-widget .hpf-field label{margin-bottom:6px}

/* Buttons: same height as fields */
.hpf-widget .hpf-btn,.hpf-chat .hpf-chat-send{min-height:var(--hpf-field-h);padding:0 20px;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:1.2;border-radius:var(--hpf-r-field)!important;box-sizing:border-box}
.hpf-widget .hpf-main-btn{width:100%;font-size:16px}
.hpf-widget .hpf-bk-actions .hpf-main-btn{width:auto}
.hpf-chat .hpf-chat-send{padding:0 14px}

/* Cards: no coloured bars, gentle motion */
@keyframes hpfFadeUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.hpf-widget,.hpf-form-card,.hpf-rec,.hpf-result,.hpf-bk-step,.hpf-bk-done,.hpf-ct-done{animation:hpfFadeUp .45s ease both}
.hpf-form-card,.hpf-bk-step,.hpf-rec,.hpf-result{transition:box-shadow .25s ease,transform .25s ease}
.hpf-form-card:hover,.hpf-bk-step:hover,.hpf-result:hover{box-shadow:0 14px 34px rgba(30,40,30,.10)}
.hpf-rec:hover{transform:translateY(-3px);box-shadow:0 16px 36px rgba(30,40,30,.12)}
.hpf-widget .hpf-choice,.hpf-bk .hpf-bk-topic span,.hpf-bk .hpf-bk-slot,.hpf-bk .hpf-bk-date{transition:border-color .2s,background .2s,transform .2s}
.hpf-widget .hpf-choice:hover,.hpf-bk .hpf-bk-slot:hover,.hpf-bk .hpf-bk-date:hover{transform:translateY(-1px)}
@media (prefers-reduced-motion:reduce){.hpf-widget,.hpf-widget *,.hpf-chat,.hpf-chat *{animation:none!important;transition:none!important;transform:none!important}}

/* v3.1.3: theme colours for focus, ticks and selection (no browser or WordPress blue) */
.hpf-widget input[type=checkbox],.hpf-widget input[type=radio],.hpf-chat input[type=checkbox]{accent-color:var(--hpf-primary,#4A5D23)}
.hpf-widget a:focus-visible,.hpf-widget button:focus-visible,.hpf-widget .hpf-btn:focus-visible,.hpf-chat button:focus-visible,.hpf-widget input[type=checkbox]:focus-visible,.hpf-widget input[type=radio]:focus-visible{outline:2px solid var(--hpf-secondary,#8A9A5B)!important;outline-offset:2px;box-shadow:none}
.hpf-widget ::selection,.hpf-chat ::selection{background:color-mix(in srgb,var(--hpf-primary,#4A5D23) 22%,transparent)}
