/* The Withdrawal Button's screens, on top of the dashboard's stylesheet (tokens only, light mode). */

/* ---------- Bar: "Rulecart / Widerrufsbutton" ---------- */
.bar__tool { display: inline-flex; align-items: center; gap: 0.25rem; min-width: 0; }
.bar__slash { font-family: var(--font-display); font-size: var(--text-h3); font-weight: 700; color: var(--muted-foreground); }
.bar__toolname { display: inline-flex; align-items: center; min-height: 2.75rem; min-width: 0; padding: 0 0.25rem; border-radius: var(--radius-sm); font-family: var(--font-display); font-size: var(--text-h3); font-weight: 800; letter-spacing: -0.01em; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 30rem) {
  .bar__tool .logo span { display: none; }
  .bar__slash, .bar__toolname { font-size: var(--text-body); }
}
/* A 360 px phone: the name, the language and "sign out" stay on one line. */
@media (max-width: 23.5rem) {
  .bar__slash, .bar__toolname { font-size: var(--text-small); }
}

/* ---------- What the button does: facts, each with a check ---------- */
.wb-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.625rem; }
.wb-facts li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.wb-facts .icon { width: 1.5rem; height: 1.5rem; padding: 0.2rem; border-radius: 50%; background: var(--foreground); color: var(--background); }

/* ---------- The button on a light and on a dark footer ---------- */
.wb-look { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.wb-strip { display: grid; gap: 0.875rem; justify-items: start; padding: 1.25rem; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.wb-strip__label { font-size: var(--text-small); font-weight: 700; }
.wb-strip__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: var(--text-small); }
.wb-strip__links span { text-decoration: underline; text-underline-offset: 0.2em; }
.wb-strip--light { background: #ffffff; color: #3d3d3d; }
.wb-strip--dark { background: #111111; color: #d9d9d9; border-color: #111111; }

/* ---------- The list of withdrawals ---------- */
.wb-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--card); overflow: hidden; }
.wb-list li + li { border-top: 1px solid var(--border); }
.wb-row { display: grid; grid-template-columns: minmax(9rem, max-content) minmax(0, 1fr) minmax(0, 1fr) max-content; gap: 0.25rem 1rem; align-items: center; padding: 0.75rem 1rem; text-decoration: none; }
.wb-row:hover { background: var(--muted); }
.wb-row__when { display: grid; gap: 0.125rem; }
.wb-row__ref { font-size: var(--text-small); color: var(--muted-foreground); }
.wb-row__name { font-weight: 700; overflow-wrap: anywhere; }
.wb-row__contract { overflow-wrap: anywhere; }
@media (max-width: 40rem) {
  .wb-row { grid-template-columns: minmax(0, 1fr) max-content; }
  .wb-row__when { grid-column: 1 / -1; font-size: var(--text-small); }
  .wb-row__contract { grid-column: 1 / -1; grid-row: 3; font-size: var(--text-small); color: var(--muted-foreground); }
}

/* The daily check's pages (views/check.tsx): what the page is, its address under it, the outcome on the right. */
.wb-check { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 0.125rem 1rem; align-items: center; padding: 0.75rem 1rem; }
.wb-check__kind { font-weight: 700; }
.wb-check__address { grid-column: 1 / -1; font-size: var(--text-small); color: var(--muted-foreground); overflow-wrap: anywhere; }
.wb-check > span:last-child { grid-column: 2; grid-row: 1; }

/* The button's code box and the guides per shop system are the dashboard's own (hosted.css: .code--cut, .guide). */
/* The Shopware guide's own code, above its steps: the steps' side margin (.guide ol). */
.guide__code { padding: 0 1rem 1rem; }

/* ---------- The start screen: the lead and the free line use the card's width ---------- */
/* "pretty" wrapping evens the last lines and left four short lines with an empty band at 390 px: plain wrapping here. */
.door .lead, .door .lead + p { max-width: none; text-wrap: wrap; }
/* On a phone the first screen holds the title, the lead, the free line, the mail field and the key (founder, 21 Nov
   2026: the title and the lead each in two lines): less room above the card and inside it, and the title one size step
   down. */
@media (max-width: 30rem) {
  .door { padding-top: 0.25rem; }
  .door .card { padding: 1.25rem 1rem; gap: 1rem; }
  .door h1 { font-size: var(--text-h3); line-height: var(--text-h3--line-height); letter-spacing: var(--text-h2--letter-spacing); font-weight: var(--text-h2--font-weight); }
}

/* ---------- The switch at the end of the home ---------- */
.wb-switch { justify-items: start; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.wb-switch .linkbtn { padding-inline: 0; text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- The home's title with the plan's stamp: the stamp at the top right of the title's line ---------- */
.wb-titlerow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: 1rem; }
.wb-titlerow .stamp { margin-top: 0.25rem; }

/* ---------- The phone bridge: "send the link to my computer", on a narrow screen only ---------- */
@media (min-width: 40.0625rem) {
  .wb-phone { display: none; }
}

/* ---------- The home's steps on a phone (phone walk, 22 Nov 2026, fault 4) ---------- */
/* The dashboard's steps keep the number in a column of its own, so on a phone everything in a step stood in about
   250 px, with an empty band under the number. Here the number sits beside the title only, and the step's text, code
   and guides use the card's full width. Only this tool's home (.wb-steps); the dashboard's .steps stay as they are. */
@media (max-width: 40rem) {
  .wb-steps .step { grid-template-columns: auto minmax(0, 1fr); gap: 0.625rem 0.75rem; justify-items: start; }
  .wb-steps .step__body { display: contents; }
  .wb-steps .step__mark { grid-column: 1; align-self: center; }
  .wb-steps .step__body > h2 { grid-column: 2; align-self: center; }
  .wb-steps .step__body > :not(h2) { grid-column: 1 / -1; }
  .wb-steps .step__body > div, .wb-steps .step__body > form { justify-self: stretch; }
}
/* The code's preview in one line that ends in "…": wrapped, it broke inside a word ("app.rulecar / t.com"). The whole
   code is what "Kopieren" takes; without script the full code shows (the noscript <pre>). */
.wb-code p.code__cut { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; }

/* ---------- The plan page on a phone (phone walk, 22 Nov 2026, fault 5) ---------- */
/* Free stays first, but as one compact row (its name, its stamp, its price), so the first paid key ("Starter 7 Tage
   testen") stands on the first screen at 390 x 844. Every paid tile keeps its loud key; none is highlighted. Wide
   screens are unchanged. The saving line that only holds its place on the monthly view goes on a phone (no grid to
   align there). */
@media (max-width: 40rem) {
  /* The row reads: the plan's name, its price, and the stamp "Dein Tarif" at the right end (founder, 22 Nov 2026). */
  .wb-plans .plan--free { grid-template-rows: none; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.5rem 0.75rem; padding-block: 1rem; }
  .wb-plans .plan--free > .row { display: contents; }
  .wb-plans .plan--free > .row > h3 { order: 1; }
  .wb-plans .plan--free > .plan__price, .wb-plans .plan--free > .price { order: 2; }
  .wb-plans .plan--free > .row > .stamp { order: 3; justify-self: end; }
  .wb-plans .plan--free .plan__list { display: none; }
  .wb-plans .plan--free .price { margin: 0; }
  .wb-plans .plan__saving--held { display: none; }
  /* A paid tile: its key and terms right under the price, what the plan holds below them. In full it would leave the
     key at the screen's bottom edge, under the help button. */
  .wb-plans .plan { grid-template-rows: none; }
  .wb-plans .plan > .plan__list { order: 1; }
}

.wb-look .rulecart-withdraw { display:inline-block; width:fit-content; max-width:100%; box-sizing:border-box; margin:12px 0 16px; padding:6px 12px; border:1px solid currentColor; border-radius:6px; background:transparent; box-shadow:none; color:inherit; font-family:inherit; font-size:14px; font-size:max(14px,1em); font-style:normal; font-weight:500; line-height:20px; letter-spacing:normal; text-align:center; text-decoration:none; text-transform:none; white-space:normal; overflow-wrap:break-word; cursor:pointer; }
.rulecart-withdraw:hover{background:color-mix(in srgb,currentColor 10%,transparent)!important}.rulecart-withdraw:focus-visible{outline:2px solid currentColor!important;outline-offset:2px!important}
