/* SCT Buttons — v1.1.0 */

.sct-buttons-wrap {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    align-items: stretch;
}

/* ------------------------------------------------------------------ */
/*  Base button reset                                                   */
/* ------------------------------------------------------------------ */
.sct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    line-height: 1.3;
    transition: opacity 0.18s ease;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    max-width: 100%;
    flex-shrink: 1;
    flex-grow: 0;
    width: auto;
}

.sct-btn:hover {
    opacity: 0.82;
    text-decoration: none;
}

/* ------------------------------------------------------------------ */
/*  Filled                                                             */
/* ------------------------------------------------------------------ */
.sct-btn--filled {
    /* bg, color, padding, border-radius set inline by PHP */
}

/* ------------------------------------------------------------------ */
/*  Ghost                                                              */
/* ------------------------------------------------------------------ */
.sct-btn--ghost {
    background: transparent;
}

.sct-btn--ghost.sct-slider-active {
    background: var(--sct-slider-color, transparent);
}

/* ------------------------------------------------------------------ */
/*  Text link — NO background, NO border (în starea normală)          */
/* ------------------------------------------------------------------ */
.sct-btn--text {
    background: transparent;
    border: none !important;
    padding: 0 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sct-btn--text.sct-slider-active {
    padding: 6px 14px !important;
    border-radius: 4px;
    text-decoration: none;
}

/* ------------------------------------------------------------------ */
/*  External link icon                                                 */
/* ------------------------------------------------------------------ */
.sct-ext-icon {
    width: 0.85em;
    height: 0.85em;
    flex-shrink: 0;
    vertical-align: middle;
}

/* ------------------------------------------------------------------ */
/*  Lățime egală — butoanele ocupă egal spațiul disponibil            */
/* ------------------------------------------------------------------ */
.sct-buttons-wrap--equal {
    width: 100%;
}

.sct-buttons-wrap--equal .sct-btn {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
}

/* row break nu participă la flex grow */
.sct-buttons-wrap--equal .sct-row-break {
    flex: 0 0 100% !important;
    width: 100%;
}

/* ------------------------------------------------------------------ */
/*  Row break — forțează butonul următor pe rând nou                  */
/* ------------------------------------------------------------------ */
.sct-row-break {
    flex-basis: 100%;
    height: 0;
    margin: 0;
    padding: 0;
}

/* ------------------------------------------------------------------ */
/*  Slider highlight states                                            */
/* ------------------------------------------------------------------ */
.sct-btn--fade-out {
    opacity: 0 !important;
    pointer-events: none;
}

.sct-btn--fade-in {
    opacity: 1 !important;
}
