/* DG Combo Box — frontend
 * Los estilos se controlan desde la pestaña Estilo del widget "DG Combo".
 * Sin Elementor, podés sobrescribir las variables: .dgcb-box { --dgcb-accent: #0b5a2a; }
 */
.dgcb-box {
	--dgcb-accent: #0b5a2a;
	--dgcb-text: #1f1f1f;
	--dgcb-muted: #4b5563;
	--dgcb-border: #e3e8e3;
	--dgcb-soft: #f0f8f1;
	--dgcb-radius: 16px;
}

/* ---------- Caja ---------- */
.dgcb-box {
	margin: 0 0 1.5em;
	border: 1px solid var(--dgcb-border);
	border-radius: var(--dgcb-radius);
	background: #fff;
	overflow: hidden;
	color: var(--dgcb-text);
}

.dgcb-box__intro {
	margin: 0;
	padding: var(--dgcb-pad-top, 18px) var(--dgcb-pad-right, 20px) 4px var(--dgcb-pad-left, 20px);
	color: var(--dgcb-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

.dgcb-box__list,
.dgcb-box__features {
	list-style: none;
	margin: 0;
	padding: 0;
}

.dgcb-box__list {
	padding: 4px var(--dgcb-pad-right, 20px) var(--dgcb-pad-bottom, 6px) var(--dgcb-pad-left, 20px);
}

.dgcb-box__intro + .dgcb-box__list {
	padding-top: 4px;
}

.dgcb-box > .dgcb-box__list:first-child {
	padding-top: var(--dgcb-pad-top, 6px);
}

.dgcb-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 0;
	margin: 0;
}

.dgcb-item + .dgcb-item {
	border-top: 1px solid var(--dgcb-border);
}

.dgcb-item__thumb {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f3f4f6;
	background: color-mix(in srgb, var(--dgcb-tint, #e5e7eb) 22%, #fff);
}

/* Switch "Fondo con el color de la categoría" apagado en Elementor. */
[class*="dgcb-tint-"]:not(.dgcb-tint-yes) .dgcb-item__thumb {
	background: transparent;
}

.dgcb-item__thumb img.dgcb-item__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	margin: 0;
	border-radius: 0;
	box-shadow: none;
}

.dgcb-item__info {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}

.dgcb-item__title {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
}

.dgcb-item__label {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	line-height: 1.5;
	text-transform: uppercase;
}

.dgcb-item__qty {
	flex: 0 0 auto;
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--dgcb-accent);
	font-variant-numeric: tabular-nums;
}

/* ---------- Características ---------- */
.dgcb-box__features {
	display: grid;
	grid-template-columns: repeat(var(--dgcb-cols, 3), minmax(0, 1fr));
	background: var(--dgcb-soft);
	border-top: 1px solid var(--dgcb-border);
}

.dgcb-feature {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 14px 8px;
	margin: 0;
	text-align: center;
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--dgcb-accent);
}

.dgcb-feature + .dgcb-feature {
	border-left: 1px solid var(--dgcb-border);
}

.dgcb-feature__icon {
	display: inline-flex;
	line-height: 1;
}

.dgcb-feature__icon svg {
	flex: none;
	width: var(--dgcb-icon-size, 22px);
	height: var(--dgcb-icon-size, 22px);
}

.dgcb-feature__icon i {
	font-size: var(--dgcb-icon-size, 22px);
}

/* ---------- Aviso en el editor de Elementor ---------- */
.dgcb-editor-notice {
	margin: 0 0 8px;
	padding: 8px 12px;
	border-left: 3px solid #f0b849;
	background: #fcf9e8;
	color: #50575e;
	font-size: 12px;
}

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
	.dgcb-box { --dgcb-pad-left: 16px; --dgcb-pad-right: 16px; }
	.dgcb-item { gap: 12px; }
	.dgcb-item__thumb { flex-basis: 48px; width: 48px; height: 48px; }
	.dgcb-feature { font-size: 0.78rem; padding: 12px 4px; }
}
