/* 4XR 상품 검색 (공통) — 가격 탭 게시판 검색 모양 (layout:'tabs') */
.bf_rs_sticky, .bf_rs_panel, .bf_rs_more, .bf_rs_results {font-family:'Pretendard', sans-serif;}
:is(.bf_rs_sticky, .bf_rs_panel) :is(button, input) {font-family:inherit;}
.bf_rs_sticky {position:sticky; top:66px; z-index:98; background:#fff; transition:box-shadow .2s ease;}
.bf_rs_sticky.is_stuck {box-shadow:0 10px 18px -12px rgba(28,34,43,.28);}
.bf_rs_in {position:relative; display:flex; align-items:center; gap:10px; width:1400px; max-width:100%; min-height:56px; margin:0 auto; padding:8px 0; box-sizing:border-box;}
.bf_rs_bar {flex:0 0 380px; display:flex; align-items:center; gap:10px; min-width:0; height:40px; padding:0 14px 0 18px; border-radius:20px; background:#f3f4f6; box-sizing:border-box;}
.bf_rs_go {flex:none; width:17px; height:17px; background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c222b' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");}
.bf_rs_bar input {flex:1; min-width:0; height:100%; padding:0; border:0; outline:none; background:transparent; color:#1c222b; font-size:15px; font-weight:600;}
.bf_rs_bar input::placeholder {color:#979fac; font-weight:600;}
.bf_rs_bar input::-webkit-search-cancel-button {display:none;}
.bf_rs_clear {flex:none; width:22px; height:22px; padding:0; border:0; border-radius:50%; background:#c9ced6; color:#fff; font-size:14px; line-height:22px; text-align:center; cursor:pointer;}
.bf_rs_bar:not(.has_value) .bf_rs_clear {display:none;}
.bf_rs_submit {flex:none; width:28px; height:28px; margin-right:-8px; padding:0; border:0; border-radius:50%; cursor:pointer;
background:#1c222b no-repeat center/15px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E"); transition:background-color .15s ease;}
.bf_rs_submit:hover {background-color:#3a4453;}
.bf_rs_spark {flex:none; display:inline-flex; align-items:center; height:20px; padding:0 7px; border-radius:10px; background:#1c222b; color:#fff; font-size:10px; font-weight:800; white-space:nowrap;}
.bf_rs_bar.has_value:not(.is_sentence) .bf_rs_spark {display:none;}

/* 필터 버튼 */
.bf_rs_filter_btn {flex:none; display:inline-flex; align-items:center; gap:6px; height:40px; padding:0 15px; border:1px solid #1c222b; border-radius:20px; background:#fff; color:#1c222b;
font-size:14px; font-weight:700; white-space:nowrap; cursor:pointer; box-sizing:border-box;}
.bf_rs_filter_btn::before {content:''; flex:none; width:15px; height:15px; background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c222b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h9M18 7h2M4 17h3M12 17h8'/%3E%3Ccircle cx='15.5' cy='7' r='2.5'/%3E%3Ccircle cx='9.5' cy='17' r='2.5'/%3E%3C/svg%3E");}
.bf_rs_filter_btn[aria-expanded="true"] {background:#1c222b; color:#fff;}
.bf_rs_filter_btn[aria-expanded="true"]::before {background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h9M18 7h2M4 17h3M12 17h8'/%3E%3Ccircle cx='15.5' cy='7' r='2.5'/%3E%3Ccircle cx='9.5' cy='17' r='2.5'/%3E%3C/svg%3E");}
.bf_rs_filter_btn em {display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:#ff3b0a; color:#fff; font-size:11px; font-style:normal; box-sizing:border-box;}

/* 추천 검색어 */
.bf_rs_chips {flex:1; min-width:0; display:flex; align-items:center; gap:6px; flex-wrap:nowrap; overflow:hidden;}
.bf_rs_chips_label {flex:none; margin:0 4px 0 6px; color:#1c222b; font-size:13px; font-weight:800; white-space:nowrap;}
.bf_rs_chip {flex:none; height:30px; padding:0 12px; border:0; border-radius:15px; background:#f3f4f6; color:#465061; font-size:13px; font-weight:500; line-height:30px; white-space:nowrap; cursor:pointer;
transition:background-color .15s ease, color .15s ease;}
.bf_rs_chip::before {content:'#'; margin-right:2px; color:#a8b0bb; font-weight:600;}
.bf_rs_chip:hover, .bf_rs_opt:hover {background:#e6e9ee; color:#1c222b;}
.bf_rs_chip.on, .bf_rs_opt.on {background:#1c222b; color:#fff; font-weight:700;}
.bf_rs_chip.on::before {color:rgba(255,255,255,.55);}
.bf_rs_chip.is_sentence {border:1px solid #e3e6ea; background:#fff; color:#1c222b; line-height:28px;}
.bf_rs_chip.is_sentence::before {content:'✦'; margin-right:4px; color:#ff3b0a;}
.bf_rs_chip.is_sentence:hover, .bf_rs_chip.is_sentence.on {border-color:#1c222b; background:#fff; color:#1c222b;}
.bf_rs_chip.bf_rs_fit_off {display:none;}

/* 검색 결과 줄 */
.bf_rs_sticky.is_searching .bf_rs_in > .bf_rs_chips {display:none;}
.bf_rs_result {flex:1; min-width:0; display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; color:#465061; font-size:14px;}
.bf_rs_result b {color:#1c222b;}
.bf_rs_result strong {color:#ff3b0a;}
.bf_rs_reset {padding:4px 11px; border:1px solid #d9dde3; border-radius:14px; background:#fff; color:#465061; font-size:12px; cursor:pointer;}
.bf_rs_reset:hover {border-color:#1c222b; color:#1c222b;}
.bf_rs_again {border-color:#ffb9a6; color:#c22a05;}
.bf_rs_suggest {display:inline-flex; flex-wrap:wrap; align-items:center; gap:6px; color:#465061; font-size:13px;}
.bf_rs_mynote {color:#1c222b; font-size:12px; font-weight:600;}
.bf_rs_result[hidden], .bf_rs_chips[hidden], .bf_rs_filter_btn em[hidden], .bf_rs_more[hidden], .bf_rs_mysize[hidden], .bf_rs_results[hidden], .bf_rs_drop[hidden] {display:none;}

/* 내 사이즈 칩 */
.bf_rs_mysize {flex:none; display:inline-flex; align-items:center; gap:4px; height:32px; padding:0 6px 0 12px; border:1px solid #1c222b; border-radius:16px; background:#fff; color:#1c222b;
font-size:12px; font-weight:700; white-space:nowrap; box-sizing:border-box;}
.bf_rs_mysize button {width:20px; height:20px; padding:0; border:0; border-radius:50%; background:#eceef1; color:#465061; font-size:13px; line-height:20px; cursor:pointer;}

/* 필터 창 */
.bf_rs_panel {position:absolute; left:0; right:0; top:100%; z-index:2; margin-top:4px; padding:16px 20px; border:1px solid #e3e6ea; border-radius:14px; background:#fff;
box-shadow:0 18px 40px rgba(28,34,43,.14); color:#1c222b; box-sizing:border-box;}
.bf_rs_panel[hidden], .bf_rs_dim[hidden] {display:none !important;}
.bf_rs_panel_close {padding:0; border:0; border-radius:50%; background:none; color:#465061; cursor:pointer;}
.bf_rs_panel_close:hover {background:#f3f4f6; color:#1c222b;}
.bf_rs_panel:not(.is_mo) .bf_rs_panel_head {position:absolute; top:12px; right:14px;}
.bf_rs_panel:not(.is_mo) .bf_rs_panel_head span {display:none;}
.bf_rs_panel:not(.is_mo) .bf_rs_panel_close {width:36px; height:36px; font-size:28px; line-height:34px;}
.bf_rs_group {display:grid; grid-template-columns:90px 1fr; align-items:center; gap:14px; padding:6px 0;}
.bf_rs_group_label {font-size:13px; font-weight:800;}
.bf_rs_opts {display:flex; flex-wrap:wrap; gap:6px;}
.bf_rs_opt {height:30px; padding:0 13px; border:0; border-radius:15px; background:#f3f4f6; color:#465061; font-size:13px; white-space:nowrap; cursor:pointer;}
.bf_rs_opt:disabled {opacity:.35; cursor:not-allowed;}
.bf_rs_opt:disabled:hover {background:#f3f4f6; color:#465061;}
.bf_rs_remember {display:flex; align-items:center; gap:6px; margin:0 0 0 10px; color:#1c222b; font-size:12px; font-weight:700; cursor:pointer;}
.bf_rs_remember input {width:15px; height:15px; margin:0; accent-color:#1c222b; cursor:pointer;}
.bf_rs_remember em {margin-left:4px; color:#a8b0bb; font-style:normal; font-weight:500;}
.bf_rs_panel_btns {display:flex; justify-content:flex-end; gap:8px; margin-top:12px;}
.bf_rs_panel_reset, .bf_rs_apply {height:38px; padding:0 18px; border-radius:19px; font-size:13px; font-weight:700; cursor:pointer;}
.bf_rs_panel_reset {border:1px solid #d9dde3; background:#fff; color:#465061;}
.bf_rs_apply {border:0; background:#1c222b; color:#fff;}

/* 검색 결과 목록 */
.bf_rs_block_off {display:none !important;}
li.product.bf_rs_off {display:none !important;}

/* 불러오는 중 */
.bf_rs_loading {display:inline-flex; align-items:center; gap:8px; color:#1c222b; font-weight:600;}
.bf_rs_spin {flex:none; width:16px; height:16px; border:2px solid #d9dde3; border-top-color:#ff3b0a; border-radius:50%; box-sizing:border-box; animation:bfRsSpin .8s linear infinite;}
@keyframes bfRsSpin {to {transform:rotate(360deg);}}
mark.bf_rs_mark {background:#fff1b8; color:inherit; padding:0 1px;}
.bf_rs_more {display:block; width:100%; max-width:360px; height:48px; margin:10px auto 60px; border:1px solid #1c222b; border-radius:24px; background:#fff; color:#1c222b;
font-size:14px; font-weight:700; cursor:pointer;}

/* 모바일 (m.4xr.co.kr) */
@media (max-width:768px){
.bf_rs_sticky.is_mo .bf_rs_in {width:auto; min-height:0; padding:8px 20px; gap:12px;}
.bf_rs_bar.is_mo {flex:1 1 auto; height:64px; padding:0 8px 0 22px; border-radius:32px; gap:12px;}
.bf_rs_bar.is_mo .bf_rs_go {width:26px; height:26px;}
.bf_rs_bar.is_mo input {font-size:24px;}
.bf_rs_bar.is_mo .bf_rs_spark {height:32px; padding:0 12px; border-radius:16px; font-size:20px; font-weight:600;}
.bf_rs_bar.is_mo .bf_rs_clear {width:34px; height:34px; font-size:20px; line-height:34px;}
.bf_rs_bar.is_mo .bf_rs_submit {width:48px; height:48px; margin-right:0; background-size:24px;}
.bf_rs_sticky.is_mo .bf_rs_filter_btn {height:64px; padding:0 20px; border-radius:32px; font-size:24px; gap:8px;}
.bf_rs_sticky.is_mo .bf_rs_filter_btn::before {width:22px; height:22px;}
.bf_rs_sticky.is_mo .bf_rs_filter_btn em {min-width:26px; height:26px; border-radius:13px; font-size:15px;}
.bf_rs_drop {position:absolute; left:0; right:0; top:100%; padding:16px 20px 20px; border-top:1px solid #eef0f3; border-radius:0 0 18px 18px; background:#fff; box-shadow:0 16px 30px rgba(28,34,43,.16);}
.bf_rs_chips.is_mo {flex-wrap:wrap; overflow:visible; gap:8px;}
.bf_rs_chips.is_mo .bf_rs_chips_label {flex-basis:100%; margin:0 0 2px; font-size:22px; font-weight:700;}
.bf_rs_chips.is_mo .bf_rs_chip {height:48px; padding:0 18px; border-radius:24px; font-size:22px; line-height:48px;}
.bf_rs_chips.is_mo .bf_rs_chip.is_sentence {line-height:46px;}
.bf_rs_chips.is_mo .bf_rs_mysize {height:48px; padding:0 8px 0 18px; border-radius:24px; font-size:19px; gap:8px;}
.bf_rs_chips.is_mo .bf_rs_mysize button {width:30px; height:30px; font-size:18px; line-height:30px;}
.bf_rs_result.is_mo {flex:none; padding:2px 20px 14px; font-size:20px; gap:8px 12px;}
.bf_rs_result.is_mo .bf_rs_spin {width:26px; height:26px; border-width:3px;}
.bf_rs_result.is_mo .bf_rs_reset {padding:6px 14px; border-radius:20px; font-size:17px;}
.bf_rs_result.is_mo .bf_rs_suggest {flex-basis:100%; font-size:19px; gap:8px;}
.bf_rs_result.is_mo .bf_rs_chip {height:44px; padding:0 16px; border-radius:22px; font-size:18px; line-height:44px;}
.bf_rs_result.is_mo .bf_rs_mynote {font-size:18px;}
.bf_rs_dim {position:fixed; inset:0; z-index:1000; background:rgba(15,19,25,.5);}
.bf_rs_panel.is_mo {position:fixed; left:0; right:0; top:auto; bottom:0; z-index:1001; margin:0; max-height:80vh; overflow-y:auto; padding:22px 24px 26px; border:0; border-radius:24px 24px 0 0;
box-shadow:0 -10px 30px rgba(0,0,0,.15);}
.bf_rs_panel.is_mo .bf_rs_panel_head {display:flex; align-items:center; justify-content:space-between; font-size:28px; font-weight:800;}
.bf_rs_panel.is_mo .bf_rs_panel_close {font-size:40px; line-height:1;}
.bf_rs_panel.is_mo .bf_rs_group {display:block; padding:16px 0 0;}
.bf_rs_panel.is_mo .bf_rs_group_label {display:block; margin-bottom:10px; font-size:20px;}
.bf_rs_panel.is_mo .bf_rs_opts {gap:8px;}
.bf_rs_panel.is_mo .bf_rs_opt {height:48px; padding:0 18px; border-radius:24px; font-size:24px; font-weight:600;}
.bf_rs_panel.is_mo .bf_rs_remember {margin:14px 0 0; font-size:22px; gap:10px;}
.bf_rs_panel.is_mo .bf_rs_remember input {width:24px; height:24px;}
.bf_rs_panel.is_mo .bf_rs_panel_btns {gap:10px; margin-top:24px;}
.bf_rs_panel.is_mo .bf_rs_panel_reset {flex:0 0 32%; height:78px; border-radius:12px; font-size:23px;}
.bf_rs_panel.is_mo .bf_rs_apply {flex:1; height:78px; border-radius:12px; font-size:23px;}
.bf_rs_more.is_mo {width:calc(100% - 40px); max-width:none; height:78px; margin:16px auto 40px; border-radius:39px; font-size:22px;}
}
