.tpozyka-app-entry[hidden] {
    display: none !important;
}

.tpozyka-app-entry {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    font-family: inherit;
}

.tpozyka-app-entry__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    padding: 10px 12px;
}

.tpozyka-app-entry__close {
    border: 0;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    flex-shrink: 0;
    padding: 4px;
}

.tpozyka-app-entry__head {
    display: flex;
    gap: 12px;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.tpozyka-app-entry__icon {
    flex: 0 0 48px;
    border-radius: 12px;
    object-fit: cover;
}

.tpozyka-app-entry__content {
    min-width: 0;
    overflow: hidden;
}

.tpozyka-app-entry__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
    margin-bottom: 4px;
}

.tpozyka-app-entry__text {
    font-size: 14px;
    line-height: 1.4;
    color: #999999;
}

.tpozyka-app-entry__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tpozyka-app-entry__btn {
    appearance: none;
    border: 0;
    border-radius: 50px;
    padding: 4px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.tpozyka-app-entry__btn--primary {
    background: #0088FF;
    color: #fff;
}

.tpozyka-app-entry__btn--secondary {
    background: #f1f1f1;
    color: #111;
}

.tpozyka-app-entry__btn--ghost {
    background: transparent;
    color: #666;
    padding-left: 0;
    padding-right: 0;
}

html.tpozyka-app-entry-visible {
    scroll-padding-top: 80px;
}

body.tpozyka-app-entry-visible {
    padding-top: 68px;
}

.tpozyka-app-entry-debug {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 100000;
    max-height: 42vh;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    color: #111;
    font: 12px/1.4 monospace;
    overflow: hidden;
}

.tpozyka-app-entry-debug__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    background: #f6f6f6;
}

.tpozyka-app-entry-debug__head button {
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 4px;
    background: #fff;
    color: #111;
    cursor: pointer;
    font: inherit;
    padding: 2px 6px;
}

.tpozyka-app-entry-debug__body {
    max-height: calc(42vh - 32px);
    overflow: auto;
    padding: 6px 8px;
}

.tpozyka-app-entry-debug__item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 4px 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.tpozyka-app-entry-debug__item:last-child {
    border-bottom: 0;
}

@media (min-width: 768px) {
    .tpozyka-app-entry {
        display: none !important;
    }

    body.tpozyka-app-entry-visible {
        padding-top: 0;
    }
}
