/* Turbo Banda v1.1.0 – elementy nagłówka, bez zmian w strukturze menu Blocksy */
.yalla-tb-header-slot[hidden] { display: none !important; }
.yalla-tb-header-slot { box-sizing: border-box; flex: 0 0 auto; z-index: 6; }
.yalla-tb-slot-desktop { display: flex; align-items: center; margin-inline-start: 12px; }
.yalla-tb-slot-mobile { display: none; align-items: center; justify-content: center; width: 100%; }

/* Nowa identyfikacja: kanciasty przycisk w obu stanach użytkownika */
.yalla-tb-cta,
.yalla-tb-cta.is-member,
.yalla-tb-cta.is-guest {
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 49px;
    padding: 5px 14px 5px 8px;
    border: 2px solid #FFE9EF;
    border-radius: 0 !important;
    background: #E83F5F;
    box-shadow: 4px 4px 0 #3A0F2E;
    color: #ffffff !important;
    font: 800 15px/1.15 'Poppins', 'DejaVu Sans', Arial, sans-serif !important;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    text-decoration: none !important;
    text-align: center;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.yalla-tb-cta:hover,
.yalla-tb-cta:focus-visible,
.yalla-tb-cta.is-member:hover,
.yalla-tb-cta.is-guest:hover {
    color: #3A0F2E !important;
    background: #FFB020;
    border-color: #3A0F2E;
    box-shadow: 5px 5px 0 #3A0F2E;
    transform: translateY(-2px);
}
.yalla-tb-cta:focus-visible { outline: 3px solid #5ED3B0; outline-offset: 3px; }
.yalla-tb-cta:active { transform: translateY(1px); box-shadow: 2px 2px 0 #3A0F2E; }
.yalla-tb-cta-cat,
.yalla-tb-cta-paw { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; }
.yalla-tb-cta-cat { width: 31px; height: 31px; background: #FFE9EF; border: 1px solid #3A0F2E; border-radius: 0 !important; overflow: hidden; }
.yalla-tb-cta-paw { width: 27px; height: 30px; transform: rotate(8deg); transition: transform .18s ease; }
.yalla-tb-cta:hover .yalla-tb-cta-paw { transform: rotate(-10deg) scale(1.08); }
.yalla-tb-cta svg { display:block; height:100%; width:100%; }
.yalla-tb-cta-label {
    display:block;
    text-shadow:none;
    font-family:'Poppins', 'DejaVu Sans', Arial, sans-serif !important;
    font-weight:800 !important;
    letter-spacing: -.025em;
}

/* Stara automatyczna pozycja z 1.0.1 oraz shortcode z Bloku treści 5 nie mają tworzyć duplikatów. */
#header .yalla-tb-menu-item,
.ct-header .yalla-tb-menu-item,
#header .yalla-turbo-banda-wrap,
.ct-header .yalla-turbo-banda-wrap,
#header .yalla-tb-shortcode,
.ct-header .yalla-tb-shortcode { display:none !important; }

@media (min-width: 1000px) {
    .yalla-tb-slot-mobile { display: none !important; }
    .yalla-tb-slot-desktop { display: inline-flex !important; }
    .yalla-tb-desktop-fallback { display:flex; align-items:center; justify-content:flex-end; padding: 8px 18px; }
}
@media (min-width: 1000px) and (max-width: 1200px) {
    .yalla-tb-cta-desktop { font-size: 14px !important; padding-right: 9px; gap: 6px; }
    .yalla-tb-cta-desktop .yalla-tb-cta-cat { width: 30px; height: 30px; }
    .yalla-tb-cta-desktop .yalla-tb-cta-paw { width: 25px; height: 29px; }
}
@media (max-width: 999px) {
    .yalla-tb-slot-desktop { display: none !important; }
    .yalla-tb-slot-mobile { display: flex !important; }
    .yalla-tb-mobile-host { position: relative !important; min-height: 68px !important; overflow: visible !important; background: var(--yalla-tb-mobile-bar-bg, #3A0F2E) !important; }
    .yalla-tb-mobile-host > .yalla-tb-slot-mobile { position:absolute !important; left:50%; top:50%; transform:translate(-50%,-50%); width:max-content; max-width:calc(100% - 20px); z-index:10; }
    .yalla-tb-mobile-created-row { position:relative; display:flex !important; align-items:center; justify-content:center; width:100%; min-height:68px; background:var(--yalla-tb-mobile-bar-bg, #3A0F2E) !important; }
    .yalla-tb-mobile-created-row > .yalla-tb-slot-mobile { position:relative; width:100%; padding:8px; }
    .yalla-tb-cta-mobile { font-size: 16px !important; padding: 5px 12px 5px 6px; max-width: 100%; min-height: 46px; }
    .yalla-tb-cta-mobile .yalla-tb-cta-cat { width:33px; height:33px; }
    .yalla-tb-cta-mobile .yalla-tb-cta-paw { width:28px; height:32px; }
}
@media (max-width: 360px) {
    .yalla-tb-cta-mobile { font-size: 14px !important; gap: 6px; }
    .yalla-tb-cta-mobile .yalla-tb-cta-cat { width:28px; height:28px; }
    .yalla-tb-cta-mobile .yalla-tb-cta-paw { width:24px; height:28px; }
}
@media (prefers-reduced-motion: reduce) {
    .yalla-tb-cta, .yalla-tb-cta-paw { transition:none !important; transform:none !important; }
}

/* Wąski pasek Blocksy musi być pokryty kolorem na całej szerokości. */
@media (max-width: 999px) {
    .yalla-tb-mobile-host > .ct-container,
    .yalla-tb-mobile-host > .ct-container-fluid { background: transparent !important; }

    .yalla-tb-mobile-sticky-bar {
        box-sizing: border-box;
        position: fixed !important;
        z-index: 99990;
        left: 0 !important;
        right: 0 !important;
        top: 0;
        width: 100% !important;
        min-height: 68px;
        padding: 8px 12px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: var(--yalla-tb-mobile-bar-bg, #3A0F2E) !important;
        box-shadow: 0 4px 14px rgba(0,0,0,.20);
    }
    .yalla-tb-mobile-sticky-bar[hidden] { display: none !important; }
    .yalla-tb-mobile-sticky-bar .yalla-tb-cta-mobile { max-width: calc(100vw - 24px); }
    .yalla-tb-slot-mobile.yalla-tb-sticky-source-hidden { visibility: hidden !important; }
}
@media (min-width: 1000px) {
    .yalla-tb-mobile-sticky-bar { display: none !important; }
}




/* 1.1.3: desktop CTA near the account icon/right edge, retaining a safe gap */
@media (min-width: 1000px) {
  .yalla-tb-slot-desktop.yalla-tb-at-right {
    margin-inline-start: auto !important;
    margin-inline-end: clamp(14px, 1.6vw, 26px) !important;
    padding-inline-end: 0;
  }
  .yalla-tb-slot-desktop:not(.yalla-tb-at-right) {
    margin-inline-start: clamp(16px, 2.2vw, 38px) !important;
    margin-inline-end: clamp(14px, 1.6vw, 26px) !important;
  }
}

/* 1.1.3: irregular 3-stroke hamburger for Blocksy mobile trigger.
   Visual only; the theme's button, aria attributes, focus and click remain intact. */
@media (max-width: 999px) {
  #header [data-device="mobile"] .ct-header-trigger,
  .ct-header [data-device="mobile"] .ct-header-trigger {
    position: relative !important;
    min-width: 42px;
    min-height: 42px;
  }
  #header [data-device="mobile"] .ct-header-trigger .ct-icon,
  .ct-header [data-device="mobile"] .ct-header-trigger .ct-icon {
    opacity: 0 !important;
  }
  #header [data-device="mobile"] .ct-header-trigger::after,
  .ct-header [data-device="mobile"] .ct-header-trigger::after {
    content: '';
    position: absolute;
    width: 36px;
    height: 30px;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 36'%3E%3Cpath d='M5 8 Q17 6 36 7 M8 18 Q20 17 39 18 M5 29 Q18 27 33 28' stroke='%23FFE9EF' stroke-width='4.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
    pointer-events: none;
  }
  /* If the offcanvas is expanded, preserve the theme trigger hitbox */
  #header [data-device="mobile"] .ct-header-trigger:hover::after,
  .ct-header [data-device="mobile"] .ct-header-trigger:hover::after { opacity: .88; }
}


/* 1.1.4 – przycisk w mobilnym headerze bliżej hamburgera (nie zmienia sticky) */
@media (max-width: 999px) {
    .yalla-tb-mobile-host > .yalla-tb-slot-mobile {
        left: clamp(82px, 13vw, 132px) !important;
        right: auto !important;
        transform: translateY(-50%) !important;
        justify-content: flex-start !important;
        width: max-content !important;
        max-width: calc(100% - clamp(82px, 13vw, 132px) - 12px) !important;
    }
    .yalla-tb-mobile-created-row {
        justify-content: flex-start !important;
    }
    .yalla-tb-mobile-created-row > .yalla-tb-slot-mobile {
        width: auto !important;
        max-width: calc(100% - clamp(82px, 13vw, 132px) - 12px) !important;
        margin-left: clamp(82px, 13vw, 132px) !important;
        padding: 8px 0 !important;
        justify-content: flex-start !important;
    }
    .yalla-tb-mobile-host .yalla-tb-cta-mobile,
    .yalla-tb-mobile-created-row .yalla-tb-cta-mobile {
        max-width: 100% !important;
    }
}
@media (max-width: 420px) {
    .yalla-tb-cta-mobile {font-size: 13px !important;gap: 5px !important;padding: 5px 8px 5px 5px !important;}
    .yalla-tb-cta-mobile .yalla-tb-cta-cat {width: 27px !important;height: 27px !important;}
    .yalla-tb-cta-mobile .yalla-tb-cta-paw {width: 23px !important;height: 25px !important;}
}
@media (max-width: 350px) {
    .yalla-tb-cta-mobile {font-size: 11.5px !important;gap: 4px !important;padding: 5px 6px 5px 4px !important;}
    .yalla-tb-cta-mobile .yalla-tb-cta-cat {width: 23px !important;height: 23px !important;}
    .yalla-tb-cta-mobile .yalla-tb-cta-paw {width: 20px !important;height: 22px !important;}
}

/* 1.1.6 – przycisk na samym końcu rozwijanego menu mobilnego Blocksy. */
.yalla-tb-offcanvas-slot[hidden] { display: none !important; }
.yalla-tb-offcanvas-slot { display: none; }
@media (max-width: 999px) {
  #offcanvas .yalla-tb-offcanvas-slot,
  [data-behaviour="offcanvas"] .yalla-tb-offcanvas-slot {
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 22px 16px 30px;
    margin: 10px auto 0;
    text-align: center;
  }
  #offcanvas .yalla-tb-cta-offcanvas,
  [data-behaviour="offcanvas"] .yalla-tb-cta-offcanvas {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    width: max-content;
    max-width: 100%;
    min-height: 48px;
    gap: 7px;
    font-size: clamp(12px, 3.4vw, 15px) !important;
    white-space: normal;
  }
  .yalla-tb-cta-offcanvas .yalla-tb-cta-cat { width: 31px; height: 31px; flex: 0 0 31px; }
  .yalla-tb-cta-offcanvas .yalla-tb-cta-paw { width: 26px; height: 29px; flex: 0 0 26px; }
}

/* 1.1.7: widoczny przycisk bezposrednio po ikonach social w offcanvas Blocksy. */
@media (max-width: 999px) {
  .yalla-tb-offcanvas-slot.yalla-tb-offcanvas-mounted:not([hidden]) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex: 0 0 auto;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 22px auto 0 !important;
    padding: 0 14px 20px !important;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
  }
  .yalla-tb-offcanvas-slot.yalla-tb-offcanvas-mounted .yalla-tb-cta {
    display: inline-flex !important;
    max-width: 100%;
    white-space: normal;
    font-size: clamp(12px, 3.4vw, 15px) !important;
  }
}
