
.stay-compare {
  --sc-ink: #183844;
  --sc-muted: #445d66;
  --sc-line: #a8bcb5;
  --sc-green: #215941;
  margin: 2rem 0;
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid var(--sc-line);
  border-radius: 14px;
  background: #f6faf7;
  color: var(--sc-ink);
  min-width: 0;
  overflow-wrap: anywhere;
}
.stay-compare *, .stay-compare *::before, .stay-compare *::after { box-sizing: border-box; }
.stay-compare h3 { margin: 0 0 .75rem; color: var(--sc-ink); line-height: 1.55; }
.stay-compare h4 { margin: 0 0 .65rem; font-size: 1.1rem; color: var(--sc-ink); }
.stay-compare p { margin: .6rem 0; line-height: 1.85; }
.stay-compare .stay-compare__intro { margin-top: 0; }
.stay-compare .stay-compare__note { color: var(--sc-muted); font-size: .9rem; line-height: 1.8; }
.stay-compare .stay-compare__context,
.stay-compare .stay-compare__options,
.stay-compare .stay-compare__results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.stay-compare .stay-compare__context { max-width: 28rem; margin: 1rem 0; }
.stay-compare fieldset { min-width: 0; margin: 0; padding: 1rem; border: 1px solid var(--sc-line); border-radius: 8px; background: #fff; }
.stay-compare legend { padding: 0 .35rem; font-weight: 700; font-size: 1.05rem; color: var(--sc-ink); }
.stay-compare .stay-compare__field { display: block; min-width: 0; margin: 0 0 1rem; }
.stay-compare .stay-compare__field:last-child { margin-bottom: 0; }
.stay-compare label { display: block; margin-bottom: .35rem; font-weight: 700; line-height: 1.6; }
.stay-compare input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  padding: .65rem .75rem;
  border: 1px solid #6b858b;
  border-radius: 6px;
  background: #fff;
  color: var(--sc-ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
}
.stay-compare input[aria-invalid="true"] { border: 2px solid #a52c1f; }
.stay-compare .stay-compare__error { margin: .3rem 0 0; color: #9b271c; font-size: .9rem; line-height: 1.65; }
.stay-compare .stay-compare__error:empty { display: none; }
.stay-compare .stay-compare__hint { display: block; margin: .3rem 0 0; font-size: .85rem; color: var(--sc-muted); line-height: 1.7; }
.stay-compare [data-sc-controls] { display: none; }
.stay-compare[data-ready="true"] [data-sc-controls] { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }
.stay-compare button {
  max-width: 100%;
  min-height: 48px;
  padding: .7rem 1rem;
  border: 2px solid var(--sc-green);
  border-radius: 6px;
  background: var(--sc-green);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: normal;
  cursor: pointer;
}
.stay-compare button[data-sc-reset] { background: #fff; color: var(--sc-green); }
.stay-compare :is(input, button, a, [tabindex]):focus-visible { outline: 3px solid #073e91; outline-offset: 3px; }
.stay-compare .stay-compare__summary { padding: .85rem 1rem; border-left: 4px solid var(--sc-green); background: #e9f2ec; font-weight: 700; }
.stay-compare .stay-compare__result-card { min-width: 0; padding: 1rem; border: 1px solid var(--sc-line); border-radius: 8px; background: #fff; }
.stay-compare dl { margin: 0; }
.stay-compare .stay-compare__result-row { display: grid; gap: .15rem; padding: .6rem 0; border-bottom: 1px solid #d7e2dd; }
.stay-compare .stay-compare__result-row:last-child { border-bottom: 0; }
.stay-compare dt { font-size: .85rem; color: var(--sc-muted); line-height: 1.6; }
.stay-compare dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.6; }
.stay-compare .stay-compare__result-row--total dd { font-size: 1.3rem; color: var(--sc-green); }
@media (max-width: 580px) {
  .stay-compare .stay-compare__options,
  .stay-compare .stay-compare__results { grid-template-columns: minmax(0, 1fr); }
  .stay-compare fieldset,
  .stay-compare .stay-compare__result-card { padding: .85rem; }
  .stay-compare[data-ready="true"] [data-sc-controls] { display: grid; grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .stay-compare * { scroll-behavior: auto; }
}
