/* Checkout form foundations shared by theme-owned forms. Composite phone and quantity controls keep their own frames. */
body.bbr-native :is(.bbr-auth-form,.account-form,.bbr-enquiry-form,.bbr-editorial-form,.bbr-cart-coupon-form,.bbr-footer-newsletter,.bbr-filters,.woocommerce-ordering,.bbr-pdp .variations,.bbr-moto-form,#bbr-header-finder,#bbr-mega-menu) :is(input:where(:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="file"]):not([hidden]):not(.bbr-phone__input)),select:where(:not(.select2-hidden-accessible):not(.bbr-phone__select):not([multiple]):not([size])),textarea) {
    box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:var(--bbr-control-height);
    padding:11px 12px;border:1px solid var(--bbr-control-border);border-radius:var(--bbr-radius-sm);
    background-color:var(--bbr-input);color:var(--bbr-text);box-shadow:none;
    font-family:var(--bbr-font);font-size:var(--bbr-text-md);font-weight:400;line-height:24px;
}
body.bbr-native :is(.bbr-auth-form,.account-form,.bbr-enquiry-form,.bbr-editorial-form,.bbr-cart-coupon-form,.bbr-footer-newsletter,.bbr-filters,.woocommerce-ordering,.bbr-pdp .variations,.bbr-moto-form,#bbr-header-finder,#bbr-mega-menu) textarea {min-height:104px;resize:vertical;}
body.bbr-native :is(.bbr-auth-form,.account-form,.bbr-enquiry-form,.bbr-editorial-form,.bbr-cart-coupon-form,.bbr-footer-newsletter,.bbr-filters,.woocommerce-ordering,.bbr-pdp .variations,.bbr-moto-form,#bbr-header-finder,#bbr-mega-menu) :is(input,textarea)::placeholder {color:var(--bbr-muted);opacity:1;}
body.bbr-native :is(.bbr-auth-form,.account-form,.bbr-enquiry-form,.bbr-editorial-form,.bbr-cart-coupon-form,.bbr-footer-newsletter,.bbr-filters,.woocommerce-ordering,.bbr-pdp .variations,.bbr-moto-form,#bbr-header-finder,#bbr-mega-menu) :is(input:where(:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="file"]):not([hidden]):not(.bbr-phone__input)),select:where(:not(.select2-hidden-accessible):not(.bbr-phone__select):not([multiple]):not([size])),textarea):disabled {opacity:.55;cursor:not-allowed;}
body.bbr-native :is(.bbr-auth-form,.account-form,.bbr-enquiry-form,.bbr-editorial-form,.bbr-cart-coupon-form,.bbr-footer-newsletter,.bbr-filters,.woocommerce-ordering,.bbr-pdp .variations,.bbr-moto-form,#bbr-header-finder,#bbr-mega-menu) :is(input:where(:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="file"]):not([hidden]):not(.bbr-phone__input)),select:where(:not(.select2-hidden-accessible):not(.bbr-phone__select):not([multiple]):not([size])),textarea)[readonly] {color:var(--bbr-muted);}
body.bbr-native :is(.bbr-auth-form,.account-form,.bbr-enquiry-form,.bbr-editorial-form,.bbr-cart-coupon-form,.bbr-footer-newsletter,.bbr-filters,.woocommerce-ordering,.bbr-pdp .variations,.bbr-moto-form,#bbr-header-finder,#bbr-mega-menu) :is(input:where(:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="range"]):not([type="file"]):not([hidden]):not(.bbr-phone__input)),select:where(:not(.select2-hidden-accessible):not(.bbr-phone__select):not([multiple]):not([size])),textarea)[aria-invalid="true"] {border-color:var(--bbr-danger);}
body.bbr-native :is(.bbr-auth-form,.account-form,.bbr-enquiry-form,.bbr-editorial-form,.bbr-cart-coupon-form,.bbr-footer-newsletter,.bbr-filters,.woocommerce-ordering,.bbr-pdp .variations,.bbr-moto-form,#bbr-header-finder,#bbr-mega-menu) .bbr-auth-password input {padding-inline-end:54px;}
/* Native dropdowns remain native; only their closed controls use the shared caret. */
body.bbr-native :is(.bbr-auth-form,.account-form,.bbr-enquiry-form,.bbr-editorial-form,.bbr-cart-coupon-form,.bbr-footer-newsletter,.bbr-filters,.woocommerce-ordering,.bbr-pdp .variations,.bbr-moto-form,#bbr-header-finder,#bbr-mega-menu) select:not(.select2-hidden-accessible):not(.bbr-phone__select):not([multiple]):not([size]),
body.bbr-native .bbr-moto-field select,
body.bbr-native .mega-mobile-category {
    appearance:none;color-scheme:dark;background-image:url('../images/form-caret-down.svg');
    background-repeat:no-repeat;background-size:16px 16px;background-position:right 12px center;
    padding-inline-end:40px;
}
/* Compact motorcycle fields retain the approved outer composition and dimensions. */
body.bbr-native .bbr-moto-field {padding-inline-end:12px;}
body.bbr-native .bbr-moto-field select {padding-inline-end:28px;background-position:right 0 center;}
body.bbr-native :is(#bbr-header-finder,#bbr-mega-menu) .bbr-moto-field {padding:0;}
body.bbr-native :is(#bbr-header-finder,#bbr-mega-menu) .bbr-moto-field select {padding:11px 40px 11px 12px;background-position:right 12px center;height:48px;}
/* SelectWoo/Select2 closed fields use the same geometry. Phone prefixes are composed separately. */
body.bbr-native :is(.bbr-auth-form,.account-form,.bbr-enquiry-form,.bbr-editorial-form,.bbr-cart-coupon-form,.bbr-footer-newsletter,.bbr-filters,.woocommerce-ordering,.bbr-pdp .variations) .select2-container:not(.bbr-phone .select2-container) .select2-selection--single {
    position:relative;display:flex;align-items:center;height:48px;min-height:48px;padding:0;
    background:var(--bbr-input);border:1px solid var(--bbr-control-border);border-radius:var(--bbr-radius-sm);box-shadow:none;
}
body.bbr-native :is(.bbr-auth-form,.account-form,.bbr-enquiry-form,.bbr-editorial-form,.bbr-cart-coupon-form,.bbr-footer-newsletter,.bbr-filters,.woocommerce-ordering,.bbr-pdp .variations) .select2-container:not(.bbr-phone .select2-container) .select2-selection__rendered {
    width:100%;padding:11px 40px 11px 12px;color:var(--bbr-text);font:400 16px/24px var(--bbr-font);
}
body.bbr-native :is(.bbr-auth-form,.account-form,.bbr-enquiry-form,.bbr-editorial-form,.bbr-cart-coupon-form,.bbr-footer-newsletter,.bbr-filters,.woocommerce-ordering,.bbr-pdp .variations) .select2-container:not(.bbr-phone .select2-container) .select2-selection__arrow {
    display:flex;align-items:center;justify-content:center;top:0;right:12px;width:16px;height:100%;
}
body.bbr-native :is(.bbr-auth-form,.account-form,.bbr-enquiry-form,.bbr-editorial-form,.bbr-cart-coupon-form,.bbr-footer-newsletter,.bbr-filters,.woocommerce-ordering,.bbr-pdp .variations) .select2-container:not(.bbr-phone .select2-container) .select2-selection__arrow b {
    position:static;width:16px;height:16px;margin:0;border:0;mask:none;
    background:url('../images/form-caret-down.svg') center/16px 16px no-repeat;
}
body.bbr-native :is(.bbr-auth-form,.account-form,.bbr-enquiry-form,.bbr-editorial-form,.bbr-cart-coupon-form,.bbr-footer-newsletter,.bbr-filters,.woocommerce-ordering,.bbr-pdp .variations) .select2-container--disabled .select2-selection {opacity:.55;cursor:not-allowed;}
body.bbr-native .bbr-moto-field select {font-weight:400;line-height:24px;}
body.bbr-native :is(.bbr-auth-form,.account-form) .woocommerce-invalid :is(input,select,.select2-selection) {border-color:var(--bbr-danger);}
body.bbr-native :is(.bbr-auth-form,.account-form) .woocommerce-validated :is(input,select,.select2-selection) {border-color:var(--bbr-success);}

/* Form fields retain their normal frame when focused, without extra rings. */
body.bbr-native :is(.bbr-auth-form,.account-form,.bbr-enquiry-form,.bbr-editorial-form,.bbr-cart-coupon-form,.bbr-footer-newsletter,.bbr-filters,.woocommerce-ordering,.bbr-pdp .variations,.bbr-moto-form,.bbr-checkout__form,.bbr-phone,.bbr-select-dropdown,.bbr-phone-dropdown) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),select,textarea,.select2-selection):focus {
    outline:none!important;box-shadow:none!important;
}

/* Search fields own their SelectWoo geometry, independently of account/checkout fields. */
body.bbr-native .bbr-moto-field .select2-container {display:block;width:100%!important;margin:0;min-width:0;}
body.bbr-native .bbr-moto-form .select2-container .select2-selection--single {position:relative;display:flex;align-items:center;height:28px;min-height:28px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;}
body.bbr-native .bbr-moto-form .select2-container .select2-selection__rendered {width:100%;padding:0 28px 0 0;color:var(--bbr-text);font:400 16px/28px var(--bbr-font);}
body.bbr-native .bbr-moto-form .select2-container .select2-selection__arrow {display:flex;align-items:center;justify-content:center;top:0;right:0;width:16px;height:100%;}
body.bbr-native .bbr-moto-form .select2-container .select2-selection__arrow b {position:static;width:16px;height:16px;margin:0;border:0;mask:none;background:url('../images/form-caret-down.svg') center/16px 16px no-repeat;}
body.bbr-native .bbr-moto-form .select2-container--disabled .select2-selection {opacity:.55;cursor:not-allowed;}
body.bbr-native :is(#bbr-header-finder,#bbr-mega-menu) .bbr-moto-field .select2-container {margin-top:8px;}
body.bbr-native :is(#bbr-header-finder,#bbr-mega-menu) .bbr-moto-form .select2-selection--single {height:48px;min-height:48px;border:1px solid var(--bbr-control-border);border-radius:var(--bbr-radius-sm);background:var(--bbr-input);}
body.bbr-native :is(#bbr-header-finder,#bbr-mega-menu) .bbr-moto-form .select2-selection__rendered {padding:11px 40px 11px 12px;line-height:24px;}
body.bbr-native :is(#bbr-header-finder,#bbr-mega-menu) .bbr-moto-form .select2-selection__arrow {right:12px;}
body.bbr-native .bbr-moto-dropdown {background:var(--bbr-surface);color:var(--bbr-text);border:1px solid var(--bbr-control-border);border-radius:var(--bbr-radius-sm);font:400 16px/24px var(--bbr-font);}
body.bbr-native .bbr-moto-dropdown .select2-results__options {max-height:240px;overscroll-behavior:contain;}
body.bbr-native .bbr-moto-dropdown .select2-results__option {min-height:48px;padding:12px;}
body.bbr-native .bbr-moto-dropdown .select2-results__option--highlighted[data-selected] {background:var(--bbr-brand);color:var(--bbr-on-light);outline:none;}
body.bbr-native .bbr-moto-dropdown .select2-results__option[aria-disabled="true"] {color:var(--bbr-muted);}

/* The saved choice stays distinct when the pointer highlights a different row. */
body.bbr-native :is(.bbr-moto-dropdown,.bbr-select-dropdown,.bbr-phone-dropdown) .select2-results__option[data-selected="true"] {
    background:var(--bbr-surface-raised);color:var(--bbr-brand);font-weight:700;
    box-shadow:inset 3px 0 var(--bbr-brand);
}
body.bbr-native :is(.bbr-moto-dropdown,.bbr-select-dropdown,.bbr-phone-dropdown) .select2-results__option--highlighted[data-selected] {
    background:var(--bbr-brand);color:var(--bbr-on-light);box-shadow:none;
}
