/*
 * qanuk.io Seitenvorlagen: EDD-Seiten (Kasse, Konto, Login, Bestätigung, Fehler, Rechnung). Seit 1.8.0.
 * Lädt nur auf diesen Seiten (includes/edd.php), nach site.css und dem EDD-Stylesheet.
 * EDD-Markup bleibt unverändert; Inline-Stile der Warenkorb-Vorlage von Salient werden hier überschrieben.
 */

/* ---------- Gemeinsam: Felder, Knöpfe, Meldungen ---------- */
.qsite-edd #qsite .qsite-tx { padding-bottom: 88px; }
.qsite-edd .qsite-tx-head + .qsite-tx-row { padding-top: 16px; }
#qsite .qsite-edd-badge { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--qs-green), var(--qs-blue)); }

.qsite-edd #qsite .qsite-tx :is(form, .edd-blocks-form) :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], select, textarea) { width: 100%; max-width: none; min-height: 48px; padding: 10px 14px; border: 1px solid #cfd9e1; border-radius: 10px; background: #fff; color: var(--qs-text); font: inherit; font-size: 16px; box-shadow: 0 1px 0 rgba(14, 35, 52, .03); transition: border-color .15s, box-shadow .15s; }
.qsite-edd #qsite .qsite-tx :is(form, .edd-blocks-form) :is(input, select, textarea):focus { border-color: var(--qs-blue); box-shadow: 0 0 0 4px rgba(86, 137, 255, .18); outline: none; }
.qsite-edd #qsite .qsite-tx :is(form, .edd-blocks-form) :is(input, select, textarea):focus-visible { outline: none; }
.qsite-edd #qsite .qsite-tx :is(form, .edd-blocks-form) select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6b77' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.qsite-edd #qsite .qsite-tx :is(form, .edd-blocks-form) label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 650; color: var(--qs-navy); }
.qsite-edd #qsite .qsite-tx :is(form, .edd-blocks-form) .edd-description { display: block; margin: -2px 0 8px; font-size: 14px; line-height: 1.45; color: var(--qs-muted); }
.qsite-edd #qsite .qsite-tx .edd-required-indicator { color: #d4415b; margin-left: 2px; }
.qsite-edd #qsite .qsite-tx form :is(input[type="submit"], button[type="submit"], .edd-submit),
.qsite-edd #qsite .qsite-tx .edd-blocks-form .edd-submit { min-height: 48px; padding: 0 22px; border: 2px solid var(--qs-navy); border-radius: 10px; background: var(--qs-navy); color: #fff; font: inherit; font-size: 16px; font-weight: 650; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.qsite-edd #qsite .qsite-tx form :is(input[type="submit"], button[type="submit"], .edd-submit):hover { background: var(--qs-navy-2); border-color: var(--qs-navy-2); }
.qsite-edd #qsite .qsite-tx :is(input[type="submit"], button):focus-visible { outline: 3px solid var(--qs-blue); outline-offset: 3px; }
.qsite-edd #qsite .qsite-tx :is(.edd-submit, button)[disabled] { opacity: .45; cursor: not-allowed; }
.qsite-edd #qsite .qsite-tx form input[type="checkbox"], .qsite-edd #qsite .qsite-tx form input[type="radio"] { width: 18px; height: 18px; min-height: 0; margin: 0 8px 0 0; accent-color: var(--qs-navy); flex: none; }

.qsite-edd #qsite .qsite-tx :is(.edd-alert, .edd_errors .edd_error) { margin: 0 0 18px; padding: 14px 16px; border: 1px solid; border-radius: 12px; font-size: 15px; line-height: 1.5; }
.qsite-edd #qsite .qsite-tx :is(.edd-alert-error, .edd_errors) { border-color: #f3c4cc; background: #fff5f6; color: #8a1f33; }
.qsite-edd #qsite .qsite-tx .edd_errors { padding: 0; border: 0; background: none; }
.qsite-edd #qsite .qsite-tx .edd_errors .edd_error { border-color: #f3c4cc; background: #fff5f6; color: #8a1f33; }
.qsite-edd #qsite .qsite-tx .edd-alert-success { border-color: #bfe9d9; background: #f0fbf6; color: #155e45; }
.qsite-edd #qsite .qsite-tx :is(.edd-alert-info, .edd-alert-warn, .edd-notice) { display: block; margin: 0 0 18px; padding: 14px 16px; border: 1px solid #d6e2ff; border-radius: 12px; background: #f4f7ff; color: var(--qs-text); font-size: 15px; line-height: 1.5; }

/* ---------- Kasse ---------- */
/* Überschrift "Warenkorb" aus dem Seiteninhalt: die Übersicht trägt jetzt ihren eigenen Titel */
.qsite-edd-checkout .qsite-tx-text > h2:has(+ #edd_checkout_wrap), .qsite-edd-checkout .qsite-tx-text > h2:has(+ .qsite-edd-empty) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qsite-edd-checkout .qsite-tx-text { overflow: visible; }

#edd_checkout_wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); grid-template-areas: "form cart"; column-gap: 48px; align-items: start; }
#edd_checkout_wrap > * { grid-column: 1; }
#edd_checkout_wrap > #edd_checkout_cart_form { grid-area: cart; grid-row: 1 / span 20; position: sticky; top: 96px; }
#edd_checkout_wrap > #edd_checkout_form_wrap { grid-area: form; grid-row: 1 / span 20; }

/* Bestellübersicht als Karte */
#qsite #edd_checkout_cart_wrap { padding: 24px 24px 20px; border: 1px solid var(--qs-line); border-radius: 18px; background: #fff; box-shadow: 0 24px 50px -32px rgba(14, 35, 52, .45); }
#qsite #edd_checkout_cart_wrap > div[style] { margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; text-align: left !important; }
#qsite .qsite-tx .qsite-edd-cart-title { margin: 0 0 14px; font-size: 20px; letter-spacing: 0; }
#qsite #edd_checkout_cart { width: 100%; margin: 0; border: 0 !important; border-collapse: collapse; font-size: 16px; display: table !important; overflow: visible; }
#qsite #edd_checkout_cart thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#qsite #edd_checkout_cart :is(td, th) { padding: 12px 0 !important; border: 0 !important; border-bottom: 1px solid var(--qs-line) !important; background: transparent !important; vertical-align: top; text-align: left; font-weight: 400; }
#qsite #edd_checkout_cart td.edd_cart_item_name { font-size: 16px !important; font-weight: 650; color: var(--qs-navy); }
#qsite #edd_checkout_cart td.edd_cart_actions { width: 36px; text-align: center; }
#qsite #edd_checkout_cart td.edd_cart_item_price { width: auto !important; text-align: right; white-space: nowrap; font-weight: 650; color: var(--qs-navy); }
#qsite #edd_checkout_cart .qsite-edd-taxnote { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--qs-muted); white-space: normal; }
#qsite #edd_checkout_cart .edd_cart_remove_item_btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-top: -4px; border-radius: 8px; color: var(--qs-muted); text-decoration: none; }
#qsite #edd_checkout_cart .edd_cart_remove_item_btn:hover { background: #fff1f3; }
#qsite #edd_checkout_cart .edd_cart_remove_item_btn:hover .dashicons { color: #c2334d !important; }
#qsite #edd_checkout_cart .edd_cart_remove_item_btn .dashicons { font-size: 18px; width: 18px; height: 18px; }
#qsite #edd_checkout_cart tfoot :is(th, td) { padding: 8px 0 !important; border-bottom: 0 !important; font-size: 15px; font-weight: 400; color: var(--qs-muted); }
#qsite #edd_checkout_cart tfoot th:last-child { text-align: right; }
#qsite #edd_checkout_cart tfoot tr:first-of-type :is(th, td) { padding-top: 14px !important; }
#qsite #edd_checkout_cart tfoot tr:last-child :is(th, td) { padding-top: 14px !important; border-top: 1px solid var(--qs-line) !important; font-size: 18px; font-weight: 750; color: var(--qs-navy); }
#qsite #edd_checkout_cart :is(.edd_cart_discount_row, .edd_cart_discount) { color: #155e45; }
#qsite #edd_checkout_cart .edd_discount_remove { margin-left: 6px; }
#qsite #edd_checkout_cart_wrap .edd_cart_footer_row .edd-submit { min-height: 40px; font-size: 15px; }
#qsite .qsite-edd-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--qs-soft); font-size: 14px; line-height: 1.5; color: var(--qs-muted); }
#qsite .qsite-edd-note a { color: var(--qs-accent); font-weight: 600; }

/* Formularbereich links */
#qsite #edd_checkout_form_wrap { min-width: 0; }
#qsite #edd_checkout_form_wrap fieldset { margin: 0 0 20px; padding: 22px 24px 8px; border: 1px solid var(--qs-line); border-radius: 18px; background: #fff; }
#qsite #edd_checkout_form_wrap fieldset fieldset { margin: 6px 0 14px; padding: 0; border: 0; border-radius: 0; }
#qsite #edd_checkout_form_wrap legend { float: left; width: 100%; margin: 0 0 16px; padding: 0; font-size: 19px; font-weight: 750; color: var(--qs-navy); }
#qsite #edd_checkout_form_wrap legend + * { clear: both; }
#qsite #edd_checkout_form_wrap fieldset fieldset > legend { font-size: 16px; margin-bottom: 10px; }
#qsite #edd_checkout_form_wrap :is(p, fieldset > div) { margin: 0 0 16px; }
#qsite #edd_checkout_form_wrap #edd_checkout_user_info,
#qsite #edd_checkout_form_wrap #edd_cc_address { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
#qsite #edd_checkout_form_wrap :is(#edd_checkout_user_info, #edd_cc_address) > * { grid-column: 1 / -1; }
#qsite #edd_checkout_form_wrap :is(#edd-first-name-wrap, #edd-last-name-wrap, #edd-card-city-wrap, #edd-card-zip-wrap, #edd-card-state-wrap) { grid-column: auto; }
#qsite #edd_checkout_form_wrap #edd-card-state-wrap { grid-column: 1 / -1; }
#qsite #edd_checkout_form_wrap input[type="hidden"] { display: none; }
#qsite #edd_checkout_form_wrap #edd-login-account-wrap { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: var(--qs-soft); font-size: 15px; }
#qsite #edd_checkout_form_wrap a { color: var(--qs-accent); font-weight: 600; }

/* Lizenz verlängern und Rabatt-Code: dezent, als schmale Leisten */
#qsite #edd_checkout_form_wrap .edd-renewal-form--legacy,
#qsite #edd_checkout_form_wrap #edd_discount_code { margin: 0 0 12px; padding: 12px 16px; border: 1px dashed #cfd9e1; border-radius: 14px; background: transparent; }
#qsite #edd_checkout_form_wrap #edd_discount_code p { margin: 0; }
#qsite #edd_checkout_form_wrap #edd_show_discount { font-size: 15px; color: var(--qs-muted); }
#qsite #edd_checkout_form_wrap .edd-sl-show-renewal-form { min-height: 0; padding: 0; border: 0; background: none; color: var(--qs-accent); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
#qsite #edd_checkout_form_wrap .edd-sl-show-renewal-form:hover { text-decoration: underline; background: none; }
#qsite #edd_checkout_form_wrap .edd-sl-renewal-form-fields { margin-top: 12px; }
#qsite #edd_checkout_form_wrap .edd-sl-renewal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#qsite #edd_checkout_form_wrap .edd-sl-renewal-actions .edd-button-secondary { min-height: 48px; padding: 0 18px; border: 2px solid var(--qs-navy); border-radius: 10px; background: transparent; color: var(--qs-navy); font: inherit; font-weight: 650; cursor: pointer; }
#qsite #edd_checkout_form_wrap .edd-blocks-form__group { margin: 0 0 12px; }
#qsite #edd_checkout_form_wrap #edd-discount-code-wrap .edd-discount-code-field-wrap { display: flex; gap: 10px; }
#qsite #edd_checkout_form_wrap #edd-discount-code-wrap .edd-discount-code-field-wrap input[type="text"] { flex: 1 1 auto; }
#qsite #edd_checkout_form_wrap #edd-discount-code-wrap .edd-apply-discount { flex: none; background: transparent; color: var(--qs-navy); }
#qsite #edd_checkout_form_wrap #edd-discount-code-wrap .edd-apply-discount:hover { background: var(--qs-soft); }

/* Zahlungsart als anklickbare Karten */
#qsite #edd_checkout_form_wrap .edd-payment-icons { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; height: 0; margin: 0; padding: 0 24px; position: relative; top: 22px; z-index: 1; pointer-events: none; }
#qsite #edd_checkout_form_wrap .edd-payment-icons svg { width: 38px; height: 24px; }
#qsite #edd_checkout_form_wrap .edd-payment-icons img { width: auto; height: 24px; }
#qsite #edd_payment_mode_select { padding-bottom: 22px; }
#qsite #edd-payment-mode-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
#qsite #edd-payment-mode-wrap .edd-gateway-option { display: flex; align-items: center; min-height: 60px; margin: 0; padding: 14px 16px; border: 2px solid var(--qs-line); border-radius: 14px; background: #fff; font-size: 16px; font-weight: 650; color: var(--qs-navy); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
#qsite #edd-payment-mode-wrap .edd-gateway-option:hover { border-color: #b9c7d3; }
#qsite #edd-payment-mode-wrap .edd-gateway-option:is(.edd-gateway-option-selected, :has(input:checked)) { border-color: var(--qs-navy); background: var(--qs-soft); box-shadow: 0 10px 24px -18px rgba(14, 35, 52, .6); }
#qsite #edd-payment-mode-wrap .edd-gateway-option:has(input:focus-visible) { outline: 3px solid var(--qs-blue); outline-offset: 2px; }
#qsite #edd-payment-mode-wrap input.edd-gateway { margin-right: 12px; }
#qsite #edd_purchase_form_wrap:empty { display: none; }
#qsite #edd_purchase_form .edd-loading-ajax, #qsite #edd_purchase_form .edd-loading { margin: 16px auto; }

/* Stripe-Element: eigener Rahmen bleibt von Stripe, nur Abstand */
#qsite #edd_checkout_form_wrap :is(#edd-stripe-payment-element, .edd-stripe-payment-element, #edd-card-element) { margin: 4px 0 16px; }

/* AGB, Datenschutz, Gesamtsumme, Kaufen */
#qsite #edd_purchase_submit { padding-bottom: 22px; background: var(--qs-soft); border-color: transparent; }
#qsite #edd_purchase_submit fieldset { margin: 0 0 10px; }
#qsite #edd_purchase_submit :is(.edd-terms-agreement, .edd-privacy-policy-agreement) { display: flex; align-items: flex-start; gap: 0; }
#qsite #edd_purchase_submit :is(.edd-terms-agreement, .edd-privacy-policy-agreement) label { margin: 0; font-weight: 500; font-size: 15px; }
#qsite #edd_purchase_submit :is(.edd-terms-agreement, .edd-privacy-policy-agreement) input { margin-top: 3px; }
#qsite #edd_purchase_submit .edd-show-terms { margin: 4px 0 0 26px; font-size: 14px; }
#qsite #edd_purchase_submit .edd-terms { max-height: 320px; overflow: auto; margin: 0 0 12px; padding: 14px 16px; border: 1px solid var(--qs-line); border-radius: 12px; background: #fff; font-size: 14px; }
#qsite #edd_purchase_submit .edd-terms .qsite-tx-row { padding: 0; }
#qsite #edd_purchase_submit .edd-terms .qsite-wrap { padding: 0; }
#qsite #edd_purchase_submit .edd-terms :is(h2, h3) { font-size: 17px; }
#qsite #edd_final_total_wrap { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 14px; padding-top: 14px; border-top: 1px solid var(--qs-line); font-size: 18px; color: var(--qs-navy); }
#qsite #edd_final_total_wrap .edd_cart_amount { font-size: 24px; font-weight: 800; }
#qsite #edd-purchase-button { width: 100%; min-height: 54px; font-size: 17px; }

/* Leerer Warenkorb */
#qsite .qsite-edd-empty { max-width: 560px; margin: 8px auto 0; padding: 44px 32px 32px; border: 1px solid var(--qs-line); border-radius: 22px; background: linear-gradient(180deg, var(--qs-soft), #fff 70%); text-align: center; }
#qsite .qsite-edd-empty .qsite-edd-badge { margin-bottom: 18px; }
#qsite .qsite-tx .qsite-edd-empty-title { margin: 0 0 10px; font-size: 26px; }
#qsite .qsite-edd-empty p { color: var(--qs-muted); }
#qsite .qsite-edd-empty .qsite-actions { justify-content: center; margin: 22px 0 0; }
#qsite .qsite-edd-empty .qsite-edd-note { margin-top: 26px; }

/* ---------- Login und Konto ohne Anmeldung: zentrierte Karte ---------- */
.qsite-edd-login .qsite-tx-col.is-empty, .qsite-edd-account.qsite-edd-out .qsite-tx-col.is-empty { display: none; }
.qsite-edd-login .qsite-tx-col, .qsite-edd-account .qsite-tx-col { grid-column: 1 / -1; }
.qsite-edd-login .qsite-tx-hl { text-align: center; }
.qsite-edd-login .qsite-tx-row:first-child { padding-bottom: 0; }
.qsite-edd-account.qsite-edd-out .qsite-tx-head { text-align: center; }
:is(.qsite-edd-login, .qsite-edd-account) #qsite .edd-logged-out { max-width: 460px; margin: 0 auto 14px; text-align: center; color: var(--qs-muted); }
#qsite #edd_login_form { max-width: 460px; margin: 0 auto; }
#qsite #edd_login_form fieldset { margin: 0; padding: 30px 30px 18px; border: 1px solid var(--qs-line); border-radius: 20px; background: #fff; box-shadow: 0 24px 50px -32px rgba(14, 35, 52, .45); }
#qsite #edd_login_form legend { float: left; width: 100%; margin: 0 0 20px; padding: 0; font-size: 21px; font-weight: 750; color: var(--qs-navy); text-align: center; }
#qsite #edd_login_form legend + * { clear: both; }
#qsite #edd_login_form p { margin: 0 0 16px; }
#qsite #edd_login_form .edd-login-remember label { display: flex; align-items: center; font-weight: 500; }
#qsite #edd_login_form #edd_login_submit { width: 100%; }
#qsite #edd_login_form .edd-lost-password { text-align: center; font-size: 15px; }
#qsite #edd_login_form .edd-lost-password a { color: var(--qs-accent); font-weight: 600; }
#qsite .qsite-edd-login-note { max-width: 460px; margin: 18px auto 0; text-align: center; font-size: 15px; color: var(--qs-muted); }
#qsite .qsite-edd-login-note a { color: var(--qs-accent); font-weight: 600; }

/* ---------- Konto (angemeldet): Reiter, Profil, Tabellen ---------- */
#qsite .qsite-edd-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
#qsite .qsite-edd-tabs a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border: 1px solid var(--qs-line); border-radius: 999px; background: #fff; color: var(--qs-navy); font-size: 15px; font-weight: 650; text-decoration: none; transition: background .15s, border-color .15s; }
#qsite .qsite-edd-tabs a:hover { border-color: #b9c7d3; background: var(--qs-soft); }
#qsite .qsite-edd-tabs a[aria-current="page"] { border-color: var(--qs-navy); background: var(--qs-navy); color: #fff; }
#qsite .qsite-edd-tabs a.is-logout { margin-left: auto; border-color: transparent; background: transparent; color: var(--qs-muted); }
#qsite .qsite-edd-tabs a.is-logout:hover { color: var(--qs-navy); background: var(--qs-soft); }

#qsite #edd_profile_editor_form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
#qsite #edd_profile_editor_form fieldset { margin: 0 0 20px; padding: 22px 24px 6px; border: 1px solid var(--qs-line); border-radius: 18px; background: #fff; }
#qsite #edd_profile_editor_form legend { float: left; width: 100%; margin: 0 0 16px; padding: 0; font-size: 18px; font-weight: 750; color: var(--qs-navy); }
#qsite #edd_profile_editor_form legend + * { clear: both; }
#qsite #edd_profile_editor_form #edd_profile_address_fieldset { grid-row: span 2; }
#qsite #edd_profile_editor_form #edd_profile_submit_fieldset { grid-column: 1 / -1; padding: 0; border: 0; background: none; }
#qsite #edd_profile_editor_form #edd_profile_submit_wrap { margin: 0; }
#qsite #edd_profile_editor_form .edd_errors, #qsite .edd_success { grid-column: 1 / -1; }

/* Tabellen (Bestellungen, Lizenzen, Downloads, Beleg) */
.qsite-edd #qsite :is(.edd-table, .edd_sl_table, #edd_user_history, #edd_purchase_receipt, #edd_purchase_receipt_products) { display: table !important; width: 100%; margin: 0 0 28px; border: 1px solid var(--qs-line); border-collapse: separate; border-spacing: 0; border-radius: 16px; overflow: hidden; background: #fff; font-size: 15px; }
.qsite-edd #qsite :is(.edd-table, .edd_sl_table) :is(th, td) { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--qs-line); text-align: left; vertical-align: top; }
.qsite-edd #qsite :is(.edd-table, .edd_sl_table) thead th { background: var(--qs-soft); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--qs-muted); }
.qsite-edd #qsite :is(.edd-table, .edd_sl_table) tr:last-child td { border-bottom: 0; }
.qsite-edd #qsite :is(.edd-table, .edd_sl_table) a { color: var(--qs-accent); font-weight: 600; }
.qsite-edd #qsite :is(.edd-table, .edd_sl_table) .edd-submit { color: #fff; }
.qsite-edd #qsite .edd_sl_license_key, .qsite-edd #qsite .edd_sl_license_key input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; }
.qsite-edd #qsite #edd_purchase_receipt thead th { font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--qs-navy); }
.qsite-edd #qsite #edd_purchase_receipt td:first-child { width: 42%; color: var(--qs-muted); }
.qsite-edd #qsite .edd_purchase_receipt_files { margin: 6px 0 0; padding: 0; list-style: none; }
.qsite-edd #qsite .edd_purchase_receipt_files a::before { content: "\2193\00a0"; }
.qsite-edd #qsite .edd-manage-license-back { display: inline-flex; align-items: center; min-height: 42px; margin: 0 0 18px; padding: 0 16px; border-radius: 10px; background: var(--qs-soft); color: var(--qs-navy) !important; font-weight: 650; text-decoration: none; }
.qsite-edd #qsite .edd_sl_show_key { margin-left: 6px; }
.qsite-edd #qsite .edd_purchase_status { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--qs-soft); font-size: 13px; }

/* ---------- Bestätigung, Fehler, Rechnung: Statuskarte ---------- */
.qsite-edd-status { padding: 56px 0 8px; }
#qsite .qsite-edd-status-card { max-width: 760px; margin: 0 auto; padding: 40px 40px 34px; border: 1px solid var(--qs-line); border-radius: 24px; background: linear-gradient(180deg, var(--qs-soft), #fff 160px); text-align: center; box-shadow: 0 30px 60px -40px rgba(14, 35, 52, .45); }
#qsite .qsite-edd-status.is-warn .qsite-edd-badge { background: linear-gradient(135deg, #ffb35c, #ff6b6b); }
#qsite .qsite-edd-status.is-info .qsite-edd-badge { background: linear-gradient(135deg, var(--qs-blue), var(--qs-navy-2)); }
#qsite .qsite-tx .qsite-edd-status-title { margin: 18px 0 10px; font-size: clamp(28px, 3.6vw, 38px); }
#qsite .qsite-edd-status-lead { max-width: 560px; margin: 0 auto; font-size: 18px; color: var(--qs-muted); }
#qsite .qsite-edd-status-body { margin: 26px 0 0; text-align: left; }
#qsite .qsite-edd-status.is-warn .qsite-edd-status-body, #qsite .qsite-edd-status.is-info .qsite-edd-status-body { text-align: center; font-size: 17px; color: var(--qs-muted); }
#qsite .qsite-tx .qsite-edd-status-body h3 { margin: 8px 0 12px; font-size: 19px; }
#qsite .qsite-edd-status-body .edd-alert { text-align: left; }
#qsite .qsite-edd-status .qsite-actions { justify-content: center; margin-top: 28px; }
#qsite .qsite-edd-steps { max-width: 760px; margin: 40px auto 0; }
#qsite .qsite-tx .qsite-edd-steps-title { margin: 0 0 16px; font-size: 20px; text-align: center; }
#qsite .qsite-edd-steps ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
#qsite .qsite-edd-steps a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px; border: 1px solid var(--qs-line); border-radius: 16px; background: #fff; text-decoration: none; transition: border-color .15s, transform .15s; }
#qsite .qsite-edd-steps a:hover { border-color: #b9c7d3; transform: translateY(-2px); }
#qsite .qsite-edd-steps strong { color: var(--qs-navy); }
#qsite .qsite-edd-steps a > span:last-child { font-size: 15px; color: var(--qs-muted); }
#qsite .qsite-edd-step-ic { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 8px; border-radius: 10px; background: var(--qs-soft); color: var(--qs-navy); }

/* ---------- Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
	#qsite .qsite-edd-steps a, #qsite #edd-payment-mode-wrap .edd-gateway-option { transition: none; }
	#qsite .qsite-edd-steps a:hover { transform: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
	#edd_checkout_wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cart" "form"; }
	#edd_checkout_wrap > #edd_checkout_cart_form { grid-row: auto; position: static; margin-bottom: 24px; }
	#edd_checkout_wrap > #edd_checkout_form_wrap { grid-row: auto; }
	#qsite #edd_profile_editor_form { grid-template-columns: minmax(0, 1fr); }
	#qsite #edd_profile_editor_form #edd_profile_address_fieldset { grid-row: auto; }
}

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
	.qsite-edd #qsite .qsite-tx { padding-bottom: 56px; }
	#qsite #edd_checkout_cart_wrap, #qsite #edd_checkout_form_wrap fieldset { padding-left: 16px; padding-right: 16px; border-radius: 16px; }
	#qsite #edd_checkout_form_wrap #edd_checkout_user_info, #qsite #edd_checkout_form_wrap #edd_cc_address { grid-template-columns: minmax(0, 1fr); }
	#qsite #edd_checkout_form_wrap .edd-payment-icons { height: auto; top: 0; justify-content: flex-start; padding: 0 2px; margin: 0 0 8px; }
	#qsite #edd-payment-mode-wrap { grid-template-columns: minmax(0, 1fr); }
	#qsite #edd_checkout_form_wrap #edd-discount-code-wrap .edd-discount-code-field-wrap { flex-direction: column; }
	#qsite #edd_login_form fieldset { padding: 24px 18px 12px; }
	#qsite .qsite-edd-tabs { gap: 6px; }
	#qsite .qsite-edd-tabs a { min-height: 38px; padding: 0 14px; font-size: 14px; }
	#qsite .qsite-edd-tabs a.is-logout { margin-left: 0; }
	#qsite .qsite-edd-status-card { padding: 30px 18px 24px; border-radius: 18px; }
	#qsite .qsite-edd-steps ul { grid-template-columns: minmax(0, 1fr); }
	.qsite-edd-status { padding-top: 32px; }

	/* Tabellen als Karten: jede Zeile ein Block, Spaltenname davor (data-label aus assets/js/edd.js) */
	.qsite-edd #qsite :is(#edd_user_history, .edd_sl_table, #edd_purchase_receipt_products, .edd-table:not(#edd_purchase_receipt)) { display: block !important; border: 0; border-radius: 0; background: none; overflow: visible; }
	.qsite-edd #qsite :is(#edd_user_history, .edd_sl_table, #edd_purchase_receipt_products, .edd-table:not(#edd_purchase_receipt)) thead { display: none; }
	.qsite-edd #qsite :is(#edd_user_history, .edd_sl_table, #edd_purchase_receipt_products, .edd-table:not(#edd_purchase_receipt)) tbody { display: block; }
	.qsite-edd #qsite :is(#edd_user_history, .edd_sl_table, #edd_purchase_receipt_products, .edd-table:not(#edd_purchase_receipt)) tr { display: block; margin: 0 0 12px; padding: 6px 16px; border: 1px solid var(--qs-line); border-radius: 14px; background: #fff; }
	.qsite-edd #qsite :is(#edd_user_history, .edd_sl_table, #edd_purchase_receipt_products, .edd-table:not(#edd_purchase_receipt)) tr:has(> th) { display: none; }
	.qsite-edd #qsite :is(#edd_user_history, .edd_sl_table, #edd_purchase_receipt_products, .edd-table:not(#edd_purchase_receipt)) td { display: block; padding: 9px 0; border-bottom: 1px solid var(--qs-line); text-align: right; overflow-wrap: anywhere; }
	.qsite-edd #qsite :is(#edd_user_history, .edd_sl_table, #edd_purchase_receipt_products, .edd-table:not(#edd_purchase_receipt)) td:last-child { border-bottom: 0; }
	.qsite-edd #qsite :is(#edd_user_history, .edd_sl_table, #edd_purchase_receipt_products, .edd-table:not(#edd_purchase_receipt)) td[data-label]::before { content: attr(data-label); float: left; max-width: 45%; margin-right: 14px; text-align: left; font-size: 13px; font-weight: 700; line-height: 1.9; color: var(--qs-muted); }
	.qsite-edd #qsite .edd_purchase_status { white-space: nowrap; }
	.qsite-edd #qsite :is(#edd_user_history, .edd_sl_table, #edd_purchase_receipt_products, .edd-table:not(#edd_purchase_receipt)) td:empty { display: none; }
	.qsite-edd #qsite #edd_purchase_receipt { font-size: 14px; }
	.qsite-edd #qsite #edd_purchase_receipt :is(th, td) { padding: 10px 12px; overflow-wrap: anywhere; }
	.qsite-edd #qsite .qsite-tx-text { overflow-x: visible; }
}

/* ---------- Feinschliff nach erster Sichtprüfung ---------- */
#qsite #edd_checkout_form_wrap #edd_discount_code :is(p, #edd_show_discount, #edd-discount-code-wrap) { margin: 0; padding: 0; border: 0; background: none; }
#qsite #edd_checkout_form_wrap #edd_final_total_wrap { padding: 14px 0 0; border: 0; border-top: 1px solid var(--qs-line); background: none; border-radius: 0; }
#qsite #edd_checkout_form_wrap #edd-purchase-button { font-weight: 650; letter-spacing: 0; }
#qsite #edd_purchase_submit :is(.edd-terms-agreement, .edd-privacy-policy-agreement) { align-items: center; }
#qsite #edd_purchase_submit :is(.edd-terms-agreement, .edd-privacy-policy-agreement) input { margin-top: 0; }
/* Login-Seite: der Hinweis "um dein Profil bearbeiten zu können" stammt aus dem Profil-Shortcode und passt dort nicht */
.qsite-edd-login #qsite .edd-logged-out { display: none; }
