/* GOMBOK - közös definíció, publikus oldal + admin richtext - ne definiálj gombot máshol. */
/* Csak hex, nincs var() - email-biztos. */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    text-decoration: none !important;
}

/* Gombon belüli ikon (pl. slider CTA ikonnal) - egységes méretre fogva. */
.btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

.btn:active,
.btn:focus:not(:focus-visible) {
    box-shadow: none !important;
    outline: none;
}

/* Bootstrap .btn:focus-visible felulirasa */

body:not(.tetra-body) :focus-visible {
    outline: 2px solid #000 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px #fff !important;
}

.tetra-btn-primary,
.tetra-btn-secondary,
.tetra-btn-third,
.tetra-btn-fourth {
    align-items: center;
    border: 0;
    height: 60px;
    padding: 0 28px;
    border-radius: 9999px;
    gap: 10px;
    font-weight: 500;
    font-size: 16px;
    font-family: 'Manrope', sans-serif;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

/* nyíl-ikon: ::after maszkolt SVG */
.tetra-btn-primary::after,
.tetra-btn-secondary::after,
.tetra-btn-third::after {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: transform 0.25s ease;
}

.tetra-btn-primary:hover::after,
.tetra-btn-secondary:hover::after,
.tetra-btn-third:hover::after {
    transform: translateX(3px);
}

@media (max-width: 767px) {
    .tetra-btn-primary,
    .tetra-btn-secondary,
    .tetra-btn-third,
    .tetra-btn-fourth {
        height: 48px;
        padding: 0 20px;
        font-size: 14px;
    }

    .tetra-btn-primary::after,
    .tetra-btn-secondary::after,
    .tetra-btn-third::after {
        width: 16px;
        height: 16px;
    }
}

/**************/
/* Primary */
/**************/
/* tartalmi elsodleges gomb - fekete toltott pill, mint a services-cta */
.tetra-btn-primary {
    background: #151515 !important;
    color: #fff !important;
}

.tetra-btn-primary:hover,
.tetra-btn-primary:hover:active,
.tetra-btn-primary:hover:focus {
    background: #ff1c2f !important;
    color: #fff !important;
}

/**************/
/* Secondary */
/**************/
/* feher toltott pill, fekete tartalommal - lathato marad feher cikk-/email-hatteren is */
.tetra-btn-secondary {
    background: #fff !important;
    color: #151515 !important;
    box-shadow: inset 0 0 0 1.5px rgba(21, 21, 21, 0.15);
}

.tetra-btn-secondary:hover,
.tetra-btn-secondary:hover:active,
.tetra-btn-secondary:hover:focus {
    background: #ff1c2f !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1.5px #ff1c2f;
}

/**************/
/* Third */
/**************/
/* ghost-gomb, sotet valtozat */
.tetra-btn-third {
    background: transparent !important;
    color: #151515 !important;
    box-shadow: inset 0 0 0 1.5px #151515;
}

.tetra-btn-third:hover,
.tetra-btn-third:hover:active,
.tetra-btn-third:hover:focus {
    background: #151515 !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1.5px #151515;
}

/**************/
/* Fourth */
/**************/
/* piros pill, feher ikon-korrel */
.tetra-btn-fourth {
    background: #ff1c2f !important;
    color: #fff !important;
    padding: 6px 6px 6px 28px;
}

.tetra-btn-fourth:hover,
.tetra-btn-fourth:hover:active,
.tetra-btn-fourth:hover:focus {
    background: #f33a49 !important;
}

.tetra-btn-fourth::after {
    content: "";
    display: block;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff1c2f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
    transition: transform 0.25s ease;
}

.tetra-btn-fourth:hover::after {
    transform: translateX(3px);
}

@media (max-width: 767px) {
    .tetra-btn-fourth {
        padding: 4px 4px 4px 20px;
    }

    .tetra-btn-fourth::after {
        width: 40px;
        height: 40px;
        background-size: 16px 16px;
    }
}
