/* Mein Tee-Abo inside the shop's Mein Konto (Flatsome). The tokens are those of css/tz-funnel.css, which the shop does not load. */
.tza {
  --tz-primary: #086068;
  --tz-primary-tint: #e6f0f1;
  --tz-success: #4d7a2a;
  --tz-success-tint: #eef4e8;
  --tz-alert: #b20000;
  --tz-alert-tint: #fbeaea;
  --tza-warn: #8a5a00;
  --tza-warn-tint: #fff4e5;
  --tz-text: #575757;
  --tz-heading: #4f4f4f;
  --tz-muted: #707070;
  --tz-border: #ddd;
  --tz-divider: #ececec;
  --tz-surface-alt: #f7f7f7;
  --tz-radius: 5px;
  --tz-shadow: 1px 1px 15px rgba(0, 0, 0, .15);
  max-width: 1040px;
  color: var(--tz-text);
  container-type: inline-size;
}

.tza :is(a, button, input, summary):focus-visible {
  outline: 3px solid var(--tz-primary);
  outline-offset: 2px;
}

.tza .tz-ico {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.tza h1, .tza h2, .tza h3 {
  color: var(--tz-heading);
}

.tza-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.tza-card {
  display: block;
  margin: 0 0 20px;
  padding: 20px;
  border-radius: var(--tz-radius);
  background: #fff;
  box-shadow: var(--tz-shadow);
}

.tza-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 18px;
}

.tza-muted, .tza-note {
  color: var(--tz-muted);
  font-size: 14px;
}

.tza p {
  margin: 0 0 12px;
}

/* Buttons: the shop's teal .button; outline and quiet links for everything that is not the one next step */
.tza-form {
  display: inline-block;
  margin: 0;
}

.tza .tza-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  line-height: 1.2;
}

.tza .tza-btn--outline {
  border: 2px solid var(--tz-primary);
  background: transparent;
  color: var(--tz-primary);
}

.tza .tza-btn--outline:hover {
  background: var(--tz-primary);
  color: #fff;
}

.tza-quiet, .tza-linkbutton {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tz-primary);
  font: inherit;
  font-size: 16px;
  text-decoration: underline;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.tza-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 12px 0 0;
}

/* Badges and progress */
.tza-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tza-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px 2px 6px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  white-space: nowrap;
}

.tza-badge .tz-ico {
  width: 14px;
  height: 14px;
}

.tza-badge--run { background: var(--tz-primary-tint); color: var(--tz-primary); }
.tza-badge--pause, .tza-badge--done { background: var(--tz-surface-alt); color: var(--tz-heading); }
.tza-badge--done { color: var(--tz-muted); }
.tza-badge--warn { background: var(--tza-warn-tint); color: var(--tza-warn); }
.tza-badge--alert { background: var(--tz-alert-tint); color: var(--tz-alert); }
.tza-badge--gift { background: var(--tz-success-tint); color: var(--tz-success); }

.tza-pill {
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.tza-pill--alert { background: var(--tz-alert-tint); color: var(--tz-alert); }
.tza-pill--open { background: var(--tz-success-tint); color: var(--tz-success); }
.tza-pill--done { background: var(--tz-surface-alt); color: var(--tz-muted); }

.tza-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 8px 0 0;
  color: var(--tz-muted);
  font-size: 14px;
}

.tza-dots {
  display: inline-flex;
  gap: 6px;
}

.tza-dot {
  position: relative;
  width: 14px;
  height: 14px;
  border: 2px solid var(--tz-primary);
  border-radius: 50%;
}

.tza-dot--done { background: var(--tz-primary); }
.tza-dot--paid { box-shadow: inset 0 0 0 3px #fff; background: var(--tz-primary); }
.tza-dot--open { border-color: var(--tz-border); }
.tza-dot--gift { border-color: var(--tz-success); }
.tza-dot--gift::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--tz-success);
}

/* Notices, problems, facts */
.tza-result, .tza-problem {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 12px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 4px solid;
  border-radius: var(--tz-radius);
}

.tza-result p, .tza-problem p {
  flex: 1 1 220px;
  margin: 0;
}

.tza-result--ok { border-color: var(--tz-success); background: var(--tz-success-tint); color: #2f4b1a; }
.tza-result--warn, .tza-problem--warn { border-color: var(--tza-warn); background: var(--tza-warn-tint); color: #5a3b00; }
.tza-result--alert, .tza-problem--alert { border-color: var(--tz-alert); background: var(--tz-alert-tint); color: #5c0000; }

.tza-problem .tza-form {
  flex: 0 0 auto;
}

#tza-ergebnis:focus, #tza-ergebnis:focus-visible {
  outline: none;
}

/* below Flatsome's sticky header when scrolled to */
#tza-ergebnis, .tza-confirm, .tza-address, .tza-tea-error {
  scroll-margin: 120px 0 24px;
}

.tza-facts {
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
}

.tza-facts li {
  display: flex;
  gap: 10px;
  margin: 0 0 8px;
}

.tza-facts .tz-ico {
  color: var(--tz-primary);
}

.tza-effect {
  display: flex;
  gap: 8px;
  color: var(--tz-heading);
  font-size: 14px;
}

.tza-effect .tz-ico {
  width: 18px;
  height: 18px;
  color: var(--tz-primary);
}

.tza details > summary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--tz-primary);
  text-decoration: underline;
  cursor: pointer;
}

/* hangs from the text column of the line above it, past its icon */
.tza-why {
  padding-left: 26px;
}

.tza-why > summary {
  font-size: 14px;
}

.tza-why__text {
  max-width: 60ch;
}

.tza-why p {
  color: var(--tz-muted);
  font-size: 14px;
}

/* the parts konto.js slides open and shut keep their margins inside, so the height it measures is the height they take */
.tza-edit > :not(summary), .tza-why__text, .tza-confirm {
  display: flow-root;
}

/* Login box (logged out): one column with WooCommerce's Anmelden below it */
.tza-login {
  margin: 0 0 8px;
}

@media (min-width: 850px) {
  /* without WooCommerce's registration column (the tab's login) the password form is as wide as the link box */
  .tza-login, .tza-login ~ .account-container > .account-login-inner {
    max-width: calc(50% - 30px);
  }
}

@media (max-width: 479px) {
  .tza-login .tza-btn {
    width: 100%;
  }
}

/* the password form is the second way in, below the link */
.tza-login ~ .account-container h2 {
  font-size: 16px;
}

.tza-login .tza-card h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.tza-login input[type="email"] {
  max-width: 100%;
}

.tza-or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--tz-muted);
  font-size: 14px;
}

.tza-or::before, .tza-or::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--tz-divider);
}

/* Connect card: an account that has not proven its address yet, three steps as pictures */
.tza-connect .tza-card__title {
  font-size: 20px;
}

.tza-steps {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.tza-steps li {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--tz-heading);
  font-size: 14px;
  text-align: center;
}

.tza-steps .tz-ico {
  box-sizing: content-box;
  width: 24px;
  height: 24px;
  padding: 12px;
  border-radius: 50%;
  background: var(--tz-primary-tint);
  color: var(--tz-primary);
}

.tza-steps li.is-done .tz-ico {
  background: var(--tz-success-tint);
  color: var(--tz-success);
}

.tza-connect__to {
  overflow-wrap: anywhere;
}

.tza-connect__line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tza-connect__line .tz-ico {
  color: var(--tz-primary);
}

.tza-connect > .tza-muted {
  margin: 12px 0 0;
}

.tza-pw .tza-muted {
  margin: 8px 0 0;
}

@media (max-width: 479px) {
  .tza-connect .tza-btn {
    width: 100%;
  }
}

/* List */
.tza > .tza-title {
  margin-bottom: 16px;
}

.tza-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 20px;
}

.tza-list > .tza-card {
  margin: 0;
}

/* a region rendered empty for konto.js to fill */
.tza-card[hidden] {
  display: none;
}

/* the tab's password card: a cell of the Abo grid, not the 560px of Kontodetails */
.tza-list > .tza-pw {
  max-width: none;
}

.tza-card--link {
  position: relative;
  padding-right: 48px;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .2s;
}

.tza-card--link:hover {
  color: inherit;
  box-shadow: 1px 1px 20px rgba(0, 0, 0, .25);
}

.tza-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tza-card__head .tza-card__title {
  margin: 0;
}

.tza-card__nr {
  color: var(--tz-muted);
  font-size: 14px;
  font-weight: 400;
}

.tza-card__go {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--tz-primary);
}

.tza-next {
  display: flex;
  flex-direction: column;
  margin: 12px 0 0;
}

.tza-next strong {
  color: var(--tz-heading);
}

.tza-method {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--tz-heading);
}

.tza-method .tz-ico {
  color: var(--tz-primary);
}

.tza-treue .tz-ico {
  color: var(--tz-success);
}

.tza-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
  margin: 20px 0 0;
}

.tza-links .tza-form {
  display: inline-flex;
}

.tza-links .tza-linkbutton {
  margin: 0;
}

.tza-links__mail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

.tza-links__mail .tz-ico {
  color: var(--tz-primary);
}

/* a long address wraps under its label instead of widening a phone's page */
.tza-links__to {
  flex-wrap: wrap;
  min-width: 0;
}

.tza-links__to strong {
  overflow-wrap: anywhere;
}

.tza-links > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
}

/* The customer's own cards below the Abos: Lieferig, Guetschine, favourite teas */
.tza-konto {
  display: grid;
  /* the favourites' swipe row would widen an auto column past the phone */
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin: 20px 0 0;
}

.tza-konto > .tza-card {
  order: 0;
  margin: 0;
}

.tza :is(.tza-facts, .tza-paylist, .tza-months, .tza-tea, .tza-tea-rare, .tza-rate, .tza-vouchers__list) li {
  margin-left: 0;
}

/* Guetschine: the bought ones, a code to redeem, one to buy */
.tza-vouchers .tza-card__title .tz-ico {
  color: var(--tz-success);
}

.tza-vouchers__list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.tza-vouchers__list li {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  border-bottom: 1px solid var(--tz-divider);
}

.tza-vouchers__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  color: var(--tz-heading);
}

.tza-vouchers__code {
  color: var(--tz-heading);
  letter-spacing: .05em;
  white-space: nowrap;
}

.tza-vouchers__sub {
  color: var(--tz-muted);
  font-size: 13px;
}

/* the field's hint or refusal right under it on every width: on a narrow card the button follows them, on a wide one it
   stands beside the field and they span both */
.tza-redeem {
  container-type: inline-size;
}

.tza-redeem__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  gap: 8px;
  max-width: 480px;
  padding: 8px 0 4px;
}

.tza-redeem__form .form-row {
  justify-self: stretch;
}

.tza-redeem__form .form-row, .tza-redeem__form .input-text, .tza-redeem__form .tza-field-error {
  margin: 0;
}

@container (min-width: 25em) {
  .tza-redeem__form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .tza-redeem__form .tza-field-error {
    grid-column: 1 / -1;
  }

  .tza-redeem__form .tza-btn {
    grid-area: 1 / 2;
  }
}

.tza-vouchers .tza-actions {
  margin-top: 16px;
}

/* Ihri Lieblingstees: tiles into the shop, side by side, a row to swipe on phones */
.tza-favs .tza-card__title .tz-ico {
  color: var(--tza-warn);
}

.tza-favs__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tza-favs__list li {
  margin: 0;
}

.tza-fav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  color: var(--tz-heading);
  text-decoration: none;
}

.tza-fav:hover {
  color: var(--tz-primary);
}

.tza .tza-fav__img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--tz-radius);
  background: var(--tz-surface-alt);
}

.tza-fav__name {
  font-weight: 700;
  line-height: 1.3;
}

.tza-fav__go {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: auto;
  color: var(--tz-primary);
  font-size: 14px;
}

.tza-favs__shop {
  margin: 8px 0 0;
}

/* Detail */
.tza-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin: 0 0 4px;
}

.tza-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 20px;
}

.tza-head .tza-progress {
  flex-basis: 100%;
  margin: 0;
}

.tza-grid, .tza-main, .tza-side {
  display: flex;
  flex-direction: column;
}

.tza-main, .tza-side {
  display: contents;
}

.tza-hero { order: 1; border-left: 4px solid var(--tz-primary); }
.tza-boxes { order: 2; }
.tza-delivery { order: 3; }
.tza-pay { order: 4; }
.tza-help { order: 5; }
.tza-cancel { order: 6; }

.tza-hero--pause, .tza-hero--done { border-left-color: var(--tz-border); }
.tza-hero--warn { border-left-color: var(--tza-warn); }
.tza-hero--alert { border-left-color: var(--tz-alert); }

.tza-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--tz-divider);
}

.tza-hero > h2 + .tza-row, .tza-problem + .tza-row {
  border-top: 0;
}

.tza-row > .tz-ico {
  width: 24px;
  height: 24px;
  color: var(--tz-primary);
}

.tza-row__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.tza-row__text strong {
  color: var(--tz-heading);
  font-size: 17px;
}

.tza-row .tza-method {
  margin-top: 4px;
  font-size: 14px;
}

.tza-row .tza-method .tz-ico {
  width: 18px;
  height: 18px;
}

.tza-resume, .tza-offer {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--tz-divider);
}

.tza-offer .tz-ico {
  vertical-align: -4px;
  margin-right: 6px;
  color: var(--tz-success);
}

/* Confirm step: the question, its facts, the verb, a way back */
.tza-confirm {
  margin: 12px 0 0;
  padding: 16px;
  border-top: 4px solid var(--tz-primary);
  border-radius: var(--tz-radius);
  background: var(--tz-surface-alt);
}

/* inside a card the step is a part of it, not a second card */
.tza-card .tza-confirm {
  padding: 16px 0 0;
  border-radius: 0;
  background: none;
}

.tza .tza-confirm:focus, .tza .tza-confirm:focus-visible {
  outline: none;
}

.tza-confirm h2 {
  margin: 0 0 12px;
  font-size: 19px;
}

/* Box timeline: one disc per month, a line between them, sideways scrolling when narrow */
.tza-months {
  display: flex;
  margin: 0;
  padding: 4px 0 8px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x proximity;
}

.tza-month {
  position: relative;
  display: flex;
  flex: 1 0 76px;
  flex-direction: column;
  align-items: center;
  margin: 0;
  text-align: center;
  scroll-snap-align: center;
}

.tza-month + .tza-month::before {
  content: "";
  position: absolute;
  top: 20px;
  right: calc(50% + 24px);
  left: calc(-50% + 24px);
  border-top: 2px solid var(--tz-divider);
}

.tza-month__disc {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: #fff;
  color: var(--tz-primary);
}

.tza-month__name {
  margin-top: 6px;
  color: var(--tz-heading);
  font-weight: 700;
  font-size: 15px;
}

.tza-month__word {
  color: var(--tz-muted);
  font-size: 13px;
  line-height: 1.3;
}

.tza-month--ok .tza-month__disc { border-color: var(--tz-success); background: var(--tz-success); color: #fff; }
.tza-month--run .tza-month__disc { background: var(--tz-primary); color: #fff; }
.tza-month--due .tza-month__disc { background: var(--tz-primary-tint); }
.tza-month--planned .tza-month__disc { border-style: dashed; border-color: var(--tz-muted); color: var(--tz-muted); }
.tza-month--muted .tza-month__disc { border-color: var(--tz-border); color: var(--tz-muted); }
.tza-month--alert .tza-month__disc { border-color: var(--tz-alert); background: var(--tz-alert-tint); color: var(--tz-alert); }
.tza-month--alert .tza-month__word { color: var(--tz-alert); }
.tza-month--struck .tza-month__name { text-decoration: line-through; }
.tza-month.is-now .tza-month__name { color: var(--tz-primary); }

/* Boxe: the boxes of a fixed term and their rating pages */
.tza-rate__title {
  margin: 20px 0 4px;
  font-size: 15px;
}

.tza-rate {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tza-rate__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  min-height: 56px;
  padding: 6px 0;
  border-bottom: 1px solid var(--tz-divider);
}

.tza-rate__box, .tza-rate__done {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tza-rate__box {
  min-width: 0;
  color: var(--tz-heading);
}

.tza-rate__box .tz-ico {
  flex: none;
  color: var(--tz-success);
}

.tza-rate__row--packing .tza-rate__box .tz-ico {
  color: var(--tz-muted);
}

.tza-rate__done {
  flex: none;
  gap: 4px;
  color: var(--tz-muted);
  font-size: 14px;
}

.tza-rate .tza-btn, .tza-rate__go {
  flex: none;
}

.tza-rate__go {
  gap: 4px;
  font-size: 14px;
}

.tza-rate__go .tz-ico {
  width: 18px;
  height: 18px;
}

.tza-rate__more > summary {
  font-size: 14px;
}

.tza .tza-btn--small {
  padding: 0 14px;
  font-size: 14px;
}

.tza .tza-btn--small .tz-ico {
  width: 18px;
  height: 18px;
}

/* Lieferig */
.tza-setting {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--tz-divider);
}

.tza-setting__label {
  grid-column: 1;
  color: var(--tz-muted);
  font-size: 14px;
}

.tza-setting__value {
  grid-column: 1;
  color: var(--tz-heading);
}

.tza-edit {
  display: contents;
}

.tza-edit > summary {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.tza-edit > :not(summary) {
  grid-column: 1 / -1;
}

/* where details render their content in this box, it is the grid item and would sit in the label's column; a rule of its
   own, so a browser without it keeps the one above */
.tza-edit::details-content {
  grid-column: 1 / -1;
}

.tza-edit[open] > summary {
  font-weight: 700;
}

.tza-address {
  max-width: 560px;
  padding: 8px 0 12px;
}

.tza-zipcity {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 0 12px;
}

.tza .input-text {
  min-height: 44px;
}

.tza .input-text:focus-visible {
  outline: 3px solid var(--tz-primary);
  outline-offset: 0;
}

.tza .input-text[aria-invalid="true"] {
  border-color: var(--tz-alert);
}

.tza .input-text[aria-invalid="true"]:focus {
  outline-color: var(--tz-alert);
}

.tza-field-error:not([hidden]) {
  display: flex;
  gap: 6px;
  color: var(--tz-alert);
  font-size: 14px;
}

.tza-field-error .tz-ico {
  width: 18px;
  height: 18px;
}

.tza-delivery .tza-effect {
  margin: 12px 0 0;
}

.tza-tea__group {
  margin: 12px 0 4px;
  font-size: 14px;
}

.tza .tza-tea__group--sure { color: var(--tz-success); }
.tza .tza-tea__group--rare { color: var(--tza-warn); }

/* the old profile's green and orange bars: sure in the box, rarely */
.tza-tea, .tza-tea-rare {
  margin: 0 0 12px;
  padding: 0 0 0 12px;
  border-left: 4px solid var(--tz-success);
  list-style: none;
}

.tza-tea-rare {
  border-left-color: var(--tza-warn);
}

.tza :is(.tza-tea, .tza-tea-rare) li {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 8px;
  min-height: 44px;
  border-bottom: 1px solid var(--tz-divider);
  background: #fff;
}

.tza-tea li.is-moving {
  z-index: 1;
}

/* on a phone a long name takes a second line, the buttons stay on the row */
.tza-tea__name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tza-tea__moves {
  display: flex;
  flex: none;
  margin-left: auto;
}

/* the first is on top already; konto.js moves a row there before the server renders it without the button */
.tza-tea li:first-child .tza-top {
  visibility: hidden;
}

.tza :is(.tza-tea, .tza-tea-rare) li:focus:not(:focus-visible) {
  outline: none;
}

.tza :is(.tza-tea, .tza-tea-rare) li:focus-visible {
  outline: 3px solid var(--tz-primary);
  outline-offset: -3px;
}

.tza .tza-up {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--tz-primary);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}

.tza .tza-up .tz-ico {
  width: 18px;
  height: 18px;
}

/* Zahlig */
.tza-pay .tza-method {
  margin: 0 0 8px;
}

.tza-pay .tza-effect {
  margin: 0 0 4px;
}

.tza-payments {
  margin: 20px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--tz-divider);
}

.tza-payments h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.tza-paylist {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.tza-paylist li {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--tz-divider);
}

.tza-paylist__main {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tza-paylist__sub {
  color: var(--tz-muted);
  font-size: 13px;
}

.tza-help p, .tza-pw h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.tza-help .tza-muted {
  margin: 4px 0 0 28px;
}

.tza-help .tz-ico, .tza-pw h2 .tz-ico {
  color: var(--tz-primary);
}

.tza-cancel {
  margin: 0 0 20px;
}

/* Kontodetails: the box replaces WooCommerce's password change, which asks for a password a link customer never had */
.tza-pw {
  max-width: 560px;
}

.tza-pw h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.tza-pw ~ .woocommerce-EditAccountForm fieldset {
  display: none;
}

@container (min-width: 820px) {
  .tza-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr);
    gap: 24px;
    align-items: start;
  }

  .tza-main, .tza-side {
    display: block;
  }
}

@container (min-width: 820px) {
  .tza-konto {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  /* the card above the Abos as wide as one of their columns */
  .tza > .tza-connect {
    max-width: calc((100% - 20px) / 2);
  }
}

@container (max-width: 559px) {
  .tza-card {
    padding: 16px;
  }

  /* room for the chevron beside the dots of a long term */
  .tza-card--link {
    padding-right: 44px;
  }

  .tza .tza-up {
    padding: 0 6px;
  }

  .tza-favs__list {
    grid-template-columns: none;
    grid-auto-columns: 42%;
    grid-auto-flow: column;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }

  .tza-favs__list li {
    scroll-snap-align: start;
  }

  /* narrow: the months as a short vertical list, so none hides behind a scroll */
  .tza-months {
    flex-direction: column;
    gap: 12px;
    overflow: visible;
  }

  .tza-month {
    flex: none;
    flex-direction: row;
    gap: 12px;
    text-align: left;
  }

  .tza-month + .tza-month::before {
    top: -12px;
    right: auto;
    left: 19px;
    height: 12px;
    border-top: 0;
    border-left: 2px solid var(--tz-divider);
  }

  .tza-month__name {
    min-width: 72px;
    margin: 0;
  }

  .tza-month__word {
    font-size: 14px;
  }

  .tza .tza-actions > .tza-form, .tza .tza-actions > .tza-btn, .tza-problem .tza-form, .tza-resume .tza-form, .tza-offer .tza-form {
    flex: 1 1 100%;
  }

  .tza .tza-actions .tza-btn, .tza-problem .tza-btn, .tza-resume .tza-btn, .tza-offer .tza-btn {
    width: 100%;
  }
}

@media print {
  .woocommerce-MyAccount-navigation, .tza-card:not(.tza-pay), .tza-head, .tza-back, .tza-cancel, .tza-pay > :not(.tza-payments) {
    display: none;
  }

  .tza-card {
    box-shadow: none;
  }
}

/* konto.js: a button waiting for the server, a notice that just came, a month or value the change just turned */
.tza .is-busy {
  pointer-events: none;
}

.tza-confirm [data-tza-close][aria-disabled="true"] {
  opacity: .5;
  cursor: default;
}

.tza .tza-btn.is-busy::before, .tza a.is-busy::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: tza-spin .7s linear infinite;
}

.tza a.is-busy::before {
  margin-right: 8px;
}

.tza-result.is-new {
  animation: tza-in .25s ease-out;
}

.tza-month.is-changed .tza-month__disc {
  animation: tza-pop .45s ease-out;
}

.tza-month.is-changed .tza-month__word, .tza-setting__value.is-changed {
  animation: tza-in .3s ease-out;
}

@keyframes tza-spin {
  to { transform: rotate(1turn); }
}

@keyframes tza-in {
  from { opacity: 0; transform: translateY(-4px); }
}

@keyframes tza-pop {
  0% { transform: scale(.6); }
  60% { transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .tza-result.is-new, .tza-month.is-changed .tza-month__disc, .tza-month.is-changed .tza-month__word, .tza-setting__value.is-changed {
    animation: none;
  }

  .tza .tza-btn.is-busy::before, .tza a.is-busy::before {
    animation-duration: 2s;
  }
}
