.rt-pb {
    position: relative;
    z-index: 1100;
    width: 100%;
    background: linear-gradient(var(--rt-tint, rgba(22,163,74,.08)), var(--rt-tint, rgba(22,163,74,.08))), var(--rt-card-bg, #fff);
    border-bottom: 1px solid var(--rt-border, #E2E8EC);
    max-height: 120px;
    transition: max-height .28s ease, opacity .28s ease;
}
.rt-pb:not(.is-ready) { max-height: 0; opacity: 0; overflow: hidden; border-bottom-width: 0; }
.rt-pb.is-out { max-height: 0; opacity: 0; overflow: hidden; border-bottom-width: 0; }
.rt-pb[hidden] { display: none; }

.rt-pb-in {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 64px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    position: relative;
}
.rt-pb-ic {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.rt-pb-stage { display: grid; min-width: 0; }
.rt-pb-slide {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}
.rt-pb-slide.is-on {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .35s ease, transform .35s ease;
}
.rt-pb-slide[hidden] { display: none; }

.rt-pb-txt { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.rt-pb-ti {
    font-size: 16px;
    font-weight: 700;
    color: var(--rt-text-main, #0f172a);
    letter-spacing: -.1px;
    line-height: 1.3;
}
.rt-pb-dev { white-space: nowrap; }
.rt-pb-dev svg { display: inline-block; width: .9em; height: .9em; margin-inline-end: .28em; vertical-align: -.1em; }
.rt-pb-su {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--rt-text-muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rt-pb-su::before { content: "|"; margin-inline-end: 12px; opacity: .45; }

.rt-pb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-shrink: 0;
    border: 0;
    border-radius: 100px;
    padding: 10px 22px;
    background: var(--rt-accent, #16A34A);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(22,163,74,.22);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.rt-pb-btn:hover { transform: translateY(-1px); filter: brightness(.94); box-shadow: 0 8px 20px rgba(22,163,74,.3); }
.rt-pb-btn:focus-visible, .rt-pb-x:focus-visible { outline: 2px solid var(--rt-accent, #16A34A); outline-offset: 2px; }

.rt-pb-x {
    position: absolute;
    inset-inline-end: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(127,127,127,.12);
    color: var(--rt-text-muted, #94a3b8);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.rt-pb-x:hover { background: rgba(239,68,68,.14); color: #ef4444; }

.rt-pb-ios {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline: 14px;
    max-width: 380px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--rt-card-bg, #fff);
    color: var(--rt-text-main, #0f172a);
    border: 1px solid var(--rt-border, #E2E8EC);
    box-shadow: 0 14px 38px rgba(0,0,0,.22);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
}
.rt-pb-ios[hidden] { display: none; }
.rt-pb-ios svg { flex-shrink: 0; color: var(--rt-accent, #16A34A); }

body:has(.rt-ex) .rt-pb { display: none; }

@media (max-width: 1024px) {
    .rt-pb-in { padding-inline: 56px; gap: 12px; }
    .rt-pb-txt { gap: 10px; }
    .rt-pb-ti { font-size: 15px; }
}

@media (max-width: 768px) {
    .rt-pb-in { padding: 9px 50px 9px 12px; justify-content: flex-start; min-height: 58px; }
    [dir="rtl"] .rt-pb-in { padding: 9px 12px 9px 50px; }
    .rt-pb-x { inset-inline-end: 10px; width: 28px; height: 28px; }
    .rt-pb-stage { flex: 1; }
    .rt-pb-slide { justify-content: space-between; gap: 10px; }
    .rt-pb-txt { flex-direction: column; align-items: flex-start; gap: 1px; }
    .rt-pb-ti {
        font-size: 14px;
        line-height: 1.3;
        text-wrap: balance;
        text-align: start;
    }
    .rt-pb-su { display: none; }
    .rt-pb-btn { padding: 9px 14px; font-size: 12px; }
}

@media (max-width: 400px) {
    .rt-pb-in { gap: 9px; padding-inline-start: 10px; }
    .rt-pb-ic { width: 34px; height: 34px; border-radius: 9px; }
    .rt-pb-ti { font-size: 13px; }
    .rt-pb-btn { padding: 8px 12px; font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
    .rt-pb, .rt-pb-slide, .rt-pb-slide.is-on, .rt-pb-btn { transition: none; }
}