/* WooGram 1.4 – versión compacta (texto 12px por defecto) */
.woogram {
	--wg: var(--woogram-color, #262626);
	--wg-fs: var(--woogram-fs, 12px);
	--wg-muted: #737373;
	--wg-border: #e2e8f0;
	--wg-like: #ef4444;
	--wg-views: #475569;
	--wg-link: #0095f6;
	max-width: 100%;
	margin: 14px 0;
	color: var(--wg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.woogram *,
.woogram *::before,
.woogram *::after { box-sizing: border-box; }

/* Tamaño de texto unificado: se fuerza para que el tema no lo agrande ni lo ponga en mayúsculas */
.woogram,
.woogram div,
.woogram span,
.woogram strong,
.woogram p,
.woogram li,
.woogram a,
.woogram button,
.woogram input {
	font-size: var(--wg-fs) !important;
	line-height: 1.4 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

/* ---------- Barra de estadísticas ---------- */
.woogram-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 10px;
	margin: 0 0 10px;
	padding: 8px 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}
.woogram-stats,
.woogram-actions {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 14px;
	min-width: 0;
}
.woogram-actions { gap: 12px; margin-left: auto; }

.woogram .woogram-btn,
.woogram .woogram-views {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 0;
	padding: 0;
	min-width: 0;
	min-height: 0;
	width: auto;
	height: auto;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--wg);
	font-weight: 600;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
}
.woogram .woogram-btn { cursor: pointer; }
.woogram .woogram-btn:hover,
.woogram .woogram-btn:focus { background: none; color: var(--wg); box-shadow: none; outline: none; }
.woogram .woogram-btn:hover svg { opacity: .65; }
.woogram .woogram-btn svg,
.woogram .woogram-views svg {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: opacity .15s, transform .15s;
}
.woogram .woogram-like,
.woogram .woogram-like:hover,
.woogram .woogram-like:focus { color: var(--wg-like); }
.woogram .woogram-like.is-liked svg { fill: var(--wg-like); stroke: var(--wg-like); animation: woogram-pop .3s ease; }
.woogram .woogram-views { color: var(--wg-views); }
.woogram .woogram-label { font-weight: 600; }
@keyframes woogram-pop {
	0% { transform: scale(1); }
	40% { transform: scale(1.25); }
	100% { transform: scale(1); }
}

/* Responsive: se adapta al ancho de su propia columna (clases wg-w* puestas por woogram.js) */
.woogram.wg-w340 .woogram-bar { padding: 7px 10px; gap: 8px; }
.woogram.wg-w340 .woogram-stats { gap: 10px; }
.woogram.wg-w340 .woogram-actions { gap: 10px; }
.woogram.wg-w340 .woogram-share .woogram-label { display: none; }
.woogram.wg-w250 .woogram-views .woogram-label { display: none; }

/* ---------- Menú compartir ---------- */
.woogram-share-wrap { position: relative; display: flex; align-items: center; align-self: center; margin: 0; padding: 0; line-height: 0; }

/* Alineación vertical: todos los botones de la barra miden lo mismo y quedan centrados */
.woogram .woogram-bar .woogram-btn,
.woogram .woogram-bar .woogram-views {
	align-self: center;
	height: 24px;
	line-height: 1 !important;
	vertical-align: middle;
}
.woogram .woogram-bar .woogram-btn svg,
.woogram .woogram-bar .woogram-views svg {
	display: block;
	margin: 0;
}
.woogram .woogram-ccount:empty { display: none; }
.woogram-menu {
	position: absolute;
	z-index: 20;
	top: calc(100% + 8px);
	right: 0;
	min-width: 170px;
	max-width: calc(100vw - 24px);
	padding: 4px;
	background: #fff;
	border: 1px solid var(--wg-border);
	border-radius: 10px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .14);
}
.woogram-menu[hidden] { display: none; }
.woogram .woogram-menu a,
.woogram .woogram-menu button {
	display: flex;
	align-items: center;
	width: 100%;
	margin: 0;
	padding: 7px 10px;
	min-height: 0;
	background: none;
	border: 0;
	border-radius: 6px;
	box-shadow: none;
	color: var(--wg);
	font-weight: 400;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}
.woogram .woogram-menu a:hover,
.woogram .woogram-menu button:hover { background: #f2f2f2; color: var(--wg); }
.woogram .woogram-menu [hidden] { display: none; }
.woogram .woogram-net::before {
	content: "";
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	margin-right: 9px;
	border-radius: 50%;
	background: #999;
}
.woogram .woogram-net[data-net="whatsapp"]::before { background: #25d366; }
.woogram .woogram-net[data-net="instagram"]::before { background: linear-gradient(45deg, #feda75, #d62976 55%, #4f5bd5); }
.woogram .woogram-net[data-net="facebook"]::before { background: #1877f2; }
.woogram .woogram-net[data-net="tiktok"]::before { background: #111; box-shadow: 1.5px 0 0 #25f4ee, -1.5px 0 0 #fe2c55; }
.woogram .woogram-net[data-net="telegram"]::before { background: #26a5e4; }
.woogram .woogram-net[data-net="x"]::before { background: #000; }

/* ---------- Comentarios ---------- */
.woogram-list,
.woogram-replies { list-style: none; margin: 0; padding: 0; }
.woogram-item {
	display: flex;
	gap: 9px;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
}
.woogram-item::before,
.woogram-item::marker { content: none; }
.woogram-item.is-hidden { display: none; }
.woogram-replies { margin-top: 8px; }
.woogram-item.is-reply { margin-bottom: 8px; }
.woogram .woogram-avatar {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	max-width: 28px;
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
	background: #efefef;
}
.woogram-item.is-reply .woogram-avatar { width: 22px; height: 22px; max-width: 22px; flex-basis: 22px; }
.woogram-body { flex: 1; min-width: 0; }
.woogram-text { word-wrap: break-word; overflow-wrap: anywhere; }
.woogram-nick { font-weight: 600; }
.woogram-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 2px;
	color: var(--wg-muted);
}
.woogram .woogram-meta span,
.woogram .woogram-meta button { font-size: calc(var(--wg-fs) - 1px) !important; }
.woogram .woogram-meta button {
	margin: 0;
	padding: 0;
	min-height: 0;
	background: none;
	border: 0;
	box-shadow: none;
	color: var(--wg-muted);
	font-weight: 600;
	cursor: pointer;
}
.woogram .woogram-meta button:hover { color: var(--wg); background: none; }
.woogram .woogram-clike.is-liked { color: var(--wg-like); }
.woogram .woogram-more {
	margin: 0 0 10px;
	padding: 0;
	min-height: 0;
	background: none;
	border: 0;
	box-shadow: none;
	color: var(--wg-muted);
	cursor: pointer;
}
.woogram .woogram-more:hover { color: var(--wg); background: none; }
.woogram-empty { margin: 2px 0 10px; color: var(--wg-muted); }

/* ---------- Formulario ---------- */
.woogram-form {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	padding-top: 9px;
	border-top: 1px solid var(--wg-border);
}
.woogram-field { flex: 1; min-width: 0; }
.woogram .woogram-input {
	display: block;
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 5px 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: var(--wg);
	outline: none;
}
.woogram .woogram-input::placeholder { color: var(--wg-muted); }
.woogram .woogram-submit {
	margin: 0;
	padding: 0;
	min-height: 0;
	width: auto;
	background: none;
	border: 0;
	box-shadow: none;
	color: var(--wg-link);
	font-weight: 600;
	cursor: pointer;
}
.woogram .woogram-submit:hover { color: #00376b; background: none; }
.woogram .woogram-submit:disabled { opacity: .4; cursor: default; }
.woogram-replying {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--wg-muted);
}
.woogram-replying[hidden] { display: none; }
.woogram .woogram-cancel-reply {
	margin: 0;
	padding: 0 4px;
	min-height: 0;
	background: none;
	border: 0;
	box-shadow: none;
	color: var(--wg-muted);
	cursor: pointer;
}

/* ---------- Avisos ---------- */
.woogram-notice {
	margin: 0 0 8px;
	padding: 6px 10px;
	background: #f5f5f5;
	border-radius: 8px;
	color: var(--wg);
}
.woogram-notice[hidden] { display: none; }
.woogram-login {
	margin: 0;
	padding-top: 9px;
	border-top: 1px solid var(--wg-border);
	color: var(--wg-muted);
}
.woogram-login a { color: var(--wg-link); text-decoration: none; }
.woogram-login a:hover { text-decoration: underline; }

/* ---------- Contador de vendidos [woogram_producto] ---------- */
.woogram-sold {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--woogram-color, #262626);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: var(--woogram-fs, 12px) !important;
	line-height: 1.4 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	white-space: nowrap;
}
.woogram-sold strong { font-weight: 700; font-size: inherit !important; }
.woogram-sold--hint {
	padding: 4px 8px;
	background: #fffbeb;
	border: 1px dashed #d97706;
	border-radius: 6px;
	color: #92400e;
	white-space: normal;
}

/* ---------- v1.6: barra en cuadrícula con fila de vendidos ---------- */
.woogram .woogram-bar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 10px;
}
.woogram .woogram-share .woogram-label { display: none; }
.woogram .woogram-soldrow {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 7px;
	padding-top: 7px;
	border-top: 1px solid var(--wg-border);
	color: var(--wg-views);
	white-space: nowrap;
}
.woogram .woogram-soldrow svg {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.woogram .woogram-soldrow strong { font-weight: 700; }

/* ---------- v1.8: eliminar comentario y barra en columnas estrechas ---------- */
.woogram .woogram-meta .woogram-delete:hover { color: var(--wg-like); }
.woogram .woogram-meta .woogram-delete:disabled { opacity: .5; cursor: default; }

.woogram.wg-w275 .woogram-views .woogram-label { display: none; }
.woogram.wg-w275 .woogram-stats { gap: 10px; }
.woogram.wg-w215 .woogram-like .woogram-label { display: none; }
