/* Shopventa Pro – Frontend der Module. Baut auf den Variablen von shopventa/frontend.css auf. */

/* Aufklapp-Blöcke (Angebot, Händler, Produkt einreichen, Profil) */
.svp-quote-more, .svp-vendor, .svp-newprod, .svp-vprofile { border: 1px solid var(--sv-line); border-radius: var(--sv-radius); padding: 12px 16px; margin: 14px 0; }
.svp-quote-more > summary, .svp-vendor > summary, .svp-newprod > summary, .svp-vprofile > summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
.svp-quote-more[open] > summary, .svp-newprod[open] > summary, .svp-vprofile[open] > summary { margin-bottom: 12px; }
.svp-vendor > summary { font-weight: 400; font-size: .93em; }
.svp-vendor > summary a { font-weight: 600; }
.svp-vendor p { margin: 8px 0 0; }

/* Angebotsanfrage */
.svp-quote { border: 1px solid var(--sv-line); border-radius: var(--sv-radius); padding: 18px; margin: 16px 0; background: var(--sv-soft); }
.svp-quote__h { margin: 0 0 6px; font-size: 1.1em; }
.svp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Hinweise unter dem Preis */
.svp-points-hint, .svp-deposit-hint { margin: 6px 0; font-size: .93em; color: var(--sv-muted); }
.svp-points-hint strong, .svp-deposit-hint strong { color: var(--sv-accent); }

/* Punktekonto */
.svp-points-card { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--sv-radius); background: var(--sv-soft); margin-bottom: 16px; }
.svp-points-card__n { font-size: 2.2em; font-weight: 700; line-height: 1; color: var(--sv-accent); font-variant-numeric: tabular-nums; }

/* Mitgliedschaft */
.svp-member-price { display: block; margin-top: 4px; font-weight: 600; color: var(--sv-ok); }
.svp-member-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8em; font-weight: 600; background: var(--sv-accent); color: #fff; vertical-align: middle; }
.svp-member-card { border: 1px solid var(--sv-line); border-left: 4px solid var(--sv-accent); border-radius: var(--sv-radius); padding: 16px 18px; margin-bottom: 14px; }
.svp-locked { border-left-color: var(--sv-muted); }

/* Partnerprogramm */
.svp-aff, .svp-aff-join { margin: 10px 0 18px; }
.svp-copy { display: flex; gap: 8px; }
.svp-copy input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }

/* Händler */
.svp-vendor-head { padding: 20px 22px; border-radius: var(--sv-radius); background: var(--sv-soft); margin-bottom: 20px; }
.svp-vendor-head h2 { margin: 2px 0 6px; }
.svp-ship { border: 1px solid var(--sv-line); border-radius: var(--sv-radius); padding: 14px 16px; margin: 10px 0; }
.svp-ship address { font-style: normal; margin: 6px 0 10px; color: var(--sv-muted); }

/* Anzahlung im Checkout */
.svp-deposit label { display: block; margin: 6px 0; }

@media (max-width: 600px) {
  .svp-copy { flex-direction: column; }
}

/* Bewertungen Pro */
.svp-crit { border: 0; padding: 0; margin: 4px 0 0; display: grid; gap: 6px; }
.svp-crit legend { font-weight: 600; font-size: .875rem; margin-bottom: 4px; padding: 0; }
.svp-crit__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.svp-crit__label { font-size: .875rem; }
.svp-crit__stars label { width: 26px; height: 26px; }
.svp-media-field input[type=file] { width: 100%; padding: 10px; border: 1px dashed var(--sv-line, #ccc); border-radius: var(--sv-radius, 8px); background: var(--sv-soft, #f6f6f6); }
.svp-media { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 2px; }
.svp-media__item { display: block; width: 88px; height: 88px; border-radius: 8px; overflow: hidden; background: var(--sv-soft, #f3f3f3); }
.svp-media__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.svp-media__item:hover img { transform: scale(1.05); }
.svp-media__video { width: 180px; height: 120px; object-fit: cover; background: #000; }
.svp-critsum { margin: 14px 0 0; display: grid; gap: 8px; }
.svp-critsum__row { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr; align-items: center; gap: 12px; }
.svp-critsum dt { font-size: .875rem; color: var(--sv-muted, #555); }
.svp-critsum dd { margin: 0; display: flex; align-items: center; gap: 10px; }
.svp-critsum__bar { flex: 1; height: 6px; border-radius: 3px; background: var(--sv-line, #e5e5e5); overflow: hidden; }
.svp-critsum__bar span { display: block; height: 100%; background: var(--sv-accent, #b8860b); border-radius: inherit; }
.svp-critsum__val { font-variant-numeric: tabular-nums; font-size: .875rem; font-weight: 600; min-width: 2.2em; text-align: right; }
.svp-gallery { margin: 20px 0 4px; }
.svp-gallery__h { font-size: .9375rem; margin: 0 0 10px; }
.svp-gallery__row { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.svp-gallery__item { flex: 0 0 auto; width: 110px; height: 110px; border-radius: 10px; overflow: hidden; scroll-snap-align: start; background: var(--sv-soft, #f3f3f3); }
.svp-gallery__item img, video.svp-gallery__item { width: 100%; height: 100%; object-fit: cover; display: block; }
.svp-review-optin { margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .svp-media__item img { transition: none; } }

/* Staffelpreise */
.svp-tiers { width: 100%; border-collapse: collapse; margin: 10px 0 4px; font-size: .875rem; }
.svp-tiers caption { text-align: left; font-weight: 600; padding-bottom: 6px; }
.svp-tiers th, .svp-tiers td { text-align: left; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--sv-line, #DCDDF0); }
.svp-tiers th { font-weight: 500; color: var(--sv-muted, #5A5C7A); }
.svp-tiers td:nth-child(2) { font-variant-numeric: tabular-nums; }

/* Produktoptionen */
.svp-opts { border: 0; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.svp-opts legend { font-weight: 600; margin-bottom: .4rem; padding: 0; }
.svp-opts .sv-f { margin: 0; }
.svp-opts input[type="text"], .svp-opts select { width: 100%; }
.svp-opts__plus { color: var(--sv-muted, #5a5c7a); font-weight: 400; white-space: nowrap; }

/* Produktsets */
.svp-bundle { margin: 14px 0 6px; padding: 12px 14px; border: 1px solid var(--sv-line, #DCDDF0); border-radius: 12px; }
.svp-bundle__title { margin: 0 0 8px; font-weight: 600; font-size: .9375rem; }
.svp-bundle__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.svp-bundle__list li { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .9375rem; min-width: 0; }
.svp-bundle__list img, .svp-bundle__ph { flex: none; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--sv-soft, #F2F2FA); }
.svp-bundle__list a { min-width: 0; overflow-wrap: anywhere; }
.svp-bundle__qty { flex: none; font-variant-numeric: tabular-nums; color: var(--sv-muted, #5A5C7A); }
.svp-bundle__price { margin-left: auto; padding-left: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--sv-muted, #5A5C7A); }
.svp-bundle__save { margin: 10px 0 0; font-size: .875rem; }

/* Wunschpreis & Spenden */
.svp-nyp { border: 0; margin: 12px 0 4px; padding: 0; min-width: 0; }
.svp-nyp legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.svp-nyp__presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.svp-nyp__chip { font: inherit; font-variant-numeric: tabular-nums; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--sv-line, #DCDDF0); background: transparent; color: inherit; cursor: pointer; }
.svp-nyp__chip:hover { border-color: currentColor; }
.svp-nyp__chip[aria-pressed="true"] { background: var(--sv-brand, #4B2BE8); border-color: var(--sv-brand, #4B2BE8); color: #fff; }
.svp-nyp__chip:focus-visible { outline: 2px solid var(--sv-brand, #4B2BE8); outline-offset: 2px; }
.svp-nyp input[name="svp_nyp"] { max-width: 12em; font-variant-numeric: tabular-nums; }
.svp-nyp__from { font-size: .8em; }

/* Datei-Upload beim Kauf */
.svp-upload input[type=file] { width: 100%; padding: 10px; border: 1px dashed var(--sv-line); border-radius: 8px; background: transparent; font: inherit; font-size: .9em; cursor: pointer; }
.svp-upload input[type=file]:hover { border-color: var(--sv-brand); }
.svp-upload input[type=file]:focus-visible { outline: 2px solid var(--sv-brand); outline-offset: 2px; }
.svp-upload input[type=file]::file-selector-button { margin-right: 12px; padding: 7px 14px; border: 0; border-radius: 6px; background: var(--sv-soft, #f2f2f2); color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.svp-upload input[type=file]:hover::file-selector-button { background: var(--sv-brand); color: #fff; }
.svp-upl { margin: 0; padding: 0; list-style: none; }
.svp-upl li { padding: 6px 0; border-bottom: 1px solid #eee; }
.svp-upl li:last-child { border-bottom: 0; }

/* Liefertermin */
.svp-eta { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0; font-size: .95em; line-height: 1.45; }
.svp-eta svg { flex: none; margin-top: 2px; color: var(--sv-brand); }
.svp-eta__cd { color: var(--sv-muted); }
.svp-eta--co { margin: 4px 0 16px; padding: 10px 12px; border: 1px solid var(--sv-line); border-radius: 8px; }

/* Treueprogramm: Stufen, Wege, Empfehlung, Prämien-Panel */
.svp-tier { margin: 0 0 16px; }
.svp-tier__now { margin: 0 0 8px; }
.svp-tier__bar { height: 8px; border-radius: 999px; background: var(--sv-soft); overflow: hidden; margin-bottom: 6px; }
.svp-tier__bar span { display: block; height: 100%; background: var(--sv-accent); border-radius: 999px; }
.svp-h3 { font-size: 1em; margin: 16px 0 8px; }
.svp-ways { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.svp-ways li { display: flex; gap: 8px; align-items: center; }
.svp-ways svg { flex: none; color: var(--sv-accent); }
.svp-reflink { display: flex; gap: 8px; flex-wrap: wrap; }
.svp-reflink input { flex: 1 1 200px; min-width: 0; font-size: .9em; }
.svp-panel { position: fixed; left: 16px; bottom: 16px; z-index: 9990; font-family: var(--sv-font); }
.svp-panel__btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--sv-brand, var(--sv-accent)); color: #fff; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.svp-panel__btn:focus-visible, .svp-panel__x:focus-visible { outline: 3px solid var(--sv-accent); outline-offset: 2px; }
.svp-panel__box { position: absolute; left: 0; bottom: calc(100% + 10px); width: min(360px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow: auto; background: #fff; color: var(--sv-ink); border: 1px solid var(--sv-line); border-radius: var(--sv-radius); box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.svp-panel__box[hidden] { display: none; }
.svp-panel__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--sv-line); }
.svp-panel__head p { margin: 0; font-weight: 700; }
.svp-panel__x { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--sv-muted); padding: 4px 8px; }
.svp-panel__body { padding: 14px 16px; }
.svp-panel__bal { margin: 0 0 12px; font-size: 1.1em; }
.svp-panel__bal strong { font-size: 1.6em; color: var(--sv-accent); font-variant-numeric: tabular-nums; }
.svp-panel__bal span { display: block; font-size: .8em; color: var(--sv-muted); }
@media print { .svp-panel { display: none; } }
