.np-rate-card{--np-blue:#073f82;--np-ink:#081a39;position:relative;display:grid;grid-template-columns:minmax(245px,1.05fr) minmax(390px,1.65fr) minmax(210px,.82fr);grid-template-areas:"brand stats converter" "brand meta converter";gap:10px 24px;align-items:center;width:100%;border:1px solid #dce5ef;border-radius:13px;background:#fff;padding:18px 22px;margin:18px 0;font-family:inherit;box-shadow:0 2px 7px rgba(9,42,82,.035);box-sizing:border-box;overflow:hidden}.np-rate-card.np-rate-featured{border-color:#c9def6;background:linear-gradient(90deg,#f6fbff 0,#fff 65%)}.np-rate-brand{grid-area:brand;display:flex;align-items:center;gap:14px;min-width:0}.np-rate-brand-copy{min-width:0}.np-rate-logo{width:64px;height:56px;border-radius:9px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;background:#f1f5fa;border:1px solid #e0e8f1;color:var(--np-blue);font-size:16px;font-weight:800;letter-spacing:-.03em}.np-rate-featured .np-rate-logo{background:#fff8e6;color:#9a761a;border-color:#eee0b6}.np-rate-brand h3{margin:0 0 2px!important;font-size:17px!important;line-height:1.18!important;color:var(--np-ink);font-weight:750;overflow-wrap:normal;word-break:normal}.np-rate-brand p{margin:0!important;color:#60718c;font-size:12px;line-height:1.3}.np-rate-stats{grid-area:stats;display:grid;grid-template-columns:repeat(4,minmax(88px,1fr));align-items:start;min-width:0}.np-stat{padding:0 14px;border-left:1px solid #e2e8f0;min-height:58px;min-width:0}.np-stat:first-child{border-left:0;padding-left:0}.np-stat span{display:block;color:#52647e;font-size:12px;margin-bottom:2px}.np-stat strong{display:block;color:var(--np-ink);font-size:19px;line-height:1.15;white-space:nowrap}.np-stat small{display:block;margin-top:3px;font-size:11px;font-weight:700}.np-stat .up,.up{color:#079447}.np-stat .down,.down{color:#b83b3b}.np-stat .flat,.flat{color:#748399}.np-rate-meta{grid-area:meta;color:#63738c;font-size:11px;line-height:1.3}.np-rate-converter{grid-area:converter;border-left:1px solid #e2e8f0;padding-left:18px;min-width:0}.np-conv-tabs{min-height:36px;border-radius:9px;background:#edf2f8;display:grid;grid-template-columns:1fr 1fr;gap:3px;padding:3px;margin-bottom:8px}.np-conv-option{appearance:none;border:0!important;border-radius:7px!important;background:transparent!important;color:#52647e!important;padding:7px 8px!important;margin:0!important;font:inherit!important;font-size:11px!important;line-height:1.2!important;font-weight:700!important;cursor:pointer;box-shadow:none!important;text-align:center}.np-conv-option.is-active{background:var(--np-blue)!important;color:#fff!important}.np-conv-option:focus-visible{outline:2px solid var(--np-blue);outline-offset:1px}.np-rate-converter label{height:34px;border:1px solid #d9e2ed;border-radius:9px;display:flex;align-items:center;overflow:hidden;background:#fff;margin:0}.np-rate-converter label span{padding:0 11px;font-size:12px;color:#172b4d;border-right:1px solid #e1e7ef;height:100%;display:flex;align-items:center}.np-usd-input{width:100%!important;min-width:0!important;height:100%!important;border:0!important;outline:0!important;box-shadow:none!important;text-align:right!important;padding:0 10px!important;font-size:16px!important;font-weight:700!important;color:#07172f!important;background:transparent!important;margin:0!important}.np-conv-result{margin-top:8px}.np-conv-result>span{display:block;font-size:11px;color:#63738c}.np-conv-result strong{display:block;color:var(--np-blue);font-size:19px;line-height:1.15;margin-top:2px}.np-conv-result em{font-style:normal}
@media(max-width:1050px){.np-rate-card{grid-template-columns:minmax(230px,.95fr) minmax(330px,1.35fr) 205px;gap:10px 16px;padding:17px}.np-stat{padding:0 10px}.np-rate-brand h3{font-size:16px!important}}
@media(max-width:860px){.np-rate-card{grid-template-columns:minmax(0,1fr) 220px;grid-template-areas:"brand brand" "stats converter" "meta converter";gap:14px 18px}.np-rate-brand{padding-bottom:12px;border-bottom:1px solid #e7edf4}.np-rate-brand h3{font-size:17px!important}.np-rate-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 0}.np-stat:nth-child(odd){border-left:0;padding-left:0}}
@media(max-width:640px){.np-rate-card{display:block;padding:16px;margin:16px 0;border-radius:12px}.np-rate-brand{margin-bottom:15px;padding-bottom:14px}.np-rate-logo{width:56px;height:50px}.np-rate-brand h3{font-size:16px!important;line-height:1.22!important}.np-rate-brand p{font-size:11.5px}.np-rate-stats{display:grid;grid-template-columns:1fr 1fr;gap:16px 0;margin-bottom:13px}.np-stat{padding:0 12px;min-height:55px}.np-stat:nth-child(odd){border-left:0;padding-left:0}.np-stat strong{font-size:18px}.np-rate-meta{margin:10px 0 14px;font-size:11px}.np-rate-converter{border-left:0;border-top:1px solid #e2e8f0;padding:14px 0 0}.np-conv-tabs{min-height:38px}.np-rate-converter label{height:42px}.np-conv-result strong{font-size:21px}}
@media(max-width:380px){.np-rate-card{padding:14px}.np-rate-brand{align-items:flex-start;gap:11px}.np-rate-logo{width:48px;height:46px;font-size:14px}.np-rate-brand h3{font-size:15px!important}.np-stat strong{font-size:16px}.np-stat span,.np-rate-meta,.np-conv-result>span{font-size:10.5px}.np-conv-option{font-size:10.5px!important;padding:7px 4px!important}.np-rate-converter label{height:40px}}

.np-rate-logo.has-image{background:#fff;color:transparent;padding:5px}.np-rate-logo img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}.np-rate-featured .np-rate-logo.has-image{background:#fff}


/* v0.13 — visual hierarchy inspired by the approved mockup */
.np-rate-card{
  --np-buy:#087a36;
  --np-buy-bg:#eefaf3;
  --np-sell:#064c9e;
  --np-sell-bg:#eef6ff;
  --np-soft:#f4f7fb;
  border-color:#cfe0f3;
  box-shadow:0 3px 12px rgba(9,42,82,.055);
}
.np-rate-card.np-rate-featured{background:linear-gradient(90deg,#f8fcff 0,#fff 62%)}
.np-rate-stats{gap:8px}
.np-stat{border-left:0!important;border-radius:10px;padding:11px 13px!important;min-height:72px;background:var(--np-soft)}
.np-stat:nth-child(1){background:var(--np-buy-bg)}
.np-stat:nth-child(2){background:var(--np-sell-bg)}
.np-stat:nth-child(3){background:#f1faf5}
.np-stat:nth-child(4){background:#f3f6fa}
.np-stat:nth-child(1) span,.np-stat:nth-child(1) strong{color:var(--np-buy)}
.np-stat:nth-child(2) span,.np-stat:nth-child(2) strong{color:var(--np-sell)}
.np-stat:nth-child(3) strong.up{color:#079447}
.np-stat:nth-child(3) strong.down{color:#b83b3b}
.np-stat:nth-child(3) strong.flat{color:#52647e}
.np-stat strong{font-size:20px}
.np-rate-meta{background:#f2f7fd;border-radius:8px;padding:7px 10px;color:#536b89}
.np-rate-converter{background:#f8fbff;border:1px solid #e2ebf5;border-radius:12px;padding:12px!important}
.np-conv-tabs{background:#edf2f8}
.np-rate-converter label{border-color:#cfdeee}
.np-conv-result strong{font-size:20px}
@media(max-width:860px){
 .np-rate-stats{gap:10px}
 .np-stat{min-height:70px}
 .np-rate-converter{border-left:1px solid #e2ebf5}
}
@media(max-width:640px){
 .np-rate-stats{gap:10px;margin-bottom:13px}
 .np-stat{padding:11px!important;min-height:68px}
 .np-stat strong{font-size:18px}
 .np-rate-meta{margin:10px 0 14px;padding:8px 10px}
 .np-rate-converter{border-top:1px solid #e2ebf5;padding:12px!important}
}

/* Natural-language converter result */
.np-conv-result strong{font-size:15px;line-height:1.35;color:#102a4d;font-weight:600}.np-conv-result .np-conv-amount,.np-conv-result .np-converted{color:var(--np-blue);font-weight:800}.np-conv-result .np-converted{font-size:20px}.np-conv-rate{display:block;margin-top:5px;color:#718096;font-size:10.5px;font-weight:500}.np-conv-currency{white-space:normal}@media(max-width:640px){.np-conv-result strong{font-size:15px}.np-conv-result .np-converted{font-size:21px}.np-conv-rate{font-size:10.5px}}

/* v0.14 summary, comparison and history */
.np-summary,.np-compare,.np-history{border:1px solid #dbe7f4;border-radius:14px;background:#fff;padding:18px;margin:0 0 24px;box-shadow:0 4px 18px rgba(15,45,75,.05)}
.np-summary{display:flex;justify-content:space-between;gap:18px;align-items:center;background:linear-gradient(135deg,#f7fbff,#f3faf6)}
.np-summary-kicker{display:block;font-size:14px;color:#506477;margin-bottom:5px}.np-summary strong{font-size:20px;color:#122b45}.np-summary-time{font-size:14px;color:#506477}
.np-compare h3,.np-history h3{margin:0 0 14px;color:#122b45}.np-table-scroll{overflow-x:auto}.np-compare table,.np-history table{width:100%;border-collapse:collapse;min-width:620px}.np-compare th,.np-compare td,.np-history th,.np-history td{padding:11px 12px;border-bottom:1px solid #e8eef5;text-align:left}.np-compare th,.np-history th{background:#f4f8fc;color:#27445f;font-size:13px}.np-compare small{display:block;margin-top:12px;color:#66798b}
@media(max-width:640px){.np-summary{display:block}.np-summary-time{margin-top:10px}.np-summary strong{font-size:18px}}

/* v0.14.2 — conversor claro USD/DOP */
.np-conv-label{display:block!important;margin:8px 0 5px;color:#172b4d!important;font-size:11px!important;font-weight:700}
.np-conv-to-label{margin-top:10px}
.np-rate-converter .np-conv-inputbox{height:46px;border:1px solid #cfd9e5;border-radius:9px;display:flex;align-items:center;overflow:hidden;background:#fff;margin:0}
.np-conv-inputbox .np-usd-input{order:1;text-align:left!important;padding:0 12px!important;font-size:17px!important}
.np-conv-code{order:2;display:flex!important;align-items:center;gap:6px;flex:0 0 auto;height:100%;padding:0 11px!important;border-left:1px solid #e1e7ef!important;border-right:0!important;color:#172b4d!important;font-size:12px!important;white-space:nowrap}
.np-conv-flag,.np-conv-out-flag{font-size:16px}
.np-conv-outputbox{height:46px;border:1px solid #cfd9e5;border-radius:9px;display:flex;align-items:center;background:#fff;overflow:hidden}
.np-conv-outputbox>.np-converted{flex:1;padding:0 12px;color:#07172f;font-size:17px;font-weight:750;min-width:0}
.np-conv-outputbox>.np-conv-code{height:100%}
.np-conv-result{margin-top:9px;padding-top:8px;border-top:1px solid #e7eef6}
.np-conv-result .np-conv-result-number{color:var(--np-blue);font-style:normal;font-weight:800}
@media(max-width:380px){.np-conv-code{padding:0 8px!important}.np-conv-inputbox .np-usd-input,.np-conv-outputbox>.np-converted{font-size:16px!important}}

/* v0.15.1: resumen SEO renderizado en servidor */
.np-summary .np-summary-kicker{display:block;margin:0 0 8px;font-size:clamp(20px,2.5vw,28px);line-height:1.2}
.np-summary .np-summary-copy{margin:6px 0;line-height:1.6}
.np-summary .np-summary-count{display:block;margin-top:10px}
.np-summary time,.np-rate-meta time{font-variant-numeric:tabular-nums}

/* v0.15.2: variación individual visible en Compra y Venta */
.np-stat .np-rate-delta{margin-top:5px;font-size:12px;font-weight:800;line-height:1.15;white-space:nowrap}
.np-stat .np-rate-delta.up{color:#07883f}.np-stat .np-rate-delta.down{color:#c03636}.np-stat .np-rate-delta.flat{color:#748399}

/* v0.16.8 — histórico visual por entidad */
.np-history-modern{padding:24px}.np-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}.np-history-head h3{margin:0 0 5px!important}.np-history-head p{margin:0;color:#63738c;font-size:12px}.np-history-tabs{display:flex;gap:4px;background:#eef2f7;border-radius:22px;padding:4px;flex:0 0 auto}.np-history-tabs button{border:0!important;background:transparent!important;color:#53657d!important;border-radius:18px!important;padding:7px 15px!important;min-width:48px;margin:0!important;font:inherit!important;font-size:12px!important;font-weight:700!important;cursor:pointer;box-shadow:none!important}.np-history-tabs button.is-active{background:#0b3977!important;color:#fff!important}.np-history-tabs button:focus-visible{outline:2px solid #0b3977;outline-offset:2px}.np-history-chart{border-top:1px solid #eef2f6;padding-top:8px;margin:0 0 26px}.np-history-chart svg{display:block;width:100%;height:320px;overflow:visible}.np-history-grid{stroke:#dfe7f0;stroke-width:1;stroke-dasharray:4 5;vector-effect:non-scaling-stroke}.np-history-buy-line,.np-history-sell-line{fill:none;stroke-width:2.5;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}.np-history-buy-line{stroke:#e7a900}.np-history-sell-line{stroke:#0b3977}.np-history-axis{fill:#718096;font-size:11px}.np-history-legend{display:flex;justify-content:center;gap:20px;font-size:12px;color:#4c6079;margin-top:4px}.np-history-legend span{display:flex;align-items:center;gap:6px}.np-history-legend i{width:10px;height:10px;border-radius:50%;display:inline-block}.np-history-legend i.buy{background:#e7a900}.np-history-legend i.sell{background:#0b3977}.np-history-modern h4{font-size:18px;margin:0 0 12px;color:#122b45}.np-history-modern table{min-width:680px}.np-history-modern th{background:transparent;border-bottom:1px solid #dbe4ee;color:#53657d;font-weight:600}.np-history-modern td{font-variant-numeric:tabular-nums}.np-history-modern td.up{color:#07883f}.np-history-modern td.down{color:#c03636}.np-history-modern td.flat{color:#748399}
@media(max-width:640px){.np-history-modern{padding:16px}.np-history-head{display:block}.np-history-tabs{margin-top:14px;width:max-content;max-width:100%}.np-history-tabs button{padding:7px 12px!important;min-width:44px}.np-history-chart svg{height:240px}.np-history-modern h4{font-size:16px}}


/* v0.16.9 — identidad visual Noticia País */
.np-rate-card{
  --np-brand-red:#ef1118;
  --np-brand-red-dark:#cf1016;
  --np-brand-red-soft:#fff1f1;
  --np-ink:#101820;
  --np-blue:#ef1118;
  --np-sell:#d9151c;
  --np-sell-bg:#fff0f1;
  border:1px solid #e2e5e9;
  border-top:3px solid var(--np-brand-red);
  border-radius:12px;
  box-shadow:0 3px 12px rgba(16,24,32,.055);
  background:#fff;
}
.np-rate-card.np-rate-featured{
  border-color:#e2e5e9;
  border-top-color:var(--np-brand-red);
  background:#fff;
}
.np-rate-brand h3{color:#111820}
.np-rate-brand p{color:#5f6874}
.np-rate-logo{background:#f6f7f9;border-color:#dfe3e8;color:#173f72}
.np-stat:nth-child(1){background:#eef9f2}
.np-stat:nth-child(2){background:var(--np-brand-red-soft)}
.np-stat:nth-child(3),.np-stat:nth-child(4){background:#f5f6f8}
.np-stat:nth-child(2) span,.np-stat:nth-child(2) strong{color:var(--np-sell)}
.np-rate-meta{background:#f5f6f8;color:#606a76}
.np-rate-converter{background:#fff;border-color:#e1e4e8}
.np-conv-tabs{background:#f0f1f3}
.np-conv-option{color:#5d6672!important}
.np-conv-option.is-active{background:var(--np-brand-red)!important;color:#fff!important}
.np-conv-option:focus-visible{outline-color:var(--np-brand-red)}
.np-rate-converter label,.np-conv-inputbox,.np-conv-outputbox{border-color:#dfe3e8!important}
.np-conv-result{border-top-color:#eceef1}
.np-conv-result strong{color:#111820}
.np-conv-result .np-conv-amount,.np-conv-result .np-converted,.np-conv-result .np-conv-result-number{color:var(--np-brand-red)}
.np-history-tabs button.is-active{background:var(--np-brand-red)!important}
.np-history-tabs button:focus-visible{outline-color:var(--np-brand-red)}
@media(max-width:640px){
 .np-rate-card{border-top-width:3px}
 .np-rate-converter{border-color:#e1e4e8!important}
}

/* v0.17.5 — Scotiabank como dos resultados independientes */
.np-rate-scotia{grid-template-columns:minmax(210px,.8fr) minmax(430px,1.65fr) minmax(220px,.85fr)}
.np-scotia-results{display:grid;grid-template-columns:1fr;gap:10px;min-width:0}
.np-scotia-result{border:1px solid #e1e5ea;border-radius:11px;background:#fff;overflow:hidden;min-width:0;box-shadow:0 1px 3px rgba(16,24,32,.025)}
.np-scotia-result.is-selected{border-color:#f0b7ba;box-shadow:0 0 0 1px rgba(239,17,24,.06)}
.np-scotia-result-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;background:#f6f7f9;border-bottom:1px solid #e8ebef}
.np-scotia-result-head strong{font-size:12.5px;line-height:1.3;color:#202832}
.np-scotia-result-head span{font-size:10px;font-weight:800;color:#707b87}
.np-scotia-result-rates{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px}
.np-scotia-result-rates .np-stat{min-height:58px;padding:9px 11px!important}
.np-scotia-result-rates .np-scotia-buy{background:#eef9f2!important}
.np-scotia-result-rates .np-scotia-sell{background:var(--np-brand-red-soft)!important}
.np-scotia-result-rates .np-scotia-buy span,.np-scotia-result-rates .np-scotia-buy strong{color:var(--np-buy)!important}
.np-scotia-result-rates .np-scotia-sell span,.np-scotia-result-rates .np-scotia-sell strong{color:var(--np-sell)!important}
.np-scotia-result-rates .np-stat strong{font-size:20px;white-space:nowrap}
@media(max-width:1050px){.np-rate-scotia{grid-template-columns:minmax(180px,.72fr) minmax(360px,1.5fr) 210px}.np-scotia-result-rates .np-stat strong{font-size:18px}}
@media(max-width:860px){.np-rate-scotia{grid-template-columns:1fr 220px}.np-rate-scotia .np-rate-brand{grid-column:1/-1}.np-scotia-results{grid-column:1}}
@media(max-width:640px){.np-rate-scotia{display:block}.np-scotia-results{margin:14px 0}.np-scotia-result-rates{grid-template-columns:1fr 1fr}.np-scotia-result-rates .np-stat strong{font-size:18px}.np-rate-scotia .np-rate-converter{margin-top:12px}}
/* v0.18: estado visible de frescura del dato */
.np-rate-freshness{display:inline-flex;align-items:center;font-weight:700}
.np-rate-freshness-ok{color:#176b3a}.np-rate-freshness-warn{color:#8a6200}.np-rate-freshness-error{color:#9b1c1c}


/* v0.19.4 — capa única y autoritativa para tarjetas estándar.
   Todas las entidades estándar (QIK, Banreservas, BHD, etc.) comparten esta maqueta.
   Importante: no se usa el modo de dispositivo de Elementor para decidir el diseño. */

section.np-rate-card.np-rate-standard{
  display:grid!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  grid-template-columns:minmax(170px,.9fr) minmax(300px,1.55fr) minmax(205px,.82fr)!important;
  grid-template-rows:auto auto!important;
  grid-template-areas:
    "brand stats converter"
    "brand meta converter"!important;
  column-gap:16px!important;
  row-gap:10px!important;
  align-items:center!important;
  overflow:hidden!important;
}

section.np-rate-card.np-rate-standard > .np-rate-brand{
  grid-area:brand!important;
  grid-column:1!important;
  grid-row:1 / span 2!important;
  min-width:0!important;
  width:auto!important;
  max-width:none!important;
  align-self:center!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}

section.np-rate-card.np-rate-standard > .np-rate-stats{
  grid-area:stats!important;
  grid-column:2!important;
  grid-row:1!important;
  display:grid!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:0!important;
  margin:0!important;
  align-self:end!important;
}

section.np-rate-card.np-rate-standard > .np-rate-meta{
  grid-area:meta!important;
  grid-column:2!important;
  grid-row:2!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  align-self:start!important;
}

section.np-rate-card.np-rate-standard > .np-rate-converter{
  grid-area:converter!important;
  grid-column:3!important;
  grid-row:1 / span 2!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  align-self:center!important;
  border-top:0!important;
  border-left:1px solid #e1e4e8!important;
  padding:12px!important;
  box-sizing:border-box!important;
}

section.np-rate-card.np-rate-standard > .np-rate-stats > .np-stat{
  min-width:0!important;
}
section.np-rate-card.np-rate-standard > .np-rate-stats > .np-stat strong{
  white-space:nowrap!important;
}

/* Tablet/columnas estrechas: conserva una composición horizontal de dos columnas.
   Así una ventana de DevTools/Elementor marcada como "mobile" no apila QIK por sí sola. */
@media (max-width:760px){
  section.np-rate-card.np-rate-standard{
    grid-template-columns:minmax(145px,.75fr) minmax(0,1.8fr)!important;
    grid-template-rows:auto auto auto!important;
    grid-template-areas:
      "brand stats"
      "brand converter"
      "brand meta"!important;
  }
  section.np-rate-card.np-rate-standard > .np-rate-brand{
    grid-column:1!important;
    grid-row:1 / span 3!important;
  }
  section.np-rate-card.np-rate-standard > .np-rate-stats{
    grid-column:2!important;
    grid-row:1!important;
  }
  section.np-rate-card.np-rate-standard > .np-rate-converter{
    grid-column:2!important;
    grid-row:2!important;
    border-left:0!important;
    border-top:1px solid #e1e4e8!important;
  }
  section.np-rate-card.np-rate-standard > .np-rate-meta{
    grid-column:2!important;
    grid-row:3!important;
  }
}

/* Solo teléfonos realmente estrechos pasan a una columna. */
@media (max-width:480px){
  section.np-rate-card.np-rate-standard{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
  }
  section.np-rate-card.np-rate-standard > .np-rate-brand,
  section.np-rate-card.np-rate-standard > .np-rate-stats,
  section.np-rate-card.np-rate-standard > .np-rate-converter,
  section.np-rate-card.np-rate-standard > .np-rate-meta{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  section.np-rate-card.np-rate-standard > .np-rate-stats{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  section.np-rate-card.np-rate-standard > .np-rate-converter{
    border-left:0!important;
    border-top:1px solid #e1e4e8!important;
  }
}



/* v0.19.6 — WordPress/Elementor: neutraliza envoltorios automáticos alrededor
   del contenido de una tarjeta estándar. Los hijos reales vuelven a participar
   directamente en la cuadrícula de la tarjeta. */
section.np-rate-card.np-rate-standard > p:has(> .np-rate-brand),
section.np-rate-card.np-rate-standard > p:has(> .np-rate-stats),
section.np-rate-card.np-rate-standard > p:has(> .np-rate-converter),
section.np-rate-card.np-rate-standard > p:has(> .np-rate-meta),
section.np-rate-card.np-rate-standard > code:has(> .np-rate-brand),
section.np-rate-card.np-rate-standard > code:has(> .np-rate-stats),
section.np-rate-card.np-rate-standard > code:has(> .np-rate-converter),
section.np-rate-card.np-rate-standard > code:has(> .np-rate-meta),
section.np-rate-card.np-rate-standard > div:has(> .np-rate-brand):has(> .np-rate-stats){
  display:contents!important;
}

/* Defensa para marcas vacías que WordPress pueda insertar entre shortcodes. */
section.np-rate-card.np-rate-standard > p:empty,
section.np-rate-card.np-rate-standard > code:empty{
  display:none!important;
}

/* Histórico completo: estilos encapsulados; flujo natural compatible con Raptive. */
.np-full-history{--np-red:#ef1118}
.np-full-history .np-full-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.np-full-history .np-full-controls label,.np-full-history .np-full-actions label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:650;color:#263c54}
.np-full-history .np-full-controls input,.np-full-history .np-full-controls select,.np-full-history .np-full-actions select{width:100%;min-width:0;max-width:100%;height:42px;padding:8px;border:1px solid #d9e0e7;border-radius:8px;background:#fff;color:#172b45;font-size:14px}
.np-full-history .np-full-actions{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0 20px}
.np-full-history .np-full-actions button,.np-full-history .np-full-pager button{padding:10px 14px;border:1px solid #d7dce2;border-radius:8px;background:#fff;color:#172b45;cursor:pointer;font-size:13px}
.np-full-history .np-full-actions button{background:#e9111a;color:#fff;border-color:#e9111a}
.np-full-history .np-full-pager{display:flex;justify-content:center;align-items:center;gap:12px;margin:14px 0}
.np-full-history .np-full-pager button:disabled{opacity:.4;cursor:default}
.np-full-history .np-full-count,.np-full-history .np-full-disclaimer,.np-full-history .np-full-chart-note{color:#66778a;font-size:12px}
.np-full-history .np-full-graph{margin:18px 0 24px}
.np-full-history .np-full-graph[hidden]{display:none}
.np-full-history .np-full-graph svg{display:block;width:100%;height:auto;aspect-ratio:3/1;min-height:170px}
.np-full-history .np-table-scroll table{min-width:720px}
.np-full-history .np-table-scroll td,.np-full-history .np-table-scroll th{font-size:13px}
@media(min-width:760px){.np-full-history .np-full-controls{grid-template-columns:minmax(160px,2fr) minmax(130px,1fr) minmax(145px,1fr) minmax(145px,1fr)}}
@media(max-width:390px){.np-full-history .np-full-controls{grid-template-columns:1fr}}

.np-rate-card .np-dgii-rate-note{margin:8px 0 12px;font-size:12px;line-height:1.5;color:#657184}
