/* Top Message Bar alapstílus */
.tmb-message-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f20000;
    color: #ffffff;
    text-align: center;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    height: 39px;
    font-family: "ArchivoSemiCondensed", Sans-serif;
    font-size: 19px;
    font-weight: 500;
    font-style: italic;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    padding-top: max(env(safe-area-inset-top), 0px);
}

.tmb-message-content {
    flex-grow: 1;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tmb-title {
    font-weight: 500;
}


a.tmb-more-info {
    display: none;
}

.tmb-separator {
    margin: 0 5px;
    opacity: 0.8;
}

.tmb-text {
    font-weight: 600;
}

.tmb-more-info {
    color: #ffffff;
    text-decoration: none;
    font-family: "Archivo", sans-serif;
    text-transform: capitalize;
    font-size: 15px;
}

.tmb-more-info:hover {
    text-decoration: underline;
    color: white;
}

.tmb-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    background-color: #ffffff6b;
    margin-right: 25px;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    padding: 0px;
}

.tmb-close:hover {
    background: none;
}

/* Sticky header kezelése */
.site-header.sticky-header,
.elementor-sticky--active {
    position: fixed !important;
    width: 100% !important;
    left: 0 !important;
    top: 0 !important;
    z-index: 99999 !important;
    transition: transform 0.3s ease-in-out !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Top bar látható állapot */
body:not(.tmb-closed) .site-header.sticky-header,
body:not(.tmb-closed) .elementor-sticky--active {
    transform: translateY(39px) !important;
    -webkit-transform: translateY(39px) !important;
}

/* Top bar rejtett állapot */
body.tmb-closed .site-header.sticky-header,
body.tmb-closed .elementor-sticky--active {
    transform: translateY(0) !important;
    -webkit-transform: translateY(0) !important;
}

/* Admin bar kezelése */
body.admin-bar .tmb-message-bar {
    top: 32px;
}

body.admin-bar:not(.tmb-closed) .site-header.sticky-header,
body.admin-bar:not(.tmb-closed) .elementor-sticky--active {
    transform: translateY(71px) !important;
    -webkit-transform: translateY(71px) !important;
}

body.admin-bar.tmb-closed .site-header.sticky-header,
body.admin-bar.tmb-closed .elementor-sticky--active {
    transform: translateY(32px) !important;
    -webkit-transform: translateY(32px) !important;
}

/* Mobile nézet */
@media (max-width: 768px) {
    .tmb-message-bar {
        padding: 5px;
        height: auto;
        min-height: 39px;
    }

    .tmb-message-content {
        flex-grow: 1;
        padding: 0 10px;
        font-size: 14px;
        gap: 5px;
    }

    .tmb-title,
    .tmb-text {
        font-size: 14px;
    }


    
    .tmb-close {
        margin-top: -4px;
    }

    body.admin-bar .tmb-message-bar {
        top: 46px;
    }

    body.admin-bar:not(.tmb-closed) .site-header.sticky-header,
    body.admin-bar:not(.tmb-closed) .elementor-sticky--active {
        transform: translateY(85px) !important;
        -webkit-transform: translateY(85px) !important;
    }

    body.admin-bar.tmb-closed .site-header.sticky-header,
    body.admin-bar.tmb-closed .elementor-sticky--active {
        transform: translateY(46px) !important;
        -webkit-transform: translateY(46px) !important;
    }
}

/* iPhone notch kezelése */
@supports (-webkit-touch-callout: none) {
    .tmb-message-bar {
        height: calc(39px + env(safe-area-inset-top));
    }

    body:not(.tmb-closed) .site-header.sticky-header,
    body:not(.tmb-closed) .elementor-sticky--active {
        transform: translateY(calc(39px + env(safe-area-inset-top))) !important;
        -webkit-transform: translateY(calc(39px + env(safe-area-inset-top))) !important;
    }
}

/* Admin bar és iPhone notch kombinációja */
@supports (-webkit-touch-callout: none) {
    body.admin-bar .tmb-message-bar {
        height: calc(39px + env(safe-area-inset-top));
    }

    body.admin-bar:not(.tmb-closed) .site-header.sticky-header,
    body.admin-bar:not(.tmb-closed) .elementor-sticky--active {
        transform: translateY(calc(71px + env(safe-area-inset-top))) !important;
        -webkit-transform: translateY(calc(71px + env(safe-area-inset-top))) !important;
    }
}