/* 复用 base.css 中个人信息编辑框的焦点值；此文件在前台页面样式之后加载。 */
body.junco-template-theme:not(.is-admin-shell) :is(input, textarea, select, [role="combobox"], .shadcn-dropdown-trigger, .iti__selected-country):where(:not(.auth-field-control input)):where(:not([type="hidden"], [disabled], .lumo-header-search input, .error-search__field input, .theme-mobile-search__field input, .catalog-price-inputs input, .customer-orders__date-field input, .site-chat-compose textarea)):is(:focus, :focus-visible),
body.junco-template-theme:not(.is-admin-shell) :is(.lumo-header-search, .error-search__field, .theme-mobile-search__field, .catalog-price-inputs label, .customer-orders__date-field, .site-chat-compose):focus-within,
body.junco-template-theme:not(.is-admin-shell) :is(.product-lumo-sku, .profile-style-card, .profile-upload-control):has(input:focus-visible),
body.junco-template-theme:not(.is-admin-shell) .checkout-payment-option__input:focus-visible ~ .checkout-payment-option__control,
body.junco-template-theme:not(.is-admin-shell) .catalog-price-range input[data-price-range-min]:focus-visible ~ .catalog-price-thumb--min,
body.junco-template-theme:not(.is-admin-shell) .catalog-price-range input[data-price-range-max]:focus-visible ~ .catalog-price-thumb--max {
    outline: none;
    border-color: var(--form-focus-border);
    box-shadow: var(--form-focus-shadow);
}

/* 搜索和日期等组合控件只让外层显示一次光晕，隐藏的日历入口也可触发。 */
body.junco-template-theme:not(.is-admin-shell) :is(.lumo-header-search, .error-search__field, .theme-mobile-search__field, .catalog-price-inputs label, .customer-orders__date-field):focus-within input {
    outline: none;
    border-color: var(--form-focus-border);
    box-shadow: none;
}

body.junco-template-theme:not(.is-admin-shell) .site-chat-compose textarea,
body.junco-template-theme:not(.is-admin-shell) .site-chat-compose textarea:is(:focus, :focus-visible) {
    border: 0;
    outline: none;
    box-shadow: none;
}
