/* Gutschein kaufen und Guthaben pruefen (DEV-603).
   Bausteine aus components.css (.dbj-choice, .dbj-form, .co-choice aus
   checkout.css); hier nur Seitenlayout und die Zusammenfassung. */
@import url('checkout.css');

.vc-page { max-width: 46rem; }
.vc-page--narrow { max-width: 34rem; }
.vc-lead { font-size: var(--dbj-fs-lead, 1.1rem); color: var(--dbj-text-2); margin: 0 0 var(--dbj-space-5); max-width: 36rem; }
.vc-form .cfg-step { border-top: 1px solid var(--dbj-line, #d9d9d9); padding-top: var(--dbj-space-4); margin-top: var(--dbj-space-4); }
.vc-form .cfg-step:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.vc-form .cfg-step__title { font-size: 1.35rem; margin: 0 0 var(--dbj-space-3); }
.vc-optional { font-weight: 400; font-size: var(--dbj-fs-small); color: var(--dbj-text-2); }
.vc-custom { margin-top: var(--dbj-space-3); max-width: 18rem; }
.vc-custom label { display: block; font-size: var(--dbj-fs-small); font-weight: 700; margin-bottom: 0.15rem; }
.vc-error { color: var(--dbj-magenta); font-weight: 700; font-size: var(--dbj-fs-small); margin: 0.4rem 0 0; }
/* Schritt "Form" (Nick 14.10.: zu gedraengt in der Pille): zwei Zeilen Text
   passen nicht in eine Ellipse. Darum eine Karte mit kleiner Rundung, Luft
   und sichtbarem Radio-Kreis; die Auswahl zeigt sich am petrolfarbenen Rand
   und einem leichten Grund statt an weisser Schrift auf Petrol. */
.vc-forms { max-width: 34rem; gap: var(--dbj-space-3); }
.vc-forms .co-choice {
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.95rem 1.15rem;
    border-radius: var(--dbj-radius-field);
    border-color: #c9c9c9;
}
.vc-forms .co-choice__text { font-size: var(--dbj-fs-body, 1rem); line-height: 1.35; }
.vc-forms .co-choice__text::before {
    content: ""; display: inline-block; vertical-align: -0.15em;
    width: 1rem; height: 1rem; margin-right: 0.7rem;
    border: 1.5px solid var(--dbj-text); border-radius: 50%; box-sizing: border-box;
}
.vc-forms .co-choice__text small { margin: 0.3rem 0 0 1.7rem; line-height: 1.4; }
.vc-forms .co-choice:has(input:checked) {
    background: #EEF5F6;
    border-color: var(--dbj-petrol);
    color: var(--dbj-text);
    box-shadow: inset 0 0 0 1px var(--dbj-petrol);
}
.vc-forms .co-choice:has(input:checked) .co-choice__text::before { border-width: 5px; border-color: var(--dbj-petrol); }
.vc-forms .co-choice:has(input:checked) .co-choice__text small { color: var(--dbj-text-2); }
.vc-fields { max-width: 34rem; }
.vc-hint { font-size: var(--dbj-fs-small); color: var(--dbj-text-2); margin: 0.4rem 0 0; }
.vc-date { margin-top: var(--dbj-space-2); max-width: 14rem; }
.vc-summary { border-top: 2px solid var(--dbj-text); margin-top: var(--dbj-space-5); padding-top: var(--dbj-space-3); max-width: 34rem; }
.vc-summary__row { display: flex; justify-content: space-between; gap: var(--dbj-space-3); padding: 0.3rem 0; font-variant-numeric: tabular-nums; }
.vc-summary__total { font-weight: 700; font-size: 1.15rem; border-top: 1px solid var(--dbj-line, #d9d9d9); margin-top: 0.3rem; padding-top: 0.6rem; }
.vc-submit { margin-top: var(--dbj-space-3); }
/* Vollprüfung 4.11.: Beschriftung klein und Regular, Eingabe in der
   XD-Grösse (Regel 5), Titel wie die Kontoseiten (Desktop 33). */
.vc-balance-form label { display: block; font-size: var(--dbj-t-label); font-weight: 400; margin: var(--dbj-space-3) 0 0.15rem; }
.vc-balance-row .co-input { font-size: var(--dbj-t-input); }
@media (min-width: 1200px) {
    .vc-page--narrow .dbj-section__title { font-size: 2.0625rem; }
    .vc-balance p { font-size: 1.0625rem; }
}
.vc-balance-row { display: flex; gap: var(--dbj-space-2); flex-wrap: wrap; }
.vc-balance-row .co-input { flex: 1 1 14rem; text-transform: uppercase; letter-spacing: 0.08em; }
.vc-balance { margin-top: var(--dbj-space-4); }
.vc-balance__amount { font-size: 2.2rem; font-weight: 700; margin: 0 0 0.3rem; font-variant-numeric: tabular-nums; }
.cfm-voucher-code { letter-spacing: 0.08em; }
@media (max-width: 575.98px) {
    .vc-form .cfg-step__title { font-size: 1.15rem; }
}

/* Auf der Shop-Produktseite steht das Formular in der rechten Spalte
   (DEV-603, Jannis 14.10.): keine zweite Seitenbreite, Schritte etwas
   kompakter, der Textblock darunter wie bei jedem Produkt. */
.vc-page--in-shop { max-width: none; margin-top: var(--dbj-space-3); }
.vc-page--in-shop .vc-form .cfg-step__title { font-size: 1.15rem; }
.vc-page--in-shop .vc-summary { margin-top: var(--dbj-space-4); }
/* Nick 14.10.: Luft zwischen "In den Warenkorb" und dem Beschreibungstext.
   Der Knopf bekommt Abstand zur Zusammenfassung und zum Hinweis darunter,
   der Text beginnt nach einer Linie wie ein neuer Abschnitt. */
.vc-page--in-shop .vc-submit { margin-top: var(--dbj-space-4); }
.vc-page--in-shop .vc-submit + .vc-hint { margin-top: var(--dbj-space-3); }
.shop-voucher-text { margin-top: var(--dbj-space-6, 3rem); padding-top: var(--dbj-space-4);
  border-top: 1px solid var(--dbj-line, #d9d9d9); max-width: 36rem; }
.shop-voucher-text p { margin: 0 0 0.8rem; }

/* Beträge wie alle Auswahlfelder (Nick 24.11., Punkt 13): Handy 40 px / 13,
   Desktop 44 px / 20 wie die Auswahl auf /bestellen. */
@media (min-width: 1200px) {
    .vc-page [data-group="amount"] > button { font-size: 1.25rem; }
}
