/* ===================================================================
   Drawer de Detalhamento de Coberturas — Comparar Seguro de Viagem
   CSS de produção (vanilla, sem dependências).
   Tokens usados: --brand #006b8f, --brand-deep #063646, --action #ffcb05,
   --soft #f4f8fa, --line #dfe7ec, --ink, --muted, --paper #fff, --shadow-card.
   Garanta que esses custom properties existam no :root da página.
   =================================================================== */

.cov-overlay { position: fixed; inset: 0; z-index: 2000; display: none; }
      .cov-panel { font-family: Inter, Montserrat, ui-sans-serif, system-ui, -apple-system, sans-serif; }
      /* neutraliza margens/sublinhados do CSS global (Bootstrap) dentro do painel */
      .cov-panel h2, .cov-panel h3, .cov-panel p { margin: 0; }
      .cov-panel a, .cov-panel a:hover, .cov-panel a:focus { text-decoration: none; }
      .cov-overlay.is-open { display: block; }
      .cov-backdrop {
        position: absolute; inset: 0;
        background: rgba(6, 36, 47, 0.46);
        backdrop-filter: blur(4px);
        opacity: 0; transition: opacity 240ms ease;
      }
      .cov-overlay.is-open .cov-backdrop { opacity: 1; }
      html.cov-lock, body.cov-lock { overflow: hidden; }

      .cov-panel {
        --cov-w: 560px;
        position: absolute; top: 0; right: 0; height: 100%;
        width: var(--cov-w); max-width: 96vw;
        background: var(--soft);
        box-shadow: -28px 0 80px rgba(6, 36, 47, 0.30);
        display: flex; flex-direction: column;
        transform: translateX(100%);
        transition: transform 320ms cubic-bezier(.22,.61,.36,1);
        will-change: transform;
      }
      .cov-overlay.is-open .cov-panel { transform: translateX(0); }

      /* ---- Header fixo ---- */
      .cov-head {
        flex: 0 0 auto; background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 18px 22px 16px;
      }
      .cov-head-top { display: flex; align-items: flex-start; gap: 14px; }
      .cov-plate {
        flex: 0 0 auto; width: 76px; height: 52px; border-radius: 8px;
        border: 1px solid var(--line); background: #fff;
        display: flex; align-items: center; justify-content: center; padding: 7px;
      }
      .cov-plate img { max-width: 100%; max-height: 100%; object-fit: contain; }
      .cov-head-id { flex: 1 1 auto; min-width: 0; padding-top: 1px; }
      .cov-head-id .seg { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
      .cov-head-id h2 { font-size: 19px; font-weight: 850; line-height: 1.16; margin-top: 3px; color: var(--ink); text-wrap: balance; }
      .cov-head-id .meta { font-size: 12.5px; font-weight: 650; color: var(--muted); margin-top: 4px; }
      .cov-close {
        flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px;
        border: 1px solid var(--line); background: var(--soft); cursor: pointer;
        display: flex; align-items: center; justify-content: center; color: var(--muted);
        transition: background 140ms ease, color 140ms ease;
      }
      .cov-close:hover { background: #e7eef2; color: var(--ink); }
      .cov-close svg { width: 17px; height: 17px; }

      .cov-head-price {
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line);
      }
      .cov-price-main { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
      .cov-price-main b { font-size: 26px; font-weight: 900; color: var(--brand); letter-spacing: -.01em; }
      .cov-price-main i { font-style: normal; font-size: 13px; font-weight: 800; color: var(--brand); }
      .cov-price-main em { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--muted); }
      .cov-price-sub { font-size: 12px; font-weight: 650; color: var(--muted); margin-top: 2px; width: 100%; }
      .cov-price-sub strong { color: var(--ink); font-weight: 800; }

      /* ---- Corpo rolável ---- */
      .cov-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px 28px; }
      .cov-intro {
        display: flex; gap: 9px; align-items: flex-start;
        background: var(--paper);
        border: 1px solid var(--line); border-radius: 10px;
        padding: 10px 12px; margin-bottom: 14px;
      }
      .cov-intro svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--brand); margin-top: 1px; }
      .cov-intro p { font-size: 12.8px; line-height: 1.5; color: #2c4a57; font-weight: 600; }
      .cov-intro p strong { color: var(--brand-deep); font-weight: 850; }

      .cov-sub { font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 4px 0 11px; }

      /* ---- Resumo herói (cards) ---- */
      .cov-hero[data-mode="none"] { display: none; }
      .cov-hero[data-mode="cards"] { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
      .cov-hero[data-mode="cards"] .hero-tile {
        background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
        padding: 13px 14px; box-shadow: var(--shadow-card);
        display: flex; flex-direction: column;
      }
      .cov-hero[data-mode="cards"] .ht-label { min-height: 2.5em; }
      .cov-hero[data-mode="cards"] .ht-val { margin-top: auto; padding-top: 6px; }
      .cov-hero[data-mode="cards"] .hero-tile.off { background: var(--soft); box-shadow: none; }
      .hero-tile .ht-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--soft-2); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 9px; }
      .hero-tile.off .ht-ic { background: #eef1f3; color: #9aa7af; }
      .hero-tile .ht-ic svg { width: 17px; height: 17px; }
      .hero-tile .ht-label { font-size: 11.5px; font-weight: 700; color: var(--muted); line-height: 1.25; }
      .hero-tile .ht-val { font-size: 17px; font-weight: 900; color: var(--ink); margin-top: 3px; letter-spacing: -.01em; }
      .hero-tile.off .ht-val { color: #9aa7af; font-weight: 800; }

      /* ---- Resumo herói (faixa compacta) ---- */
      .cov-hero[data-mode="faixa"] {
        display: flex; background: var(--paper); border: 1px solid var(--line);
        border-radius: 10px; box-shadow: var(--shadow-card); margin-bottom: 22px; overflow: hidden;
      }
      .cov-hero[data-mode="faixa"] .hero-tile { flex: 1 1 0; padding: 12px 10px; text-align: center; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
      .cov-hero[data-mode="faixa"] .hero-tile:first-child { border-left: 0; }
      .cov-hero[data-mode="faixa"] .ht-ic { display: none; }
      .cov-hero[data-mode="faixa"] .ht-label { font-size: 10.5px; min-height: 2.6em; }
      .cov-hero[data-mode="faixa"] .ht-val { font-size: 14.5px; margin-top: auto; padding-top: 4px; }

      /* ---- Faixa etária (toggle no header) ---- */
      .cov-price-left { min-width: 0; }
      .cov-age-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--brand); font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
      .cov-age-link:hover { text-decoration: underline; }
      .cov-age-link svg { width: 12px; height: 12px; transition: transform 180ms ease; }
      .cov-age-link.open svg { transform: rotate(180deg); }
      .cov-age-panel { display: none; margin: 0 0 14px; padding: 4px 14px 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-card); }
      .cov-age-panel.open { display: block; }
      .cov-age-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: 12.5px; }
      .cov-age-row + .cov-age-row { border-top: 1px solid var(--line); }
      .cov-age-row span { color: var(--muted); font-weight: 650; }
      .cov-age-row strong { color: var(--ink); font-weight: 850; }
      .cov-age-row:first-child strong { color: var(--brand); }
      .cov-age-empty { padding: 9px 0; font-size: 12.5px; color: var(--muted); }

      /* ---- Sheets de filtro (Todas / Incluídas / Excluídas) ---- */
      .cov-detailhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
      .cov-filter { display: inline-flex; gap: 3px; background: var(--soft-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
      .cov-filter button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; border-radius: 6px; padding: 6px 11px; font-size: 11.5px; font-weight: 750; color: var(--muted); cursor: pointer; transition: background 140ms ease, color 140ms ease; }
      .cov-filter button i { font-style: normal; font-size: 10.5px; font-weight: 800; opacity: .65; }
      .cov-filter button:hover { color: var(--ink); }
      .cov-filter button.sel { background: var(--brand); color: #fff; }
      .cov-filter button.sel i { opacity: .85; }

      /* ---- Cobertura por continente (legado) ---- */
      .cov-continents { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
      .cov-cont { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 12px; font-weight: 700; color: var(--ink); }
      .cov-cont svg { width: 14px; height: 14px; flex: 0 0 auto; }
      .cov-cont.yes svg { color: #1a8c4a; }
      .cov-cont.no { color: #9aa7af; }
      .cov-cont.no svg { color: #c2cbd0; }
      @media (max-width: 560px) { .cov-continents { grid-template-columns: 1fr; } }

      /* ---- Seções (acordeão) ---- */
      .cov-sec { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
      .cov-sec-head {
        width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
        padding: 14px 15px; background: none; border: 0; cursor: pointer;
      }
      .cov-sec-ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; background: var(--soft-2); color: var(--brand); display: flex; align-items: center; justify-content: center; }
      .cov-sec-ic svg { width: 18px; height: 18px; }
      .cov-sec-tt { flex: 1 1 auto; min-width: 0; }
      .cov-sec-tt h3 { font-size: 14.5px; font-weight: 800; color: var(--ink); line-height: 1.2; }
      .cov-sec-tt span { font-size: 11.5px; font-weight: 650; color: var(--muted); }
      .cov-chev { flex: 0 0 auto; width: 18px; height: 18px; color: var(--muted); transition: transform 220ms ease; }
      .cov-sec.is-open .cov-chev { transform: rotate(180deg); }
      .cov-sec-body { display: none; padding: 2px 15px 6px; }
      .cov-sec.is-open .cov-sec-body { display: block; }
      .cov-panel[data-grupos="aberto"] .cov-sec-body { display: block; }
      .cov-panel[data-grupos="aberto"] .cov-chev { display: none; }
      .cov-panel[data-grupos="aberto"] .cov-sec-head { cursor: default; }

      .cov-item { border-top: 1px solid var(--line); padding: 11px 0; }
      .cov-item:first-child { border-top: 0; }
      .cov-item-main { display: flex; align-items: center; gap: 10px; }
      .cov-item-label { flex: 1 1 auto; display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 650; color: var(--ink); line-height: 1.3; }
      .cov-info { flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%; border: 1.4px solid var(--line); background: #fff; color: var(--muted); font-size: 10px; font-weight: 800; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
      .cov-info:hover { border-color: var(--brand); color: var(--brand); }
      .cov-item-val { flex: 0 0 auto; font-size: 13.5px; font-weight: 850; color: var(--brand-deep); text-align: right; }
      .cov-item.is-inc .cov-item-val { color: var(--brand); }
      .cov-item.is-off .cov-item-label { color: #9aa7af; }
      .cov-item.is-off .cov-item-val { color: #aeb8be; font-weight: 700; }
      .cov-item.is-off .cov-info { border-color: var(--line); color: #aeb8be; }
      .cov-item.is-off .cov-info:hover { border-color: var(--muted); color: var(--muted); }
      .cov-help { display: none; margin: 7px 0 1px; padding: 9px 11px; background: var(--soft); border-radius: 7px; font-size: 11.8px; line-height: 1.5; color: #54707d; font-weight: 550; }
      .cov-item.help-open .cov-help { display: block; }

      /* ---- Atende / chips ---- */
      .cov-atende { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
      .cov-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 750; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
      .cov-chip svg { width: 13px; height: 13px; }
      .cov-chip.yes { border-color: rgba(22,131,95,.32); background: #eaf6f0; color: #0f6b4c; }
      .cov-chip.no { color: #9aa7af; }
      .cov-chip.no svg { color: #c2cbd0; }

      .cov-obs { font-size: 12.3px; line-height: 1.55; color: #54707d; font-weight: 550; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; }
      .cov-intro.legacy { background: linear-gradient(180deg, #fffdf5, #fff7e6); border-color: rgba(214,158,0,.34); }
      .cov-intro.legacy svg { color: #b5860b; }
      .cov-intro.legacy p { color: #6b5510; }
      .cov-intro.legacy p strong { color: #7a5d00; }
      .cov-hl { background: #fff3bf; color: #7a5d00; padding: 0 5px; border-radius: 4px; font-weight: 800; }
      .cov-copy { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 13px; border: 0; border-radius: 7px; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 800; cursor: pointer; transition: background 140ms ease; }
      .cov-copy:hover { background: var(--brand-deep); }
      .cov-copy.ok { background: #1a8c4a; }
      .cov-copy svg { width: 15px; height: 15px; }
      .cov-legal { font-size: 11px; line-height: 1.5; color: var(--muted); margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
      .cov-panel a.cov-cg, .cov-panel a.cov-cg:hover, .cov-panel a.cov-cg:focus { color: var(--brand); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
      a.cov-cg:hover { color: var(--brand-deep); }

      /* ---- Footer fixo ---- */
      .cov-foot { flex: 0 0 auto; background: var(--paper); border-top: 1px solid var(--line); padding: 13px 22px calc(13px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px rgba(16,33,43,.05); }
      .cov-buy { width: 100%; min-height: 50px; border: 0; border-radius: 8px; background: var(--action); color: var(--action-ink); font-size: 15.5px; font-weight: 850; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background 140ms ease; }
      .cov-buy:hover { background: #ffd83d; }
      .cov-foot-2 { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 9px; }
      .cov-wa, .cov-pdf { min-height: 42px; border-radius: 7px; font-size: 12.5px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
      .cov-wa { border: 0; background: #1a8c4a; color: #fff; }
      .cov-wa:hover { background: #157a3e; }
      .cov-wa svg { width: 16px; height: 16px; }
      .cov-pdf { border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
      .cov-pdf:hover { border-color: var(--brand); color: var(--brand); }
      .cov-pdf svg { width: 15px; height: 15px; }

      @media (max-width: 560px) {
        .cov-panel { --cov-w: 100vw !important; max-width: 100vw; }
        .cov-head-id h2 { font-size: 17.5px; }
        .cov-hero[data-mode="faixa"] { flex-wrap: wrap; }
        .cov-hero[data-mode="faixa"] .hero-tile { flex-basis: 50%; }
      }
      @media (prefers-reduced-motion: reduce) {
        .cov-panel, .cov-backdrop, .cov-chev { transition: none; }
      }
