/* ==========================================================================
   Business listings, ad slots and partner links (inc/business*.php, inc/monetize.php)
   Retro transit livery: paper cards, ink borders, offset shadows in the line colours.
   ========================================================================== */

.biz-h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.3;
}

/* ---------------------------------------------------------------- cards */
.biz-section {
  max-width: 980px;
  margin: 56px auto 0;
}

.biz-section__head h2 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3vw, 30px);
}

.biz-section__sub {
  margin: 28px 0 12px;
  font-size: 18px;
}

.biz-section__sub small {
  color: var(--muted);
  font-weight: 600;
}

.biz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.biz-grid--paid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.biz-grid--mini {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.biz-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}

.biz-card:hover {
  transform: translate(2px, -2px);
  box-shadow: -4px 4px 0 var(--rule);
}

.biz-card--featured {
  border: 2px solid var(--ink);
  box-shadow: -6px 6px 0 var(--yellow);
}

.biz-card--showcase {
  border: 2px solid var(--ink);
  box-shadow: -6px 6px 0 var(--red);
}

.biz-card--featured:hover {
  box-shadow: -8px 8px 0 var(--yellow);
}

.biz-card--showcase:hover {
  box-shadow: -8px 8px 0 var(--red);
}

.biz-card--showcase::before,
.biz-card--featured::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--stripes);
  z-index: 1;
}

.biz-card__cover {
  display: block;
  aspect-ratio: 16 / 7;
  background: var(--paper-2) center / cover no-repeat;
  overflow: hidden;
}

.biz-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.biz-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 14px;
  padding-inline-start: 20px;
  flex: 1;
}

.biz-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.biz-card__logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  font-size: 22px;
  overflow: hidden;
}

.biz-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.biz-card__id {
  min-width: 0;
  flex: 1;
}

.biz-card__name {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.biz-card__name a {
  color: var(--ink);
  text-decoration: none;
}

.biz-card__name a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}

.biz-card__meta {
  display: flex;
  flex-direction: column;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.6;
}

.biz-card__where {
  color: var(--ink-2);
}

.biz-card__where::before {
  content: '📍 ';
  font-size: 0.85em;
}

.biz-card__tagline {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.75;
}

/* the metro-rider offer looks like a ticket stub */
.biz-card__offer {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 12px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: var(--r-sm);
  font-weight: 800;
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-mask: radial-gradient(circle 7px at 0 50%, #0000 98%, #000) left, radial-gradient(circle 7px at 100% 50%, #0000 98%, #000) right;
  -webkit-mask-size: 51% 100%;
  -webkit-mask-repeat: no-repeat;
  mask: radial-gradient(circle 7px at 0 50%, #0000 98%, #000) left, radial-gradient(circle 7px at 100% 50%, #0000 98%, #000) right;
  mask-size: 51% 100%;
  mask-repeat: no-repeat;
}

.biz-card__offer > span {
  flex: none;
  padding-inline-end: 10px;
  border-inline-end: 2px dashed rgba(22, 21, 19, 0.35);
  font-size: 12.5px;
}

.biz-card__actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.biz-act {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.7;
}

a.biz-act:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.biz-act--more {
  margin-inline-start: auto;
  border-color: transparent;
  background: none;
}

.biz-badge {
  flex: none;
  align-self: flex-start;
  padding: 1px 8px;
  border-radius: var(--r-sm);
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.8;
}

.biz-badge--showcase {
  background: var(--red);
  color: #fff;
}

.biz-card--mini .biz-card__body {
  padding: 10px 12px;
  padding-inline-start: 16px;
  gap: 8px;
}

.biz-card--mini .biz-card__logo {
  width: 38px;
  height: 38px;
  font-size: 18px;
}

.biz-card--mini .biz-card__name {
  font-size: 15.5px;
}

.biz-card--mini .biz-card__offer {
  font-size: 13px;
  padding: 5px 10px;
}

/* CTA under the station's list */
.biz-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding: 18px 20px;
  border: 2px dashed var(--ink);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s;
}

.biz-cta:hover {
  background: var(--surface);
  color: var(--ink);
}

.biz-cta__icon {
  font-size: 30px;
}

.biz-cta__text {
  display: flex;
  flex-direction: column;
  flex: 1;
  line-height: 1.7;
}

.biz-cta__text span {
  color: var(--ink-2);
  font-size: 15px;
}

.biz-cta__go {
  flex: none;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-sm);
  font-weight: 800;
}

.biz-empty {
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
}

/* ---------------------------------------------------------------- partner links & ad slots */
.partner-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0;
}

.station-report + .partner-row,
.article .partner-row {
  max-width: 760px;
  margin-inline: auto;
}

.partner-row__label {
  font-weight: 800;
  font-size: 14.5px;
  margin-inline-end: 4px;
}

.partner-btn {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  line-height: 1.8;
}

.partner-btn:hover {
  filter: brightness(0.95);
  color: inherit;
}

.partner-card {
  position: relative;
  margin: 36px 0;
  padding: 22px 22px 20px;
  border-radius: var(--r-md);
  background: var(--blue);
  color: #fff;
  box-shadow: -6px 6px 0 var(--ink);
}

.partner-card--food {
  background: var(--green);
}

.partner-card strong {
  display: block;
  font-size: 21px;
  margin-bottom: 4px;
}

.partner-card p {
  margin: 0 0 14px !important;
  color: rgba(255, 255, 255, 0.86);
}

.partner-card__tag,
.ad-slot__label {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

.ad-slot {
  margin: 36px 0;
}

.ad-slot--showcase .biz-card {
  margin: 0;
}

.prose .ad-slot .biz-card__name,
.prose .ad-slot h3 {
  margin: 0;
  font-size: 18px;
}

.prose .ad-slot p {
  margin: 0;
}

.prose .ad-slot a {
  text-decoration: none;
}

.ad-slot--network {
  padding: 10px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  text-align: center;
}

.ad-slot--house a {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  background: repeating-linear-gradient(-45deg, var(--surface) 0 14px, var(--paper) 14px 28px);
  color: var(--ink);
  text-decoration: none;
}

.ad-slot--house strong {
  font-size: 19px;
}

.ad-slot--house span:not(.ad-slot__label) {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.8;
}

.ad-slot--house em {
  justify-self: start;
  margin-top: 6px;
  padding: 4px 14px;
  background: var(--red);
  color: #fff;
  border-radius: var(--r-sm);
  font-style: normal;
  font-weight: 800;
  font-size: 14px;
}

.single-reylo_station .ad-slot {
  max-width: 760px;
  margin-inline: auto;
}

/* ---------------------------------------------------------------- sales page */
.biz-hero .lp-hero__title {
  font-size: clamp(40px, 5.6vw, 78px);
}

.biz-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.biz-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-weight: 700;
}

.biz-hero__facts strong {
  font-size: 28px;
  color: var(--ink);
  margin-inline-end: 4px;
}

.biz-hero__art {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
}

/* an enamel station sign with the business name on it */
.biz-hero__sign {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: min(380px, 90%);
  padding: 30px 24px 26px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  box-shadow: -10px 10px 0 var(--yellow);
  transform: rotate(-3deg);
}

.biz-hero__sign span {
  font-size: 15px;
  font-weight: 700;
  opacity: 0.75;
}

.biz-hero__sign b {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.3;
}

.biz-hero__sign::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 12px;
  background: var(--stripes);
  border-radius: 0 0 14px 14px;
}

.biz-hero__roundel {
  position: absolute;
  top: -26px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 10px solid var(--red);
  background: var(--paper);
}

.biz-hero__ticket {
  position: absolute;
  bottom: 14px;
  inset-inline-start: 4%;
  display: flex;
  flex-direction: column;
  padding: 12px 18px;
  background: var(--yellow);
  border-radius: 6px;
  transform: rotate(4deg);
  box-shadow: -5px 5px 0 var(--ink);
  font-weight: 800;
}

.biz-hero__ticket span {
  font-size: 12.5px;
}

.biz-how,
.biz-plans,
.biz-form-wrap,
.biz-qa {
  padding-block: 40px;
}

.biz-how__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}

.biz-how__list li {
  position: relative;
  padding: 0 0 0 18px;
  padding-top: 56px;
}

/* a line with four stops */
.biz-how__list li::before {
  content: '';
  position: absolute;
  top: 19px;
  inset-inline: 0;
  height: 8px;
  background: var(--green);
}

.biz-how__list li:nth-child(2)::before {
  background: var(--yellow);
}

.biz-how__list li:nth-child(3)::before {
  background: var(--blue);
}

.biz-how__list li:nth-child(4)::before {
  background: var(--red);
}

.biz-how__list li > span {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--paper);
  border: 5px solid var(--ink);
  font-weight: 900;
  font-size: 18px;
  z-index: 1;
}

.biz-how__list strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.biz-how__list p {
  margin: 0;
  padding-inline-end: 18px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.8;
}

.biz-plans__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.biz-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 22px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
}

.biz-plan--featured {
  box-shadow: -8px 8px 0 var(--yellow);
}

.biz-plan--showcase {
  background: var(--ink);
  color: var(--paper);
  box-shadow: -8px 8px 0 var(--red);
}

.biz-plan__tag {
  position: absolute;
  top: -14px;
  inset-inline-start: 18px;
  padding: 1px 10px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 900;
}

.biz-plan--featured .biz-plan__tag {
  background: var(--yellow);
}

.biz-plan--showcase .biz-plan__tag {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.biz-plan h3 {
  margin: 0;
  font-size: 26px;
}

.biz-plan__price {
  margin: 4px 0 16px;
  font-weight: 700;
}

.biz-plan__price strong {
  font-size: 30px;
}

.biz-plan ul {
  flex: 1;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.biz-plan li {
  position: relative;
  padding: 5px 0;
  padding-inline-start: 26px;
  font-size: 15px;
  line-height: 1.7;
  border-bottom: 1px dashed var(--rule);
}

.biz-plan--showcase li {
  border-color: rgba(243, 238, 228, 0.18);
}

.biz-plan li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  font-weight: 900;
  color: var(--green);
}

.biz-plan--showcase li::before {
  color: var(--yellow);
}

.biz-plan--showcase .btn--red:hover {
  box-shadow: -4px 4px 0 var(--paper);
}

.biz-plans__note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.biz-qa details {
  max-width: 820px;
  border-bottom: 1.5px solid var(--rule);
  padding: 14px 0;
}

.biz-qa summary {
  font-weight: 800;
  font-size: 17px;
  cursor: pointer;
}

.biz-qa details p {
  margin: 10px 0 0;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- the form */
.bf {
  --bf-gap: 18px;
}

.bf-alert {
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: #fde4df;
  border: 1.5px solid var(--red);
  font-weight: 800;
}

/* progress drawn as a metro line with four stations */
.bf-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.bf-line__stop {
  position: relative;
}

.bf-line__stop::before {
  content: '';
  position: absolute;
  top: 17px;
  inset-inline: 0;
  height: 6px;
  background: var(--paper-2);
}

.bf-line__stop:first-child::before {
  inset-inline-start: 18px;
}

.bf-line__stop:last-child::before {
  inset-inline-end: calc(100% - 18px);
}

.bf-line__stop.is-done::before,
.bf-line__stop.is-current::before {
  background: var(--red);
}

.bf-line__stop.is-current::before {
  background: linear-gradient(to left, var(--red) 0 18px, var(--paper-2) 18px);
}

[dir='ltr'] .bf-line__stop.is-current::before {
  background: linear-gradient(to right, var(--red) 0 18px, var(--paper-2) 18px);
}

.bf-line button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}

.bf-line__dot {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  border: 5px solid var(--paper-2);
  font-weight: 900;
  font-size: 15px;
  color: var(--muted);
  transition: border-color 0.2s, transform 0.2s;
}

.is-done .bf-line__dot {
  border-color: var(--red);
  color: var(--ink);
}

.is-current .bf-line__dot {
  border-color: var(--ink);
  color: var(--ink);
  transform: scale(1.12);
}

.bf-line__label {
  font-size: 14px;
  font-weight: 800;
}

.is-current .bf-line__label,
.is-done .bf-line__label {
  color: var(--ink);
}

.bf-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.bf-form {
  padding: 26px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: -6px 6px 0 var(--blue);
}

.bf-step {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.bf:not(.is-js) .bf-step + .bf-step {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 2px dashed var(--rule);
}

.bf.is-js .bf-step:not(.is-current) {
  display: none;
}

.bf.is-js .bf-step.is-current {
  animation: bf-in 0.28s ease-out;
}

@keyframes bf-in {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
}

.bf-step__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: var(--bf-gap);
  padding: 0;
  font-size: 22px;
  font-weight: 900;
}

.bf-step__title span {
  padding: 0 8px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  line-height: 2;
}

.bf-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: var(--bf-gap);
  min-width: 0;
}

.bf-field[hidden] {
  display: none;
}

.bf-label {
  font-weight: 800;
  font-size: 15px;
}

.bf-label b {
  color: var(--red);
}

.bf-label small,
.bf-hint {
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
}

.bf-hint {
  margin: -6px 0 var(--bf-gap);
  line-height: 1.8;
}

.bf-field .bf-hint {
  margin: 0;
}

.bf input[type='text'],
.bf input[type='search'],
.bf input[type='tel'],
.bf input[type='url'],
.bf input[type='email'],
.bf textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.bf input::placeholder,
.bf textarea::placeholder {
  color: #a39e93;
}

.bf input:focus,
.bf textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(243, 178, 41, 0.45);
}

.bf input[dir='ltr'] {
  text-align: left;
}

.bf-count {
  align-self: flex-end;
  margin-top: -4px;
  color: var(--muted);
  font-size: 12px;
}

.bf-err {
  color: var(--red);
  font-weight: 800;
  font-size: 14px;
}

.bf-err[hidden] {
  display: none;
}

.bf-js-err {
  margin: -6px 0 14px;
  padding: 8px 12px;
  background: #fde4df;
  border-radius: var(--r-sm);
}

.bf-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

/* category tiles */
.bf-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 8px;
}

.bf-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 6px 10px;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: 13.5px;
  font-weight: 800;
  text-align: center;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
}

.bf-tile:hover {
  border-color: var(--ink);
}

.bf-tile input,
.bf-place input,
.bf-plan input,
.bf-seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bf-tile__emoji {
  font-size: 26px;
}

.bf-tile:has(input:checked) {
  border: 2px solid var(--ink);
  background: var(--yellow);
  transform: translate(1px, -1px);
  box-shadow: -3px 3px 0 var(--ink);
}

.bf-tile:has(input:focus-visible),
.bf-place:has(input:focus-visible),
.bf-plan:has(input:focus-visible),
.bf-seg label:has(input:focus-visible) {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* uploads */
.bf-upload {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: var(--bf-gap);
  cursor: pointer;
}

.bf-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.bf-upload__box {
  display: grid;
  place-items: center;
  height: 120px;
  border: 2px dashed var(--rule);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--muted);
  font-weight: 800;
  overflow: hidden;
  transition: border-color 0.15s;
}

.bf-upload__box--logo {
  width: 120px;
  border-radius: 50%;
}

.bf-upload:hover .bf-upload__box {
  border-color: var(--ink);
}

.bf-upload__box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bf-row:has(.bf-upload) {
  grid-template-columns: 140px minmax(0, 1fr);
}

/* stations */
.bf-stations {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--paper);
}

.bf-stations:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(243, 178, 41, 0.45);
}

.bf-stations__chips {
  display: contents;
}

.bf .bf-stations input[type='search'] {
  flex: 1;
  min-width: 180px;
  border: 0;
  box-shadow: none;
  padding: 6px 8px;
  background: none;
}

.bf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px 3px 4px;
  padding-inline-start: 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 800;
}

.bf-chip i {
  font-style: normal;
}

.bf-chip button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(243, 238, 228, 0.18);
  color: var(--paper);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.bf-stations__list {
  position: absolute;
  top: calc(100% + 4px);
  inset-inline: 0;
  z-index: 20;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
  max-height: 300px;
  overflow: auto;
}

.bf-stations__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  cursor: pointer;
}

.bf-stations__list li:hover,
.bf-stations__list li.is-active {
  background: var(--paper-2);
}

.bf-stations__list li.is-empty {
  color: var(--muted);
  cursor: default;
}

.bf-stations__list small {
  margin-inline-start: auto;
  color: var(--muted);
}

.bf-dots {
  display: inline-flex;
  gap: 2px;
}

.bf-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px rgba(22, 21, 19, 0.2);
}

/* place cards */
.bf-places {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bf-place {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--paper);
  cursor: pointer;
  line-height: 1.6;
}

.bf-place small {
  color: var(--muted);
  font-size: 12.5px;
}

.bf-place:has(input:checked) {
  border: 2px solid var(--ink);
  background: var(--surface);
  box-shadow: -3px 3px 0 var(--green);
}

.bf-place__ico {
  position: relative;
  width: 44px;
  height: 22px;
  margin-bottom: 6px;
}

/* tiny diagrams: the roundel and where the shop sits */
.bf-place__ico::before {
  content: '';
  position: absolute;
  top: 3px;
  inset-inline-start: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 4px solid var(--red);
  box-sizing: border-box;
}

.bf-place__ico::after {
  content: '';
  position: absolute;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--ink);
}

.bf-place__ico--inside::after {
  inset-inline-start: 2px;
  width: 12px;
  height: 12px;
  transform: scale(0.5);
}

.bf-place__ico--exit::after {
  inset-inline-start: 18px;
}

.bf-place__ico--near::after {
  inset-inline-start: 32px;
}

.bf-place__ico--near {
  background: radial-gradient(circle, var(--muted) 1.5px, transparent 2px) 18px 9px / 5px 5px repeat-x;
  background-size: 5px 5px;
}

.bf input[type='range'] {
  width: 100%;
  accent-color: var(--ink);
}

.bf-label output {
  display: inline-block;
  min-width: 26px;
  padding: 0 6px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}

/* features */
.bf-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bf-feat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.bf-feat input {
  accent-color: var(--ink);
}

.bf-feat:has(input:checked) {
  border-color: var(--ink);
  background: var(--paper-2);
}

.bf-field--offer input {
  background: #fff6dc !important;
  border-color: var(--yellow) !important;
}

/* plans inside the form */
.bf-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 var(--bf-gap);
}

.bf-plans--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bf-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 12px;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--paper);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.bf-plan:hover {
  border-color: var(--ink);
}

.bf-plan:has(input:checked) {
  border: 2px solid var(--ink);
  background: var(--surface);
  transform: translate(2px, -2px);
  box-shadow: -5px 5px 0 var(--ink);
}

.bf-plan--featured:has(input:checked) {
  box-shadow: -5px 5px 0 var(--yellow);
}

.bf-plan--showcase:has(input:checked) {
  box-shadow: -5px 5px 0 var(--red);
}

.bf-plan__tag {
  position: absolute;
  top: -11px;
  inset-inline-start: 12px;
  padding: 0 8px;
  border-radius: var(--r-sm);
  background: var(--paper-2);
  font-size: 11.5px;
  font-weight: 900;
  line-height: 1.9;
}

.bf-plan--featured .bf-plan__tag {
  background: var(--yellow);
}

.bf-plan--showcase .bf-plan__tag {
  background: var(--red);
  color: #fff;
}

.bf-plan__name {
  font-size: 19px;
}

.bf-plan__price {
  font-weight: 800;
  font-size: 14.5px;
  margin-bottom: 8px;
}

.bf-plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}

.bf-plan li::before {
  content: '✓ ';
  color: var(--green);
  font-weight: 900;
}

.bf-months[hidden] {
  display: none;
}

.bf-seg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.bf-seg label {
  position: relative;
  cursor: pointer;
}

.bf-seg label + label {
  border-inline-start: 2px solid var(--ink);
}

.bf-seg span {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.5;
}

.bf-seg em {
  font-style: normal;
  font-size: 11.5px;
  color: var(--green);
}

.bf-seg input:checked + span {
  background: var(--ink);
  color: var(--paper);
}

.bf-seg input:checked + span em {
  color: var(--yellow);
}

.bf-total {
  margin: 12px 0 4px;
  font-weight: 700;
}

.bf-total strong {
  font-size: 22px;
}

.bf-total small {
  color: var(--green);
  font-weight: 800;
}

.bf-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14.5px;
  line-height: 1.8;
}

.bf-check input {
  margin-top: 6px;
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.bf-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1.5px solid var(--rule);
}

.bf-nav [data-bf-next],
.bf-nav [data-bf-submit] {
  margin-inline-start: auto;
}

.bf:not(.is-js) [data-bf-next],
.bf:not(.is-js) [data-bf-prev] {
  display: none;
}

.bf-nav [hidden] {
  display: none;
}

.bf-nav .is-busy {
  opacity: 0.6;
  cursor: progress;
}

/* live preview */
.bf-preview {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bf-preview__label {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.bf-preview__station {
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-sm);
  font-weight: 900;
  font-size: 17px;
  border-bottom: 6px solid var(--red);
}

.bf-preview .biz-card:hover {
  transform: none;
}

.bf-preview .biz-card__cover {
  background-size: cover;
  background-position: center;
}

.bf-preview .biz-card__cover[hidden],
.bf-preview [hidden] {
  display: none;
}

.bf-preview__note {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.8;
}

/* ---------------------------------------------------------------- owner panel */
.biz-panel {
  max-width: 1080px;
  padding-block: 32px 64px;
}

.biz-panel__gate {
  max-width: 560px;
  margin: 40px auto;
  padding: 28px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: -6px 6px 0 var(--yellow);
}

.biz-panel__gate h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.biz-panel__recover {
  display: flex;
  gap: 8px;
  margin: 16px 0 8px;
}

.biz-panel__recover input {
  flex: 1;
  padding: 10px 12px;
  border: 1.5px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--paper);
  font: inherit;
  text-align: left;
}

.biz-panel__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.biz-panel__head h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.3;
}

.biz-panel__head .eyebrow {
  margin-bottom: 4px;
}

.biz-panel__logo {
  width: 84px;
  height: 84px;
  font-size: 38px;
  border-width: 3px;
}

.biz-panel__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 6px 0 0;
  font-size: 14.5px;
  color: var(--ink-2);
}

.biz-pill {
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink);
}

.biz-pill--ok {
  background: #d8efe2;
  color: var(--green-ink);
}

.biz-pill--wait {
  background: #fdeccb;
  color: #7a5200;
}

.biz-pill--featured {
  background: var(--yellow);
}

.biz-pill--showcase {
  background: var(--red);
  color: #fff;
}

.biz-note {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  border: 1.5px solid;
  line-height: 1.8;
}

.biz-note--ok {
  background: #e3f4ea;
  border-color: var(--green);
}

.biz-note--warn {
  background: #fdf0d6;
  border-color: var(--yellow);
}

.biz-key {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 36px;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-md);
}

.biz-key div {
  display: flex;
  flex-direction: column;
  line-height: 1.7;
}

.biz-key span {
  font-size: 13.5px;
  opacity: 0.75;
}

.biz-key input {
  min-width: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--r-sm);
  background: rgba(243, 238, 228, 0.12);
  color: var(--paper);
  font: inherit;
  font-size: 13px;
  text-align: left;
}

.biz-key .btn--ghost {
  border-color: var(--paper);
  color: var(--paper);
  min-height: 40px;
}

.biz-key .btn--ghost:hover {
  background: var(--paper);
  color: var(--ink);
}

.biz-stats,
.biz-upgrade,
.biz-edit {
  margin-bottom: 44px;
}

.biz-stats__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.biz-stat {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  background: var(--surface);
  border-top-width: 8px;
}

.biz-stat--yellow {
  border-top-color: var(--yellow);
}

.biz-stat--blue {
  border-top-color: var(--blue);
}

.biz-stat--green {
  border-top-color: var(--green);
}

.biz-stat strong {
  font-size: 36px;
  line-height: 1.3;
}

.biz-stat span {
  font-weight: 800;
}

.biz-stat small {
  color: var(--muted);
  font-size: 13px;
}

.biz-bars {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  height: 170px;
  margin-top: 18px;
  padding: 14px 14px 0;
  background: var(--surface);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-md);
}

.biz-bars__col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.biz-bars__bar {
  position: relative;
  width: min(46px, 70%);
  height: max(var(--h), 3px);
  max-height: 100px;
  background: var(--ink);
  border-radius: 4px 4px 0 0;
}

.biz-bars__col:last-child .biz-bars__bar {
  background: var(--red);
}

.biz-bars__bar em {
  position: absolute;
  bottom: 100%;
  inset-inline: -10px;
  text-align: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.biz-bars__m {
  padding-bottom: 6px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 700;
}

.biz-meter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.biz-meter__bar {
  height: 10px;
  border-radius: 999px;
  background: var(--paper-2);
  overflow: hidden;
}

.biz-meter__bar i {
  display: block;
  height: 100%;
  background: var(--stripes);
  background: linear-gradient(to left, var(--green), var(--yellow));
}

.biz-upgrade__form {
  padding: 22px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  max-width: 760px;
}

.biz-orders {
  margin-top: 18px;
  max-width: 760px;
}

.biz-orders summary {
  font-weight: 800;
  cursor: pointer;
}

.biz-orders table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-size: 14px;
}

.biz-orders th,
.biz-orders td {
  padding: 8px;
  border-bottom: 1px solid var(--rule);
  text-align: start;
}

.biz-orders .is-paid {
  color: var(--green);
  font-weight: 800;
}

.biz-edit summary {
  list-style: none;
  cursor: pointer;
}

.biz-edit summary::-webkit-details-marker {
  display: none;
}

.biz-edit summary h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.biz-edit summary h2::after {
  content: '▾';
  font-size: 0.7em;
  transition: transform 0.2s;
}

.biz-edit details[open] summary h2::after {
  transform: rotate(180deg);
}

/* ---------------------------------------------------------------- single listing */
.biz-page {
  max-width: 1080px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.biz-page__cover {
  margin: 10px 0 0;
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 16 / 5;
}

.biz-page__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.biz-page__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 22px 0 16px;
}

.biz-page__cover + .biz-page__head {
  margin-top: -36px;
  padding-inline-start: 20px;
}

.biz-page__logo {
  width: 96px;
  height: 96px;
  font-size: 44px;
  border-width: 3px;
  box-shadow: -4px 4px 0 var(--yellow);
}

.biz-page__head h1 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.25;
}

.biz-page__head .eyebrow {
  margin-bottom: 2px;
}

.biz-page__cover + .biz-page__head .eyebrow {
  margin-top: 36px;
}

.biz-page__tagline {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 18px;
}

.biz-page__offer {
  max-width: 620px;
  margin-bottom: 22px;
  font-size: 17px;
  padding: 12px 18px;
}

.biz-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.biz-page__metro {
  padding: 20px;
  margin-bottom: 26px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: -6px 6px 0 var(--green);
}

.biz-page__metro h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.biz-page__station {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  margin-inline-end: 14px;
  color: var(--ink);
  text-decoration: none;
}

.biz-page__station:hover strong {
  text-decoration: underline;
}

.biz-page__where {
  margin: 4px 0 14px;
  color: var(--ink-2);
  font-weight: 700;
}

.biz-page__feats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.biz-page__feats li {
  padding: 4px 12px;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 700;
  font-size: 14px;
}

.biz-page__side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 20px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
}

.biz-page__facts {
  margin: 0 0 16px;
}

.biz-page__facts div {
  padding: 8px 0;
  border-bottom: 1px dashed var(--rule);
}

.biz-page__facts dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.biz-page__facts dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.biz-page__call {
  width: 100%;
}

.biz-page__own {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.biz-filters__sep {
  width: 1.5px;
  align-self: stretch;
  background: var(--rule);
  margin-inline: 4px;
}

.biz-filters .chip.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.biz-grid--dir {
  margin-top: 24px;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .bf-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  /* the preview follows the form */
  .bf-preview {
    position: static;
    max-width: 420px;
  }

  .biz-plans__grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
  }

  .biz-how__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
  }

  .biz-page__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .biz-page__side {
    position: static;
  }

  .biz-key {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .biz-key div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .biz-hero__art {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .bf-form {
    padding: 18px 16px;
    box-shadow: -4px 4px 0 var(--blue);
  }

  .bf-row,
  .bf-row:has(.bf-upload) {
    grid-template-columns: minmax(0, 1fr);
  }

  .bf-places,
  .bf-plans,
  .bf-plans--two {
    grid-template-columns: minmax(0, 1fr);
  }

  .bf-plans {
    gap: 16px;
  }

  .bf-seg {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bf-seg label:nth-child(3) {
    border-inline-start: 0;
  }

  .bf-seg label:nth-child(n + 3) {
    border-top: 2px solid var(--ink);
  }

  .bf-line__label {
    font-size: 12px;
    line-height: 1.4;
  }

  .bf-line__stop:not(.is-current) .bf-line__label {
    display: none;
  }

  .bf-line__dot {
    width: 34px;
    height: 34px;
    border-width: 4px;
  }

  .bf-line__stop::before {
    top: 14px;
  }

  .bf-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .biz-how__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .biz-stats__tiles {
    grid-template-columns: minmax(0, 1fr);
  }

  .biz-stat strong {
    font-size: 28px;
  }

  .biz-grid,
  .biz-grid--paid {
    grid-template-columns: minmax(0, 1fr);
  }

  .biz-cta {
    flex-wrap: wrap;
  }

  .biz-cta__go {
    width: 100%;
    text-align: center;
  }

  .biz-panel__recover {
    flex-direction: column;
  }

  .biz-page__cover {
    aspect-ratio: 16 / 8;
  }

  .biz-page__head {
    flex-wrap: wrap;
  }

  .biz-orders {
    overflow-x: auto;
  }
}

/* ---------------------------------------------------------------- advertiser account (inc/biz-accounts.php) */
.biz-pill--off {
  background: var(--paper-2);
  color: var(--muted);
}

.biz-login {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.biz-login .bf-field {
  margin: 0;
}

.biz-login__go {
  justify-self: start;
  min-width: 180px;
}

.biz-login__links {
  margin: 0;
  font-size: 14px;
}

.biz-panel__new {
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1.5px dashed var(--rule);
}

.biz-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  margin-bottom: 26px;
  padding: 8px 10px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
}

.biz-topbar__hi {
  margin-inline-end: auto;
  padding-inline: 6px;
  color: var(--ink-2);
}

.biz-topbar a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.biz-topbar a:hover {
  background: var(--paper-2);
}

.biz-topbar a[aria-current] {
  background: var(--ink);
  color: var(--paper);
}

.biz-topbar__out {
  color: var(--red) !important;
}

.biz-back {
  margin: 0 0 14px;
  font-weight: 700;
}

.biz-mine {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.biz-mine__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
}

.biz-mine__link:hover {
  box-shadow: -5px 5px 0 var(--yellow);
  transform: translate(2px, -2px);
}

.biz-mine__id {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.biz-mine__id strong {
  font-size: 19px;
}

.biz-mine__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.biz-mine__stats {
  color: var(--ink-2);
  font-size: 14px;
}

.biz-mine__stats small {
  color: var(--muted);
}

.biz-mine__go {
  font-weight: 800;
  color: var(--red);
}

.biz-empty {
  padding: 32px;
  text-align: center;
  background: var(--surface);
  border: 2px dashed var(--rule);
  border-radius: var(--r-md);
}

.biz-account {
  max-width: 560px;
}

.biz-account__info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  margin: 0 0 28px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1.5px solid var(--rule);
  border-radius: var(--r-md);
}

.biz-account__info dt {
  color: var(--muted);
}

.biz-account__info dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.biz-account__h {
  margin: 0;
  font-size: 20px;
}

.biz-danger form {
  max-width: 760px;
  padding: 18px 20px;
  border: 2px dashed var(--red);
  border-radius: var(--r-md);
}

.biz-danger__h {
  margin: 0 0 6px;
  font-size: 19px;
}

.biz-danger p {
  margin: 0 0 14px;
  color: var(--ink-2);
}

.biz-danger__go {
  border-color: var(--red);
  color: var(--red);
}

.biz-danger__go:hover {
  background: var(--red);
  color: #fff;
}

/* the account block in the form's last step */
.bf-account {
  margin-bottom: 14px;
  padding: 16px 18px;
  background: var(--paper-2);
  border-radius: var(--r-md);
}

.bf-account__title {
  display: block;
  font-size: 17px;
}

.bf-account .bf-hint {
  margin: 4px 0 12px;
}

.bf-pass {
  position: relative;
  display: block;
}

.bf-pass input {
  width: 100%;
  padding-inline-start: 44px;
}

.bf-pass__eye {
  position: absolute;
  inset-block: 0;
  left: 4px;
  width: 38px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 16px;
}

/* ---------------------------------------------------------------- pre-invoice / receipt */
.biz-invoice-wrap {
  max-width: 820px;
}

.biz-invoice {
  padding: 28px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: -6px 6px 0 var(--yellow);
}

.biz-invoice.is-paid {
  box-shadow: -6px 6px 0 var(--green);
}

.biz-invoice__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}

.biz-invoice__head h1 {
  margin: 2px 0;
  font-size: 26px;
}

.biz-invoice__head small {
  color: var(--muted);
}

.biz-invoice__meta,
.biz-invoice__receipt {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px 16px;
  margin: 0;
  align-content: start;
}

.biz-invoice__meta dt,
.biz-invoice__receipt dt {
  color: var(--muted);
}

.biz-invoice__meta dd,
.biz-invoice__receipt dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.biz-invoice__parties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.biz-invoice__parties div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  background: var(--paper);
  border-radius: var(--r-sm);
}

.biz-invoice__k {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 800;
}

.biz-invoice__items {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.biz-invoice__items th,
.biz-invoice__items td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--rule);
  text-align: start;
  vertical-align: top;
}

.biz-invoice__items thead th {
  font-size: 13px;
  color: var(--muted);
}

.biz-invoice__items td:last-child,
.biz-invoice__items th:last-child {
  text-align: left;
  white-space: nowrap;
}

.biz-invoice__items tfoot th {
  font-weight: 700;
  text-align: left;
}

.biz-invoice__items small {
  color: var(--muted);
}

.biz-invoice__total th,
.biz-invoice__total td {
  font-size: 19px;
  font-weight: 900 !important;
  border-bottom: 0;
  border-top: 2px solid var(--ink);
}

.biz-invoice__receipt {
  margin-top: 18px;
  padding: 14px 16px;
  background: #e3f4ea;
  border-radius: var(--r-sm);
  grid-template-columns: auto 1fr;
}

.biz-invoice__note {
  margin: 16px 0 0;
  color: var(--ink-2);
  font-size: 14px;
}

.biz-invoice__pay {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.biz-invoice__go {
  justify-self: start;
  min-height: 54px;
  font-size: 17px;
}

.biz-invoice__actions {
  display: flex;
  gap: 10px;
  margin: 18px 0 0;
}

@media (max-width: 640px) {
  .biz-invoice {
    padding: 18px;
  }

  .biz-invoice__parties {
    grid-template-columns: 1fr;
  }

  .biz-invoice__items thead {
    display: none;
  }

  .biz-invoice__items tbody td {
    display: block;
    border: 0;
    padding: 2px 0;
  }

  .biz-invoice__items tbody td:first-child {
    padding-top: 8px;
  }

  .biz-invoice__items tbody td:last-child {
    text-align: right;
    font-weight: 800;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rule);
  }

  .biz-invoice__items tfoot th {
    text-align: right;
  }

  .biz-mine__link {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .biz-mine__stats,
  .biz-mine__go {
    grid-column: 1 / -1;
  }
}

@media print {
  .site-header,
  .site-footer,
  .biz-topbar,
  .no-print {
    display: none !important;
  }

  .biz-invoice {
    box-shadow: none;
  }
}

/* ---------------------------------------------------------------- own ads (inc/ads.php) */
.ad-own {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}

.ad-own img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-sm);
}

.ad-own__text {
  font-weight: 800;
  line-height: 1.7;
}

a.ad-own:hover .ad-own__text {
  color: var(--red);
}
