#stay-fields {
  --wsf-ink: #193e38;
  --wsf-muted: #586e67;
  --wsf-border: #d9e2da;
  --wsf-forest: #145d53;
  --wsf-mint: #edf5ef;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  color: var(--wsf-ink);
}
#stay-fields *, #stay-fields *::before, #stay-fields *::after { box-sizing: border-box; }
#stay-fields [hidden] { display: none !important; }
#stay-fields button, #stay-fields select, #stay-fields input { font: inherit; }
#stay-fields button {
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#stay-fields button:disabled { cursor: default; }
#stay-fields :where(button, select, input):focus-visible {
  outline: 2px solid #26796c;
  outline-offset: 2px;
}
#stay-fields svg { display: block; width: 18px; height: 18px; flex-shrink: 0; }
#stay-fields .wsf-trigger {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  gap: 7px;
  padding: 9px clamp(10px, 1.25vw, 20px);
  border: 0;
  border-right: 1px solid var(--wsf-border);
  border-radius: 0;
  background: transparent;
  color: var(--wsf-ink);
  text-align: left;
}
#stay-fields .wsf-trigger:first-child { padding-left: 0; }
#stay-fields .wsf-trigger:last-of-type { border-right: 0; }
#stay-fields .wsf-trigger:hover .wsf-value,
#stay-fields .wsf-trigger[aria-expanded="true"] .wsf-value { color: var(--wsf-forest); }
.wsf-label { display: inline-flex; align-items: center; gap: 7px; color: var(--wsf-muted); font-size: 12px; line-height: 1.35; }
#stay-fields .wsf-label svg { width: 16px; height: 16px; color: #4f796c; }
.wsf-valuerow { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-width: 0; }
.wsf-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: clamp(14px, 1.14vw, 17px); line-height: 1.5; }
.wsf-weekday { margin-left: .35em; font-size: .73em; color: var(--wsf-muted); font-weight: 400; }
#stay-fields .wsf-caret svg { color: #697f76; width: 13px; height: 13px; }
.wsf-pop {
  display: block;
  position: absolute;
  z-index: 50;
  top: var(--wsf-top, 100%);
  left: var(--wsf-left, 0);
  width: min(320px, calc(100vw - 36px));
  max-height: min(435px, 77dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 17px;
  border: 1px solid var(--wsf-border);
  border-radius: 15px;
  background: #fffefa;
  color: var(--wsf-ink);
  box-shadow: 0 18px 56px -15px #193e383b, 0 3px 12px #1439310a;
  text-align: left;
}
.wsf-cal-head, .wsf-counterrow, .wsf-counter, .wsf-age, .wsf-room, .wsf-datefoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wsf-cal-head { margin: 0 0 10px; font-size: 15px; }
#stay-fields .wsf-nav, #stay-fields .wsf-countbtn {
  display: grid; place-items: center;
  width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--wsf-border);
  border-radius: 50%;
  background: transparent;
}
#stay-fields .wsf-nav:disabled, #stay-fields .wsf-countbtn:disabled { opacity: .35; }
#stay-fields .wsf-nav svg { height: 15px; width: 15px; }
.wsf-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.wsf-dow { text-align: center; font-size: 11px; color: var(--wsf-muted); padding: 5px 0; }
#stay-fields .wsf-day {
  display: grid; place-items: center;
  width: 100%; height: 33px;
  padding: 0; border: 0; border-radius: 7px;
  background: transparent; font-size: 13px; font-variant-numeric: tabular-nums;
}
#stay-fields .wsf-day.wsf-range, #stay-fields .wsf-day:not(:disabled):hover,
#stay-fields .wsf-nav:not(:disabled):hover, #stay-fields .wsf-countbtn:not(:disabled):hover { background: var(--wsf-mint); }
#stay-fields .wsf-day.wsf-endpoint { background: #dbeae1; color: var(--wsf-forest); font-weight: 650; }
#stay-fields .wsf-day[aria-pressed="true"] { color: white; background: var(--wsf-forest); }
#stay-fields .wsf-day:disabled { opacity: .35; }
.wsf-datefoot { align-items: flex-end; gap: 9px; margin-top: 13px; border-top: 1px solid var(--wsf-border); padding-top: 11px; }
.wsf-manual { display: grid; flex: 1; gap: 5px; min-width: 0; font-size: 11px; color: var(--wsf-muted); }
#stay-fields .wsf-manual input, #stay-fields .wsf-age select {
  width: 100%; min-width: 0; min-height: 34px; padding: 3px 7px;
  border: 1px solid var(--wsf-border); border-radius: 5px;
  background: #fff; color: var(--wsf-ink); font-size: 13px; color-scheme: light;
}
#stay-fields .wsf-manual-apply, #stay-fields .wsf-done {
  min-height: 34px; padding: 6px 13px; border: 0; border-radius: 6px;
  background: var(--wsf-forest); color: #fff; font-size: 13px; font-weight: 600;
}
.wsf-counterrow { min-height: 56px; gap: 14px; }
.wsf-counterrow + .wsf-counterrow { border-top: 1px solid var(--wsf-border); }
.wsf-countername { font-size: 14px; font-weight: 600; }
.wsf-countername small, .wsf-room small { display: block; color: var(--wsf-muted); font-weight: 400; letter-spacing: .01em; }
.wsf-countername small { margin-top: 3px; font-size: 11px; }
.wsf-counter { gap: 10px; }
.wsf-counter strong { min-width: 20px; text-align: center; font-size: 15px; }
#stay-fields .wsf-countbtn { width: 29px; height: 29px; font-size: 18px; line-height: 1; }
.wsf-ages { display: grid; gap: 8px; margin: 5px 0; padding: 10px 0 4px; border-top: 1px solid var(--wsf-border); }
.wsf-age { font-size: 13px; }
#stay-fields .wsf-age select { width: 110px; }
#stay-fields .wsf-age select[aria-invalid="true"] { border-color: #b15233; }
#stay-fields .wsf-done { width: 100%; margin-top: 12px; }
.wsf-pop[data-type="room"] { padding: 6px; width: min(276px, calc(100vw - 36px)); }
.wsf-roomlist { display: grid; gap: 2px; }
#stay-fields .wsf-room {
  width: 100%; min-height: 40px; gap: 8px; padding: 9px 12px;
  border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: 14px;
}
.wsf-room small { margin-top: 2px; font-size: 11px; }
#stay-fields .wsf-room[aria-pressed="true"], #stay-fields .wsf-room:hover { background: var(--wsf-mint); }
#stay-fields .wsf-roomcheck svg { width: 17px; height: 17px; color: var(--wsf-forest); }
.wsf-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
  #stay-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  #stay-fields .wsf-trigger { min-height: 60px; padding: 7px 12px; }
  #stay-fields .wsf-trigger:nth-child(odd) { padding-left: 0; }
  #stay-fields .wsf-trigger:nth-child(even) { border-right: 0; padding-right: 0; }
  .wsf-value { font-size: 15px; }
  .wsf-weekday { font-size: 11px; }
  .wsf-pop { max-width: 100%; }
}
