.tpcls-form fieldset legend { font-weight: 600; }
.tpcls-form label { cursor: pointer; }
.tpcls-form input[type="checkbox"] { vertical-align: middle; }
.tpcls-form .choices { width: 100%; }
.tpcls-form #tpcls-description-editor { min-height: 180px; }

/* Zeichenzähler unter dem Beschreibungs-Editor */
.tpcls-char-counter {
    margin-top: 4px;
    font-size: 0.85em;
    color: #666;
}
.tpcls-char-counter.is-invalid { color: #c0392b; }
.tpcls-char-counter.is-valid { color: #4f7942; }

/* Kategorien-Übersicht - listing_categories */
.tpcls-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
}

.tpcls-category-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #eee;
    text-decoration: none;
    min-width: 120px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.tpcls-category-item:hover,
.tpcls-category-item:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-color: #ddd;
}

.tpcls-category-icon {
    margin-bottom: 0.35rem;
    font-size: 2rem;
    line-height: 1;
}

.tpcls-category-icon-image {
    display: block;
    max-width: 56px;
    max-height: 56px;
    height: auto;
    width: auto;
}

.tpcls-category-name {
    font-size: 0.95rem;
    font-weight: 500;
}

.tpcls-single-category-badge,
.tpcls-list-category-badge {
    display:inline-block;
    border:1px solid #ddd;
    padding:2px 6px;
    margin:2px 6px 2px 0;
    font-size:12px;
    border-radius:3px;
    text-decoration:none;
}

.tpcls-single-gallery {}
.tpcls-single-infobox {}
.tpcls-single-details {}

.tpcls-single-meta-row {
    display:flex;
    gap:12px;
    padding:6px 0;
    border-bottom:1px solid #eee;
}
.tpcls-single-meta-row dt {
    min-width:180px;
    font-weight:600;

}
.tpcls-single-meta-row dd { margin:0; }

/* ================================================================
   Suche – [tp_search]
   ================================================================ */

.tpcls-search-wrap {
    margin: 0 0 2rem;
}

/* ── Formular ── */
.tpcls-search-form {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.tpcls-search-main-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.tpcls-search-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
}

.tpcls-search-field--grow {
    flex: 1 1 220px;
}

.tpcls-search-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tpcls-input {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.tpcls-input:focus {
    outline: none;
    border-color: #4f7942;
    box-shadow: 0 0 0 3px rgba(79,121,66,0.12);
}

.tpcls-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4f7942;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, transform 0.1s;
    align-self: flex-end;
}

.tpcls-search-btn:hover {
    background: #3d6132;
    transform: translateY(-1px);
}

/* ── Erweiterte Filter ── */
.tpcls-search-advanced {
    margin-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}

.tpcls-search-advanced-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #4f7942;
    cursor: pointer;
    list-style: none;
    user-select: none;
    width: fit-content;
}

.tpcls-search-advanced-toggle::-webkit-details-marker { display: none; }

.tpcls-chevron {
    transition: transform 0.2s;
}

details[open] .tpcls-chevron {
    transform: rotate(180deg);
}

.tpcls-search-advanced-body {
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tpcls-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.tpcls-search-field--checkbox {
    justify-content: flex-end;
    padding-bottom: 2px;
}

.tpcls-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    cursor: pointer;
}

.tpcls-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #4f7942;
}

/* ── Meta-Felder ── */
.tpcls-search-meta-fields {
    border-top: 1px dashed #ddd;
    padding-top: 1rem;
    margin-top: 4px;
}

/* ── Aktive Filter Tags ── */
.tpcls-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 1rem;
}

.tpcls-active-filters-label {
    font-size: 0.82rem;
    color: #888;
    font-weight: 600;
}

.tpcls-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #edf2ed;
    border: 1px solid #c3d9be;
    color: #3d6132;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.tpcls-filter-tag:hover {
    background: #d3e8ce;
    border-color: #a5c69e;
}

.tpcls-filter-tag--reset {
    background: #fff0f0;
    border-color: #f5c2c2;
    color: #b91c1c;
}

.tpcls-filter-tag--reset:hover {
    background: #fee2e2;
}

/* ── Ergebniszeile ── */
.tpcls-search-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tpcls-result-count {
    font-size: 0.9rem;
    color: #666;
}

/* ── Kein Ergebnis ── */
.tpcls-no-results,
.tpcls-search-hint {
    text-align: center;
    padding: 2.5rem 1rem;
    background: #fafafa;
    border-radius: 12px;
    border: 1px dashed #ddd;
    color: #777;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── Pagination ── */
.tpcls-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 2rem;
}

.tpcls-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.tpcls-page-link:hover {
    background: #edf2ed;
    border-color: #4f7942;
    color: #4f7942;
}

.tpcls-page-link.current {
    background: #4f7942;
    border-color: #4f7942;
    color: #fff;
    pointer-events: none;
}

.tpcls-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    color: #aaa;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .tpcls-search-main-row,
    .tpcls-search-row {
        flex-direction: column;
    }
    .tpcls-search-field {
        min-width: 0;
        width: 100%;
    }
    .tpcls-search-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================================================================
   Händler-Logos – [tp_dealer_slider]
   ================================================================ */

.tpcls-dealer-slider {
    --tpcls-dealer-logo-height: 80px;
    margin: 1.5rem 0;
    padding: 0 2.5rem;
}

.tpcls-dealer-slider--static {
    padding: 0;
}

.tpcls-dealer-slider--static .splide__list {
    justify-content: center;
}

.tpcls-dealer-slider__slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpcls-dealer-slider__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(var(--tpcls-dealer-logo-height) + 1.5rem);
    padding: 0.75rem;
}

.tpcls-dealer-slider__logo img {
    max-width: 100%;
    max-height: var(--tpcls-dealer-logo-height);
    width: auto;
    height: auto;
    object-fit: contain;
    transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

a.tpcls-dealer-slider__logo:hover img,
a.tpcls-dealer-slider__logo:focus-visible img {
    transform: scale(1.05);
}

.tpcls-dealer-slider--grayscale .tpcls-dealer-slider__logo img {
    filter: grayscale(1);
    opacity: 0.7;
}

.tpcls-dealer-slider--grayscale .tpcls-dealer-slider__logo:hover img,
.tpcls-dealer-slider--grayscale .tpcls-dealer-slider__logo:focus-visible img {
    filter: none;
    opacity: 1;
}

@media (max-width: 767px) {
    .tpcls-dealer-slider {
        padding: 0 2rem;
    }
}

/* ================================================================
   Inserat Slider – [tp_listing_slider]
   ================================================================ */

.tpcls-listing-slider {
    margin: 1.5rem 0;
}

/* Karte */
.tpcls-slider-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tpcls-slider-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.tpcls-slider-card.featured {
    border-color: #c3d9be;
    box-shadow: 0 0 0 2px rgba(79, 121, 66, 0.12);
}

/* Bild-Wrapper */
.tpcls-slider-card__img-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f4f6;
}

.tpcls-slider-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tpcls-slider-card:hover .tpcls-slider-card__img-wrap img {
    transform: scale(1.04);
}

/* Placeholder wenn kein Bild */
.tpcls-slider-card__img-wrap--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpcls-slider-card__no-img {
    font-size: 2.5rem;
}

/* Body */
.tpcls-slider-card__body {
    padding: 0.85rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.4rem;
}

/* Badges */
.tpcls-slider-card__body .tpcls-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Titel */
.tpcls-slider-card__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    /* Zweizeilig abschneiden */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tpcls-slider-card__title a {
    color: inherit;
    text-decoration: none;
}

.tpcls-slider-card__title a:hover {
    color: #4f7942;
}

/* Preis */
.tpcls-slider-card__price {
    margin-top: auto;
    font-size: 1.05rem;
    font-weight: 700;
    color: #4f7942;
}

/* Leerer Zustand */
.tpcls-slider-empty {
    color: #888;
    font-size: 0.95rem;
    padding: 1rem 0;
}

/* ================================================================
   Kompakte Inserats-Liste – [tp_listing_list]
   Eigene Klassen, damit das Karten-CSS aus Elementor hier nicht greift.
   ================================================================ */

.tpcls-block-list {
    margin: 1.5rem 0;
}

.tpcls-block-list__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.tpcls-block-list__heading {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.tpcls-block-list__more {
    flex: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4f7942;
    text-decoration: none;
    white-space: nowrap;
}

.tpcls-block-list__more:hover {
    text-decoration: underline;
}

.tpcls-block-list__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

/* Grid-Varianten (columns="2".."4") */
.tpcls-block-list--cols-2 .tpcls-block-list__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tpcls-block-list--cols-3 .tpcls-block-list__items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tpcls-block-list--cols-4 .tpcls-block-list__items { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
    .tpcls-block-list--cols-3 .tpcls-block-list__items,
    .tpcls-block-list--cols-4 .tpcls-block-list__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .tpcls-block-list__items { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Zeile */
.tpcls-block-list__item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tpcls-block-list__item:hover {
    border-color: #c3d9be;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.tpcls-block-list__item.is-premium {
    border-color: #c3d9be;
    background: #fbfdfa;
}

/* Thumbnail */
.tpcls-block-list__thumb {
    flex: none;
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
}

.tpcls-block-list__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tpcls-block-list__thumb img.tpcls-block-list__thumb--placeholder {
    object-fit: contain;
    padding: 0.9rem;
    opacity: 0.55;
}

/* Mittelteil */
.tpcls-block-list__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tpcls-block-list__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tpcls-block-list__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    /* Zweizeilig abschneiden */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tpcls-block-list__title a {
    color: inherit;
    text-decoration: none;
}

.tpcls-block-list__title a:hover {
    color: #4f7942;
}

.tpcls-block-list__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tpcls-block-list__date {
    color: #555;
    font-size: 0.8rem;
}

/* Rechte Spalte: Preis + Merken */
.tpcls-block-list__aside {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
    text-align: right;
}

.tpcls-block-list__price {
    font-size: 1.05rem;
    font-weight: 700;
    color: #4f7942;
    white-space: nowrap;
}

/* Leerer Zustand */
.tpcls-block-list-empty {
    color: #888;
    font-size: 0.95rem;
    padding: 1rem 0;
}

@media (max-width: 480px) {
    .tpcls-block-list__thumb {
        width: 64px;
        height: 64px;
    }

    .tpcls-block-list__price {
        font-size: 0.95rem;
    }
}

/* Bestätigungsdialog "Inserat löschen" */
.tpcls-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.tpcls-modal-overlay[hidden] {
    display: none;
}

.tpcls-modal {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 420px;
    width: calc(100% - 2rem);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.tpcls-modal h4 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
}

.tpcls-modal p {
    margin: 0 0 1.25rem;
    color: #444;
    line-height: 1.5;
}

.tpcls-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.tpcls-modal-actions button {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    cursor: pointer;
}

.tpcls-modal-actions .tpcls-modal-confirm {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
}

.tpcls-modal-actions .tpcls-modal-confirm:hover {
    background: #a93226;
}


/* ---------------------------------------------------------------
 * Merkliste (Watchlist)
 * ------------------------------------------------------------- */
.tpcls-watchlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 999px;
    background: #fff;
    color: #555;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.tpcls-watchlist-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.tpcls-watchlist-btn .tpcls-watchlist-icon {
    font-size: 16px;
    line-height: 1;
    color: #c0c0c0;
    transition: color .15s ease, transform .1s ease;
}

.tpcls-watchlist-btn:hover .tpcls-watchlist-icon {
    color: #e74c3c;
}

.tpcls-watchlist-btn.is-active {
    border-color: #e74c3c;
    color: #e74c3c;
    background: #fdECEA;
}

.tpcls-watchlist-btn.is-active .tpcls-watchlist-icon {
    color: #e74c3c;
    transform: scale(1.1);
}

.tpcls-watchlist-btn:disabled {
    opacity: .6;
    cursor: default;
}

/* Position auf der Karte */
.tpcls-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.tpcls-card-top .tpcls-badges {
    margin-bottom: 0 !important;
}

/* Merkliste-Seite */
.tpcls-watchlist-info.notice {
    padding: 12px 14px;
    margin: 0 0 16px;
    background: #f4f8fc;
    border-left: 4px solid #3498db;
    border-radius: 4px;
}

.tpcls-watchlist-count {
    font-weight: 600;
    margin: 0 0 12px;
}

.tpcls-watchlist-hint-icon {
    color: #e74c3c;
}

.tpcls-card-removing {
    opacity: 0;
    transform: scale(.96);
    transition: opacity .25s ease, transform .25s ease;
}

/* Eigenständiges Karten-/Grid-Layout NUR für die Merkliste-Seite,
 * damit die Karten auch ohne das (Elementor-)Styling der Listenseite sichtbar sind.
 * Über .tpcls-watchlist gescoped → die normale Listenseite bleibt unberührt. */
.tpcls-watchlist .tpcls-list.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.tpcls-watchlist .tpcls-card {
    display: flex;
    flex-direction: column;
    padding: 14px;
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
}

.tpcls-watchlist .tpcls-card .card-img-wrapper img {
    display: block;
    width: 100%;
    border-radius: 6px;
}

.tpcls-watchlist .tpcls-card h3 {
    margin: 10px 0 6px;
    font-size: 16px;
    line-height: 1.3;
}

.tpcls-watchlist .tpcls-card .price {
    margin-top: auto;
    padding-top: 8px;
    font-weight: 700;
}

/* ─────────────────────────────────────────────
   Suchagenten (gespeicherte Suchen)
   ───────────────────────────────────────────── */
.tpcls-search-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.tpcls-save-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #1a7f4b;
    border-radius: 6px;
    background: #fff;
    color: #1a7f4b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.tpcls-save-search-btn:hover { background: #1a7f4b; color: #fff; }
.tpcls-save-search-btn.is-saved {
    border-color: #cbd5cd;
    background: #eef6f1;
    color: #1a7f4b;
    cursor: default;
}

.tpcls-search-agents .notice {
    padding: 12px 16px;
    background: #f4f8f6;
    border: 1px solid #d9e6df;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.tpcls-agent-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tpcls-agent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    transition: opacity .2s, transform .2s;
}
.tpcls-agent.tpcls-card-removing { opacity: 0; transform: translateX(-8px); }

.tpcls-agent-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
}
.tpcls-agent-title:hover { text-decoration: underline; }

.tpcls-agent-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #1a7f4b;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
}

.tpcls-agent-meta {
    margin-top: 4px;
    color: #6b7280;
    font-size: 13px;
}

.tpcls-agent-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.tpcls-agent-actions button {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
}

@media (max-width: 560px) {
    .tpcls-agent { flex-direction: column; align-items: stretch; }
    .tpcls-agent-actions { justify-content: flex-end; }
}

/* ---------------------------------------------------------------
   Rückmeldung nach der Rückkehr von der Bezahlseite
   --------------------------------------------------------------- */
.tpcls-payment-notice {
    margin: 0 0 20px;
    padding: 14px 18px;
    border-left: 4px solid #666;
    border-radius: 4px;
    background: #f3f4f5;
    line-height: 1.5;
}

.tpcls-payment-notice--success {
    border-left-color: #2f7a3e;
    background: #eaf5ec;
}

.tpcls-payment-notice--info {
    border-left-color: #2b6cb0;
    background: #e8f0f8;
}

.tpcls-payment-notice--warning {
    border-left-color: #b8860b;
    background: #fbf3e0;
}

/* Merk-Zähler in der eigenen Inserats-Übersicht */
.tpcls-watchlist-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #666;
}

.tpcls-watchlist-count-icon {
    color: #e74c3c;
}

/* ---- Gutscheincode im Inseratsformular ---- */
.tpcls-voucher {
    margin-top: 1em;
}
.tpcls-voucher [hidden] {
    display: none !important; /* Theme-Styles für button dürfen hidden nicht aushebeln */
}
.tpcls-voucher-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
    margin-top: 4px;
}
.tpcls-voucher-row input {
    flex: 1 1 12em;
    max-width: 20em;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.tpcls-voucher--valid .tpcls-voucher-row input {
    border-color: #4f7942;
    background: #f3f8f1;
}
.tpcls-voucher--invalid .tpcls-voucher-row input {
    border-color: #c0392b;
}
/* Als Textlink, nicht als Button – das Theme gestaltet button global,
   deshalb die höhere Spezifität und !important bei Hintergrund/Farbe. */
.tpcls-voucher .tpcls-voucher-row button.tpcls-voucher-remove,
.tpcls-voucher .tpcls-voucher-row button.tpcls-voucher-remove:hover,
.tpcls-voucher .tpcls-voucher-row button.tpcls-voucher-remove:focus {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #6b7280 !important;
    padding: 0 4px;
    text-decoration: underline;
    cursor: pointer;
}
.tpcls-voucher-feedback {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: .95em;
}
.tpcls-voucher-feedback--success {
    background: #f3f8f1;
    border: 1px solid #c3d9be;
    color: #1a7f4b;
}
.tpcls-voucher-feedback--error {
    background: #fdf2f1;
    border: 1px solid #f0c4bf;
    color: #c0392b;
}
.tpcls-voucher-feedback--info {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #374151;
}


/* ---------------------------------------------------------------
 * Inserat teilen
 * ------------------------------------------------------------- */
.tpcls-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 16px 0;
}

.tpcls-share-title {
    font-size: 14px;
    font-weight: 600;
}

.tpcls-share-list {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tpcls-share-list li {
    margin: 0;
    padding: 0;
}

/* Doppelte Klasse, damit Link-Stile aus Theme/Elementor nicht durchschlagen */
.tpcls-share .tpcls-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #d0d0d0;
    border-radius: 50%;
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.tpcls-share .tpcls-share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.tpcls-share .tpcls-share-btn:hover,
.tpcls-share .tpcls-share-btn:focus-visible {
    border-color: currentColor;
    background: #fff;
}

.tpcls-share .tpcls-share-whatsapp:hover,
.tpcls-share .tpcls-share-whatsapp:focus-visible { color: #25d366; }
.tpcls-share .tpcls-share-facebook:hover,
.tpcls-share .tpcls-share-facebook:focus-visible { color: #1877f2; }
.tpcls-share .tpcls-share-x:hover,
.tpcls-share .tpcls-share-x:focus-visible        { color: #000; }
.tpcls-share .tpcls-share-mail:hover,
.tpcls-share .tpcls-share-mail:focus-visible,
.tpcls-share .tpcls-share-copy:hover,
.tpcls-share .tpcls-share-copy:focus-visible     { color: #333; }

.tpcls-share-feedback {
    font-size: 13px;
    color: #2e7d32;
}
