.header-selos__desktop,
.header-selos__list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.header-selos__desktop { display: none; align-items: center; gap: .75rem; }
.header-selos__item { position: relative; }
.header-selos__seal { display: block; border-radius: .375rem; }
.header-selos__image { width: auto; height: 3.5rem; max-width: 4.5rem; object-fit: contain; }

.header-selos__tooltip {
    visibility: hidden;
    position: absolute;
    z-index: 60;
    inset-block-start: 100%;
    inset-inline-end: 0;
    width: max-content;
    max-width: min(17rem, calc(100vw - 2rem));
    padding: .55rem .7rem;
    border: 1px solid #334155;
    border-radius: .625rem;
    background: #1e293b;
    color: white;
    box-shadow: 0 6px 16px #0f172a25;
    font-size: .8125rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.header-selos__item:not([data-selo-dispensado]):is(:hover, :focus-within) .header-selos__tooltip { visibility: visible; }

.header-selos__trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .375rem;
    min-width: 44px;
    min-height: 44px;
    padding-inline: .55rem;
    border: 1px solid #e2e8f0;
    border-radius: .625rem;
    background: white;
    color: var(--cor-primaria, #1e40af);
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
    font-size: .75rem;
    font-weight: 500;
}

.header-selos__trigger::-webkit-details-marker { display: none; }
.header-selos__trigger:hover, .header-selos__mobile[open] > summary { background: var(--cor-primaria-light, #eff6ff); }
.header-selos :focus-visible { outline: 2px solid var(--cor-primaria, #1e40af); outline-offset: 2px; }
.contraste-alto .header-selos :focus-visible { outline-color: #ff0; }

.header-selos__panel {
    position: absolute;
    z-index: 60;
    inset-inline-end: 0;
    inset-block-start: calc(100% + .625rem);
    width: min(22rem, calc(100vw - 2rem));
    max-height: min(25rem, 60vh);
    overflow: auto;
    overscroll-behavior: contain;
    padding: .875rem;
    border: 1px solid #e2e8f0;
    border-radius: .875rem;
    background: white;
    color: #0f172a;
    box-shadow: 0 12px 30px #0f172a24;
}

.header-selos__heading {
    margin: 0 0 .4rem;
    padding: 0 .5rem .55rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: .9375rem;
    font-weight: 500;
}

.header-selos__list > li + li { border-top: 1px solid #f1f5f9; }
.header-selos__row {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 56px;
    padding: .5rem;
    border-radius: .5rem;
    color: inherit;
    text-decoration: none;
}

a.header-selos__row:hover { background: #f8fafc; }
.header-selos__row > svg { flex-shrink: 0; color: var(--cor-primaria, #1e40af); }
.header-selos__thumbnail { flex-shrink: 0; width: 44px; height: 44px; object-fit: contain; }
.header-selos__copy { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.header-selos__title { display: block; font-size: .875rem; font-weight: 500; line-height: 1.4; }
.header-selos__description { display: block; margin-top: .2rem; color: #475569; font-size: .8125rem; line-height: 1.45; }

@media (min-width: 1024px) and (hover: hover) {
    .header-selos__desktop { display: flex; }
    .header-selos__mobile { display: none; }
}

@media (max-width: 1023px) {
    .header-com-selos { gap: .625rem; }
    .header-com-selos .civic-brand-link { min-width: 0; flex-shrink: 1; }
    .header-com-selos .civic-brand-link > img { min-width: 0; }
    .header-com-selos .civic-brand-name { min-width: 0; overflow-wrap: anywhere; }
}

@media (max-width: 359px) {
    .header-com-selos .civic-brand-link .civic-brand-name { display: none; }
}
