:root {
  --text-2xl: 2em; /* 32px */
  --text-xl: 1.5em; /* 24px */
  --text-lg: 1.25em; /* 20px */
  --text-base: 16px;
  --text-sm: 0.875em; /* 14px */

  --wh: #fff;
  --bk: #000;
  --mono-01: #333;
  --mono-02: #666666;
  --mono-03: #696b79;
  --mono-04: #9192a4;
  --mono-05: #c9c9c9;
  --mono-06: #dfe0e8;
  --mono-07: #e8e9ee;
  --mono-08: #fbfbfb;
  --mono-09: #f4f4f5;
  --mono-10: #565868;

  --primary-01: rgba(255, 198, 162, 0.2);
  --primary-02: #ff6e2b;
}
.schedule_container {
  font-family: "Pretendard", sans-serif;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--mono-01);
  box-sizing: border-box;
  width: 95%;
  margin: 0 auto;
}

.schedule_container * {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

@media screen and (max-width: 919px) {
  html:has(.schedule_container),
  body:has(.schedule_container) {
    --text-base: 14px;
  }
}
/* common */
.com_input {
  flex: 1 1 0;
  display: block;
  border-radius: 0;
  padding: 0 12px;
  color: var(--mono-03);
  height: 2.75rem;
  line-height: 2.75rem;
  border: 1px solid var(--mono-06);
}

.radio_btn {
  font-size: var(--text-sm);
  background-color: var(--mono-07);
  padding: 1em;
  border-radius: 10em;
  line-height: 1em;
}
.radio_btn input[type="radio"] {
  display: none;
}
.radio_btn:has(input[type="radio"]:checked) {
  background-color: var(--mono-01);
  color: var(--wh);
}

/* SumoSelect style */
.SumoSelect {
  flex: 1;
}
.SumoSelect > .CaptionCont {
  font-size: var(--text-sm);
  width: 100%;
  height: 3.2em;
  line-height: 3.2em;
  border: 1px solid var(--mono-06);
}
.SumoSelect > .CaptionCont > span {
  padding: 0 12px;
}
.SumoSelect > .CaptionCont > span.placeholder {
  font-style: inherit;
  padding: 0 12px;
  cursor: pointer;
}
.SumoSelect.open > .CaptionCont,
.SumoSelect:hover > .CaptionCont {
  box-shadow: none;
  border-color: var(--mono-06);
}
.SumoSelect:focus > .CaptionCont {
  border-color: var(--primary-02);
}
.SumoSelect > .CaptionCont > label > i {
  background-image: url(https://d3ib83x3z60m0e.cloudfront.net/wp-content/uploads/2025/06/25113627/select_arrow.png);
  margin-right: 12px;
}

.SumoSelect.open > .optWrapper {
  top: calc(100% - 2px);
  box-shadow: none;
  border-radius: 0;
  border-color: var(--primary-02);
  border-top-color: var(--mono-06);
}
.SumoSelect > .optWrapper > .options {
  border-radius: 0;
  padding: 10px 0;
}
.SumoSelect > .optWrapper > .options:has(.group > label) {
  padding-top: 0;
}
.SumoSelect > .optWrapper.multiple > .options li.opt {
  font-size: var(--text-sm);
  padding: 6px;
  padding-left: 40px;
  color: var(--mono-10);
  border: 0;
}
.SumoSelect > .optWrapper.multiple > .options li ul li.opt {
  padding-left: 40px;
}
.SumoSelect .select-all > span,
.SumoSelect > .optWrapper.multiple > .options li.opt span {
  width: 0;
  margin-left: -24px;
}
.SumoSelect .select-all.partial > span i,
.SumoSelect .select-all.selected > span i,
.SumoSelect > .optWrapper.multiple > .options li.opt.selected span i {
  background-color: var(--primary-02);
}
.SumoSelect > .optWrapper.multiple > .options li.opt span i {
  width: 1.25em;
  height: 1.25em;
  border-radius: 4px;
  box-shadow: none;
  border-color: var(--mono-05);
}
.SumoSelect > .optWrapper > .options li.opt:hover {
  background-color: var(--primary-01);
  border-color: var(--primary-01);
  background-size: 50%;
}
.SumoSelect > .optWrapper > .options li label {
  text-overflow: inherit;
  white-space: inherit;
  line-height: 1.25em;
}
.SumoSelect > .optWrapper > .options li.group > label {
  font-size: var(--text-sm);
  padding: 1em 0;
  margin: 0 1.3em;
}
.SumoSelect > .optWrapper > .options li.group:nth-child(n + 2) > label {
  border-top: 1px solid var(--mono-06);
  margin-top: 10px;
}
@media screen and (max-width: 919px) {
  .SumoSelect {
    width: 100%;
    flex: auto;
  }
}
@media screen and (max-width: 399px) {
  .SumoSelect > .optWrapper.isFloating {
    position: absolute;
    width: 100%;
    margin: 0;
    max-height: 500px;
    height: 250% !important;
  }
  .SumoSelect > .optWrapper.multiple.isFloating {
    padding-bottom: 0;
  }
  .SumoSelect > .optWrapper.multiple.isFloating > .MultiControls {
    display: none;
  }
}

/* calendar */
.fair-schedule-calendar-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.5em;
}
.fair-schedule-calendar-header .calendar_navbar {
  display: flex;
  align-items: center;
  gap: 1.75em;
}
.fair-schedule-calendar-header-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-top: -3px;
}
.fair-schedule-calendar-header .calendar_btn {
  width: 2.5em;
  height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: transparent;
  transition: all 0.2s;
  cursor: pointer;
}
.fair-schedule-calendar-header .calendar_btn:hover {
  background-color: var(--mono-09);
}
.fair-schedule-calendar-header .calendar_btn .material-symbols-outlined {
  font-size: var(--text-xl);
  color: var(--mono-03);
}
.fair-schedule-calendar-header .btn_base {
  font-size: var(--text-base);
}

.fair-schedule-calendar-body {
  border-top: 2px solid var(--mono-03);
  border-bottom: 1px solid #e5e5e5;
  width: 100%;
  overflow-x: auto;
}
.fair-schedule-calendar-body .inner {
  min-width: 800px;
}
.fair-schedule-calendar-body
  .toastui-calendar-grid-cell-date
  .toastui-calendar-weekday-grid-date.toastui-calendar-weekday-grid-date-decorator {
  background-color: var(--primary-02);
  width: 32px;
  height: 32px;
  line-height: 31px;
}
.fair-schedule-calendar-body .toastui-calendar-weekday-event-title,
.schedule_container .calendar-event-link,
.schedule_container .calendar-event-link:hover {
  font-weight: 500;
  color: var(--mono-01) !important;
}
@media screen and (max-width: 519px) {
  .fair-schedule-calendar-header {
    flex-direction: column;
  }
  .fair-schedule-calendar-header .calendar_navbar {
    margin: 0 auto 1em;
  }
}
/* button */
.btn_wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25em;
}
.btn_base {
  font-size: var(--text-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  color: var(--mono-03);
  border: 1px solid transparent;
  transition: all 0.2s;
}
.btn_base span {
  font-size: var(--text-xl);
}
.btn_base.dark {
  background-color: var(--mono-01);
  color: var(--wh);
}
.btn_base.dark span {
  color: var(--wh);
}
.btn_base.dark:hover {
  background-color: var(--bk);
}
.btn_base.dark_line {
  border-color: var(--mono-01);
  color: var(--mono-01);
  background-color: var(--mono-08);
}
.btn_base.dark_line:hover {
  background-color: var(--mono-07);
}
.btn_base.wh {
  background-color: var(--wh);
  color: var(--bk);
}
.btn_base.wh:hover {
  background-color: var(--mono-09);
}
.btn_base.md {
  width: 12.14em;
  padding: 10px;
}
.btn_base.sm {
  padding: 10px 1em;
}
.btn_base.text {
  background-color: transparent;
}
.btn_base.text:hover {
  color: var(--primary-02);
}
@media screen and (min-width: 920px) {
  .btn_wrap.column {
    flex-direction: column;
  }
}
@media screen and (max-width: 919px) {
  .btn_wrap {
    width: 100%;
    gap: 8px;
  }
  .btn_wrap .btn_base {
    width: 100%;
  }
}
/* tab */
.tab_btn_box {
  display: flex;
  align-items: center;
  justify-content: center;
}
ul.tab_btn_box li.tab_btn {
  list-style: none;
  color: var(--mono-03);
  width: 50%;
  max-width: 290px;
  text-align: center;
  background-color: var(--mono-06);
  transition: all 0.2s;
}
.tab_btn_box .tab_btn .inner {
  font-size: var(--text-sm);
  display: block;
  width: 100%;
  padding: 1em 10px;
  color: var(--mono-03);
}
.tab_btn_box .tab_btn.active,
.tab_btn_box .tab_btn.active:hover {
  background-color: var(--primary-02);
  color: var(--wh);
  font-weight: 700;
}

.tab_btn_box .tab_btn.active .inner {
  color: var(--wh);
}

.tab_btn_box .tab_btn:hover {
  background-color: var(--mono-07);
}
.tab_cont_wrap {
  display: none;
}
.tab_cont_wrap.active {
  display: block;
}

/* filter */
.filter_wrap {
  background-color: var(--mono-08);
  border-radius: 1em;
  border: 1px solid var(--mono-06);
  margin: 2.875em 0 3.44em;
}
.filter_wrap .filter_top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.875em;
  border-bottom: 1px solid var(--mono-06);
}
.filter_wrap .filter_tit {
  font-size: var(--text-xl);
  font-weight: 700;
}
.filter_wrap .filter_field {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
}
.filter_wrap .select_box {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25em;
  flex: 1;
}
.filter_wrap .schedule_date_box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.filter_wrap .schedule_date_box .date_box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 0;
}

.filter_wrap .filter_bottom {
  padding: 1.875em;
  display: flex;
}
.filter_bottom .sorting_list {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  flex: 1 1 0;
  padding-right: 1em;
}
.filter_bottom .sorting_list .item {
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--mono-03);
  font-weight: 600;
}
.filter_bottom .sorting_list .item .del_btn {
  color: var(--mono-05);
  font-size: var(--text-xl);
  cursor: pointer;
}

@media screen and (min-width: 920px) {
  .filter_wrap .filter_field {
    padding: 0 10%;
    gap: 1.25em;
  }
  .filter_wrap .radio_btn:last-child {
    padding-left: 12px;
  }
}
@media screen and (max-width: 919px) {
  .filter_wrap .select_box {
    gap: 8px;
  }
  .filter_wrap .filter_top {
    flex-direction: column;
    gap: 1.25em;
    padding: 1.42em;
  }
  .filter_wrap .filter_bottom {
    flex-direction: column;
    padding: 1.42em;
  }
  .filter_bottom .sorting_list {
    padding: 0 0 10px;
  }
  .filter_wrap .filter_bottom .reset_btn {
    justify-content: flex-end;
  }
}
@media screen and (max-width: 519px) {
  .filter_wrap .schedule_date_box .date_box {
    flex-direction: column;
    width: 100%;
    flex: auto;
  }
  .filter_wrap .schedule_date_box .date_box .com_input {
    width: 100%;
  }
  .filter_wrap .schedule_date_box .at {
    display: none;
  }
}

/* fair_list_wrap */
.fair_list_wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5em 1.25em;
}
ul.fair_list_wrap li.item {
  list-style: none;
}

.fair_list_wrap .item a {
  display: block;
  width: 100%;
}
.fair_list_wrap .item .img_box {
  position: relative;
  border: 1px solid #e4e4e4;
}
.fair_list_wrap .item .img_box .btn_base {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 1;
}
.fair_list_wrap .item a:hover .img_box .btn_base {
  opacity: 1;
}
.fair_list_wrap .item a:hover .img_box::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.2);
  transition: all 0.2s;
}
.fair_list_wrap .item .txt_box {
  font-size: var(--text-sm);
  line-height: 1.5em;
  padding-top: 1.25em;
  color: var(--mono-02);
}
.fair_list_wrap .item .txt_box .tit {
  font-size: 1.28em;
  font-weight: 700;
  color: var(--bk);
  line-height: 1.25em;
}
.fair_list_wrap .item .txt_box .location {
  color: var(--primary-02);
  padding: 1em 0 0;
}
.fair_list_wrap .item .txt_box .schedule_date {
  color: var(--mono-03);
  margin: 0;
}
@media screen and (max-width: 919px) {
  .fair_list_wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
  }
  .fair_list_wrap .item .img_box img {
    display: block;
    width: 100%;
  }
  .fair_list_wrap .item .img_box .btn_base {
    width: 90%;
  }

  .fair-schedule-calendar {
    position: relative;
  }
  .toastui-calendar-see-more-container {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
  }
  .toastui-calendar-see-more {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 15px 2px !important;
  }
}
