/* Payments (views/sw_payments.templ), on swiss.css and sw-areas2.css. Paper's #0F6658 is pine, #F2B229 saffron,
   #1C47C4 cobalt, its pale red tag vermilion's soft colour. */

/* The first screen: You're in. on saffron (480px), the confirmation beside it. */
.swp-paid__field {
  width: 480px;
}
.swp-paid__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-width: 0;
  padding: 44px 48px;
}
.swp-paid__top {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.swp-paid__head {
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 28px;
}
.swp-ticket {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border: 1.5px solid var(--db-fg);
  font-size: 14px;
  line-height: 20px;
}
.swp-ticket > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.swp-ticket__class {
  font-family: var(--font-db-serif), serif;
  font-size: 36px;
  line-height: 42px;
}
.swp-ticket__tag {
  flex-shrink: 0;
  padding: 6px 12px;
}
.swp-paid__lines .sx-line {
  padding-block: 12px;
  font-size: 15px;
  color: var(--db-fg-2);
}
@media (max-width: 860px) {
  .swp-paid__field {
    width: auto;
  }
  .swp-paid__main {
    padding: 28px;
  }
}

/* 01: the renewal in four cells, 370px tall, the last on pine. */
.swp-renew > li {
  justify-content: space-between;
  min-height: 370px;
}
.swp-renew__draw {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.swp-mail {
  gap: 8px;
}
.swp-mail__btn {
  margin-top: 4px;
}
.sx-strip > .swp-renew__paid {
  background: var(--db-field);
  color: var(--db-field-ink);
}
.swp-renew__paid .sx-say {
  color: color-mix(in srgb, var(--db-field-ink) 85%, transparent);
}
.swp-renew__paid .sx-say__t {
  color: var(--db-field-ink);
}
.swp-renew__sum {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.swp-renew__big {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 60px;
}
.swp-renew .sx-say__t {
  font-size: 24px;
  line-height: 32px;
}
@media (max-width: 900px) {
  .swp-renew > li {
    min-height: 0;
  }
}

/* 02: the tiles. Row 2 is 270px tall, row 3 290px. */
.swp-row2 .sx-tile {
  min-height: 270px;
}
.swp-row3 .sx-tile {
  min-height: 290px;
}
.swp-gift {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
}
.swp-gift__to {
  color: color-mix(in srgb, var(--db-on-inverse) 80%, transparent);
}
.sx-line.swp-total {
  border-top-color: var(--db-fg);
}
.swp-pause {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.swp-pause__tag {
  padding: 2px 9px;
}
.swp-parts,
.swp-month {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.swp-parts__row {
  display: flex;
  gap: 6px;
}
.swp-parts__row li {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.swp-parts__bar {
  height: 8px;
  background: var(--db-field);
}
.swp-parts--due .swp-parts__bar {
  background: var(--db-edge);
}
.swp-month__stats {
  display: flex;
  margin: 0;
  border-top: 1px solid var(--db-edge-2);
}
.swp-month__stats > div {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-block: 10px;
}
.swp-month__stats dd {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 28px;
}
.swp-month__more {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding-top: 10px;
  border-top: 1px solid var(--db-edge-2);
}
.swp-plans {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
}
.swp-plans > * {
  padding: 6px 12px;
  font-size: 13px;
  line-height: 16px;
}
.swp-plans__o {
  padding: 5px 11px;
  border: 1px solid var(--db-edge-2);
}
@media (max-width: 560px) {
  .swp-month__stats {
    flex-wrap: wrap;
  }
  .swp-month__stats > div {
    flex-basis: 40%;
  }
}

/* 03: the month, season and visit calendars: a row of 56px cells. */
.swp-cal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
}
.swp-cal__row {
  display: flex;
  gap: 3px;
  height: 56px;
}
.swp-cal__cell {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 7px 8px;
  border: 1.5px solid var(--db-field-ink);
  font-size: 13px;
  line-height: 16px;
}
.swp-cal__cell b {
  font-weight: 600;
}
.swp-cal__m {
  font-size: 12px;
  line-height: 14px;
}
/* Months paid: ink cells, the month in the field's colour. */
.swp-cal__cell--ink {
  background: var(--db-inverse);
  border-color: var(--db-inverse);
  color: var(--db-on-inverse);
}
.swp-cal__cell--ink .swp-cal__m {
  color: var(--db-field);
}
.swp-cal__cell--mid {
  justify-content: center;
}
/* Parts and visits paid: cells in the field's ink, its colour for the words. */
.swp-cal__cell--paid {
  background: var(--db-field-ink);
  color: var(--db-field);
}
.swp-cal__row--visits {
  justify-content: space-between;
  padding-inline: 22px 30px;
}
.swp-cal__row--visits .swp-cal__cell {
  flex: 0 0 72px;
}
.swp-cal__row--visits .swp-cal__cell:nth-child(2) {
  margin-inline: 18px auto;
}

/* 04: questions, a ruled row each: the question 312px wide, the answer beside it. */
.swp-qa {
  margin: 0;
  border-bottom: 1px solid var(--db-edge-2);
}
.swp-qa__row {
  display: flex;
  gap: 24px;
  padding-block: 28px;
  border-top: 1px solid var(--db-edge-2);
}
.swp-qa dt {
  flex-shrink: 0;
  width: var(--sw-label);
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 30px;
}
.swp-qa dd {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
  margin: 0;
}
.swp-qa dd > p {
  max-width: 760px;
  font-size: 18px;
  line-height: 27px;
  color: var(--db-fg-2);
}
.swp-ticks {
  display: flex;
  gap: 24px;
}
.swp-ticks li {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.swp-ticks__say .sx-say__t {
  display: block;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 28px;
}
@media (max-width: 900px) {
  .swp-qa__row {
    flex-direction: column;
    gap: 12px;
  }
  .swp-qa dt {
    width: auto;
  }
  .swp-ticks {
    flex-wrap: wrap;
  }
  .swp-ticks li {
    flex-basis: 220px;
  }
}
