/* Lunaria Live Foro */

.llf-wrap {
  max-width: 1180px;
  margin: 32px auto;
  padding: 0 18px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2937;
}

.llf-wrap * {
  box-sizing: border-box;
}

.llf-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.llf-login-wrap {
  max-width: 460px;
}

.llf-login-card h2 {
  margin-top: 0;
}

.llf-login-card input[type="text"],
.llf-login-card input[type="password"] {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 10px 12px;
}

.llf-login-card .button,
.llf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  background: #111827;
  color: #fff !important;
  text-decoration: none;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.2;
}

.llf-button-small {
  padding: 8px 12px;
  font-size: 13px;
}

.llf-button:hover {
  filter: brightness(.95);
}

.llf-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.llf-topbar h1 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: -.03em;
}

.llf-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
}

.llf-breadcrumbs a {
  color: #111827;
  text-decoration: none;
  font-weight: 600;
}

.llf-userbox {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  white-space: nowrap;
}

.llf-userbox a {
  color: #991b1b;
  text-decoration: none;
  font-weight: 700;
}

.llf-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.llf-section-head h2 {
  margin: 0 0 4px;
}

.llf-muted {
  color: #6b7280;
}

.llf-stat {
  min-width: 92px;
  padding: 12px;
  border-radius: 16px;
  background: #f3f4f6;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
}

.llf-stat span {
  display: block;
  font-size: 12px;
  color: #6b7280;
  font-weight: 650;
}

.llf-table-wrap {
  overflow-x: auto;
}

.llf-table {
  width: 100%;
  border-collapse: collapse;
}

.llf-table th,
.llf-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
}

.llf-table th {
  font-size: 13px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.llf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.llf-product-card {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}

.llf-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.llf-product-img {
  display: flex;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f9fafb;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.llf-product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.llf-product-img-empty {
  color: #9ca3af;
  font-weight: 700;
}

.llf-product-body {
  padding: 14px;
}

.llf-product-body h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.llf-sku {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.llf-product-meta {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 14px;
}

.llf-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.llf-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
}

.llf-product-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 18px;
  align-items: start;
}

.llf-detail-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: #f9fafb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.llf-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.llf-detail-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.llf-detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 8px;
}

.llf-detail-list dt {
  color: #6b7280;
  font-weight: 650;
}

.llf-detail-list dd {
  margin: 0;
  text-align: right;
  font-weight: 750;
}

.llf-posts {
  display: grid;
  gap: 12px;
  margin: 16px 0 22px;
}

.llf-post {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 14px;
}

.llf-post-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 13px;
}

.llf-post-head span {
  color: #6b7280;
}

.llf-post-content p {
  margin: 0 0 8px;
}

.llf-post-content p:last-child {
  margin-bottom: 0;
}

.llf-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.llf-form label {
  font-weight: 750;
}

.llf-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 12px;
  resize: vertical;
  font: inherit;
}

.llf-notice {
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-weight: 650;
}

.llf-notice-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.llf-notice-success {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
}

@media (max-width: 820px) {
  .llf-topbar,
  .llf-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .llf-userbox {
    justify-content: space-between;
    border-radius: 14px;
  }

  .llf-product-layout {
    grid-template-columns: 1fr;
  }
}


.llf-stack {
  display: grid;
  gap: 18px;
}

.llf-admin-notes {
  border-color: #fde68a;
  background: #fffbeb;
}

.llf-admin-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: #92400e;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.llf-post-admin {
  background: #fff7ed;
  border-color: #fed7aa;
}


.llf-readonly-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(146, 64, 14, .08);
  color: #92400e;
  font-weight: 700;
  font-size: 13px;
}


/* v0.1.5: formato más operativo para notas de armado */
.llf-admin-notes {
  border: 1px solid #facc15;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}

.llf-admin-notes h2 {
  margin-top: 2px;
}

.llf-assembly-note-item {
  position: relative;
  background: #fff;
  border: 1px solid #fde68a;
  border-left: 6px solid #d97706;
  border-radius: 14px;
  padding: 14px 14px 14px 16px;
  box-shadow: 0 8px 18px rgba(146, 64, 14, .08);
}

.llf-assembly-note-item + .llf-assembly-note-item {
  margin-top: 10px;
}

.llf-assembly-note-item .llf-post-head {
  margin-bottom: 10px;
}

.llf-assembly-note-item .llf-post-content {
  font-size: 15px;
  line-height: 1.55;
}

.llf-forum:not(.llf-admin-notes) {
  background: #fff;
}

.llf-forum:not(.llf-admin-notes) h2 {
  font-size: 24px;
}


/* v0.1.6 — Foro estilo chat / WhatsApp y notas operativas */
.llf-stack {
  display: grid;
  gap: 18px;
}

.llf-assembly-panel {
  border: 1px solid #facc15;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}

.llf-empty-state {
  color: #6b7280;
  background: rgba(255,255,255,.7);
  border: 1px dashed #fde68a;
  border-radius: 12px;
  padding: 12px;
}

.llf-assembly-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.llf-assembly-note-item {
  background: #fff;
  border: 1px solid #fde68a;
  border-left: 6px solid #d97706;
  border-radius: 14px;
  padding: 14px 14px 14px 16px;
  box-shadow: 0 8px 18px rgba(146, 64, 14, .08);
}

.llf-compact-form {
  gap: 8px;
}

.llf-compact-form textarea {
  min-height: 78px;
  max-height: 150px;
}

.llf-readonly-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(146, 64, 14, .08);
  color: #92400e;
  font-weight: 700;
  font-size: 13px;
}

.llf-chat-panel {
  padding: 0;
  overflow: hidden;
}

.llf-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.llf-chat-head h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.llf-chat-head p {
  margin: 0;
}

.llf-chat-scroll {
  max-height: 420px;
  min-height: 180px;
  overflow-y: auto;
  padding: 16px;
  background:
    radial-gradient(circle at 20% 20%, rgba(17,24,39,.035) 0 1px, transparent 1px),
    #f3f4f6;
  background-size: 16px 16px;
}

.llf-chat-empty {
  text-align: center;
  color: #6b7280;
  padding: 36px 12px;
}

.llf-chat-bubble {
  width: fit-content;
  max-width: min(82%, 520px);
  padding: 9px 11px 7px;
  border-radius: 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
  clear: both;
}

.llf-chat-bubble-other {
  background: #fff;
  border-bottom-left-radius: 5px;
  margin-right: auto;
}

.llf-chat-bubble-me {
  background: #dcfce7;
  border-bottom-right-radius: 5px;
  margin-left: auto;
}

.llf-chat-author {
  font-size: 12px;
  font-weight: 800;
  color: #374151;
  margin-bottom: 3px;
}

.llf-chat-content {
  font-size: 14px;
  line-height: 1.45;
}

.llf-chat-content p {
  margin: 0 0 6px;
}

.llf-chat-content p:last-child {
  margin-bottom: 0;
}

.llf-chat-time {
  margin-top: 4px;
  text-align: right;
  font-size: 10px;
  color: #6b7280;
}

.llf-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.llf-chat-form textarea {
  width: 100%;
  min-height: 44px;
  max-height: 96px;
  resize: vertical;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  line-height: 1.35;
}

.llf-chat-send {
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-weight: 800;
  padding: 0 18px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .llf-chat-form {
    grid-template-columns: 1fr;
  }

  .llf-chat-send {
    min-height: 42px;
  }

  .llf-chat-bubble {
    max-width: 92%;
  }
}


/* v0.1.7 — editar/eliminar notas de armado */
.llf-note-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.llf-note-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.llf-note-link:hover {
  text-decoration: underline;
}

.llf-note-delete-form {
  display: inline;
  margin: 0;
}

.llf-note-delete-btn {
  border: 0;
  background: transparent;
  color: #991b1b;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  padding: 0;
}

.llf-note-delete-btn:hover {
  text-decoration: underline;
}

.llf-note-edit-form {
  display: grid;
  gap: 10px;
}

.llf-note-edit-form textarea {
  width: 100%;
  min-height: 110px;
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
  background: #fff;
}


/* v0.1.8 — imágenes en foro */
.llf-chat-input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px;
}

.llf-chat-input-wrap textarea {
  min-width: 0;
}

.llf-chat-attach {
  width: 44px;
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  cursor: pointer;
  font-size: 18px;
}

.llf-chat-attach:hover {
  background: #f3f4f6;
}

.llf-chat-attach input {
  display: none;
}

.llf-chat-image {
  display: block;
  margin-bottom: 7px;
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
  background: #fff;
}

.llf-chat-image img {
  display: block;
  max-width: 260px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.llf-chat-bubble-me .llf-chat-image {
  border-color: rgba(22, 101, 52, .16);
}

@media (max-width: 720px) {
  .llf-chat-form {
    grid-template-columns: 1fr;
  }

  .llf-chat-input-wrap {
    grid-template-columns: 1fr auto;
  }

  .llf-chat-image img {
    max-width: 220px;
  }
}


/* v0.1.9 — imágenes del foro guardadas en carpeta propia, no Media Library */
.llf-chat-attach {
  position: relative;
}


/* v0.1.10 — preview de imagen adjunta antes de enviar */
.llf-chat-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: -4px;
  padding: 8px;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  background: #f0fdf4;
}

.llf-chat-preview[hidden] {
  display: none !important;
}

.llf-chat-preview-thumb {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(22, 101, 52, .16);
  display: flex;
  align-items: center;
  justify-content: center;
}

.llf-chat-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.llf-chat-preview-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.llf-chat-preview-meta strong {
  font-size: 13px;
  color: #166534;
}

.llf-chat-preview-name {
  font-size: 12px;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.llf-chat-preview-remove {
  border: 0;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 10px;
  cursor: pointer;
}

.llf-chat-preview-remove:hover {
  filter: brightness(.95);
}

@media (max-width: 720px) {
  .llf-chat-preview {
    grid-template-columns: 48px 1fr;
  }

  .llf-chat-preview-remove {
    grid-column: 1 / -1;
    width: 100%;
  }
}


/* v0.1.13 — inputs menos redondeados / estilo operativo */
.llf-login-card input[type="text"],
.llf-login-card input[type="password"],
.llf-form textarea,
.llf-note-edit-form textarea,
.llf-chat-form textarea {
  border-radius: 8px !important;
}

.llf-chat-input-wrap textarea {
  border-radius: 8px !important;
}

.llf-chat-attach {
  border-radius: 8px !important;
}

.llf-chat-send,
.llf-button,
.llf-login-card .button,
.llf-chat-preview-remove {
  border-radius: 8px !important;
}

.llf-userbox,
.llf-pill,
.llf-admin-label {
  border-radius: 8px !important;
}

.llf-chat-preview {
  border-radius: 8px !important;
}

.llf-chat-preview-thumb {
  border-radius: 6px !important;
}


/* v0.1.14 — card de notas de armado más limpia */
.llf-assembly-panel h2 {
  margin-top: 0;
}

.llf-assembly-panel .llf-empty-state {
  margin-bottom: 0;
}


/* v0.1.15 — unidades armadas */
.llf-ready-form {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  display: grid;
  gap: 8px;
}

.llf-ready-form label {
  font-size: 13px;
  font-weight: 800;
  color: #374151;
}

.llf-ready-control {
  display: grid;
  grid-template-columns: 76px auto auto;
  align-items: center;
  gap: 8px;
}

.llf-ready-control input {
  width: 76px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 9px;
  font: inherit;
  font-weight: 800;
}

.llf-ready-control span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.llf-ready-control button {
  border: 0;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.llf-ready-control button:hover {
  filter: brightness(.95);
}


/* v0.1.16 — editar unidades armadas y unidades a armar */
.llf-ready-control-two {
  grid-template-columns: 72px auto 72px auto;
}

.llf-ready-control-two input {
  width: 72px;
}

@media (max-width: 520px) {
  .llf-ready-control-two {
    grid-template-columns: 1fr auto 1fr;
  }

  .llf-ready-control-two button {
    grid-column: 1 / -1;
  }

  .llf-ready-control-two input {
    width: 100%;
  }
}


/* v0.1.18 — envío AJAX del foro */
.llf-chat-error {
  margin: 10px 12px 0;
  padding: 9px 11px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 700;
}

.llf-chat-send:disabled {
  opacity: .65;
  cursor: progress;
}


/* v0.1.20 — botón mínimo para actualizar mensajes */
.llf-chat-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.llf-chat-refresh {
  width: 34px;
  height: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.llf-chat-refresh:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.llf-chat-refresh:disabled {
  opacity: .6;
  cursor: progress;
}

.llf-chat-refresh.is-loading {
  animation: llfRefreshSpin .8s linear infinite;
}

@keyframes llfRefreshSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* v0.1.22 — botón mínimo para actualizar notas de armado */
.llf-assembly-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.llf-assembly-head h2 {
  margin: 0;
}

.llf-notes-refresh {
  width: 34px;
  height: 34px;
  border: 1px solid #facc15;
  border-radius: 8px;
  background: #fff;
  color: #92400e;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.llf-notes-refresh:hover {
  background: #fffbeb;
}

.llf-notes-refresh:disabled {
  opacity: .6;
  cursor: progress;
}

.llf-notes-refresh.is-loading {
  animation: llfRefreshSpin .8s linear infinite;
}

.llf-notes-error {
  margin: 10px 0;
  padding: 9px 11px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 700;
}


/* v0.1.23 — botón general de actualización de pantalla */
.llf-product-actions {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 12px;
}

.llf-page-refresh {
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.llf-page-refresh:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.llf-page-refresh:disabled {
  opacity: .6;
  cursor: progress;
}

.llf-page-refresh.is-loading {
  animation: llfRefreshSpin .8s linear infinite;
}


/* v0.1.24 — botón explícito de chat */
.llf-product-actions {
  display: none !important;
}

.llf-notes-refresh,
.llf-chat-refresh {
  display: none !important;
}

.llf-chat-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.llf-chat-refresh-explicit {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  min-height: 34px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1.2;
}

.llf-chat-refresh-explicit:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.llf-chat-refresh-explicit:disabled {
  opacity: .65;
  cursor: progress;
}

.llf-chat-refresh-explicit.is-loading::before {
  content: "↻ ";
  display: inline-block;
  animation: llfRefreshSpin .8s linear infinite;
}

.llf-chat-refresh-explicit.llf-no-new {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}


/* v0.1.25 — vuelve refresh general + mantiene "Ver mensajes nuevos" */
.llf-product-actions {
  display: flex !important;
  justify-content: flex-end;
  margin: -4px 0 12px;
}

.llf-page-refresh {
  width: 36px;
  height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.llf-page-refresh:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.llf-page-refresh:disabled {
  opacity: .6;
  cursor: progress;
}

.llf-page-refresh.is-loading {
  animation: llfRefreshSpin .8s linear infinite;
}


/* v0.1.26 — lightbox para foto de producto e imágenes del chat */
.llf-detail-img.llf-lightbox-trigger {
  cursor: zoom-in;
  text-decoration: none;
  border: 0;
}

.llf-chat-image.llf-lightbox-trigger {
  cursor: zoom-in;
}

.llf-lightbox-open {
  overflow: hidden;
}

.llf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.llf-lightbox.is-open {
  display: flex;
}

.llf-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .78);
  backdrop-filter: blur(2px);
}

.llf-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(96vw, 980px);
  max-height: 94vh;
  background: #111827;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .35);
  display: grid;
  gap: 10px;
}

.llf-lightbox-title {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 0 42px 0 2px;
}

.llf-lightbox-title[hidden] {
  display: none;
}

.llf-lightbox-img {
  display: block;
  width: 100%;
  max-height: calc(94vh - 74px);
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.llf-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  color: #111827;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.llf-lightbox-close:hover {
  background: #fff;
}

@media (max-width: 720px) {
  .llf-lightbox {
    padding: 10px;
  }

  .llf-lightbox-dialog {
    width: 98vw;
    padding: 10px;
  }

  .llf-lightbox-img {
    max-height: calc(94vh - 62px);
  }
}


/* v0.1.27 — refresh general restaurado + lightbox */
.llf-page-refresh {
  width: 34px;
  height: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.llf-page-refresh:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.llf-page-refresh:disabled {
  opacity: .6;
  cursor: progress;
}

.llf-page-refresh.is-loading {
  animation: llfRefreshSpin .8s linear infinite;
}

.llf-product-actions {
  display: flex !important;
  justify-content: flex-end;
  margin: -4px 0 12px;
}

.llf-chat-refresh-explicit {
  display: inline-flex;
}


/* v0.1.28 — rediseño UX/UI del chat */
.llf-chat-panel {
  border-radius: 14px;
  overflow: hidden;
  border-color: #e5e7eb;
  background: #fff;
}

.llf-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.llf-chat-titlebox {
  min-width: 0;
}

.llf-chat-head h2 {
  margin: 0 0 3px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.llf-chat-head p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.llf-chat-head-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  min-width: fit-content;
}

.llf-chat-count,
.llf-chat-head .llf-pill {
  min-height: 30px;
  padding: 7px 9px;
  border-radius: 8px !important;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.llf-chat-refresh-explicit {
  min-height: 30px;
  padding: 7px 10px;
  border-radius: 8px !important;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.llf-chat-refresh-explicit:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.llf-chat-refresh-explicit:disabled {
  opacity: .65;
  cursor: progress;
}

.llf-chat-refresh-explicit.is-loading::before {
  content: "";
}

.llf-chat-scroll {
  max-height: 430px;
  min-height: 220px;
  overflow-y: auto;
  padding: 16px;
  background: #f8fafc;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(100, 116, 139, .12) 1px, transparent 0);
  background-size: 18px 18px;
  scrollbar-width: thin;
}

.llf-chat-scroll::-webkit-scrollbar {
  width: 8px;
}

.llf-chat-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.llf-chat-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 8px;
}

.llf-chat-empty {
  max-width: 280px;
  margin: 38px auto;
  padding: 14px;
  text-align: center;
  color: #64748b;
  background: rgba(255,255,255,.82);
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  font-size: 13px;
}

.llf-chat-bubble {
  width: fit-content;
  max-width: min(76%, 560px);
  padding: 10px 11px 7px;
  border-radius: 13px;
  margin-bottom: 11px;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .08);
  clear: both;
}

.llf-chat-bubble-other {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 5px;
  margin-right: auto;
}

.llf-chat-bubble-me {
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-bottom-right-radius: 5px;
  margin-left: auto;
}

.llf-chat-author {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .01em;
  color: #334155;
  margin-bottom: 5px;
}

.llf-chat-bubble-me .llf-chat-author {
  color: #166534;
}

.llf-chat-content {
  font-size: 14px;
  line-height: 1.48;
  color: #1f2937;
}

.llf-chat-content p {
  margin: 0 0 6px;
}

.llf-chat-content p:last-child {
  margin-bottom: 0;
}

.llf-chat-time {
  margin-top: 6px;
  text-align: right;
  font-size: 10px;
  line-height: 1.1;
  color: #64748b;
}

.llf-chat-image {
  display: block;
  margin-bottom: 8px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
  background: #fff;
}

.llf-chat-image img {
  display: block;
  width: auto;
  max-width: 240px;
  max-height: 240px;
  height: auto;
  object-fit: contain;
}

.llf-chat-form {
  display: grid;
  grid-template-columns: 1fr 42px 46px;
  gap: 8px;
  padding: 11px 12px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  align-items: end;
}

.llf-chat-input-wrap {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  align-items: end;
  min-width: 0;
}

.llf-chat-form textarea,
.llf-chat-input-wrap textarea {
  width: 100%;
  min-height: 42px;
  max-height: 92px;
  resize: vertical;
  border: 1px solid #d1d5db;
  border-radius: 8px !important;
  padding: 11px 13px;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  background: #fff;
}

.llf-chat-form textarea:focus,
.llf-chat-input-wrap textarea:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, .18);
}

.llf-chat-attach {
  width: 42px;
  min-height: 42px;
  border: 1px solid #d1d5db;
  border-radius: 8px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  cursor: pointer;
  font-size: 17px;
}

.llf-chat-attach:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.llf-chat-send {
  width: 46px;
  min-height: 42px;
  border: 0;
  border-radius: 8px !important;
  background: #111827;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.llf-chat-send:hover {
  background: #020617;
}

.llf-chat-send:disabled {
  opacity: .65;
  cursor: progress;
}

.llf-chat-preview {
  grid-column: 1 / -1;
  margin-top: 0;
  border-radius: 8px !important;
}

.llf-chat-error {
  margin: 10px 12px 0;
  padding: 9px 11px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .llf-chat-head {
    align-items: stretch;
    flex-direction: column;
  }

  .llf-chat-head-actions {
    justify-content: flex-start;
  }

  .llf-chat-bubble {
    max-width: 92%;
  }

  .llf-chat-image img {
    max-width: 220px;
    max-height: 220px;
  }

  .llf-chat-form {
    grid-template-columns: 1fr;
  }

  .llf-chat-input-wrap {
    grid-template-columns: 1fr 42px;
  }

  .llf-chat-send {
    width: 100%;
  }
}


/* v0.1.29 — moderación admin de mensajes del chat */
.llf-chat-moderate-delete {
  display: inline-flex;
  margin-top: 7px;
  border: 0;
  background: transparent;
  color: #991b1b;
  font-size: 11px;
  font-weight: 900;
  padding: 0;
  cursor: pointer;
}

.llf-chat-moderate-delete:hover {
  text-decoration: underline;
}

.llf-chat-moderate-delete:disabled {
  opacity: .65;
  cursor: progress;
  text-decoration: none;
}

.llf-chat-bubble-deleted {
  background: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  color: #64748b;
  box-shadow: none;
}

.llf-chat-deleted-text {
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
}


/* v0.1.30 — moderación visible/oculto del chat */
.llf-chat-author-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.llf-chat-author-row .llf-chat-author {
  margin-bottom: 0;
}

.llf-chat-status-hidden {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 2px 6px;
  border-radius: 6px;
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.llf-chat-bubble-hidden {
  opacity: .62;
  filter: grayscale(.2);
  border-style: dashed !important;
}

.llf-chat-moderate-toggle {
  display: inline-flex;
  margin-top: 7px;
  border: 0;
  background: transparent;
  color: #92400e;
  font-size: 11px;
  font-weight: 900;
  padding: 0;
  cursor: pointer;
}

.llf-chat-moderate-toggle:hover {
  text-decoration: underline;
}

.llf-chat-moderate-toggle:disabled {
  opacity: .65;
  cursor: progress;
  text-decoration: none;
}

/* Oculta estilos anteriores de borrado si quedaron por caché CSS */
.llf-chat-moderate-delete,
.llf-chat-bubble-deleted,
.llf-chat-deleted-text {
  display: none !important;
}
