/* =========================================================
   Ravenol Product UI (blue/grey) — TDS/SDB buttons + trust bar
   + attributes table shortcode [atributos_productoslugs]
   Scope: only loaded on product pages or pages with plugin shortcodes.
   ========================================================= */

/* TDS/SDB buttons */
.rvn-doc-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:14px 0 8px;
}

.rvn-doc-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:10px;
  font-weight:700;
  font-size:13px;
  line-height:1;
  text-decoration:none !important;
  border:1px solid rgba(0,61,108,.22);
  box-shadow:0 1px 2px rgba(0,0,0,.08);
  transition:transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}

.rvn-doc-btn--tds{
  background:linear-gradient(to bottom, #05739a 0%, #005d8d 16%, #004e81 49%, #004274 86%, #003d6c 100%);
  color:#fff !important;
}

.rvn-doc-btn--sdb{
  background:#fff;
  color:#003d6c !important;
}

.rvn-doc-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(0,0,0,.12);
}

.rvn-doc-btn--sdb:hover{
  background:#f5f8fb;
  border-color:rgba(0,61,108,.35);
}

/* Trust bar (cards) */
.rvn-trust{
  display:flex;
  flex-wrap:wrap;
  gap:10px 12px;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid rgba(15,23,42,.10);
}

.rvn-trust__item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  border-radius:12px;
  box-shadow:0 1px 0 rgba(15,23,42,.03);
  flex: 1 1 220px;
  min-width:220px;
}

.rvn-trust__icon{
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  background:linear-gradient(180deg, #eef4fb 0%, #e8f0fa 100%);
  border:1px solid rgba(11,74,139,.12);
  flex:0 0 40px;
  font-size:20px;
  line-height:1;
}

.rvn-trust__icon svg,
.rvn-trust__icon i{
  width:20px;
  height:20px;
  display:block;
}

.rvn-trust__icon img{
  width:22px;
  height:22px;
  object-fit:contain;
  display:block;
}

.rvn-trust__item strong{
  display:block;
  font-size:13px;
  line-height:1.1;
  color:#0f172a;
  font-weight:700;
  margin:0;
}

.rvn-trust__item span{
  display:block;
  margin-top:2px;
  font-size:12px;
  line-height:1.25;
  color:#475569;
}

@media (max-width: 680px){
  .rvn-trust__item{
    min-width: 100%;
    flex-basis: 100%;
  }
}

/* Attributes shortcode table */
.rvn-attrs{ margin: 10px 0 14px; }

.rvn-attrs__table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  border:1px solid rgba(15,23,42,.08);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}

.rvn-attr__row th,
.rvn-attr__row td{
  padding:10px 12px;
  border-top:1px solid rgba(15,23,42,.06);
  vertical-align:top;
  font-size:13px;
}

.rvn-attr__row:first-child th,
.rvn-attr__row:first-child td{
  border-top:none;
}

.rvn-attr__key{
  width:34%;
  color:#0f172a;
  font-weight:700;
  background:linear-gradient(180deg, #fafcff 0%, #f7fafd 100%);
}

.rvn-attr__val{
  color:#334155;
}

.rvn-attr__link{
  color:#0b4a8b;
  text-decoration:none;
  border-bottom:1px dotted rgba(11,74,139,.35);
}

.rvn-attr__link:hover{
  color:#083b6f;
  border-bottom-color: rgba(8,59,111,.55);
}

.rvn-attr__sep{ color:#94a3b8; margin:0 6px; }
.rvn-attr__empty{ color:#94a3b8; }


/* ================================
   Product Excerpt (beneficios/chips)
   ================================ */

.rvn-benefits{
  display:flex;
  flex-wrap:wrap;
  gap:8px 12px;
  margin:10px 0 12px;
}

.rvn-benefit{
  background:#f3f6fa;
  border:1px solid rgba(15,23,42,.10);
  border-radius:10px;
  padding:7px 10px;
  color:#0f172a;
  font-weight:600;
  font-size:13px;
  line-height:1.25;
}

.rvn-chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:6px 0 14px;
}

.rvn-chip{
  background:#eef4fb;
  border:1px solid rgba(11,74,139,.18);
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  font-weight:700;
  color:#0b4a8b;
  white-space:nowrap;
}

.rvn-excerpt__paragraphs p{
  margin:0 0 10px;
  color:#334155;
  font-size:14px;
  line-height:1.55;
}

.rvn-excerpt__paragraphs p:last-child{ margin-bottom:0; }

/* Bloque "Características y compatibilidades" */
.rvn-compat{ margin-top:10px; }

.rvn-compat__header{
  font-weight:800;
  color:#0f172a;
  margin:14px 0 10px;
  font-size:14px;
  letter-spacing:.2px;
}


/* Compatibles table by SKU */
.rvlb-compatibles{
  margin: 18px 0 8px;
}
.rvlb-compatibles__title{
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
  color: #0f172a;
}
.rvlb-compatibles__meta{
  margin: 0 0 10px;
  font-size: 12px;
  color: #64748b;
}
.rvlb-compatibles__meta code{
  background:#eef4fb;
  padding:2px 6px;
  border-radius:6px;
}
.rvlb-compatibles__empty{
  padding: 12px 14px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:10px;
  background:#fff;
  color:#475569;
}
.rvlb-compatibles__table thead th{
  padding:10px 12px;
  font-size:13px;
  border-top:none;
}


/* Compatibles shortcode — accordion by maker */
.rvlb-compatibles{
  margin: 18px 0;
}
.rvlb-compatibles__title{
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.15;
}
.rvlb-compatibles__toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:end;
  margin: 0 0 12px;
}
.rvlb-compatibles__searchwrap{
  flex:1 1 320px;
}
.rvlb-compatibles__search,
.rvlb-compatibles__sort{
  width:100%;
  min-height:42px;
  border:1px solid rgba(15,23,42,.12);
  border-radius:10px;
  padding:10px 12px;
  background:#fff;
}
.rvlb-compatibles__sortwrap{
  flex:0 1 220px;
}
.rvlb-compatibles__sortlabel{
  display:block;
  margin:0 0 6px;
  font-size:12px;
  color:#64748b;
}
.rvlb-compatibles__meta{
  margin:0 0 12px;
  color:#64748b;
  font-size:13px;
}
.rvlb-compatibles__noresults,
.rvlb-compatibles__empty{
  padding:12px 14px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:10px;
  background:#fff;
  color:#475569;
}
.rvlb-compatibles__group{
  border:1px solid rgba(15,23,42,.08);
  border-radius:14px;
  background:#fff;
  overflow:hidden;
  margin:0 0 12px;
}
.rvlb-compatibles__toggle{
  width:100%;
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border:0;
  background:#fff;
  cursor:pointer;
  text-align:left;
}
.rvlb-compatibles__toggle:hover{
  background:#f8fafc;
}
.rvlb-compatibles__toggle[aria-expanded="true"]{
  background:linear-gradient(180deg,#f8fbff 0%,#f3f8fe 100%);
}
.rvlb-compatibles__toggle-text{
  flex:1 1 auto;
  font-weight:700;
  color:#0f172a;
}
.rvlb-compatibles__count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:28px;
  height:28px;
  padding:0 8px;
  border-radius:999px;
  background:#0b4a8b;
  color:#fff;
  font-size:12px;
  font-weight:700;
}
.rvlb-compatibles__chevron{
  color:#64748b;
  transition:transform .15s ease;
}
.rvlb-compatibles__toggle[aria-expanded="true"] .rvlb-compatibles__chevron{
  transform:rotate(180deg);
}
.rvlb-compatibles__panel{
  padding:0 14px 14px;
}
.rvlb-compatibles__table-wrap{
  overflow:auto;
}
.rvlb-compatibles__table th{
  white-space:nowrap;
}
.rvlb-compatibles__table td{
  vertical-align:top;
}
@media (max-width: 680px){
  .rvlb-compatibles__toolbar{
    flex-direction:column;
    align-items:stretch;
  }
  .rvlb-compatibles__sortwrap{
    flex:1 1 auto;
  }
}


/* v2.3.5 overrides */
.rvlb-compatibles__panel[hidden]{display:none!important}
.rvlb-compatibles__group{scroll-margin-top:110px}
.rvlb-compatibles__table-wrap{overflow:auto;-webkit-overflow-scrolling:touch}
.rvlb-compatibles__table th,.rvlb-compatibles__table td{white-space:normal;word-break:break-word}
@media (max-width:767px){.rvlb-compatibles__toolbar{position:static;display:grid;grid-template-columns:1fr;gap:10px}.rvlb-compatibles__searchwrap,.rvlb-compatibles__sortwrap{flex:1 1 auto}.rvlb-compatibles__search,.rvlb-compatibles__sort{min-height:40px;padding:10px;font-size:14px}.rvlb-compatibles__toggle{padding:12px 14px;align-items:center}.rvlb-compatibles__toggle-text{font-size:14px;line-height:1.2}.rvlb-compatibles__count{min-width:26px;height:26px;font-size:11px}.rvlb-compatibles__panel{padding:0 10px 10px}.rvlb-compatibles__table th,.rvlb-compatibles__table td{padding:8px 9px;font-size:12px}}

/* ── v2.3.8 compatibles: paginación ── */
.rvlb-compatibles__toolbar {
  margin: 0 0 12px;
}
.rvlb-compatibles__toolbar .rvlb-compatibles__search {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 10px;
  padding: 10px 14px;
  background: #fff;
  font-size: 14px;
  box-sizing: border-box;
}
.rvlb-compatibles__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 16px 0 4px;
}
.rvlb-compatibles__pagination[hidden] { display: none !important; }
.rvlb-compatibles__page-btn {
  padding: 8px 20px;
  border: 1px solid rgba(15,23,42,.15);
  border-radius: 8px;
  background: #fff;
  color: #0b4a8b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.rvlb-compatibles__page-btn:hover:not(:disabled) {
  background: #f0f7ff;
  border-color: #0b4a8b;
}
.rvlb-compatibles__page-btn:disabled {
  opacity: .4;
  cursor: default;
}
.rvlb-compatibles__page-info {
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
  min-width: 100px;
  text-align: center;
}

/* ── v2.4.0 paginación de filas por grupo ── */
.rvlb-compatibles__row-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 0 4px;
  border-top: 1px solid rgba(15,23,42,.06);
  margin-top: 4px;
}
.rvlb-compatibles__row-pagination[hidden] { display: none !important; }
