/* Podpowiedzi — patrz js/ui/tooltip.js */
.tip-bubble {
    position: fixed;
    z-index: 1000;
    max-width: min(280px, calc(100vw - 16px));
    padding: 8px 10px;
    border-radius: 8px;
    background: #2b2619;
    color: #f0e8d2;
    border: 1px solid #6b5a33;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .55);
    font-size: 12.5px;
    line-height: 1.4;
    pointer-events: none;
    white-space: normal;
    /* Popover API (top layer, nad oknami modalnymi): wyłącz domyślne centrowanie i przycinanie popovera przez przeglądarkę */
    inset: auto;
    margin: 0;
    overflow: visible;
}

.tip-bubble[hidden] {
    display: none;
}

.tip-i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 4px;
    padding: 0;
    border: 1px solid #6b5a33;
    border-radius: 50%;
    background: transparent;
    color: #d9a73b;
    font-size: 12px;
    line-height: 1;
    cursor: help;
    vertical-align: middle;
}

.tip-i:hover,
.tip-i:focus-visible {
    background: #3a321f;
}

.tip-wrap {
    display: inline-block;
    cursor: help;
}

.tip-wrap.is-blocked > button,
.tip-wrap > button:disabled {
    pointer-events: none;
}

.tip-wrap.is-blocked {
    outline-offset: 2px;
}

/* na telefonie powiększ pole dotyku ikonki ⓘ (cel ≥ 32 px) bez powiększania jej wyglądu */
@media (hover: none) {
    .tip-i {
        position: relative;
    }

    .tip-i::after {
        content: '';
        position: absolute;
        inset: -8px;
    }
}
