/* scw-widget.css — standalone SuperControl availability widget
   All colours are CSS variables; scw-widget.js overrides them at runtime
   from the account's GetStyle theme. */

.scw {
  --scw-bg: #ffffff;
  --scw-card: #ffffff;
  --scw-text: #1f2430;
  --scw-muted: #8a929f;
  --scw-accent: #84c7ad;
  --scw-accent-text: #ffffff;
  --scw-radius: 10px;
  --scw-booked-bg: #e9ecef;
  --scw-booked-text: #a8b0ba;
  --scw-inrange-bg: #e2f4ec;
  --scw-inrange-text: #1f2430;
  --scw-line: rgba(0, 0, 0, .08);
  --scw-font: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  font-family: var(--scw-font);
  color: var(--scw-text);
  background: var(--scw-card);
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--scw-line);
  font-size: 15px;
  line-height: 1.4;
}
.scw *, .scw *::before, .scw *::after { box-sizing: inherit; }

.scw--loading, .scw--error {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; min-height: 220px;
  color: var(--scw-muted, #8a929f);
}
.scw--error { color: #c0392b; text-align: center; padding: 24px; }
.scw__spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, .1); border-top-color: #84c7ad;
  animation: scw-spin .8s linear infinite;
}
@keyframes scw-spin { to { transform: rotate(360deg); } }

/* property heading (multi-property mode) */
.scw__prop {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-bottom: 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--scw-line);
}
.scw__prop-name { font-weight: 700; font-size: 16px; }
.scw__prop-cap { color: var(--scw-muted); font-size: 13px; white-space: nowrap; }

/* month nav */
.scw__nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.scw__month { font-weight: 700; font-size: 15px; letter-spacing: .2px; }
.scw__navbtn {
  appearance: none; border: 1px solid var(--scw-line); background: #fff;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  font-size: 18px; line-height: 1; color: var(--scw-text);
  display: grid; place-items: center; transition: background .15s, opacity .15s;
}
.scw__navbtn:hover:not(:disabled) { background: #f4f6f7; }
.scw__navbtn:disabled { opacity: .3; cursor: default; }

/* grid */
.scw__grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
}
.scw__dow {
  text-align: center; font-size: 11px; text-transform: uppercase;
  letter-spacing: .6px; color: var(--scw-muted); padding: 6px 0 8px;
  font-weight: 600;
}
.scw__day {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  aspect-ratio: 1 / 1; border-radius: var(--scw-radius);
  font: inherit; font-size: 14px; color: var(--scw-text);
  display: grid; place-items: center; position: relative;
  transition: background .12s, color .12s, transform .08s;
}
.scw__day--empty { pointer-events: none; }
.scw__day:disabled { cursor: default; }
.scw__day.is-past { color: #cfd5db; }
.scw__day.is-booked { background: var(--scw-booked-bg); color: var(--scw-booked-text); }
.scw__day.is-unavailable { color: #cfd5db; }
.scw__day.is-arrival { font-weight: 700; }
.scw__day.is-arrival::after {
  content: ''; position: absolute; bottom: 6px; left: 50%;
  width: 4px; height: 4px; border-radius: 50%;
  transform: translateX(-50%); background: var(--scw-accent);
}
.scw__day.is-selectable:hover { background: var(--scw-inrange-bg); }
/* a legal departure date, which may fall on another guest's arrival day */
.scw__day.is-endopt {
  box-shadow: inset 0 0 0 1.5px var(--scw-accent);
  font-weight: 600; color: var(--scw-accent);
}
.scw__day.is-endopt:hover { background: var(--scw-inrange-bg); }
.scw__day.is-inrange { background: var(--scw-inrange-bg); border-radius: 0; }
.scw__day.is-start, .scw__day.is-end {
  background: var(--scw-accent); color: var(--scw-accent-text); font-weight: 700;
}
.scw__day.is-start::after { background: transparent; }
.scw__day.is-start { border-radius: var(--scw-radius) 0 0 var(--scw-radius); }
.scw__day.is-end { border-radius: 0 var(--scw-radius) var(--scw-radius) 0; }
.scw__day.is-start.is-end { border-radius: var(--scw-radius); }

.scw__hint {
  margin-top: 12px; padding: 9px 12px; border-radius: 10px;
  background: #f6f8f8; font-size: 13px; color: var(--scw-muted);
  text-align: center;
}

/* guests */
.scw__guests {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--scw-line);
  display: grid; gap: 8px;
}
.scw__guest { display: flex; align-items: center; justify-content: space-between; }
.scw__guest-label { font-size: 14px; }
.scw__stepper { display: flex; align-items: center; gap: 10px; }
.scw__step {
  appearance: none; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--scw-line); background: #fff; cursor: pointer;
  font-size: 15px; line-height: 1; display: grid; place-items: center;
  color: var(--scw-text);
}
.scw__step:disabled { opacity: .35; cursor: default; }
.scw__stepval { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }

/* price */
.scw__price { margin-top: 14px; }
.scw__totalrow {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; padding: 12px 0; border-top: 1px solid var(--scw-line);
}
.scw__totallabel { font-size: 13px; color: var(--scw-muted); }
.scw__total { font-size: 22px; font-weight: 700; }
.scw__line {
  display: flex; justify-content: space-between; font-size: 13px;
  color: var(--scw-muted); padding: 3px 0;
}
.scw__line--discount { color: #2e9e6b; }
.scw__line--muted { opacity: .8; }
.scw__offer {
  margin-top: 8px; padding: 8px 10px; border-radius: 8px;
  background: var(--scw-inrange-bg); font-size: 13px;
}
.scw__notice {
  padding: 12px; border-radius: 10px; background: #fff6e5;
  color: #8a5a00; font-size: 13px; margin-bottom: 10px;
}
.scw__notice--warn {
  background: #fdecec; color: #96241f; border: 1px solid #f3c9c7;
}

/* two-step flow */
.scw__steps {
  display: flex; gap: 8px; margin-bottom: 14px;
  align-items: center;
}
.scw__stepchip {
  display: inline-flex; align-items: center; gap: 8px; flex: 1 1 0;
  padding: 8px 10px; border-radius: 999px; font: inherit; font-size: 13px;
  border: 1px solid var(--scw-line); background: #fff; color: var(--scw-muted);
  cursor: default; text-align: left;
}
.scw__stepchip.is-current {
  border-color: var(--scw-accent); color: var(--scw-text); font-weight: 700;
  background: var(--scw-inrange-bg);
}
.scw__stepchip.is-done { cursor: pointer; color: var(--scw-accent); }
.scw__stepchip:disabled { opacity: 1; }
.scw__stepnum {
  display: grid; place-items: center; width: 20px; height: 20px;
  border-radius: 50%; font-size: 12px; font-weight: 700; flex: 0 0 auto;
  background: #eef1f1; color: var(--scw-muted);
}
.scw__stepchip.is-current .scw__stepnum,
.scw__stepchip.is-done .scw__stepnum {
  background: var(--scw-accent); color: var(--scw-accent-text);
}
.scw__steplabel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* chosen stay (step 2) */
.scw__stay {
  display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px;
  background: var(--scw-inrange-bg); margin-bottom: 4px;
}
.scw__stay-dates { font-size: 15px; font-weight: 700; }
.scw__stay-meta { font-size: 13px; color: var(--scw-muted); }
.scw__back {
  justify-self: start; margin-top: 6px; padding: 0; border: 0;
  background: none; cursor: pointer; font: inherit; font-size: 13px;
  color: var(--scw-accent); text-decoration: underline;
}
.scw__cta {
  display: block; width: 100%; margin-top: 12px; padding: 14px 16px;
  border: 0; border-radius: 12px; cursor: pointer;
  background: var(--scw-accent); color: var(--scw-accent-text);
  font: inherit; font-weight: 700; font-size: 15px; text-align: center;
  text-decoration: none; transition: filter .15s, transform .08s;
}
.scw__cta:hover { filter: brightness(.94); }
.scw__cta:active { transform: translateY(1px); }
.scw__cta--ghost {
  background: transparent; color: var(--scw-accent);
  border: 1.5px solid var(--scw-accent);
}

/* booking extras */
.scw__extras {
  margin-top: 14px; border-top: 1px solid var(--scw-line); padding-top: 12px;
  transition: opacity .15s; max-height: 46vh; overflow-y: auto; overscroll-behavior: contain;
}
.scw__extras.is-busy { opacity: .55; }
.scw__extras-head {
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--scw-muted); margin-bottom: 8px;
}
.scw__extras-cat {
  font-size: 12px; font-weight: 700; color: var(--scw-accent);
  margin: 10px 0 4px;
}
.scw__extra {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed var(--scw-line);
}
.scw__extra:last-child { border-bottom: 0; }
.scw__extra.is-selected .scw__extra-name { color: var(--scw-accent); }
.scw__extra-img {
  width: 44px; height: 44px; border-radius: 8px; object-fit: cover;
  flex: 0 0 auto; background: var(--scw-inrange-bg);
}
.scw__extra-body { flex: 1 1 auto; min-width: 0; }
.scw__extra-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.scw__extra-desc, .scw__extra-msg {
  font-size: 12px; color: var(--scw-muted); line-height: 1.35; margin-top: 2px;
}
.scw__extra-side { flex: 0 0 auto; text-align: right; }
.scw__extra-price { font-size: 13px; font-weight: 600; white-space: nowrap; }
.scw__extra-inc { font-size: 12px; color: #2e9e6b; }
.scw__extra-linetotal {
  font-size: 12px; font-weight: 700; color: var(--scw-accent);
  min-height: 0; line-height: 1.4; white-space: nowrap;
}
.scw__extra-linetotal.is-multiline { white-space: normal; font-weight: 600; }
.scw__xstepper {
  display: inline-flex; align-items: center; gap: 2px; margin-top: 4px;
  border: 1px solid var(--scw-line); border-radius: 999px; padding: 1px;
}
.scw__xstep {
  width: 24px; height: 24px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: inherit; font: inherit; font-size: 15px;
  line-height: 1; display: grid; place-items: center;
}
.scw__xstep:hover:not(:disabled) { background: var(--scw-inrange-bg); }
.scw__xstep:disabled { opacity: .35; cursor: default; }
.scw__xstepval { min-width: 18px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.scw__totalrow--grand { border-top: 1px solid var(--scw-line); margin-top: 4px; }
.scw__totalrow--grand .scw__total { color: var(--scw-accent); }

/* extras to re-add on the vendor's booking page */
.scw__reselect {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fff6e5;
  color: #6b4700; font-size: 13px;
}
.scw__reselect-head { font-weight: 600; margin-bottom: 4px; }
.scw__reselect-list { margin: 0; padding-left: 18px; }
.scw__reselect-list li { margin: 1px 0; font-size: 13px; line-height: 1.4; }

/* step 3: guest details + payment handoff */
.scw__co-loading {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 28px 0; color: var(--scw-muted); font-size: 14px;
}
.scw__co-sum { margin-top: 12px; padding: 10px 0 0; border-top: 1px solid var(--scw-line); }
.scw__line--strong { color: var(--scw-text); font-weight: 700; }
.scw__form { display: flex; flex-wrap: wrap; gap: 10px 10px; margin-top: 6px; }
.scw__co-head {
  flex: 1 0 100%; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--scw-line);
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--scw-muted);
}
.scw__co-sub { flex: 1 0 100%; font-size: 13px; font-weight: 700; margin-top: 4px; }
.scw__fld { flex: 1 0 100%; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.scw__fld--half { flex: 1 0 calc(50% - 5px); max-width: calc(50% - 5px); }
.scw__fld-label { font-size: 12.5px; color: var(--scw-muted); }
.scw__input {
  width: 100%; min-height: 42px; padding: 9px 11px; border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, .18); background: #fff; color: var(--scw-text);
  font: inherit; font-size: 16px; /* 16px stops iOS zooming into the field */
}
textarea.scw__input { resize: vertical; min-height: 72px; }
.scw__input:focus { outline: none; border-color: var(--scw-accent); box-shadow: 0 0 0 3px var(--scw-inrange-bg); }
.scw__check {
  flex: 1 0 100%; display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px;
  line-height: 1.4; cursor: pointer; padding: 2px 0;
}
.scw__check input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--scw-accent); }
.scw__radios { flex: 1 0 100%; display: grid; gap: 6px; border-radius: 10px; }
.scw__co-note { flex: 1 0 100%; font-size: 12px; color: var(--scw-muted); line-height: 1.4; }
.scw__co-link { color: var(--scw-accent); text-decoration: underline; font-size: inherit; }
a.scw__co-link { flex: 0 0 auto; }
.scw__co-secure { flex: 1 0 100%; text-align: center; font-size: 12px; color: var(--scw-muted); }
.scw__form .scw__notice, .scw__form .scw__cta { flex: 1 0 100%; margin-bottom: 0; }
.scw__fld.is-invalid .scw__input { border-color: #c0392b; box-shadow: 0 0 0 3px #fdecec; }
.scw__fld.is-invalid .scw__fld-label, .scw__check.is-invalid, .scw__radios.is-invalid { color: #c0392b; }
.scw__radios.is-invalid { outline: 1.5px solid #c0392b; outline-offset: 4px; }
.scw__cta:disabled { opacity: .6; cursor: progress; }
.scw__stepchip { min-width: 0; }

/* featured add-on (the hot tub): a card above the extras list */
.scw__fx {
  position: relative; margin: 2px 0 14px; padding: 14px; border-radius: 14px;
  background: linear-gradient(135deg, #f1faf6 0%, #e4f3ec 100%);
  border: 1.5px solid var(--scw-accent); transition: box-shadow .15s;
}
.scw__fx.is-selected { box-shadow: 0 0 0 3px var(--scw-inrange-bg); }
.scw__fx-top { display: flex; gap: 12px; align-items: flex-start; }
.scw__fx-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.scw__fx-head { flex: 1 1 auto; min-width: 0; }
.scw__fx-badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px; margin-bottom: 4px;
  background: var(--scw-accent); color: var(--scw-accent-text);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.scw__fx-title { font-size: 17px; font-weight: 700; line-height: 1.25; }
.scw__fx-rate { font-size: 13px; color: var(--scw-muted); margin-top: 2px; }
.scw__fx-rate strong { color: var(--scw-text); font-size: 15px; }
.scw__fx-text { margin: 10px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--scw-text); }
.scw__fx-ctrl {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .75);
}
.scw__fx-q { font-size: 14px; font-weight: 600; }
.scw__fx-stepwrap { display: flex; align-items: center; gap: 8px; }
.scw__fx-of { font-size: 13px; color: var(--scw-muted); white-space: nowrap; }
.scw__xstepper--lg { margin-top: 0; background: #fff; }
.scw__xstepper--lg .scw__xstep { width: 34px; height: 34px; font-size: 18px; }
.scw__xstepper--lg .scw__xstepval { min-width: 26px; font-size: 16px; font-weight: 700; }
.scw__fx-line { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--scw-accent); text-align: right; }
.scw__fx-line:empty { display: none; }

@media (max-width: 480px) {
  .scw { padding: 14px; border-radius: 14px; max-width: none; }
  .scw__day { font-size: 13px; }
  .scw__steps { gap: 5px; }
  .scw__stepchip { padding: 7px 8px; gap: 6px; font-size: 12px; }
}

/* discount code (checkout step) */
.scw__vnote { margin: 10px 0 0; padding: 8px 10px; border-radius: 8px; background: #eaf7f0; color: #1f7a52; font-size: 13px; }
.scw__voucher { margin: 10px 0 4px; font-size: 13px; }
.scw__voucher-ok { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; background: #eaf7f0; color: #1f7a52; font-weight: 600; }
.scw__voucher-link { background: none; border: 0; padding: 0; color: #1f7a52; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.scw__voucher-form { display: flex; gap: 8px; }
.scw__voucher-form .scw__input { flex: 1; min-width: 0; text-transform: uppercase; }
.scw__voucher-apply { flex: 0 0 auto; padding: 0 16px; border: 1px solid #1f7a52; border-radius: 8px; background: #fff; color: #1f7a52; font: inherit; font-weight: 700; cursor: pointer; }
.scw__voucher-err { margin-top: 6px; color: #b4532a; line-height: 1.4; }
