.dels-bp,
.dels-bp * {
    box-sizing: border-box;
}

.dels-bp {
    --dels-bp-blue: #159fe6;
    --dels-bp-blue-dark: #0759c7;
    --dels-bp-ink: #0f172a;
    --dels-bp-muted: #64748b;
    --dels-bp-line: #dbeafe;
    --dels-bp-pale: #f7fbff;
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 0 16px 42px;
    color: var(--dels-bp-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.dels-bp button,
.dels-bp input,
.dels-bp select {
    font: inherit;
}

.dels-bp-search-box,
.dels-bp-box,
.dels-bp-result-panel {
    border: 1px solid var(--dels-bp-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.055);
}

.dels-bp-search-box {
    margin: 32px 0 24px;
    padding: 28px;
}

.dels-bp-search-intro h1 {
    margin: 0;
    color: var(--dels-bp-ink);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.dels-bp-search-intro p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--dels-bp-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.dels-bp-search-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.dels-bp-search-card {
    min-width: 0;
    padding: 17px;
    border: 1px solid var(--dels-bp-line);
    border-radius: 18px;
    background: var(--dels-bp-pale);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.dels-bp-search-card.is-active {
    border-color: var(--dels-bp-blue);
    box-shadow: 0 0 0 3px rgba(21, 159, 230, 0.13);
}

.dels-bp-search-card h2 {
    margin: 0 0 13px;
    color: var(--dels-bp-ink);
    font-size: 1.18rem;
    line-height: 1.2;
}

.dels-bp-search-card label,
.dels-bp-filter > span {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 800;
}

.dels-bp-search-card input,
.dels-bp-filter select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cbdcf0;
    border-radius: 12px;
    outline: 0;
    background: #fff;
    color: var(--dels-bp-ink);
}

.dels-bp-search-card input:focus,
.dels-bp-filter select:focus {
    border-color: var(--dels-bp-blue);
    box-shadow: 0 0 0 3px rgba(21, 159, 230, 0.13);
}

.dels-bp-search-card small {
    display: block;
    margin-top: 9px;
    color: var(--dels-bp-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.dels-bp-elis,
.dels-bp-elis * {
    font-family: "elis", sans-serif;
    font-feature-settings: "liga" 1, "sups" 1, "ss01" 1, "ss02" 1, "ss03" 1;
}

/* Busca ELiS 1.2 — a única superfície é criada pelo Núcleo Universal V2. */
.dels-bp-search-card-elis .dels-elis-u-editor{width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important}
.dels-bp-search-card-elis .dels-elis-u-surface{width:100%!important;max-width:100%!important;min-width:0!important;min-height:103px!important;padding:12px 14px!important;border:1px solid #cbdcf0!important;border-radius:12px!important;background:#fff!important;font-size:clamp(28px,3vw,36px)!important;line-height:1.35!important;overflow-x:hidden!important}
.dels-bp-search-card-elis .dels-elis-u-toolbar{display:flex!important;margin-top:9px!important;gap:8px!important}
.dels-bp-search-card-elis .dels-elis-u-toolbar button{min-height:40px!important;padding:8px 12px!important;border-radius:10px!important;font-size:.82rem!important}
.dels-bp-search-card-elis .dels-elis-u-toolbar [data-el-status],.dels-bp-search-card-elis .dels-elis-u-export{display:none!important}
.dels-bp-search-card-elis textarea[data-dels-elis-input="1"]{display:none!important}

.dels-bp-sw-actions,
.dels-bp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.dels-bp-sw-preview {
    display: flex;
    min-height: 103px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
    border: 1px dashed #b8cce4;
    border-radius: 12px;
    background: #fff;
    color: var(--dels-bp-muted);
    font-size: 0.84rem;
    font-weight: 700;
    text-align: center;
}

.dels-bp-sw-preview fsw-sign {
    max-width: 100%;
}

.dels-bp-sw-actions {
    margin-top: 9px;
}

.dels-bp-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 19px;
    border: 1px solid var(--dels-bp-blue);
    border-radius: 999px;
    background: var(--dels-bp-blue);
    color: #fff;
    font-weight: 850;
    line-height: 1.15;
    text-decoration: none;
    cursor: pointer;
}

.dels-bp-button:hover,
.dels-bp-button:focus-visible {
    border-color: var(--dels-bp-blue-dark);
    background: var(--dels-bp-blue-dark);
    color: #fff;
}

.dels-bp-button-secondary {
    border-color: #cbdcf0;
    background: #fff;
    color: var(--dels-bp-ink);
}

.dels-bp-button-secondary:hover,
.dels-bp-button-secondary:focus-visible {
    border-color: #94a3b8;
    background: #f1f5f9;
    color: var(--dels-bp-ink);
}

.dels-bp-filter-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
    margin-top: 16px;
}

.dels-bp-details {
    overflow: hidden;
    border: 1px solid var(--dels-bp-line);
    border-radius: 16px;
    background: #fff;
}

.dels-bp-details summary {
    position: relative;
    min-height: 50px;
    padding: 14px 44px 14px 16px;
    color: var(--dels-bp-blue-dark);
    font-weight: 850;
    cursor: pointer;
    list-style: none;
}

.dels-bp-details summary::-webkit-details-marker {
    display: none;
}

.dels-bp-details summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 17px;
    transform: translateY(-50%);
    font-size: 1.35rem;
}

.dels-bp-details[open] summary::after {
    content: "−";
}

.dels-bp-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    padding: 15px;
    border-top: 1px solid var(--dels-bp-line);
    background: var(--dels-bp-pale);
}

.dels-bp-filter-grid-small {
    grid-template-columns: 1fr;
}

.dels-bp-actions {
    margin-top: 17px;
}

.dels-bp-status {
    min-height: 1.3em;
    color: var(--dels-bp-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.dels-bp-status.is-error {
    color: #b91c1c;
}

.dels-bp.is-loading .dels-bp-button[type="submit"] {
    opacity: 0.65;
    cursor: wait;
}

.dels-bp-async-host {
    margin: 24px 0;
}

.dels-bp-box {
    margin: 24px 0;
    padding: 24px;
}

.dels-bp-box > h2,
.dels-bp-all-results > h2 {
    margin: 0 0 17px;
    color: var(--dels-bp-ink);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.15;
}

.dels-bp-area-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.dels-bp-area {
    display: flex;
    min-height: 106px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 13px;
    border: 1px solid var(--dels-bp-line);
    border-radius: 16px;
    background: #fff;
    color: var(--dels-bp-ink);
    text-align: center;
    cursor: pointer;
}

.dels-bp-area:hover,
.dels-bp-area:focus-visible {
    border-color: var(--dels-bp-blue);
    box-shadow: 0 8px 22px rgba(21, 159, 230, 0.13);
}

.dels-bp-area > span {
    font-size: 1.8rem;
}

.dels-bp-area strong {
    font-size: 0.96rem;
}

.dels-bp-area small {
    color: var(--dels-bp-muted);
    font-size: 0.74rem;
}

.dels-bp-all-results {
    overflow: visible;
}

.dels-bp-initial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.dels-bp-result-panel {
    min-width: 0;
    padding: 17px;
    background: var(--dels-bp-pale);
}

.dels-bp-async-host .dels-bp-result-panel {
    padding: 24px;
    background: #fff;
}

.dels-bp-result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.dels-bp-result-header h3 {
    min-width: 0;
    margin: 0;
    color: var(--dels-bp-ink);
    font-size: 1.18rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.dels-bp-result-header > span {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff8ff;
    color: var(--dels-bp-blue-dark);
    font-size: 0.7rem;
    font-weight: 800;
}

.dels-bp-card-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.dels-bp-async-host .dels-bp-card-list {
    grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
}

.dels-bp-card {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    overflow: hidden;
    padding: 12px;
    border: 1px solid var(--dels-bp-line);
    border-radius: 15px;
    background: #fff;
}

.dels-bp-card-media {
    align-self: start;
}

.dels-bp-card-image,
.dels-bp-card-image-empty {
    display: block;
    width: 78px;
    height: 78px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eaf7ff, #f8fafc);
    object-fit: cover;
}

.dels-bp-card-body {
    min-width: 0;
}

.dels-bp-card h4 {
    margin: 0 0 6px;
    color: var(--dels-bp-ink);
    font-size: 1.02rem;
    line-height: 1.16;
    overflow-wrap: anywhere;
}

.dels-bp-card h4 a {
    color: inherit;
    text-decoration: none;
}

.dels-bp-card h4 a:hover,
.dels-bp-card h4 a:focus-visible {
    color: var(--dels-bp-blue-dark);
    text-decoration: underline;
}

.dels-bp-card-meta {
    margin-top: 3px;
    color: var(--dels-bp-muted);
    font-size: 0.73rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.dels-bp-card-link {
    grid-column: 1 / -1;
    justify-self: end;
    padding: 7px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: var(--dels-bp-blue-dark);
    font-size: 0.77rem;
    font-weight: 850;
    text-decoration: none;
}

.dels-bp-card-link:hover,
.dels-bp-card-link:focus-visible {
    border-color: var(--dels-bp-blue-dark);
    background: var(--dels-bp-blue-dark);
    color: #fff;
}

.dels-bp-card .dels-bp-elis {
    max-width: 100%;
    margin: 1px 0 6px;
    color: #020617;
    font-size: 1.55rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.dels-bp-card .dels-bp-elis-small {
    font-size: 1.22rem;
}

.dels-bp-sw-wrap {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    margin-bottom: 5px;
}

.dels-bp-fsw-sign,
.dels-bp-sw-image {
    display: block;
    max-width: 100%;
    max-height: 74px;
    object-fit: contain;
}

.dels-bp-sem-escrita {
    color: #94a3b8;
    font-size: 0.73rem;
    font-weight: 750;
}

.dels-bp-empty {
    padding: 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #fff;
    color: var(--dels-bp-muted);
    text-align: center;
}

.dels-bp-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.dels-bp-pagination button {
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #fff;
    color: var(--dels-bp-blue-dark);
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
}

.dels-bp-pagination button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.dels-bp-pagination span {
    color: var(--dels-bp-muted);
    font-size: 0.73rem;
    font-weight: 750;
}

.dels-bp-bottom {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 0;
}

.dels-bp-bottom .dels-bp-box {
    min-width: 0;
    margin: 0;
}

.dels-bp-bottom h2 {
    font-size: 1.25rem;
}

.dels-bp-bottom p,
.dels-bp-bottom ol {
    margin: 0;
    color: var(--dels-bp-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.dels-bp-bottom ol {
    padding-left: 20px;
}

.dels-bp-day {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    color: var(--dels-bp-ink);
    text-decoration: none;
}

.dels-bp-day-image {
    display: block;
    width: 92px;
    height: 92px;
    border-radius: 14px;
    object-fit: cover;
}

.dels-bp-day h3 {
    margin: 0 0 5px;
    font-size: 1.25rem;
    line-height: 1.1;
}

.dels-bp-day-elis {
    margin: 5px 0;
    font-size: 1.45rem;
    line-height: 1.15;
}

.dels-bp-day > div > span {
    color: var(--dels-bp-blue-dark);
    font-size: 0.78rem;
    font-weight: 850;
}

/* Modal SignWriting */
.dels-bp-sw-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.74);
}

.dels-bp-sw-modal[hidden] {
    display: none;
}

.dels-bp-sw-modal-inner {
    display: flex;
    width: min(1180px, 100%);
    height: min(820px, calc(100vh - 40px));
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
}

.dels-bp-sw-modal header,
.dels-bp-sw-modal footer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
}

.dels-bp-sw-modal footer {
    justify-content: flex-end;
    border-top: 1px solid #e2e8f0;
    border-bottom: 0;
}

.dels-bp-sw-modal header button {
    width: 40px;
    height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: var(--dels-bp-ink);
    font-size: 1.4rem;
    cursor: pointer;
}

.dels-bp-sw-modal iframe {
    width: 100%;
    flex: 1 1 auto;
    border: 0;
}

@media (max-width: 1050px) {
    .dels-bp-search-grid,
    .dels-bp-initial-grid,
    .dels-bp-bottom {
        grid-template-columns: 1fr;
    }

    .dels-bp-filter-row {
        grid-template-columns: 1fr;
    }

    .dels-bp-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dels-bp-area-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dels-bp-initial-grid .dels-bp-card-list {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 680px) {
    .dels-bp {
        padding: 0 10px 28px;
    }

    .dels-bp-search-box,
    .dels-bp-box,
    .dels-bp-async-host .dels-bp-result-panel {
        padding: 16px;
        border-radius: 17px;
    }

    .dels-bp-search-box {
        margin-top: 18px;
    }

    .dels-bp-search-grid {
        gap: 11px;
    }

    .dels-bp-filter-grid,
    .dels-bp-area-grid,
    .dels-bp-async-host .dels-bp-card-list,
    .dels-bp-initial-grid .dels-bp-card-list {
        grid-template-columns: 1fr;
    }

    .dels-bp-result-panel {
        padding: 13px;
    }

    .dels-bp-card {
        grid-template-columns: 68px minmax(0, 1fr);
    }

    .dels-bp-card-image,
    .dels-bp-card-image-empty {
        width: 68px;
        height: 68px;
    }

    .dels-bp-card-link {
        justify-self: start;
    }

    .dels-bp-actions .dels-bp-button {
        flex: 1 1 135px;
    }

    .dels-bp-status {
        flex-basis: 100%;
    }

    .dels-bp-sw-modal {
        padding: 8px;
    }

    .dels-bp-sw-modal-inner {
        height: calc(100vh - 16px);
        border-radius: 14px;
    }

    .dels-bp-sw-modal footer {
        flex-wrap: wrap;
    }

    .dels-bp-sw-modal footer .dels-bp-button {
        flex: 1 1 145px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dels-bp *,
    .dels-bp *::before,
    .dels-bp *::after {
        scroll-behavior: auto;
        transition-duration: 0.01ms;
    }
}
