/* ============================================================
   Mi cuenta — Compralikes (Fase 5)
   Todo con prefijo .clc para no chocar con Astra ni Elementor.
   ============================================================ */
.clc{
  --clc-brand:#3B5998; --clc-brand-dark:#2D4373; --clc-brand-soft:#EEF2F8; --clc-brand-softer:#E6ECF6; --clc-brand-mid:#8FA6D0;
  --clc-ink:#1F2A3D; --clc-ink-2:#2A2F3A; --clc-muted:#5A6170; --clc-line:#E3E6EB; --clc-line-2:#EEF0F3; --clc-field:#D5D9E0;
  --clc-bg:#F5F6F8; --clc-card:#FFFFFF; --clc-warn-bg:#FFF3D6; --clc-warn-fg:#4A3000;
  display:flex; flex-wrap:wrap; gap:32px; align-items:flex-start; width:100%; max-width:100%; min-width:0;
  color:var(--clc-ink); font-size:15px; line-height:1.5; text-align:left;
}
.clc *, .clc *::before, .clc *::after{ box-sizing:border-box; }
.clc-side{ flex:1 1 260px; max-width:280px; min-width:0; display:flex; flex-direction:column; gap:18px; }
.clc-main{ flex:999 1 520px; min-width:0; display:flex; flex-direction:column; gap:20px; }
.clc a{ color:var(--clc-brand); }
.clc a:hover{ color:var(--clc-brand-dark); }

/* ── Usuario ── */
.clc-user{ background:var(--clc-ink); color:#fff; padding:18px; display:flex; flex-direction:column; gap:14px; }
.clc-user__row{ display:flex; align-items:center; gap:12px; }
.clc-user__av{ flex:0 0 44px; height:44px; background:var(--clc-brand); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:20px; }
.clc-user__id{ display:flex; flex-direction:column; min-width:0; }
.clc-user__id strong{ font-size:15px; }
.clc-user__id span{ font-size:12.5px; color:#C3CCDA; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.clc a.clc-user__pts{ display:flex; justify-content:space-between; align-items:center; gap:8px; min-height:44px; padding:0 12px; background:#2C3A52; color:#fff; text-decoration:none; }
.clc-user__pts span{ font-size:13px; color:#DCE2EC; }

/* ── Menú ── */
.clc-nav{ display:flex; flex-direction:column; gap:16px; }
.clc-nav__group{ display:flex; flex-direction:column; gap:2px; }
.clc-nav__label{ font-size:11px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:var(--clc-muted); padding:0 12px 4px; }
.clc a.clc-nav__item{ display:flex; align-items:center; gap:12px; min-height:44px; padding:0 12px; color:var(--clc-ink-2); text-decoration:none; font-size:14.5px; font-weight:600; }
.clc a.clc-nav__item:hover{ background:var(--clc-brand-soft); color:var(--clc-brand-dark); }
.clc a.clc-nav__item.is-active{ background:var(--clc-brand-softer); color:var(--clc-brand-dark); box-shadow:inset 3px 0 0 var(--clc-brand); }
.clc-nav__text{ flex:1; }
.clc-nav__badge{ font-size:12px; font-weight:700; padding:2px 8px; white-space:nowrap; }

/* ── Tipografía ── */
.clc .clc-h1{ margin:0; font-size:30px; line-height:1.15; text-transform:uppercase; letter-spacing:.5px; color:var(--clc-ink); }
.clc .clc-h2{ margin:0; font-size:19px; line-height:1.3; color:var(--clc-ink); }
.clc .clc-h2 small{ font-size:13px; color:var(--clc-muted); font-weight:600; }
.clc .clc-h3{ margin:0; font-size:17px; text-transform:uppercase; letter-spacing:.5px; color:var(--clc-ink); }
.clc-sub, .clc-muted{ color:var(--clc-muted); }
.clc-sub{ margin:4px 0 0; }
.clc-small{ font-size:13px; }
.clc-eyebrow{ font-size:12px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:var(--clc-muted); }
.clc-link{ display:block; font-family:ui-monospace,Menlo,Consolas,monospace; font-size:13px; color:var(--clc-ink-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.clc-link--wrap{ white-space:normal; word-break:break-all; }
.clc a.clc-textlink{ font-size:14px; font-weight:700; text-decoration:none; min-height:44px; display:inline-flex; align-items:center; }

/* ── Estructura ── */
.clc-head{ display:flex; flex-direction:column; gap:4px; }
.clc-row{ display:flex; align-items:center; gap:10px; }
.clc-row--between{ justify-content:space-between; }
.clc-row--wrap{ flex-wrap:wrap; }
.clc-row--end{ align-items:flex-end; flex-wrap:wrap; gap:16px; flex-direction:row; }
.clc-card{ background:var(--clc-card); border:1px solid var(--clc-line); padding:22px 24px; display:flex; flex-direction:column; gap:16px; }
.clc-card--accent{ border-color:var(--clc-brand-mid); }
.clc-grid3{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.clc-split{ display:flex; flex-wrap:wrap; gap:20px; align-items:flex-start; }
.clc-split__main{ flex:3 1 340px; min-width:0; }
.clc-split__side{ flex:2 1 240px; min-width:0; }
.clc-list{ display:flex; flex-direction:column; gap:12px; }

/* ── Chips, etiquetas y notas ── */
.clc-chip{ display:inline-flex; align-items:center; height:26px; padding:0 10px; font-size:12.5px; font-weight:700; white-space:nowrap; }
.clc-pill{ display:inline-flex; align-self:flex-start; align-items:center; height:26px; padding:0 10px; background:var(--clc-brand); color:#fff; font-size:12.5px; font-weight:700; }
.clc-tag{ flex:0 0 48px; height:48px; background:var(--clc-brand-softer); color:var(--clc-brand-dark); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; }
.clc-note{ background:var(--clc-brand-soft); padding:12px 14px; font-size:14px; color:var(--clc-ink-2); display:flex; flex-direction:column; gap:4px; }
.clc-note--plain{ flex-direction:row; align-items:center; gap:10px; background:var(--clc-bg); color:var(--clc-ink); }
.clc-note--plain svg{ color:var(--clc-brand); flex:0 0 18px; }
.clc-warn{ background:var(--clc-warn-bg); color:var(--clc-warn-fg); padding:12px 14px; font-size:14px; display:flex; flex-direction:column; gap:4px; }

/* ── Servicio y pasos ── */
.clc-service{ display:flex; gap:14px; align-items:flex-start; }
.clc-service__txt{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.clc-steps{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.clc-steps__item{ display:flex; flex-direction:column; gap:8px; font-size:13px; color:var(--clc-muted); }
.clc-steps__bar{ height:6px; background:var(--clc-line); }
.clc-steps__item.is-done{ color:var(--clc-ink); font-weight:600; }
.clc-steps__item.is-done .clc-steps__bar{ background:var(--clc-brand); }
.clc-steps__item.is-current{ color:var(--clc-brand-dark); font-weight:700; }
.clc-steps__item.is-current .clc-steps__bar{ background:var(--clc-brand-mid); }

/* ── Botones (rectos, como "Comprar Ahora") ── */
.clc-actions{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.clc a.clc-btn, .clc button.clc-btn{
  display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 20px;
  background:var(--clc-brand); color:#fff; border:1px solid var(--clc-brand); border-radius:0;
  font-family:inherit; font-size:15px; font-weight:700; line-height:1.2; text-decoration:none; text-transform:none; letter-spacing:normal;
  cursor:pointer; box-shadow:none;
}
.clc a.clc-btn:hover, .clc button.clc-btn:hover{ background:var(--clc-brand-dark); border-color:var(--clc-brand-dark); color:#fff; }
.clc a.clc-btn--ghost, .clc button.clc-btn--ghost{ background:#fff; color:var(--clc-ink); border-color:var(--clc-field); font-weight:600; }
.clc a.clc-btn--ghost:hover, .clc button.clc-btn--ghost:hover{ background:var(--clc-brand-soft); color:var(--clc-brand-dark); border-color:var(--clc-brand-mid); }
.clc a.clc-btn--text{ background:transparent; border-color:transparent; color:var(--clc-brand-dark); font-weight:600; padding:0 12px; }
.clc a.clc-btn--text:hover{ background:var(--clc-brand-soft); color:var(--clc-brand-dark); border-color:transparent; }
.clc a.clc-btn--sm{ min-height:40px; padding:0 14px; font-size:14px; }
.clc button.clc-icon-btn{ display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; padding:0; background:#fff; border:1px solid var(--clc-field); border-radius:0; color:var(--clc-ink-2); cursor:pointer; }
.clc button.clc-icon-btn.is-ok{ background:#E7F5EE; border-color:#0D6B45; color:#0D6B45; }
.clc :focus-visible{ outline:2px solid var(--clc-brand); outline-offset:2px; }

/* ── Tarjetas del escritorio ── */
.clc a.clc-tile{ background:#fff; color:var(--clc-ink); border:1px solid var(--clc-line); padding:20px; display:flex; flex-direction:column; gap:6px; text-decoration:none; font-size:14px; }
.clc a.clc-tile:hover{ border-color:var(--clc-brand-mid); color:var(--clc-ink); }
.clc a.clc-tile--dark{ background:var(--clc-ink); color:#DCE2EC; border-color:var(--clc-ink); }
.clc a.clc-tile--dark:hover{ color:#DCE2EC; border-color:var(--clc-brand); }
.clc-tile--dark .clc-eyebrow{ color:#C3CCDA; }
.clc-big{ font-size:36px; font-weight:700; line-height:1.1; color:#fff; }
.clc-tile__cta{ font-weight:700; color:var(--clc-brand); margin-top:6px; }
.clc-tile--dark .clc-tile__cta{ color:#A9BCE0; }

/* ── Listas ── */
.clc-line{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 16px; padding:14px 0; border-top:1px solid var(--clc-line-2); }
.clc-line__main{ flex:1 1 240px; min-width:0; display:flex; flex-direction:column; gap:2px; }
.clc-line__main .clc-muted{ font-size:13.5px; }
.clc-line__total{ min-width:84px; text-align:right; font-weight:600; }

/* ── Pedidos ── */
.clc-search{ display:flex; flex-direction:column; gap:4px; flex:0 1 380px; }
.clc-search label{ font-size:13px; font-weight:600; color:var(--clc-ink-2); }
.clc-search__row{ display:flex; gap:8px; }
.clc-search input, .clc-form textarea, .clc-form input[type="text"]{
  flex:1; min-height:44px; border:1px solid var(--clc-field); border-radius:0; padding:8px 12px; font:inherit; color:var(--clc-ink); background:#fff; box-shadow:none;
}
.clc-pills{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.clc a.clc-pill-btn{ display:inline-flex; align-items:center; min-height:40px; padding:0 14px; border:1px solid var(--clc-field); background:#fff; color:var(--clc-ink-2); font-size:14px; font-weight:600; text-decoration:none; }
.clc a.clc-pill-btn:hover{ border-color:var(--clc-brand-mid); color:var(--clc-brand-dark); }
.clc a.clc-pill-btn.is-active{ background:var(--clc-ink); border-color:var(--clc-ink); color:#fff; }
.clc-order{ background:#fff; border:1px solid var(--clc-line); padding:18px 20px; display:flex; flex-direction:column; gap:14px; }
.clc-order.is-current{ border-color:var(--clc-brand-mid); }
.clc-order__top{ display:flex; flex-wrap:wrap; gap:14px; align-items:flex-start; }
.clc-order__main{ flex:1 1 260px; min-width:0; display:flex; flex-direction:column; gap:2px; }
.clc-order__main .clc-muted{ font-size:13.5px; }
.clc .clc-order__title{ margin:0; font-size:16.5px; line-height:1.35; color:var(--clc-ink); }
.clc-order__total{ display:flex; flex-direction:column; align-items:flex-end; gap:2px; font-size:16px; }
.clc-order__total .clc-muted{ font-size:12.5px; }
.clc-pager{ display:flex; justify-content:center; gap:8px; flex-wrap:wrap; }
.clc a.clc-pager__n{ display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; border:1px solid var(--clc-field); color:var(--clc-ink); text-decoration:none; font-weight:600; }
.clc a.clc-pager__n.is-active{ background:var(--clc-ink); border-color:var(--clc-ink); color:#fff; }

/* ── Ver pedido ── */
.clc-crumbs{ display:flex; flex-wrap:wrap; gap:6px; font-size:13.5px; color:var(--clc-muted); }
.clc-crumbs a{ text-decoration:none; }
.clc-total{ display:flex; flex-direction:column; align-items:flex-end; }
.clc-total strong{ font-size:26px; }
.clc-item{ display:flex; flex-direction:column; gap:8px; padding-bottom:12px; border-bottom:1px solid var(--clc-line-2); }
.clc-item:last-of-type{ border-bottom:0; padding-bottom:0; }
.clc-item__name{ font-size:16.5px; font-weight:700; }
.clc-item__name a{ text-decoration:none; }
.clc-dl{ margin:0; display:grid; grid-template-columns:minmax(110px,180px) minmax(0,1fr); gap:8px 16px; font-size:14.5px; }
.clc-dl dt{ color:var(--clc-muted); margin:0; font-weight:400; }
.clc-dl dd{ margin:0; }
.clc-copy{ display:flex; align-items:center; gap:8px; min-width:0; }
.clc-totals{ margin:0; display:flex; flex-direction:column; gap:8px; }
.clc-totals__row{ display:flex; justify-content:space-between; gap:12px; font-size:14.5px; }
.clc-totals__row dt{ color:var(--clc-muted); margin:0; font-weight:400; }
.clc-totals__row dd{ margin:0; text-align:right; }
.clc-totals__row.is-total{ border-top:1px solid var(--clc-line-2); padding-top:10px; font-size:16px; font-weight:700; }
.clc-totals__row.is-total dt{ color:var(--clc-ink); }
.clc-event{ display:grid; grid-template-columns:92px minmax(0,1fr); gap:12px; font-size:14.5px; }
.clc-event p{ margin:0; }

/* ── Formulario de ticket ── */
.clc-form{ display:flex; flex-direction:column; gap:16px; }
.clc-choices{ border:0; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.clc-choices legend{ font-weight:600; font-size:14.5px; margin-bottom:8px; padding:0; }
.clc-choice{ display:flex; gap:12px; align-items:flex-start; min-height:44px; padding:12px 14px; border:1px solid var(--clc-line); cursor:pointer; }
.clc-choice:has(input:checked){ border-color:var(--clc-brand); background:var(--clc-brand-soft); }
.clc-choice input{ margin:3px 0 0; width:18px; height:18px; accent-color:var(--clc-brand); flex:0 0 18px; }
.clc-choice span{ display:flex; flex-direction:column; gap:2px; }
.clc-choice small{ font-size:13.5px; color:var(--clc-muted); }
.clc-field{ display:flex; flex-direction:column; gap:6px; margin:0; }
.clc-field label{ font-weight:600; font-size:14.5px; }
.clc-row--center{ align-items:center; }

/* ── Celular ── */
@media (max-width: 900px){
  .clc{ gap:16px; }
  .clc-side{ max-width:none; flex-basis:100%; }
  .clc-nav{ flex-direction:row; gap:8px; overflow-x:auto; padding-bottom:4px; -webkit-overflow-scrolling:touch; }
  .clc-nav__group{ flex-direction:row; gap:8px; }
  .clc-nav__label{ display:none; }
  .clc a.clc-nav__item{ flex:0 0 auto; min-height:40px; border:1px solid var(--clc-field); background:#fff; white-space:nowrap; }
  .clc a.clc-nav__item.is-active{ background:var(--clc-ink); color:#fff; border-color:var(--clc-ink); box-shadow:none; }
  .clc a.clc-nav__item svg{ display:none; }
  .clc-grid3{ grid-template-columns:1fr; }
  .clc .clc-h1{ font-size:24px; }
  .clc-card{ padding:16px; }
  .clc-dl{ grid-template-columns:1fr; gap:2px; }
  .clc-dl dd{ margin-bottom:8px; }
}

/* ============================================================
   BLINDAJE contra Astra / Elementor
   El tema y el widget "Mi cuenta" de Elementor pisan colores de
   links, títulos, márgenes y botones. Esto los fuerza.
   ============================================================ */

/* Contenedor que agrega Elementor alrededor del contenido */
html body .clc .woocommerce-MyAccount-content-wrapper,
html body .clc .woocommerce-MyAccount-content{
  border:0 !important; padding:0 !important; margin:0 !important; background:transparent !important; box-shadow:none !important;
  width:auto !important; max-width:none !important; float:none !important;
  display:flex !important; flex-direction:column !important; gap:20px !important;
}
html body .clc .woocommerce-notices-wrapper:empty{ display:none !important; }

/* Títulos */
html body .clc h1, html body .clc h2, html body .clc h3,
html body .clc .clc-h1, html body .clc .clc-h2, html body .clc .clc-h3, html body .clc .clc-order__title{
  color:#1F2A3D !important; margin:0 !important; padding:0 !important; border:0 !important;
}
html body .clc .clc-h1{ font-size:30px !important; line-height:1.15 !important; }
html body .clc .clc-h2{ font-size:19px !important; line-height:1.3 !important; text-transform:none !important; }
html body .clc .clc-h3{ font-size:17px !important; line-height:1.3 !important; }
html body .clc .clc-order__title{ font-size:16.5px !important; line-height:1.35 !important; text-transform:none !important; letter-spacing:normal !important; }
html body .clc p{ margin:0 !important; }
html body .clc .clc-sub{ margin-top:4px !important; }
html body .clc dl, html body .clc dt, html body .clc dd{ margin:0 !important; }
html body .clc dt{ font-weight:400 !important; }

/* Tarjeta del usuario */
html body .clc .clc-user, html body .clc .clc-user *{ color:#FFFFFF !important; }
html body .clc .clc-user__id span{ color:#C3CCDA !important; }
html body .clc a.clc-user__pts{ text-decoration:none !important; flex-wrap:nowrap !important; }
html body .clc a.clc-user__pts span{ color:#DCE2EC !important; white-space:nowrap !important; font-size:13px !important; }
html body .clc a.clc-user__pts strong{ color:#FFFFFF !important; white-space:nowrap !important; font-size:14px !important; }

/* Menú */
html body .clc a.clc-nav__item{ color:#2A2F3A !important; text-decoration:none !important; background:transparent !important; box-shadow:none !important; }
html body .clc a.clc-nav__item:hover, html body .clc a.clc-nav__item:focus{ color:#2D4373 !important; background:#EEF2F8 !important; }
html body .clc a.clc-nav__item.is-active{ color:#2D4373 !important; background:#E6ECF6 !important; box-shadow:inset 3px 0 0 #3B5998 !important; }
html body .clc .clc-nav__label{ color:#5A6170 !important; }
html body .clc .clc-nav__badge{ border-radius:0 !important; }

/* Botones */
html body .clc a.clc-btn, html body .clc button.clc-btn, html body .clc input.clc-btn{
  background:#3B5998 !important; color:#FFFFFF !important; border:1px solid #3B5998 !important; border-radius:0 !important;
  text-decoration:none !important; text-transform:none !important; box-shadow:none !important; font-weight:700 !important; line-height:1.2 !important;
}
html body .clc a.clc-btn:hover, html body .clc button.clc-btn:hover, html body .clc a.clc-btn:focus, html body .clc button.clc-btn:focus{
  background:#2D4373 !important; border-color:#2D4373 !important; color:#FFFFFF !important;
}
html body .clc a.clc-btn--ghost, html body .clc button.clc-btn--ghost{ background:#FFFFFF !important; color:#1F2A3D !important; border-color:#D5D9E0 !important; font-weight:600 !important; }
html body .clc a.clc-btn--ghost:hover, html body .clc button.clc-btn--ghost:hover{ background:#EEF2F8 !important; color:#2D4373 !important; border-color:#8FA6D0 !important; }
html body .clc a.clc-btn--text{ background:transparent !important; border-color:transparent !important; color:#2D4373 !important; font-weight:600 !important; }
html body .clc a.clc-btn--text:hover{ background:#EEF2F8 !important; color:#2D4373 !important; border-color:transparent !important; }
html body .clc button.clc-icon-btn{ background:#FFFFFF !important; color:#2A2F3A !important; border:1px solid #D5D9E0 !important; border-radius:0 !important; padding:0 !important; box-shadow:none !important; }
html body .clc button.clc-icon-btn.is-ok{ background:#E7F5EE !important; border-color:#0D6B45 !important; color:#0D6B45 !important; }

/* Tarjetas del escritorio */
html body .clc a.clc-tile{ text-decoration:none !important; color:#1F2A3D !important; background:#FFFFFF !important; }
html body .clc a.clc-tile span{ color:#3A4152 !important; }
html body .clc a.clc-tile .clc-eyebrow{ color:#5A6170 !important; }
html body .clc a.clc-tile .clc-tile__cta{ color:#3B5998 !important; }
html body .clc a.clc-tile .clc-pill{ color:#FFFFFF !important; background:#3B5998 !important; }
html body .clc a.clc-tile--dark{ background:#1F2A3D !important; border-color:#1F2A3D !important; }
html body .clc a.clc-tile--dark span{ color:#DCE2EC !important; }
html body .clc a.clc-tile--dark .clc-eyebrow{ color:#C3CCDA !important; }
html body .clc a.clc-tile--dark .clc-big{ color:#FFFFFF !important; }
html body .clc a.clc-tile--dark .clc-tile__cta{ color:#A9BCE0 !important; }

/* Filtros, paginación y links sueltos */
html body .clc a.clc-pill-btn{ color:#2A2F3A !important; background:#FFFFFF !important; border:1px solid #D5D9E0 !important; text-decoration:none !important; border-radius:0 !important; }
html body .clc a.clc-pill-btn:hover{ color:#2D4373 !important; border-color:#8FA6D0 !important; }
html body .clc a.clc-pill-btn.is-active{ color:#FFFFFF !important; background:#1F2A3D !important; border-color:#1F2A3D !important; }
html body .clc a.clc-pager__n{ color:#1F2A3D !important; background:#FFFFFF !important; text-decoration:none !important; border-radius:0 !important; }
html body .clc a.clc-pager__n.is-active{ color:#FFFFFF !important; background:#1F2A3D !important; border-color:#1F2A3D !important; }
html body .clc a.clc-textlink, html body .clc .clc-crumbs a{ color:#3B5998 !important; text-decoration:none !important; }
html body .clc .clc-item__name a{ color:#3B5998 !important; text-decoration:none !important; }

/* Campos */
html body .clc input[type="search"], html body .clc input[type="text"], html body .clc textarea{
  border:1px solid #D5D9E0 !important; border-radius:0 !important; background:#FFFFFF !important; color:#1F2A3D !important; box-shadow:none !important;
}
html body .clc input[type="search"]:focus, html body .clc textarea:focus{ border-color:#3B5998 !important; outline:none !important; }
html body .clc .clc-choice{ margin:0 !important; font-weight:400 !important; }
html body .clc .clc-choices legend{ border:0 !important; width:auto !important; }

/* Chips */
html body .clc .clc-chip, html body .clc .clc-pill{ border-radius:0 !important; }

/* ============================================================
   Ajustes Fase 5c + Fase 6
   ============================================================ */

/* Tarjeta del usuario: puntos en dos líneas para que no se salgan */
html body .clc a.clc-user__pts{ flex-direction:column !important; align-items:flex-start !important; justify-content:center !important; gap:2px !important; padding:8px 12px !important; }
html body .clc a.clc-user__pts strong{ white-space:normal !important; overflow-wrap:anywhere !important; }
html body .clc .clc-user__id strong, html body .clc .clc-user__id span{ overflow:hidden !important; text-overflow:ellipsis !important; white-space:nowrap !important; max-width:100% !important; display:block !important; }

/* Textos largos dentro de tarjetas y filas */
.clc-card, .clc-tile, .clc-order, .clc-line__main, .clc-tkrow__main, .clc-msg__body{ overflow-wrap:anywhere; word-break:normal; }
html body .clc .clc-line__total, html body .clc .clc-order__total strong{ white-space:nowrap !important; }

/* Utilidades */
.clc-stack{ display:flex; flex-direction:column; gap:14px; min-width:0; }
.clc-grid2{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
html body .clc .clc-card--flush{ padding:0 !important; gap:0 !important; }
html body .clc a.clc-card--link{ text-decoration:none !important; color:#1F2A3D !important; gap:6px !important; }
html body .clc a.clc-card--link:hover{ border-color:#8FA6D0 !important; }
html body .clc a.clc-card--link strong{ color:#1F2A3D !important; }
html body .clc a.clc-card--link .clc-muted{ color:#5A6170 !important; }
.clc-ok{ background:#E7F5EE; color:#0D3B27; padding:12px 14px; font-size:14.5px; }

/* ── Mis puntos ── */
.clc-hero{ background:#1F2A3D; color:#fff; padding:26px 28px; display:flex; flex-direction:column; gap:20px; }
.clc-hero__top{ display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:20px; }
.clc-hero__main{ display:flex; flex-direction:column; gap:4px; min-width:0; }
html body .clc .clc-hero .clc-eyebrow{ color:#C3CCDA !important; }
.clc-hero__num{ font-size:52px; font-weight:700; line-height:1; color:#fff; }
.clc-hero__usd{ font-size:18px; color:#DCE2EC; }
html body .clc .clc-hero__usd strong{ color:#fff !important; }
.clc-hero__hint{ font-size:14px; color:#C3CCDA; }
.clc-hero__stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:12px; border-top:1px solid #2C3A52; padding-top:16px; }
.clc-hero__stats div{ display:flex; flex-direction:column; gap:2px; }
.clc-hero__stats span{ font-size:12.5px; color:#C3CCDA; }
html body .clc .clc-hero__stats strong{ font-size:17px; color:#fff !important; }
html body .clc .clc-hero a.clc-btn{ background:#FFFFFF !important; color:#1F2A3D !important; border-color:#FFFFFF !important; }
html body .clc .clc-hero a.clc-btn:hover{ background:#E6ECF6 !important; border-color:#E6ECF6 !important; color:#1F2A3D !important; }
.clc-earn{ background:#fff; border:1px solid #E3E6EB; padding:16px 18px; display:flex; gap:14px; align-items:flex-start; }
.clc-earn--hl{ border-color:#8FA6D0; }
.clc-earn svg{ flex:0 0 20px; color:#3B5998; margin-top:2px; }
.clc-earn div{ display:flex; flex-direction:column; gap:2px; font-size:14px; color:#3A4152; min-width:0; }
html body .clc .clc-earn strong{ color:#1F2A3D !important; font-size:15px; }

/* Tabla de historial */
.clc-tablewrap{ overflow-x:auto; }
html body .clc table.clc-table{ width:100% !important; border-collapse:collapse !important; border:0 !important; margin:0 !important; font-size:14.5px; min-width:520px; background:transparent !important; }
html body .clc table.clc-table th{ text-align:left !important; font-size:12px !important; text-transform:uppercase !important; letter-spacing:.8px !important; color:#5A6170 !important; font-weight:700 !important; padding:10px 8px !important; border:0 !important; border-bottom:1px solid #E3E6EB !important; background:transparent !important; }
html body .clc table.clc-table td{ padding:12px 8px !important; border:0 !important; border-bottom:1px solid #EEF0F3 !important; background:transparent !important; color:#1F2A3D !important; vertical-align:top !important; }
html body .clc table.clc-table td.clc-muted{ color:#5A6170 !important; white-space:nowrap !important; }
html body .clc table.clc-table .num{ text-align:right !important; white-space:nowrap !important; }
html body .clc table.clc-table td.is-plus{ color:#0D6B45 !important; font-weight:700 !important; }
html body .clc table.clc-table td.is-minus{ color:#4A4A4A !important; font-weight:700 !important; }
html body .clc table.clc-table a{ color:#3B5998 !important; text-decoration:none !important; }

/* Bloque de cupones de YITH dentro de nuestra tarjeta */
html body .clc .clc-yith #share_points{ display:block !important; padding:0 !important; margin:0 !important; background:transparent !important; border:0 !important; }
html body .clc .clc-yith h3{ margin:0 0 6px !important; font-size:17px !important; text-transform:uppercase !important; letter-spacing:.5px !important; color:#1F2A3D !important; line-height:1.3 !important; }
html body .clc .clc-yith h3.your-coupons{ margin-top:22px !important; }
html body .clc .clc-yith p{ margin:0 0 12px !important; color:#5A6170 !important; font-size:14px !important; }
html body .clc .clc-yith form#ywpar-share-points{ display:flex !important; flex-wrap:wrap !important; align-items:center !important; gap:10px !important; margin:0 0 6px !important; padding:0 !important; background:transparent !important; }
html body .clc .clc-yith form#ywpar-share-points span{ font-size:14.5px !important; color:#1F2A3D !important; }
html body .clc .clc-yith input[type="number"]{ width:130px !important; min-height:44px !important; border:1px solid #D5D9E0 !important; border-radius:0 !important; padding:0 12px !important; font:inherit !important; color:#1F2A3D !important; background:#fff !important; text-align:left !important; box-shadow:none !important; }
html body .clc .clc-yith input[type="submit"], html body .clc .clc-yith #ywpar-share-points__submit{ min-height:44px !important; padding:0 20px !important; background:#3B5998 !important; color:#fff !important; border:1px solid #3B5998 !important; border-radius:0 !important; font-weight:700 !important; text-transform:none !important; letter-spacing:normal !important; cursor:pointer !important; box-shadow:none !important; }
html body .clc .clc-yith input[type="submit"]:hover{ background:#2D4373 !important; border-color:#2D4373 !important; }
html body .clc .clc-yith .ywpar-share-points-error{ margin:0 !important; font-size:13px !important; }
html body .clc .clc-yith table{ width:100% !important; border-collapse:collapse !important; border:0 !important; margin:0 !important; background:transparent !important; font-size:14px !important; }
html body .clc .clc-yith table th{ text-align:left !important; font-size:12px !important; text-transform:uppercase !important; letter-spacing:.8px !important; color:#5A6170 !important; padding:8px !important; border:0 !important; border-bottom:1px solid #E3E6EB !important; background:transparent !important; }
html body .clc .clc-yith table td{ padding:10px 8px !important; border:0 !important; border-bottom:1px solid #EEF0F3 !important; background:transparent !important; color:#1F2A3D !important; vertical-align:middle !important; font-size:14px !important; }
html body .clc .clc-yith .ywpar-copy-to-clipboard_field-wrap input{ border:1px solid #D5D9E0 !important; border-radius:0 !important; background:#fff !important; font-family:ui-monospace,Menlo,Consolas,monospace !important; font-size:13px !important; min-height:36px !important; }
html body .clc .clc-yith #ywpar-copy-to-clipboard-wrapper{ border-radius:0 !important; border-color:#D5D9E0 !important; background:#fff !important; }
html body .clc .clc-yith .ywpar-copy-to-clipboard__copy{ color:#3B5998 !important; font-weight:700 !important; }
html body .clc .clc-yith .ywpar-share-status{ font-style:normal !important; font-weight:700 !important; font-size:12.5px !important; padding:3px 8px !important; background:#EFEFED !important; color:#4A4A4A !important; }
html body .clc .clc-yith .ywpar-share-status.active, html body .clc .clc-yith .ywpar-share-status.available{ background:#E7F5EE !important; color:#0D6B45 !important; }

/* ── Tickets ── */
html body .clc a.clc-tkrow{ display:flex !important; flex-wrap:wrap; gap:10px 18px; align-items:center; padding:16px 20px; border-bottom:1px solid #EEF0F3; color:#1F2A3D !important; text-decoration:none !important; background:#fff; }
html body .clc a.clc-tkrow:last-child{ border-bottom:0; }
html body .clc a.clc-tkrow:hover{ background:#F5F6F8 !important; color:#1F2A3D !important; }
.clc-tkrow__main{ flex:1 1 280px; min-width:0; display:flex; flex-direction:column; gap:3px; }
.clc-tkrow__main .clc-muted{ font-size:13.5px; }
.clc-tkrow__type{ font-weight:600; }
.clc-tkrow__prev{ font-size:13.5px; color:#3A4152; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.clc-tkrow__side{ display:flex; flex-direction:column; align-items:flex-end; gap:4px; font-size:12.5px; }
html body .clc a.clc-tkrow strong{ color:#1F2A3D !important; }
html body .clc a.clc-tkrow .clc-pill{ color:#fff !important; }
.clc-msg{ background:#fff; border:1px solid #E3E6EB; padding:14px 18px; display:flex; flex-direction:column; gap:6px; }
.clc-msg--team{ background:#EEF2F8; border-color:#C9D5EA; }
.clc-msg__head{ display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; font-size:13.5px; }
html body .clc .clc-msg--team .clc-msg__head strong{ color:#2D4373 !important; }
.clc-msg__body{ font-size:14.5px; line-height:1.6; }
.clc-track{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.clc-track li{ display:flex; align-items:center; gap:10px; font-size:14px; color:#5A6170; margin:0; }
.clc-track li::before{ content:""; flex:0 0 12px; height:12px; border:2px solid #C3CCDA; background:#fff; }
.clc-track li.is-done{ color:#1F2A3D; }
.clc-track li.is-done::before{ background:#3B5998; border-color:#3B5998; }
.clc-track li.is-current{ color:#1F2A3D; font-weight:700; }
.clc-track li.is-current::before{ background:#3B5998; border-color:#3B5998; box-shadow:0 0 0 3px #E6ECF6; }
html body .clc h2.clc-eyebrow{ font-size:12px !important; text-transform:uppercase !important; letter-spacing:1.2px !important; color:#5A6170 !important; }

/* ── Datos de la cuenta ── */
html body .clc form.woocommerce-EditAccountForm{ background:#fff !important; border:1px solid #E3E6EB !important; padding:22px 24px !important; margin:0 !important; }
html body .clc form.woocommerce-EditAccountForm .form-row{ margin:0 0 14px !important; }
html body .clc form.woocommerce-EditAccountForm input.input-text{ border-radius:0 !important; border:1px solid #D5D9E0 !important; background:#fff !important; box-shadow:none !important; }
html body .clc form.woocommerce-EditAccountForm input.input-text:focus{ border-color:#3B5998 !important; }
html body .clc form.woocommerce-EditAccountForm fieldset{ border:0 !important; padding:0 !important; margin:18px 0 0 !important; }
html body .clc form.woocommerce-EditAccountForm legend{ font-size:15px !important; font-weight:700 !important; color:#1F2A3D !important; padding:0 0 10px !important; margin:0 !important; border:0 !important; width:auto !important; }
html body .clc form.woocommerce-EditAccountForm #account_display_name_description{ display:block !important; margin-top:4px !important; font-size:12.5px !important; color:#5A6170 !important; }
html body .clc form.woocommerce-EditAccountForm button.button, html body .clc form.woocommerce-EditAccountForm .woocommerce-Button{
  background:#3B5998 !important; color:#fff !important; border:1px solid #3B5998 !important; border-radius:0 !important;
  min-height:46px !important; padding:0 22px !important; font-weight:700 !important; text-transform:none !important; letter-spacing:normal !important; box-shadow:none !important;
}
html body .clc form.woocommerce-EditAccountForm button.button:hover{ background:#2D4373 !important; border-color:#2D4373 !important; }

/* ── Mis favoritos ── */
html body .clc .cl-fav-list{ list-style:none !important; margin:0 !important; padding:0 !important; background:#fff !important; border:1px solid #E3E6EB !important; }
html body .clc .cl-fav-item{ display:flex !important; align-items:center !important; justify-content:space-between !important; gap:12px !important; padding:14px 18px !important; margin:0 !important; border-bottom:1px solid #EEF0F3 !important; }
html body .clc .cl-fav-item:last-child{ border-bottom:0 !important; }
html body .clc a.cl-fav-link{ color:#1F2A3D !important; font-weight:600 !important; text-decoration:none !important; }
html body .clc a.cl-fav-link:hover{ color:#3B5998 !important; }
html body .clc button.cl-fav-remove{ background:#fff !important; color:#2A2F3A !important; border:1px solid #D5D9E0 !important; border-radius:0 !important; min-height:36px !important; padding:0 12px !important; font-size:13px !important; font-weight:600 !important; text-transform:none !important; box-shadow:none !important; }
html body .clc button.cl-fav-remove:hover{ border-color:#8FA6D0 !important; color:#2D4373 !important; }

@media (max-width: 900px){
  .clc-grid2{ grid-template-columns:1fr; }
  .clc-hero__num{ font-size:42px; }
}

/* ============================================================
   LOGIN Y REGISTRO (Mi cuenta sin sesión)
   ============================================================ */
body.woocommerce-account:not(.logged-in) #customer_login{ max-width:440px !important; margin:0 auto !important; float:none !important; width:100% !important; }
body.woocommerce-account:not(.logged-in) #customer_login .u-column1,
body.woocommerce-account:not(.logged-in) #customer_login .u-column2{ width:100% !important; max-width:none !important; float:none !important; padding:0 !important; margin:0 !important; }
body.woocommerce-account:not(.logged-in) #customer_login h2{ text-align:center !important; font-size:26px !important; margin:0 0 16px !important; color:#1F2A3D !important; }
body.woocommerce-account:not(.logged-in) #customer_login form.login,
body.woocommerce-account:not(.logged-in) #customer_login form.register{
  height:auto !important; min-height:0 !important; background:#fff !important; border:1px solid #E3E6EB !important; border-radius:0 !important;
  box-shadow:none !important; padding:28px !important; margin:0 !important; display:flex !important; flex-direction:column !important; gap:14px !important;
}
body.woocommerce-account:not(.logged-in) #customer_login form .form-row,
body.woocommerce-account:not(.logged-in) #customer_login form p{ margin:0 !important; padding:0 !important; width:100% !important; float:none !important; }
/* Un solo botón de Google (el de Site Kit duplicaba el otro) */
body.woocommerce-account:not(.logged-in) .googlesitekit-sign-in-with-google__frontend-output-button{ display:none !important; }
body.woocommerce-account:not(.logged-in) #wp-login-google-login-button{ display:flex !important; flex-direction:column !important; align-items:center !important; gap:12px !important; }
body.woocommerce-account:not(.logged-in) #wp-login-google-login-button > div:last-child{ position:relative !important; width:100% !important; margin:0 !important; font-size:0 !important; text-align:center !important; }
body.woocommerce-account:not(.logged-in) #wp-login-google-login-button > div:last-child::before{ content:""; position:absolute; left:0; right:0; top:50%; border-top:1px solid #E3E6EB; }
body.woocommerce-account:not(.logged-in) #wp-login-google-login-button > div:last-child::after{ content:"o con tu email"; position:relative; display:inline-block; padding:0 10px; background:#fff; font-size:13px; color:#5A6170; }
body.woocommerce-account:not(.logged-in) #customer_login input.input-text{ min-height:46px !important; border:1px solid #D5D9E0 !important; border-radius:0 !important; background:#fff !important; box-shadow:none !important; width:100% !important; }
body.woocommerce-account:not(.logged-in) #customer_login input.input-text:focus{ border-color:#3B5998 !important; }
/* Recuérdame arriba, botón a todo el ancho debajo */
body.woocommerce-account:not(.logged-in) #customer_login form.login p.form-row:has(.woocommerce-form-login__rememberme){ display:flex !important; flex-direction:column !important; align-items:stretch !important; gap:14px !important; }
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-login__rememberme{ display:inline-flex !important; align-items:center !important; gap:8px !important; margin:0 !important; font-weight:400 !important; font-size:14px !important; color:#3A4152 !important; letter-spacing:normal !important; order:1; float:none !important; }
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-login__rememberme input{ width:16px !important; height:16px !important; margin:0 !important; accent-color:#3B5998; }
body.woocommerce-account:not(.logged-in) #customer_login button.button{
  order:2; width:100% !important; min-height:48px !important; margin:0 !important; float:none !important;
  background:#3B5998 !important; color:#fff !important; border:1px solid #3B5998 !important; border-radius:0 !important;
  font-weight:700 !important; font-size:15px !important; text-transform:none !important; letter-spacing:normal !important; box-shadow:none !important;
}
body.woocommerce-account:not(.logged-in) #customer_login button.button:hover{ background:#2D4373 !important; border-color:#2D4373 !important; }
body.woocommerce-account:not(.logged-in) #customer_login .lost_password,
body.woocommerce-account:not(.logged-in) #customer_login .ast-woo-form-actions{ text-align:center !important; font-size:14px !important; color:#5A6170 !important; }
body.woocommerce-account:not(.logged-in) #customer_login .lost_password a,
body.woocommerce-account:not(.logged-in) #customer_login .ast-woo-form-actions a{ color:#3B5998 !important; font-weight:600 !important; text-decoration:none !important; }
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-privacy-policy-text p{ font-size:12.5px !important; color:#5A6170 !important; }

/* ============================================================
   FIX CELULAR — desborde horizontal (Fase 7)
   Causa: el widget de Elementor (ancho "inline") y .clc tomaban el
   ancho de su contenido más ancho (pills sin salto, tablas) y, al
   estar centrados, se cortaban a los dos lados.
   Va al final del archivo a propósito: tiene que ganar al blindaje.
   ============================================================ */
@media (max-width: 900px){

  /* 1. Elementor / WooCommerce: toman el ancho de la pantalla */
  html body .elementor-widget-woocommerce-my-account,
  html body .elementor-widget-woocommerce-my-account > .elementor-widget-container,
  html body .elementor-widget-woocommerce-my-account .e-my-account-tab,
  html body .elementor-widget-woocommerce-my-account .e-my-account-tab > .woocommerce,
  html body.woocommerce-account .woocommerce{
    width:100% !important; max-width:100% !important; min-width:0 !important; flex:0 0 100% !important;
  }
  html body.woocommerce-account .site-content{ overflow-x:clip; }

  /* 2. Una sola columna que nunca supera la pantalla */
  html body .clc{ display:grid !important; grid-template-columns:minmax(0,1fr) !important; gap:16px !important; width:100% !important; max-width:100% !important; }
  html body .clc-side, html body .clc-main{ flex:none !important; width:100% !important; max-width:100% !important; min-width:0 !important; }
  html body .clc .woocommerce-MyAccount-content-wrapper,
  html body .clc .woocommerce-MyAccount-content{ max-width:100% !important; min-width:0 !important; }

  /* 3. Menú en pills: scroll horizontal dentro de su caja, no de la página */
  html body .clc-nav{ max-width:100%; min-width:0; scrollbar-width:none; }
  html body .clc-nav::-webkit-scrollbar{ display:none; }
  html body .clc-nav__group{ flex:0 0 auto; }

  /* 4. Títulos: el blindaje forzaba 30px también en celular */
  html body .clc .clc-h1{ font-size:24px !important; }

  /* 5. Mis puntos */
  html body .clc .clc-hero{ padding:20px 16px; }
  html body .clc .clc-hero__top{ flex-direction:column; align-items:stretch; gap:16px; }
  html body .clc .clc-hero a.clc-btn{ width:100%; }
  html body .clc .clc-hero__stats{ grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); }
  html body .clc .clc-hero__stats strong{ font-size:15px !important; overflow-wrap:anywhere; }
  html body .clc .clc-earn{ padding:14px; }

  /* 6. Historial de puntos: cada movimiento es una fila apilada (no una tabla de 4 columnas) */
  html body .clc .clc-tablewrap{ overflow:visible; }
  html body .clc table.clc-table, html body .clc table.clc-table tbody{ display:block !important; width:100% !important; min-width:0 !important; }
  html body .clc table.clc-table thead{ display:none !important; }
  html body .clc table.clc-table tr{
    display:grid !important; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"mov pts" "fec sal";
    gap:4px 14px; padding:12px 0; border-bottom:1px solid #EEF0F3;
  }
  html body .clc table.clc-table tr[hidden]{ display:none !important; }
  html body .clc table.clc-table td{ padding:0 !important; border:0 !important; min-width:0; overflow-wrap:break-word; word-break:normal; }
  html body .clc table.clc-table td:nth-child(1){ grid-area:fec; font-size:12.5px; }
  html body .clc table.clc-table td:nth-child(2){ grid-area:mov; font-weight:600; line-height:1.35; }
  html body .clc table.clc-table td:nth-child(3){ grid-area:pts; font-size:15px; }
  html body .clc table.clc-table td:nth-child(4){ grid-area:sal; font-size:12.5px; font-weight:400 !important; color:#5A6170 !important; }
  html body .clc table.clc-table td:nth-child(4)::before{ content:"Saldo "; }

  /* 7. Tickets y pedidos */
  html body .clc a.clc-tkrow{ padding:14px 16px; }
  html body .clc .clc-order{ padding:16px; }
  html body .clc .clc-steps{ gap:6px; }
  html body .clc .clc-steps__item{ font-size:12px; }
  html body .clc .clc-search{ flex:1 1 100%; }
}

@media (max-width: 480px){
  html body .clc .clc-big{ font-size:30px; }
  html body .clc .clc-hero__num{ font-size:38px; }
  html body .clc a.clc-btn, html body .clc button.clc-btn{ padding:0 16px; }
}

/* ============================================================
   FASE 8 — Cómo sumar puntos, cupones de YITH y color de textos
   ============================================================ */

/* Color de textos secundarios (algún estilo del tema los pintaba marrón) */
html body .clc .clc-muted{ color:#5A6170 !important; }

/* Cómo sumar puntos: icono en cuadrito, tarjeta destacada */
.clc-earn svg{ box-sizing:content-box; width:18px; height:18px; flex:0 0 18px; padding:9px; margin:0; background:#E6ECF6; color:#3B5998; align-self:flex-start; }
.clc-earn--hl{ background:#F5F8FD; border-color:#8FA6D0; }
.clc-earn--hl svg{ background:#3B5998; color:#FFFFFF; }
.clc-earn div{ gap:4px; }
.clc-earn div span{ line-height:1.45; }
html body .clc .clc-earn a.clc-textlink{ min-height:36px; margin-top:2px; }

/* Cupones de YITH */
@media (max-width: 768px){
  /* Formulario "Convertir puntos": campo + texto + botón, bien alineados */
  html body .clc .clc-yith form#ywpar-share-points{ display:flex !important; flex-wrap:wrap; align-items:center; gap:10px !important; }
  html body .clc .clc-yith form#ywpar-share-points > span:first-of-type{ flex:0 0 auto; }
  html body .clc .clc-yith form#ywpar-share-points input[type="number"]{ flex:1 1 100px; width:auto !important; min-width:0; max-width:100%; }
  html body .clc .clc-yith form#ywpar-share-points > span:nth-of-type(2){ flex:1 1 100%; font-size:13.5px !important; color:#5A6170 !important; }
  html body .clc .clc-yith form#ywpar-share-points > span:nth-of-type(2) .worth-price{ color:#1F2A3D !important; font-weight:700; }
  html body .clc .clc-yith #ywpar-share-points__submit{ flex:1 1 100%; width:100%; margin:0 !important; }

  /* Tus cupones: cada cupón es una tarjeta (WooCommerce ya apila la tabla; acá la prolijamos) */
  html body .clc .clc-yith table{ display:block !important; min-width:0 !important; }
  html body .clc .clc-yith table thead{ display:none !important; }
  html body .clc .clc-yith table tbody{ display:flex !important; flex-direction:column; gap:10px; }
  html body .clc .clc-yith table tr{ display:block !important; border:1px solid #E3E6EB; padding:4px 14px; background:#fff !important; }
  html body .clc .clc-yith table td{
    display:flex !important; justify-content:space-between; align-items:center; gap:12px; text-align:right !important;
    padding:9px 0 !important; border:0 !important; border-bottom:1px solid #EEF0F3 !important; background:transparent !important;
  }
  html body .clc .clc-yith table td:last-child{ border-bottom:0 !important; }
  html body .clc .clc-yith table td::before{
    content:attr(data-title) !important; float:none !important; flex:0 0 auto; text-align:left;
    font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.8px; color:#5A6170;
  }
  /* Código: etiqueta arriba, campo + "Copiar" debajo a todo el ancho */
  html body .clc .clc-yith table td.ywpar-share-points-code{ flex-direction:column; align-items:stretch; gap:6px; text-align:left !important; }
  html body .clc .clc-yith #ywpar-copy-to-clipboard-wrapper{ display:flex !important; align-items:center; gap:10px; width:100%; }
  html body .clc .clc-yith .ywpar-copy-to-clipboard_field-wrap{ flex:1 1 auto; min-width:0; }
  html body .clc .clc-yith .ywpar-copy-to-clipboard_field-wrap input{ width:100% !important; min-width:0; }
  html body .clc .clc-yith .ywpar-copy-to-clipboard__copy{ flex:0 0 auto; display:flex; align-items:center; gap:4px; cursor:pointer; }
}
@media (min-width: 769px) and (max-width: 900px){
  html body .clc .clc-yith{ overflow-x:auto; }
  html body .clc .clc-yith table{ min-width:520px; }
}

/* ============================================================
   FASE 9 — Ver pedido: cabecera en celular
   (view-order.php: .clc-ohead = fila con título/estado + total)
   ============================================================ */
@media (max-width: 900px){
  html body .clc .clc-ohead{ flex-direction:column; align-items:stretch; flex-wrap:nowrap; gap:14px; }
  html body .clc .clc-ohead > div:first-child{ min-width:0; display:flex; flex-direction:column; gap:8px; }
  html body .clc .clc-ohead .clc-row--wrap{ gap:8px 12px; }
  html body .clc .clc-ohead .clc-h1{ font-size:22px !important; line-height:1.2 !important; }
  html body .clc .clc-ohead > div:first-child > .clc-muted{ font-size:13.5px; line-height:1.5; }
  /* Total: estilo recibo, "TOTAL" a la izquierda y el importe a la derecha */
  html body .clc .clc-ohead .clc-total{ flex-direction:row; justify-content:space-between; align-items:baseline; width:100%; padding-top:12px; border-top:1px solid #EEF0F3; }
  html body .clc .clc-total strong{ font-size:22px; white-space:nowrap; }
  /* Botones de acción a todo el ancho */
  html body .clc .clc-card > .clc-actions .clc-btn{ flex:1 1 160px; }
}
