/* ===== Custom Button Group – Frontend-Styles ===== */

.cbg-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
    align-items: center;
}

.cbg-button-group.cbg-align-left   { justify-content: flex-start; }
.cbg-button-group.cbg-align-center { justify-content: center; }
.cbg-button-group.cbg-align-right  { justify-content: flex-end; }

.cbg-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* Alle Hover-/Fokus-/Aktiv-Zustände einfrieren – Theme-Stile überschreiben.
   Farben werden NICHT hier gesetzt (würde inherit = weiß ergeben),
   sondern per JS in frontend.js aus dem Inline-Style gesichert. */
.cbg-button:hover,
.cbg-button:focus,
.cbg-button:active,
.cbg-button:visited {
    text-decoration: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18) !important;
    outline: none !important;
}

/* ===== Affiliate-Pille ===== */

/* Etwas höher, damit der Hinweis unten zentriert Platz hat */
.cbg-button.cbg-affiliate {
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 6px;
    gap: 4px;
}

/* Disclaimer-Text – zentriert unter dem Button-Text */
.cbg-affiliate-label {
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0;
    white-space: nowrap;
    line-height: 1;
    opacity: 0.85;
    color: inherit;
    text-align: center;
    pointer-events: none;
}

/* Auf sehr kleinen Bildschirmen: Pillen untereinander, aber gleich groß wie auf Desktop */
@media (max-width: 480px) {
    .cbg-button-group {
        flex-direction: column;
        align-items: center;
    }
}
