.chsf-shell {
display: block;
width: 100%;
box-sizing: border-box;
font-family: 'Noto Sans Thai', sans-serif;
} body .main-box:has(.chsf-shell) {
margin-bottom: 22px !important;
} .chsf-shell button:hover {
background-image: none !important;
}
.chsf-box {  border: 1px solid #DCD9CF;
border-radius: 16px;
background: #F7F6F3;
padding: 16px 20px;
width: 100%;
box-sizing: border-box; font-family: 'Noto Sans Thai', sans-serif;
transition: border-radius 0.25s ease;
} .chsf-shell[data-expanded="1"] .chsf-box {
border-radius: 0 16px 16px 16px;
}
.chsf-form { display: block; } .chsf-collapsed-row {
display: flex; gap: 10px;
max-height: 46px;
opacity: 1;
overflow: hidden;
transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.25s ease;
}
.chsf-shell[data-expanded="1"] .chsf-collapsed-row {
max-height: 0;
opacity: 0;
margin: 0;
pointer-events: none;
} .chsf-search-pill {
flex: 1;
display: flex;
align-items: center;
gap: 8px;
background: #ffffff;
border: 1px solid #E4E0D6;
border-radius: 12px;
padding: 0 14px;
height: 46px;
box-sizing: border-box;
}
.chsf-search-icon {
flex: 0 0 auto;
}
.chsf-search-input {
flex: 1;
min-width: 0; border: none !important;
background: transparent !important;
padding: 0 !important;
height: 100% !important; font-size: 13.5px !important;
line-height: 1.5 !important;
color: #3b3733 !important; appearance: none !important;
-webkit-appearance: none !important;
outline: none !important;
box-sizing: border-box !important; font-family: inherit !important;
}
.chsf-search-input::placeholder {
color: #A6A196;
}
.chsf-search-btn { width: 46px !important;
height: 46px !important;
min-width: 46px !important;
padding: 0 !important;
flex-shrink: 0;
background: #f15a29;
color: #fff;
border: none;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer; font-family: inherit;
} .chsf-toggle-detail {
display: flex; width: 100%;
justify-content: center;
align-items: center;
gap: 6px;
padding: 12px 0 4px;
background: none;
border: none;
color: #3b3733;
font-size: 13px;
font-weight: 700;
cursor: pointer; font-family: inherit;
}
.chsf-chevron { transition: transform 0.25s ease; }
.chsf-shell[data-expanded="1"] .chsf-chevron { transform: rotate(180deg); } .chsf-tabs {
display: flex;
gap: 4px;
max-height: 0;
opacity: 0;
overflow: hidden;
transition: max-height 0.25s ease, opacity 0.2s ease;
margin-top: 0;
} .chsf-shell[data-expanded="1"] .chsf-tabs {
max-height: 60px;
opacity: 1;
}
.chsf-tab {
border: none;
cursor: pointer;
font-family: inherit;
font-size: 13.5px;
font-weight: 700;
padding: 10px 24px;
border-radius: 12px 12px 0 0;
background: #E4E1D6;
color: #72716a;
}
.chsf-tab.is-active {
background: #3b3733;
color: #ffffff;
}
.chsf-tab-count { color: #8a887f; font-weight: 600; } .chsf-full {
max-height: 0;
opacity: 0;
overflow: hidden;
transition: max-height 0.3s ease, opacity 0.25s ease;
}
.chsf-shell[data-expanded="1"] .chsf-full {
max-height: 2400px;
opacity: 1;
margin-top: 14px;
} .chsf-field-row {
display: flex;
gap: 14px;
flex-wrap: wrap;
align-items: flex-start;
margin-bottom: 18px;
}
.chsf-panel[data-panel] { display: none; } .chsf-panel.chsf-panel-visible { display: block; } .chsf-field-row > .chsf-panel.chsf-panel-visible {
display: flex;
flex-direction: column;
gap: 6px;
}
.chsf-field-cat, .chsf-field-subj, .chsf-field-province, .chsf-field-price, .chsf-field-uni {
flex: 1;
min-width: 170px;
} .chsf-field-subj { min-width: 190px; }
.chsf-field-grade { flex: 1.2; min-width: 210px; }
.chsf-field-contest-subtype { flex: 1.6; min-width: 260px; }
.chsf-label, .chsf-mini-label {
display: block; font-size: 12px;
font-weight: 600;
color: #72716a;
} .chsf-dd-wrap {
border: 1px solid #DCD9CF;
border-radius: 10px;
background: #fff;
padding: 10px 14px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.chsf-select {
flex: 1;
min-width: 0;
border: none !important;
background: transparent !important;
appearance: none !important;
-webkit-appearance: none !important;
outline: none !important;
padding: 0 !important;
font-size: 13.5px !important;
font-family: inherit !important;
color: #3b3733 !important;
cursor: pointer; height: 20px !important;
line-height: 20px !important;
}
.chsf-dd-icon { flex: 0 0 auto; pointer-events: none; transition: transform 0.2s ease; } .chsf-combo {
position: relative;
}
.chsf-combo-trigger { all: unset;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
width: 100%;
border: 1px solid #DCD9CF;
border-radius: 10px;
background: #fff;
padding: 10px 14px;
cursor: pointer;
font-family: inherit;
}
.chsf-combo-trigger[aria-expanded="true"] .chsf-dd-icon {
transform: rotate(180deg);
}
.chsf-combo-summary {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: left;
font-size: 13.5px;
color: #3b3733;
}
.chsf-combo-panel {
position: absolute;
top: calc(100% + 6px);
left: 0;
right: 0;
z-index: 30;
background: #fff;
border: 1px solid #DCD9CF;
border-radius: 10px;
padding: 10px;
box-shadow: 0 8px 24px rgba(59, 55, 51, 0.14);
box-sizing: border-box;
} @media (min-width: 601px) {
.chsf-field-province .chsf-combo-panel,
.chsf-field-price .chsf-combo-panel {
left: auto;
right: 0;
width: 260px;
}
} @media (min-width: 601px) {
.chsf-field-cat .chsf-combo-panel {
left: 0;
right: auto;
width: 280px;
}
} @media (min-width: 601px) {
.chsf-field-subj .chsf-combo-panel {
left: 0;
right: auto;
width: 300px;
}
}
.chsf-combo-panel[hidden] {
display: none;
}
.chsf-combo-search {
display: flex;
align-items: center;
gap: 8px;
border: 1px solid #E4E0D6;
border-radius: 8px;
padding: 8px 10px;
margin-bottom: 8px;
flex-shrink: 0;
}
.chsf-combo-search-input {
all: unset;
box-sizing: border-box;
flex: 1;
min-width: 0;
font-size: 13px;
font-family: inherit;
color: #3b3733;
}
.chsf-combo-options {
max-height: 220px;
overflow-y: auto;
overflow-x: hidden;
display: flex;
flex-direction: column;
gap: 2px;
}
.chsf-combo-option {
border-radius: 6px;
}
.chsf-combo-option[hidden] {
display: none;
}
.chsf-combo-option .op-chk {
padding: 6px 6px;
border-radius: 6px;
}
.chsf-combo-option .op-chk:hover {
background: #F7F6F3;
}
.chsf-combo-empty {
padding: 8px 4px 2px;
margin: 0;
} .chsf-grade-box {
border: 1px solid #DCD9CF;
border-radius: 10px;
background: #fff;
padding: 8px 14px;
display: flex;
flex-direction: column;
gap: 6px;
}
.chsf-grade-grid {
display: flex;
flex-wrap: wrap;
gap: 4px 10px;
}
.chsf-grade-secondary {
padding-top: 4px;
border-top: 1px solid #F2F1EE;
}
.op-chk {
display: flex;
align-items: center;
gap: 8px;
font-size: 13.5px;
color: #3b3733;
padding: 2px 0;
cursor: pointer;
} .chsf-grade-cb, .chsf-combo-cb { position: absolute; opacity: 0; width: 0; height: 0; }
.op-box {
width: 14px;
height: 14px;
border-radius: 5px;
border: 1.5px solid #DCD9CF;
background: #fff;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.op-check-icon { display: none; }
.chsf-grade-cb:checked + .op-box,
.chsf-combo-cb:checked + .op-box {
background: #f15a29;
border-color: #f15a29;
}
.chsf-grade-cb:checked + .op-box .op-check-icon,
.chsf-combo-cb:checked + .op-box .op-check-icon { display: block; }
.chsf-grade-more {
display: flex;
align-items: center;
gap: 4px;
padding-top: 4px;
border-top: 1px solid #F2F1EE;
background: none;
border-left: none;
border-right: none;
border-bottom: none;
color: #f15a29;
font-size: 12px;
font-weight: 600;
font-family: inherit;
cursor: pointer;
}
.chsf-grade-more[hidden], .chsf-grade-secondary[hidden] { display: none; } .chsf-panel.chsf-panel-visible.chsf-props-row {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 18px;
}
.chsf-chip-wrap {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.op-chip {
display: inline-flex;
align-items: center;
gap: 6px;
border-radius: 999px;
padding: 6px 14px;
font-size: 12.5px;
font-weight: 600;
color: #72716a;
background: #F2F1EE;
cursor: pointer;
user-select: none;
}
.op-chip input { display: none; }
.chsf-chip-solid:has(input:checked) {
background: #3b3733;
color: #fff;
}
.chsf-chip-solid.is-checked {
background: #3b3733;
color: #fff;
}
.chsf-chip-contest {
font-size: 11.5px;
padding: 5px 11px;
}
.chsf-chip-contest:has(input:checked) {
background: #FDECDD;
color: #B34817;
}
.chsf-chip-contest.is-checked {
background: #FDECDD;
color: #B34817;
}
.chsf-empty-note {
font-size: 12px;
color: #99968c;
margin: 0;
}
.chsf-result-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px; padding-top: 12px;
border-top: 1px solid #EFECE4;
}
.chsf-result-text { font-size: 15px; color: #3b3733; }
.chsf-result-count { color: #f15a29; font-weight: 700; }
.chsf-submit-btn {
flex-shrink: 0;
background: #f15a29;
color: #fff;
border: none;
border-radius: 999px;
padding: 14px 36px;
font-size: 16px;
font-weight: 700;
cursor: pointer;
font-family: inherit;
} .chsf-results-page { max-width: 1100px; margin: 0 auto; padding: 32px 16px 64px; } .chsf-results-title { font-family: 'AnantasonWeb', 'Sukhumvit Set', 'Tahoma'; margin: 0 0 18px; font-size: 22px; font-weight: 700; color: #3b3733; line-height: 1.5em; }
.chsf-results-summary { margin: 18px 0; font-size: 14px; color: #72716a; }
.chsf-empty-state { text-align: center; padding: 48px 16px; color: #72716a; }
.chsf-results-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 20px;
}
.chsf-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.chsf-pagination .page-numbers {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 36px;
height: 36px;
border: 1px solid #E4E1D8;
border-radius: 8px;
color: #3b3733;
text-decoration: none;
padding: 0 10px;
}
.chsf-pagination .page-numbers.current { background: #f15a29; color: #fff; border-color: #f15a29; } @media (max-width: 600px) {
.chsf-results-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.chsf-box { padding: 14px; }
.chsf-tab {
flex: 1;
padding: 10px 4px;
font-size: 12.5px;
text-align: center;
} .chsf-shell[data-expanded="1"] .chsf-box {
border-radius: 0 0 16px 16px;
} .chsf-collapsed-row {
gap: 0;
align-items: center;
background: #ffffff;
border: 1px solid #E4E0D6;
border-radius: 12px;
padding: 0 6px 0 14px;
height: 46px;
box-sizing: border-box;
}
.chsf-search-pill {
border: none;
background: transparent;
padding: 0;
height: auto;
}
.chsf-search-btn {
width: 36px !important;
height: 36px !important;
min-width: 36px !important;
border-radius: 10px;
} .chsf-field-row { flex-direction: column; gap: 14px; }
.chsf-field-cat, .chsf-field-subj, .chsf-field-province, .chsf-field-price, .chsf-field-uni,
.chsf-field-grade, .chsf-field-contest-subtype {
flex: none;
min-width: 0;
width: 100%;
}
.chsf-label, .chsf-mini-label { font-size: 11.5px; }
.chsf-dd-wrap { padding: 10px 12px; }
.chsf-select { font-size: 13px !important; } .chsf-combo-trigger { padding: 10px 12px; }
.chsf-combo-summary { font-size: 13px; }
.op-chk { gap: 6px; font-size: 12.5px; }
.op-chip { padding: 5px 11px; font-size: 11.5px; }
.chsf-props-row { flex-wrap: wrap; }
.chsf-result-row {
flex-direction: column;
align-items: stretch;
gap: 10px;
}
.chsf-result-text { font-size: 14.5px; }
.chsf-submit-btn { width: 100%; padding: 14px 0; font-size: 15px; }
} .chsf-search-pill-full {
margin: 6px 0 16px 0;
}