/* 4XR 상품 검색 (공통) — 기획전 관련상품 검색 모양 (layout:'issue') */
.bf_rs_sticky, .bf_rs_panel, .bf_rs_more {font-family:'Pretendard', sans-serif;}
:is(.bf_rs_sticky, .bf_rs_panel) :is(button, input) {font-family:inherit;}
.bf_rs_head {display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px;}
.bf_rs_head > #link_sh_relation {flex:1 1 auto; min-width:0; width:auto !important; margin-bottom:0 !important;}
.bf_rs_head > .bf_rs_bar {flex:none;}
.bf_rs_bar {display:flex; align-items:center; gap:10px; width:360px; max-width:100%; height:42px; padding:0 16px 0 18px; border-radius:21px; background:#f3f4f6; box-sizing:border-box;}
.bf_rs_go {flex:none; width:17px; height:17px; padding:0; border:0; background:transparent 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:#a8b0bb; font-weight:500;}
.bf_rs_bar input::-webkit-search-cancel-button {display:none;}
.bf_rs_hint {flex:none; color:#7b8493; font-size:13px; white-space:nowrap;}
.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.has_value .bf_rs_hint, .bf_rs_bar:not(.has_value) .bf_rs_clear {display:none;}
.bf_rs_submit {flex:none; width:30px; height:30px; margin-right:-8px; padding:0; border:0; border-radius:50%; cursor:pointer;
  background:#1c222b no-repeat center/16px 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_result {display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; margin:0 0 18px; color:#465061; font-size:15px;}
.bf_rs_result[hidden], .bf_rs_chips[hidden], .bf_rs_filter_btn em[hidden], .bf_rs_more[hidden], .bf_rs_mysize[hidden] {display:none;}
.bf_rs_sub {display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin:-6px 0 20px;}
.bf_rs_sticky {position:sticky; top:0; z-index:99; margin-bottom:14px; padding:14px 0; background:#fff; transition:top .3s ease;}
.bf_rs_sticky::before {content:''; position:absolute; top:0; bottom:0; left:calc(-1 * var(--bf-rs-bl, 0px)); right:calc(-1 * var(--bf-rs-br, 0px)); z-index:-1; background:#fff; pointer-events:none; transition:box-shadow .2s ease;}
.bf_rs_sticky.is_stuck::before {box-shadow:0 10px 18px -12px rgba(28,34,43,.28);}
.bf_rs_sticky .bf_rs_head {margin-bottom:14px;}
.bf_rs_sticky .bf_rs_sub {margin:0;}
.bf_rs_sub .bf_rs_result {margin:0;}
.bf_rs_result.is_pc {flex:none; width:360px; max-width:100%; margin-left:auto; padding:6px 0 0; justify-content:flex-end; text-align:right; box-sizing:border-box;}
.bf_rs_chips {display:flex; flex-wrap:wrap; align-items:center; gap:6px; min-width:0;}
/* 추천 검색어 */
.bf_rs_chips_label {flex:none; margin-right: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_again {border-color:#ffb9a6; color:#c22a05;}
.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;}
li.product.bf_rs_off, .bf_rs_hide_more {display:none !important;}
mark.bf_rs_mark {background:#fff1b8; color:inherit; padding:0 1px;}
/* 추천 문장 */
.bf_rs_spark {flex:none; display:inline-flex; align-items:center; height:22px; padding:0 8px; border-radius:11px; background:#1c222b; color:#fff; font-size:11px; font-weight:800; white-space:nowrap;}
.bf_rs_bar.has_value:not(.is_sentence) .bf_rs_spark {display:none;}
.bf_rs_bar.has_sentences .bf_rs_hint {display:none;}
.bf_rs_bar.has_sentences input::placeholder {color:#979fac; font-weight:600;}
.bf_rs_chip.is_sentence {border:1px solid #e3e6ea; background:#fff; color:#1c222b; line-height:28px;}
.bf_rs_chip.is_sentence::before {content:'\2726'; margin-right:4px; color:#ff3b0a;}
.bf_rs_chip.is_sentence:hover {border-color:#1c222b; background:#fff;}
.bf_rs_chip.is_sentence.on {border-color:#1c222b; background:#fff; color:#1c222b; font-weight:700;}
.bf_rs_chip.is_sentence.on::before {color:#ff3b0a;}
/* 필터 버튼 · 패널 */
.bf_rs_head > .bf_rs_filter_btn {flex:none; margin-left:-10px;}
.bf_rs_filter_btn {display:inline-flex; align-items:center; gap:6px; height:42px; padding:0 16px; border:1px solid #1c222b; border-radius:21px; 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_panel {margin-top:14px; padding:16px 20px; border:1px solid #e3e6ea; border-radius:14px; background:#fff; box-shadow:0 18px 40px rgba(28,34,43,.12); color:#1c222b;}
.bf_rs_panel[hidden], .bf_rs_dim[hidden] {display:none !important;}
.bf_rs_panel_head {display:none;}
.bf_rs_panel:not(.is_mo) {position:relative;}
.bf_rs_panel:not(.is_mo) .bf_rs_panel_head {display:block; 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; padding:0; border-radius:50%; color:#465061; font-size:28px; line-height:34px; transition:background-color .15s ease;}
.bf_rs_panel:not(.is_mo) .bf_rs_panel_close:hover {background:#f3f4f6; color:#1c222b;}
.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_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_more {display:block; width:100%; max-width:360px; height:48px; margin:10px auto 0; border:1px solid #1c222b; border-radius:24px; background:#fff; color:#1c222b;
  font-size:14px; font-weight:700; cursor:pointer;}
/* 내 사이즈 · 기억하기 · 선택지 개수 · 제안 */
.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_head > .bf_rs_mysize {margin-left:-10px;}
.bf_rs_remember {display:flex; align-items:center; gap:6px; margin:0 0 6px 104px; 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_opts .bf_rs_remember {margin:0 0 0 10px;}
.bf_rs_remember em {margin-left:4px; color:#a8b0bb; font-style:normal; font-weight:500;}
.bf_rs_opt:disabled {opacity:.35; cursor:not-allowed;}
.bf_rs_opt:disabled:hover {background:#f3f4f6; color:#465061;}
.bf_rs_suggest {display:inline-flex; flex-wrap:wrap; align-items:center; gap:6px; color:#465061; font-size:13px;}
.bf_rs_result.is_pc:has(.bf_rs_suggest) {width:480px;}
.bf_rs_result.is_pc .bf_rs_suggest {flex-basis:100%; justify-content:flex-end;}
.bf_rs_result.is_pc .bf_rs_suggest_label {flex-basis:100%; margin-bottom:2px;}
.bf_rs_mynote {flex-basis:100%; color:#1c222b; font-size:12px; font-weight:600;}

/* 모바일 (m.4xr.co.kr) */
@media (max-width:768px){
.bf_rs_bar.is_mo {width:auto; height:78px; margin:0 20px 22px; padding:0 26px 0 28px; border-radius:39px; gap:14px;}
.bf_rs_bar.is_mo .bf_rs_go {width:28px; height:28px;}
.bf_rs_bar.is_mo input {font-size:24px;}
.bf_rs_bar.is_mo .bf_rs_hint {font-size:20px;}
.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:50px; height:50px; margin-right:-12px; background-size:26px;}
.bf_rs_result.is_mo {margin:0 20px 22px; font-size:21px; gap:10px 12px;}
.bf_rs_chips.is_mo {flex-wrap:nowrap; gap:8px; margin:-8px 0 20px; padding:0 20px; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch;}
.bf_rs_sticky.is_mo {margin-bottom:10px; padding:16px 0 14px;}
.bf_rs_sticky.is_mo .bf_rs_bar.is_mo {margin-bottom:14px;}
.bf_rs_sticky.is_mo .bf_rs_chips.is_mo {margin:0;}
.bf_rs_sticky.is_mo .bf_rs_result.is_mo {margin:14px 20px 0;}
.bf_rs_chips.is_mo::-webkit-scrollbar {display:none;}
.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_chips_label {font-size:22px; margin-right:4px; font-weight: 700;}
.bf_rs_result.is_mo .bf_rs_reset {padding:6px 14px; border-radius:20px; font-size:17px;}
/* 모바일 : 필터 버튼 · 아래 창 */
.bf_rs_barrow {display:flex; align-items:center; gap:12px; margin:0 20px 14px;}
.bf_rs_sticky.is_mo .bf_rs_barrow .bf_rs_bar.is_mo {flex:1 1 auto; min-width:0; margin:0;}
.bf_rs_bar.is_mo .bf_rs_spark {height:32px; padding:0 12px; border-radius:16px; font-size:20px; font-weight: 600;}
.bf_rs_barrow .bf_rs_filter_btn {height:78px; padding:0 22px; border-radius:39px; font-size:24px; gap:8px;}
.bf_rs_barrow .bf_rs_filter_btn::before {width:22px; height:22px;}
.bf_rs_barrow .bf_rs_filter_btn em {min-width:26px; height:26px; border-radius:13px; font-size:15px;}
.bf_rs_chips.is_mo .bf_rs_chip.is_sentence {line-height:46px;}
.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; 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); box-sizing:border-box;}
.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_close {padding:0 4px; border:0; background:none; color:#1c222b; font-size:40px; line-height:1; cursor:pointer;}
.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_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-top:16px; border-radius:39px; font-size:22px;}
.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_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_result.is_mo .bf_rs_suggest {flex-basis:100%; font-size:19px; gap:8px;}
.bf_rs_result.is_mo .bf_rs_suggest_label {flex-basis:100%;}
.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;}
}
