/* Booking (views/sw_booking.templ), as Paper's "Booking · Swiss" draws it, on swiss.css and sw-areas.css. Daybook
   values only: the drawn screens on the raised white, the sample gym in vermilion, booked things in pine. The sample
   site's face (Host Grotesk in Paper) is the page's sans here. */

/* The hero: tighter than the kit's (28px between the words, the call 12px lower), then the drawing. */
.swb .sw-hero {
  gap: 28px;
  padding-top: clamp(56px, 7.6vw, 110px);
}
.swb .sw-hero .sw-demo {
  margin-top: 12px;
}

/* The hero's drawing: the gym's address, the class booked on its site, how people sign in. */
.swb-site {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: min(1100px, 100%);
  margin-top: 36px;
  padding-bottom: clamp(0px, 5.5vw, 80px);
}
.swb-site__url {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border: 1px solid var(--db-edge-2);
  border-radius: 999px;
  background: var(--db-raised);
  font-size: 15px;
  line-height: 20px;
}
.swb-site__url svg {
  flex-shrink: 0;
}
.swb-site__url rect {
  fill: var(--db-fg);
}
.swb-site__url path {
  fill: none;
  stroke: var(--db-fg);
  stroke-width: 1.5;
}
.swb-site__card {
  display: flex;
  width: 100%;
  overflow: clip;
  border: 1px solid var(--db-edge-2);
  border-radius: 14px;
  text-align: left;
}
.swb-site__class {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 120px;
  min-width: 0;
  padding: 40px 44px;
  background: var(--db-field);
  color: var(--db-field-ink);
}
.swb-site__brand {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 20px;
}
.swb-site__name {
  font-size: 18px;
  line-height: 26px;
}
.swb-site__name span {
  display: block;
  font-size: clamp(56px, 2rem + 4.4vw, 96px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
}
.swb-site__form {
  display: flex;
  flex: 0 0 470px;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 40px 44px;
  background: var(--db-raised);
  color: var(--db-fg);
}
.swb-site__top {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.swb-site__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
}
.swb-site__h {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 28px;
}
.swb-site__as {
  font-size: 13px;
  line-height: 18px;
  color: var(--db-fg-3);
}
.swb-site__rows p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 11px;
  border-top: 1px solid var(--db-edge-2);
  font-size: 15px;
  line-height: 20px;
}
.swb-site__rows p:last-child {
  border-bottom: 1px solid var(--db-edge-2);
}
.swb-site__rows span {
  color: var(--db-fg-2);
}
.swb-site__rows b {
  font-weight: 600;
  text-align: right;
}
.swb-site__rows .swb-site__left {
  font-weight: 700;
  color: var(--db-field);
}
.swb-site__policy {
  font-size: 13px;
  line-height: 19px;
  color: var(--db-fg-3);
}
.swb-strong {
  font-weight: 700;
  color: var(--db-fg);
}
.swb-site__go {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.swb-site__btn {
  padding-block: 15px;
  background: var(--db-field);
  color: var(--db-field-ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.swb-site__note {
  font-size: 13px;
  line-height: 18px;
  color: var(--db-fg-3);
}
.swb-site__signin {
  padding-top: 10px;
  font-size: 17px;
  line-height: 24px;
  color: var(--db-fg-2);
}
@media (max-width: 960px) {
  .swb-site__card {
    flex-direction: column;
  }
  .swb-site__class {
    gap: 56px;
  }
  .swb-site__form {
    flex-basis: auto;
  }
}
@media (max-width: 600px) {
  .swb-site__class,
  .swb-site__form {
    padding: 24px;
  }
}

/* 01: the account (ink on the left: who, the plan, credits, family; Coming up on the right), then three notes. */
.swb-one {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.swb-acct {
  display: flex;
  overflow: clip;
  border: 1px solid var(--db-edge);
  border-radius: 14px;
  background: var(--db-raised);
}
.swb-acct__me {
  display: flex;
  flex: 0 0 330px;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  background: var(--db-inverse);
  color: var(--db-on-inverse);
}
.swb-acct__id {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.swb-acct__brand {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 16px;
}
.swb-acct__title {
  font-size: 14px;
  line-height: 20px;
}
.swb-acct__title span {
  display: block;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 42px;
}
.swb-acct__bal p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 11px;
  border-top: 1px solid color-mix(in srgb, var(--db-on-inverse) 20%, transparent);
  font-size: 14px;
  line-height: 20px;
}
.swb-acct__bal p:last-child {
  padding-bottom: 0;
}
.swb-acct__bal b {
  font-weight: 700;
}
.swb-acct__bal .swb-acct__hi {
  color: var(--db-field);
}
.swb-acct__list {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  padding: 26px 36px 22px;
}
.swb-acct__next {
  padding-bottom: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 26px;
}
.swb-acct__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 13px;
  border-top: 1px solid var(--db-edge-2);
}
.swb-acct__row:last-child {
  padding-bottom: 0;
}
.swb-acct__kind {
  flex: 0 0 96px;
  font-size: 13px;
  font-weight: 700;
  line-height: 14px;
  color: var(--db-field);
}
.swb-acct__what {
  flex: 1 1 0;
  min-width: 0;
  font-size: 13px;
  line-height: 18px;
  color: var(--db-fg-3);
}
.swb-acct__what span {
  display: block;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  color: var(--db-fg);
}
.swb-badge {
  flex-shrink: 0;
  padding: 3.5px 10px;
  border: 1.5px solid var(--db-fg);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
}
.swb-badge--done {
  padding: 5px 11px;
  border: 0;
  background: var(--db-field);
  color: var(--db-field-ink);
}
.swb-badge--wait {
  border-color: var(--db-field);
  color: var(--db-field);
}
@media (max-width: 900px) {
  .swb-acct {
    flex-direction: column;
  }
  .swb-acct__me {
    flex-basis: auto;
  }
}
@media (max-width: 600px) {
  .swb-acct__me {
    padding: 24px;
  }
  .swb-acct__list {
    padding: 20px 20px 18px;
  }
  .swb-acct__row {
    flex-wrap: wrap;
    gap: 6px 12px;
  }
  .swb-acct__kind {
    flex-basis: 100%;
  }
}

/* 02: eight tiles in three rows (300, 310 and 280px tall at 1440). */
.swb-tiles {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.swb-tiles__row {
  display: flex;
  gap: 24px;
}
.swb-tile {
  flex: 1 1 0;
  min-height: 300px;
}
.swb-tiles__row--two .swb-tile {
  min-height: 310px;
}
.swb-tiles__row--low .swb-tile {
  min-height: 280px;
}
.swb-tile .swa-tile__words {
  gap: 0;
}
.swb-tile .swa-tile__t {
  line-height: 34px;
}
.swb-tile--lg .swa-tile__t {
  font-size: clamp(24px, 1rem + 0.7vw, 28px);
  line-height: 36px;
}
.swb-tile--lg .swa-tile__d {
  font-size: 17px;
  line-height: 24px;
}
.swb-tile--field {
  border-color: transparent;
  background: var(--db-field);
  color: var(--db-field-ink);
}
.swb-tile--ink {
  border-color: transparent;
  background: var(--db-inverse);
  color: var(--db-on-inverse);
}
.swb-tile--field .swa-tile__d,
.swb-tile--ink .swa-tile__d {
  color: inherit;
}
@media (max-width: 1100px) {
  .swb-tiles__row {
    flex-wrap: wrap;
  }
  .swb-tile {
    flex-basis: 320px;
  }
}
@media (max-width: 600px) {
  .swb-tile,
  .swb-tiles__row--two .swb-tile,
  .swb-tiles__row--low .swb-tile {
    flex-basis: 100%;
    min-height: 0;
  }
}

/* Rules checked: the checks a booking passes in pine, the one it fails in vermilion. */
.swb-chips {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
}
.swb-chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--db-field-soft);
  color: var(--db-field);
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
}

/* Buy while booking: the hold in saffron on the vermilion tile. */
.swb-hold {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  padding: 8px 13px;
  background: var(--db-field);
  color: var(--db-field-ink);
  font-size: 13px;
  line-height: 18px;
}
.swb-hold b {
  font-size: 14px;
  font-weight: 700;
}

/* No-shows: the fee, approve or waive. */
.swb-fee {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.swb-fee__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.swb-fee__who {
  font-size: 13px;
  line-height: 18px;
  color: var(--db-fg-3);
}
.swb-fee__who b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  color: var(--db-fg);
}
.swb-fee__sum {
  font-family: var(--sw-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.swb-fee__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.swb-fee__go,
.swb-fee__no {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}
.swb-fee__go {
  background: var(--db-inverse);
  color: var(--db-on-inverse);
}
.swb-fee__no {
  border: 1px solid var(--db-edge-2);
}

/* Waitlists: the class full, the first in line moved in, the others moved up. */
.swb-wait__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 16px;
  padding-bottom: 8px;
  font-size: 15px;
  line-height: 20px;
}
.swb-wait__head b {
  font-weight: 600;
}
.swb-wait__head span {
  font-size: 13px;
  font-weight: 600;
  color: var(--db-field);
}
.swb-wait__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
}
.swb-wait__row:nth-of-type(3) {
  border-bottom: 1px solid var(--db-edge-2);
}
.swb-wait__row--up {
  border-radius: 8px;
  background: var(--db-field-soft);
}
.swb-wait__n {
  flex: 0 0 20px;
  font-family: var(--sw-sans);
  font-size: 14px;
  line-height: 18px;
  color: var(--db-fg-4);
  text-decoration: line-through 1px;
}
.swb-wait__was {
  flex: 1 1 0;
  font-size: 15px;
  line-height: 18px;
}
.swb-wait__now {
  font-size: 13px;
  line-height: 18px;
  color: var(--db-fg-3);
  text-align: right;
}
.swb-wait__row--up .swb-wait__was,
.swb-wait__row--up .swb-wait__now {
  font-weight: 600;
  color: var(--db-fg);
}

/* Appointments: the service, who, and when. */
.swb-appt {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.swb-appt__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  line-height: 20px;
  color: var(--db-fg-3);
}
.swb-appt__head b {
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  color: var(--db-fg);
}
.swb-appt__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.swb-pill {
  padding: 6px 13px;
  border: 1px solid var(--db-edge-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}
.swb-pill--on {
  border-color: var(--db-field);
  background: var(--db-field);
  color: var(--db-field-ink);
  font-weight: 600;
}
.swb-slot {
  padding: 7px 12px;
  border: 1px solid var(--db-edge-2);
  border-radius: 8px;
  font-size: 13px;
  line-height: 16px;
  white-space: nowrap;
}
.swb-slot--on {
  padding: 6.5px 11.5px;
  border: 1.5px solid var(--db-field);
  background: var(--db-field-soft);
  color: var(--db-field);
  font-weight: 600;
}

/* Family and the desk: ruled lines. */
.swb-lines p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 9px;
  border-top: 1px solid var(--db-edge-2);
  font-size: 15px;
  line-height: 20px;
}
.swb-lines p:last-child {
  border-bottom: 1px solid var(--db-edge-2);
}
.swb-family p span:first-child {
  font-weight: 600;
}
.swb-family p span:last-child {
  font-size: 13px;
  color: var(--db-fg-3);
  text-align: right;
}
.swb-family .swb-family__kid {
  padding-left: 18px;
}
.swb-family .swb-family__kid span:first-child {
  font-weight: 400;
}
.swb-desk p,
.swb-desk p:last-child {
  border-color: color-mix(in srgb, var(--db-on-inverse) 20%, transparent);
  font-size: 14px;
}
.swb-desk b {
  font-weight: 600;
  text-align: right;
}
.swb-desk .swb-desk__link {
  color: var(--db-field);
}

/* Rescheduling: the old time struck, the new one picked. */
.swb-move {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.swb-move .swb-slot {
  padding: 8px 12px;
  font-size: 14px;
  line-height: 18px;
}
.swb-move .swb-slot--on {
  padding: 7.5px 11.5px;
}
.swb-slot--old {
  color: var(--db-fg-4);
  text-decoration: line-through 1px;
}
.swb-move__to {
  font-size: 18px;
  line-height: 20px;
}
