/* UI-83: loaded after route/admin styles. Native editors, providers and quantities opt out in admin-fields.js. */
:root{--nftix-field-font-size:13px}
/* Quantity text shares the field font while its compact controls keep native geometry. */
html body .nftix-public-event .nftix-qtyinp,html body .nftix-cart .qty [data-qty-input],html body .nftix-cart .qinp,html body .nftixp-cart .qinp,html body.nftix-dashboard .nftixp-ticket-qty .nftixp-ticket-shared:disabled{font-size:var(--nftix-field-font-size)!important}
html body .nftix-standard-field>.nftix-form-control,html body .nftixp-fieldset .nftix-form-control,html body .nftix-form-control{font-family:inherit!important;font-size:var(--nftix-field-font-size)!important;box-sizing:border-box!important;max-width:100%;min-width:0}
.nftix-form-control:not(textarea){height:44px!important;min-height:44px!important;margin-top:0!important;margin-bottom:0!important}
.nftix-control-field{position:relative;box-sizing:border-box!important;min-width:0;height:46px!important;min-height:46px;border:1px solid #bfc7ea!important;border-radius:12px!important;padding:0 12px!important;background:#fff}
.nftix-control-field>legend{position:absolute;top:-9px;left:12px;background:#fff;float:none;width:auto;max-width:100%;padding:0 5px;margin-left:0;font-size:12px;line-height:1.3}
.nftix-control-field .nftix-form-control{width:100%;border:0!important;box-shadow:none!important;background:transparent!important;padding-top:10px!important;padding-bottom:10px!important}
.nftix-control-field:has(textarea){height:auto!important}
.nftix-control-field textarea{min-height:100px;height:auto}
.nftix-form-surface label.nftix-standard-field{display:block;position:relative;margin:10px 0 0}
.nftix-form-surface .nftix-standard-field>.nftix-field-label{border-radius:5px;position:absolute;top:-9px;left:12px;padding:0 5px;background:#fff;font-size:12px;line-height:1.3;z-index:2}
.nftix-form-surface .nftix-standard-field>.nftix-form-control{padding-left:0;padding-right:0}
html body .nftix-control-field.nftix-invalid-field,html body .nftix-standard-field.nftix-invalid-field,html body .nftixp-fieldset.nftix-invalid-field,html body .nftix-invalid-field{border-color:#dc2626!important}
.nftix-field-validation{display:block;margin:4px 0 8px;font-size:12px;line-height:1.5;color:#991b1b}
.nftix-feedback{display:block;box-sizing:border-box;width:100%;max-width:100%;margin:0 0 20px!important;padding:10px 12px!important;border:1px dashed #166534!important;border-radius:8px!important;background:#ecfdf3!important;color:#166534!important;text-align:left!important;font-size:13px!important;line-height:1.2!important;overflow-wrap:anywhere}
.nftix-feedback[data-feedback-type=error],.nftix-feedback[data-feedback-type=warning]{border-color:#b91c1c!important;background:#fee2e2!important;color:#7f1d1d!important}
.nftix-feedback[hidden],.nftix-feedback:empty,.nftix-field-validation[hidden]{display:none!important}
.nftix-feedback ul{margin:2px 0 0!important;padding:0 0 0 20px!important;list-style:disc outside!important}
.nftix-feedback :is(p,li){margin:0!important;padding-top:0!important;padding-bottom:0!important}
.nftix-feedback :is(span,p,ul,li,a){font-size:inherit!important;line-height:inherit!important;text-align:left!important}
.nftix-feedback a{color:inherit;text-decoration:none!important}
.nftix-feedback li{line-height:1.5!important}
.nftix-feedback a .fa-arrow-right{margin-left:4px;font-size:inherit}
.nftix-feedback:focus-visible{outline:2px solid #2563eb;outline-offset:3px}


/* Keep result sources in place for existing hooks; mirror offscreen results at page/dialog top. */
.nftix-feedback-top{width:calc(100% - 32px);max-width:1250px;margin:16px auto 20px!important}
dialog>.nftix-feedback-top,[role=dialog]>.nftix-feedback-top,[role=alertdialog]>.nftix-feedback-top{width:100%;margin:0 0 20px!important}

/* UI-92: 17px horizontal field padding, applied once; reserve inline-control clearance. */
html body:not(.wp-admin) :is(.nftix-control-field,label.nftix-standard-field){padding-left:0!important;padding-right:0!important}
html body:not(.wp-admin) .nftix-form-control{padding-left:17px!important;padding-right:17px!important}
html body:not(.wp-admin) :is(.nftix-datetime-control,.nftix-native-date-control,.nftix-date-input) input.nftix-form-control{padding-right:54px!important}
html body:not(.wp-admin) :is(.nftixp-pass-wrap,[data-age-custom]) input.nftix-form-control{padding-right:48px!important}
html body:not(.wp-admin) .nftix-plan-percent input.nftix-form-control{padding-right:30px!important}
html body:not(.wp-admin) [data-age-fields] select.nftix-form-control{width:100%}
html body:not(.wp-admin) :is(.nftix-input-prefix,.nftixp-input-prefix) input.nftix-form-control{padding-left:26px!important}
html body:not(.wp-admin) .nftix-input-suffix input.nftix-form-control{padding-right:26px!important}

/* UI-94: a success status keeps its dashed border when focused after saving. */
html body .nftix-feedback[data-feedback-type=success]:focus{outline:none!important;box-shadow:none!important}

/* UI-97: field errors occupy the helper area below the control, never a sibling grid cell. */
.nftix-error-helper-anchor{position:relative!important;margin-bottom:var(--nftix-error-helper-space,30px)!important}
.nftix-error-helper-anchor>.nftix-field-help{position:absolute;top:calc(100% + var(--nftix-error-helper-offset,0px) + 4px);left:0;right:0;min-width:0;text-align:left;white-space:normal}
.nftix-field-help>.nftix-field-validation{margin:0;overflow-wrap:anywhere}
.nftix-field-help>.nftix-field-validation+.nftix-field-validation{margin-top:4px}
.nftix-field-helper-host{display:inline-block;min-width:0;max-width:100%;vertical-align:top}
body.nftix-dashboard .nftixp-ticket-row:has(>.nftix-error-helper-anchor){align-items:start}

/* UI-138: event choice search never wraps its icon onto a second row. */
body.nftix-dashboard .nftix-event-choice-search{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;margin-bottom:16px;min-width:0}
body.nftix-dashboard .nftix-event-choice-search>.nftix-standard-field{flex:1 1 0;min-width:0;width:auto;margin:0}
body.nftix-dashboard .nftix-event-choice-search>.nftix-search-button{flex:0 0 44px;margin:0}
body.nftix-dashboard .nftix-main :is([data-team-events],[data-promo-event-list],[data-report-event-checks],.nftix-door-event-scroll){box-sizing:border-box;max-height:280px;overflow:auto;overscroll-behavior:contain;border:1px solid #bfc7d4;border-radius:10px;padding:8px;scrollbar-gutter:stable}

/* UI-139: owner-selected administrative scrolling-list appearance. */
html body.nftix-dashboard .nftix-main :is(.nftix-scroll-list,[data-team-events],[data-promo-event-list],[data-report-event-checks],.nftix-door-event-scroll,.nftix-refund-event-choices){border:1px solid #999;background-color:#fff;border-radius:10px 0 0 10px;padding:0 10px;box-sizing:border-box;max-height:360px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;min-width:0}
html body.nftix-dashboard .nftix-main :is([data-team-events],[data-promo-event-list],[data-report-event-checks],.nftix-door-event-scroll,.nftix-refund-event-choices){max-height:280px}
.nftix-scroll-list:focus-visible{outline:2px solid currentColor;outline-offset:2px}
[data-scroll-status]:empty{display:none}

html body.nftix-dashboard :is(.nftix-promoter-chooser .nftix-scroll-list,.nftix-cancel-dialog .nftix-scroll-list){border:1px solid #999;background-color:#fff;border-radius:10px 0 0 10px;padding:0 10px;max-height:360px;overflow:auto;box-sizing:border-box}

body.nftix-dashboard .nftix-main nav[hidden]{display:none!important}
/* Keep list-local loading/retry feedback with its hidden record view. */
.nftix-scroll-list[hidden]+[data-scroll-status],.nftix-scroll-list[hidden]+[data-scroll-status]+button{display:none!important}

/* Page-flow record loaders must never acquire bounded-list framing. */
html body.nftix-dashboard .nftix-main [data-scroll-document="1"]{border:0;border-radius:0;max-height:none;padding:0;background:transparent;scrollbar-gutter:auto}

/* UI-190: promo records grow the page; event selection lists retain their frame. */
html body.nftix-dashboard .nftix-main .nftix-discount-table.nftix-scroll-list{border:0;border-radius:0;padding:0;max-height:none;background:transparent;scrollbar-gutter:auto;overscroll-behavior:auto}

/* UI-205: default vertical spacing for newly composed public/promoter fields. */
html body:not(.wp-admin) .nftix-field-stack{display:flex;flex-direction:column;gap:20px;min-width:0}
html body:not(.wp-admin) .nftix-field-stack>:is(.nftix-standard-field,.nftixp-fieldset,[data-checkout-timing]){margin:0!important}

/* UI-208: dashboard results align with the content column and its normal inset. */
.nftix-main>.nftix-feedback-top{width:100%;max-width:100%;margin:0 0 20px!important}

/* UI-223: iPhone focus zoom is avoided by readable16px editable text, without disabling user zoom. */
@media(max-width:900px){
 html:not(:has(body.wp-admin)){--nftix-field-font-size:16px}
 html:root body:not(.wp-admin) :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=submit]):not([type=button]):not([type=reset]):not([type=image]):not([type=file]),select,textarea){font-size:16px!important}
}
