.hel-field-bubble {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;

    width: min(360px, calc(100vw - 32px));
    overflow: hidden;

    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.hel-field-bubble-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;

    width: 32px;
    height: 32px;
    padding: 0;

    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #212529;

    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.hel-field-bubble-close:hover {
    background: #fff;
}

.hel-field-bubble-image {
    display: block;
}

.hel-field-bubble-image img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.hel-field-bubble-content {
    padding: 1.15rem 1.2rem 1.25rem;
}

.hel-field-bubble-label {
    margin-bottom: 0.35rem;

    color: #8f1620;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hel-field-bubble-meta {
    margin-bottom: 0.45rem;

    color: #6c757d;
    font-size: 0.82rem;
}

.hel-field-bubble h2 {
    margin: 0 0 0.55rem;

    color: #212529;
    font-size: 1.08rem;
    line-height: 1.3;
}

.hel-field-bubble p {
    margin: 0 0 1rem;

    color: #495057;
    font-size: 0.92rem;
    line-height: 1.5;
}

.hel-field-bubble-link {
    display: inline-flex;
    align-items: center;

    color: #8f1620;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.hel-field-bubble-link:hover {
    color: #681017;
    text-decoration: underline;
}

@media (max-width: 575px) {
    .hel-field-bubble {
        right: 16px;
        bottom: 16px;
        width: calc(100vw - 32px);
    }

    .hel-field-bubble-image img {
        height: 130px;
    }
}

html[dir="rtl"] .hel-field-bubble {
    right: auto;
    left: 24px;
    text-align: right;
}

html[dir="rtl"] .hel-field-bubble-close {
    right: auto;
    left: 10px;
}

html[dir="rtl"] .hel-field-bubble-label,
html[dir="rtl"] .hel-field-bubble-meta,
html[dir="rtl"] .hel-field-bubble h2,
html[dir="rtl"] .hel-field-bubble p {
    text-align: right;
}

@media (max-width: 575px) {
    html[dir="rtl"] .hel-field-bubble {
        right: auto;
        left: 16px;
    }
}

/* =========================================================
   Mobile compact Field Notes bubble
   Desktop remains unchanged.
   ========================================================= */
@media (max-width: 575px) {
    .hel-field-bubble {
        right: 12px;
        bottom: 12px;
        width: calc(100vw - 24px);
        max-height: 42vh;
        border-radius: 16px;
    }

    .hel-field-bubble-image {
        display: none;
    }

    .hel-field-bubble-content {
        padding: .85rem 2.8rem .9rem 1rem;
    }

    .hel-field-bubble-label {
        margin-bottom: .2rem;
        font-size: .68rem;
    }

    .hel-field-bubble-meta {
        margin-bottom: .28rem;
        font-size: .76rem;
    }

    .hel-field-bubble h2 {
        margin-bottom: .45rem;
        font-size: .98rem;
        line-height: 1.28;
    }

    .hel-field-bubble p {
        display: none;
    }

    .hel-field-bubble-link {
        font-size: .84rem;
    }

    .hel-field-bubble-close {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
    }

    html[dir="rtl"] .hel-field-bubble {
        right: auto;
        left: 12px;
    }

    html[dir="rtl"] .hel-field-bubble-content {
        padding: .85rem 1rem .9rem 2.8rem;
    }

    html[dir="rtl"] .hel-field-bubble-close {
        right: auto;
        left: 8px;
    }
}

/* v21 — compact bubble on tablet and narrow desktop */
@media (min-width: 576px) and (max-width: 1199.98px) {
    .hel-field-bubble {
        right: 16px;
        bottom: 16px;
        width: min(310px, calc(100vw - 32px));
        border-radius: 16px;
        box-shadow: 0 14px 34px rgba(0,0,0,.13);
    }
    .hel-field-bubble-image { display: none !important; }
    .hel-field-bubble-content { padding: .95rem 2.8rem 1rem 1rem; }
    .hel-field-bubble-label { margin-bottom: .22rem; font-size: .68rem; }
    .hel-field-bubble-meta { margin-bottom: .32rem; font-size: .76rem; }
    .hel-field-bubble h2 { margin-bottom: .48rem; font-size: 1rem; line-height: 1.3; }
    .hel-field-bubble p { display: none !important; }
    .hel-field-bubble-link { font-size: .84rem; }
    .hel-field-bubble-close { top: 8px; right: 8px; width: 30px; height: 30px; font-size: 1.08rem; }
    html[dir="rtl"] .hel-field-bubble { right: auto; left: 16px; }
    html[dir="rtl"] .hel-field-bubble-content { padding: .95rem 1rem 1rem 2.8rem; }
    html[dir="rtl"] .hel-field-bubble-close { right: auto; left: 8px; }
}
