/* FENCHLE Shop – Plugin-Elemente. Nutzt die Theme-Farben, falls vorhanden. */
.fenchle-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.fenchle-notice { padding: 0.8rem 1rem; border-radius: var(--wp--custom--radius, 4px); margin: 0 0 1rem; font-size: 0.95rem; }
.fenchle-notice--success { background: var(--fx-ok-bg, #E7F3EA); color: var(--fx-ok-text, #1D5E33); }
.fenchle-notice--error { background: var(--fx-err-bg, #FBE9EA); color: var(--fx-err-text, #8A1F2B); }
.fenchle-small { font-size: 0.85rem; color: var(--wp--preset--color--muted, #6B6064); }

/* Newsletter */
.fenchle-newsletter__fields { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.fenchle-newsletter__fields input { flex: 1 1 12rem; min-width: 0; }
.fenchle-newsletter__fields input[type="email"] { flex-grow: 2; }
.fenchle-newsletter__consent { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 0.9rem; font-size: 0.82rem; line-height: 1.45; text-align: left; }
.fenchle-newsletter__consent input { margin-top: 0.2rem; flex-shrink: 0; width: 1.05rem; height: 1.05rem; accent-color: var(--wp--preset--color--accent, #A64D66); }

/* Punkte-Hinweis auf der Produktseite */
.fenchle-points-hint {
  margin: 1rem 0; padding: 0.7rem 1rem; border-radius: var(--wp--custom--radius, 4px);
  background: var(--wp--preset--color--blush, #F1DEDD); font-size: 0.9rem;
}
.fenchle-points-hint a { margin-left: 0.25rem; }

/* Mix & Match auf der Produktseite */
.fenchle-mm {
  margin-block: 3rem; padding: clamp(1.25rem, 4vw, 2.5rem);
  border-radius: calc(var(--wp--custom--radius, 4px) * 1.5);
  background: var(--wp--preset--color--surface, #F3EAE4);
}
.fenchle-mm__head h2 { display: flex; align-items: center; gap: 0.6rem; margin: 0.25rem 0 0.5rem; }
.fenchle-mm__head p { max-width: 46rem; }
.fenchle-swatch { display: inline-block; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 2px solid var(--wp--preset--color--white, #fff); box-shadow: 0 0 0 1px var(--wp--preset--color--muted, #888); vertical-align: middle; flex-shrink: 0; margin-right: 0.5rem; }
.fenchle-mm__grid { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(9rem, 100%), 1fr)); gap: 0.9rem; }
.fenchle-mm__item { background: var(--wp--preset--color--white, #fff); border-radius: var(--wp--custom--radius, 4px); border: 1px solid var(--wp--preset--color--line, #E4D9D3); overflow: hidden; display: flex; flex-direction: column; }
.fenchle-mm__pick, .fenchle-mm__grid--links a { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.6rem 0.6rem 0.8rem; cursor: pointer; position: relative; color: inherit; text-decoration: none; height: 100%; }
.fenchle-mm__pick input { position: absolute; top: 1rem; left: 1rem; width: 1.3rem; height: 1.3rem; accent-color: var(--wp--preset--color--accent, #A64D66); z-index: 1; }
.fenchle-mm__pick:has(input:checked) { outline: 2px solid var(--wp--preset--color--accent, #A64D66); outline-offset: -2px; border-radius: inherit; }
.fenchle-mm__item img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--wp--custom--radius, 4px); }
.fenchle-mm__name { font-weight: 600; font-size: 0.95rem; }
.fenchle-mm__name em { font-weight: 400; font-style: normal; color: var(--wp--preset--color--muted, #6B6064); font-size: 0.82rem; }
.fenchle-mm__price { font-size: 0.9rem; }
.fenchle-mm__link { font-size: 0.82rem; padding: 0 0.6rem 0.8rem; }
.fenchle-mm__actions { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.fenchle-mm-group { margin-block: 2.5rem; }
.fenchle-mm-group h2 { display: flex; align-items: center; }

/* Kundenkonto */
.fenchle-points__balance {
  display: grid; gap: 0.2rem; padding: 1.5rem; margin-bottom: 1.5rem; border-radius: var(--wp--custom--radius, 4px);
  background: linear-gradient(135deg, var(--wp--preset--color--surface, #F3EAE4), var(--wp--preset--color--blush, #F1DEDD));
}
.fenchle-points__label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--wp--preset--color--muted, #6B6064); }
.fenchle-points__value { font-family: var(--wp--preset--font-family--heading, serif); font-size: 2.75rem; line-height: 1.1; }
.fenchle-points__redeem { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 1.5rem; }
.fenchle-points__redeem label { flex-basis: 100%; font-weight: 600; }
.fenchle-points__redeem .fenchle-small { flex-basis: 100%; margin: 0; }
.fenchle-table { width: 100%; }
.fenchle-table .num { text-align: right; white-space: nowrap; }
.fenchle-table .pos { color: var(--fx-ok-text, #1D5E33); }
.fenchle-table .neg { color: var(--fx-err-text, #8A1F2B); }
.fenchle-loyalty-info li { margin-bottom: 0.4rem; }
.fenchle-status { padding: 0.8rem 1rem; border-radius: var(--wp--custom--radius, 4px); font-weight: 600; }
.fenchle-status--on { background: var(--fx-ok-bg, #E7F3EA); color: var(--fx-ok-text, #1D5E33); }
.fenchle-status--pending { background: var(--fx-warn-bg, #FFF6E0); color: var(--fx-warn-text, #6B4E00); }
.fenchle-status--off { background: var(--wp--preset--color--surface, #F3EAE4); }
.fenchle-account-newsletter form { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-block: 1rem; }
.fenchle-account-newsletter .fenchle-newsletter__consent { flex-basis: 100%; margin: 0 0 0.4rem; }
.wp-element-button.is-secondary { background: transparent; color: inherit; border: 1.5px solid currentColor; }

.fenchle-withdraw-link { font-weight: 600; }
/* Pflichtzusatz (Grundpreis, inkl. MwSt., zzgl. Versandkosten) rechtsbuendig unter dem Preis – Vorgabe Inhaberin 21.09.2026. */
.fenchle-legal { display: block; font-size: 0.72rem; line-height: 1.4; color: var(--wp--preset--color--muted, #655A5F); margin: 0.1rem 0 0.6rem; text-align: right; }
.fenchle-legal--delivery { text-align: left; }
.fenchle-legal--delivery { margin: 0.6rem 0 0; }
.fenchle-legal a { color: inherit; }

/* Stornierung */
.fenchle-cancel-box { margin-block: 2rem; padding: 1.25rem 1.5rem; border: 1px solid var(--wp--preset--color--line, #E4D9D3); border-radius: var(--wp--custom--radius, 4px); background: var(--wp--preset--color--surface, #F3EAE4); }
.fenchle-cancel-box h2 { margin-top: 0; font-size: 1.25rem; }
.fenchle-cancel__form { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 1.5rem; }
.fenchle-cancel__items { padding-left: 1.2rem; }

/* Aushärtungshinweis auf Nail-Design-Seiten */
.fenchle-curing { margin: 1rem 0; padding: 0.8rem 1rem; border-left: 4px solid var(--wp--preset--color--accent, #A64D66); background: var(--wp--preset--color--surface, #F3EAE4); border-radius: 0 10px 10px 0; font-size: 0.92rem; }

/* Inhaltsstoffe & Warnhinweise */
.fenchle-product-info { margin-block: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--wp--preset--color--line, #DCCED3); }
.fenchle-product-info h2 { margin-top: 0; }
.fenchle-product-info__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: 1.5rem 3rem; }
.fenchle-product-info h3 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--muted, #655A5F); margin-bottom: 0.5rem; }
.fenchle-product-info__inci { font-size: 0.92rem; line-height: 1.6; }
.fenchle-product-info__warnings { padding-left: 1.1rem; font-size: 0.92rem; }
.fenchle-product-info__rp { font-size: 0.82rem; color: var(--wp--preset--color--muted, #655A5F); margin-top: 1.5rem; }

/* Wunschliste */
.fenchle-wish { margin: 0; }
.fenchle-wish--compact { position: absolute; top: 0.6rem; right: 0.6rem; z-index: 2; }
.fenchle-wish__button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-width: 44px; min-height: 44px; padding: 0.4rem 0.6rem; border: 1px solid var(--wp--preset--color--line, #E3D7C9); border-radius: 999px; background: var(--wp--preset--color--base, #FCF9F5); color: var(--wp--preset--color--contrast, #292320); cursor: pointer; }
.fenchle-wish--compact .fenchle-wish__button { border-color: transparent; background: color-mix(in srgb, var(--wp--preset--color--base, #FCF9F5) 88%, transparent); }
.fenchle-wish__button:hover { border-color: var(--wp--preset--color--accent, #9A6152); color: var(--wp--preset--color--accent, #9A6152); }
.fenchle-wish__button.is-on-list { color: var(--wp--preset--color--accent, #9A6152); }
.fenchle-wish__button:focus-visible { outline: 2px solid var(--wp--preset--color--accent-dark, #7A4638); outline-offset: 2px; }
.wc-block-grid__product, .wc-block-product { position: relative; }
.fenchle-wish:not(.fenchle-wish--compact) .fenchle-wish__button { margin-top: 0.75rem; }

.fenchle-wishlist-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: inherit; }
.fenchle-wishlist-icon__count { position: absolute; top: 4px; right: 2px; min-width: 1.15rem; padding: 0 0.25rem; border-radius: 999px; background: var(--wp--preset--color--accent, #9A6152); color: var(--wp--preset--color--base, #FCF9F5); font-size: 0.68rem; line-height: 1.2rem; text-align: center; }

.fenchle-wishlist__items { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.fenchle-wishlist__item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.4rem 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--wp--preset--color--line, #E3D7C9); }
.fenchle-wishlist__link { display: contents; color: inherit; text-decoration: none; }
.fenchle-wishlist__link img { width: 96px; height: auto; border-radius: var(--wp--custom--radius, 12px); grid-row: span 2; }
.fenchle-wishlist__name { font-weight: 600; }
.fenchle-wishlist__price { grid-column: 2; font-size: 0.92rem; }
.fenchle-wishlist__stat { grid-column: 2; font-size: 0.82rem; color: var(--wp--preset--color--muted, #665B54); }
.fenchle-wishlist__actions { grid-column: 3; grid-row: 1 / span 3; display: flex; flex-direction: column; gap: 0.5rem; align-items: stretch; }
.fenchle-wishlist__remove { min-height: 44px; padding: 0.4rem 0.9rem; border: 1px solid currentColor; border-radius: var(--wp--custom--radius, 12px); background: transparent; color: inherit; cursor: pointer; }
@media (max-width: 599px) {
  .fenchle-wishlist__item { grid-template-columns: auto 1fr; }
  .fenchle-wishlist__actions { grid-column: 1 / -1; grid-row: auto; flex-direction: row; flex-wrap: wrap; }
}

/* Tipps (nur für Kundenkonten) und Bestätigung des Kontos */
.fenchle-tips__list { padding-left: 1.2rem; }
.fenchle-tips__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.fenchle-confirm-hint { margin-bottom: 2rem; padding: 1.25rem 1.5rem; border: 1px solid var(--wp--preset--color--line, #E3D7C9); border-radius: var(--wp--custom--radius, 12px); background: var(--wp--preset--color--surface, #F4EDE3); }
.fenchle-confirm-hint h2 { margin-top: 0; font-size: 1.25rem; }
.fenchle-confirm-hint__form { display: grid; gap: 0.75rem; max-width: 26rem; }

/* Kurze Bestätigung der Wunschliste – erscheint unten, verschwindet von selbst, kein Seitenwechsel */
.fenchle-toasts { position: fixed; left: 50%; bottom: 1.25rem; z-index: 999999; display: grid; gap: 0.5rem; width: min(26rem, calc(100vw - 2rem)); transform: translateX(-50%); pointer-events: none; }
.fenchle-toast {
  margin: 0; padding: 0.9rem 1.1rem; border: 1px solid var(--wp--preset--color--line, #E3D7C9); border-radius: var(--wp--custom--radius, 12px);
  background: var(--wp--preset--color--white, #FFFFFF); color: var(--wp--preset--color--contrast, #292320);
  box-shadow: var(--fx-shadow, 0 8px 24px rgb(36 30 32 / 0.12)); font-size: 0.95rem; text-align: center;
  animation: fenchle-toast-in 0.25s ease-out both;
}
.fenchle-toast.is-leaving { animation: fenchle-toast-out 0.5s ease-in both; }
@keyframes fenchle-toast-in { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
@keyframes fenchle-toast-out { to { opacity: 0; transform: translateY(0.5rem); } }
@media (prefers-reduced-motion: reduce) {
  .fenchle-toast, .fenchle-toast.is-leaving { animation: none; }
}
