/**
 * dcl-liste: butoanele de pe carduri, paginile listelor, bara favoritelor, tabelul de comparare,
 * formularele de abonare (lista de așteptare, alerta de preț) și filele din cont.
 * Culorile vin din variabilele temei (--c-*), cu valori de rezervă când tema lipsește.
 */

/* --- butoanele de pe cardul de produs --- */

.dcl-lb-g-icon {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dcl-lb {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--c-line, rgba(0, 0, 0, .12));
	background: #fff;
	color: var(--c-ink, #1b1b1b);
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}

.dcl-lb-g-icon .dcl-lb {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

.dcl-lb svg {
	width: 19px;
	height: 19px;
	flex: 0 0 auto;
}

.dcl-lb:hover {
	border-color: var(--c-accent, #2f5d33);
	color: var(--c-accent-text, #2f5d33);
}

.dcl-lb.is-on {
	background: var(--c-accent, #2f5d33);
	border-color: var(--c-accent, #2f5d33);
	color: var(--c-on-accent, #fff);
}

.dcl-lb.is-on svg {
	fill: currentColor;
}

.dcl-lb:focus-visible {
	outline: 2px solid var(--c-accent, #2f5d33);
	outline-offset: 2px;
}

/* cu text, pe pagina produsului */
.dcl-lb-g-text {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.dcl-lb-g-text .dcl-lb {
	padding: 9px 16px;
	border-radius: var(--c-radius, 8px);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
}

/* numărul de produse, pe linkurile care duc spre listă */
.dcl-lb-c {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	margin-left: 6px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--c-accent, #2f5d33);
	color: var(--c-on-accent, #fff);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	box-sizing: border-box;
}

/* mesajul de listă plină */
.dcl-lb-msg {
	position: fixed;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%);
	z-index: 9999;
	max-width: calc(100% - 40px);
	padding: 12px 20px;
	border-radius: var(--c-radius, 8px);
	background: var(--c-ink, #1b1b1b);
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .22);
}

/* --- cardul scris de page builder: butoanele stau peste poză --- */

.dclb-pcard-w {
	position: relative;
	display: flex;
}

.dclb-pcard-w .product-card {
	flex: 1;
}

/* --- paginile listelor --- */

.dcl-lista-gol {
	margin: 0;
	padding: 28px 0 8px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--c-muted, #6b6b6b);
}

.dcl-lista.se-incarca .dcl-lista-c {
	opacity: .45;
}

/* tabelul de comparare */
.dcl-cmp-w {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.dcl-cmp {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.dcl-cmp th,
.dcl-cmp td {
	padding: 14px 16px;
	border: 1px solid var(--c-line, rgba(0, 0, 0, .12));
	text-align: left;
	vertical-align: top;
	line-height: 1.5;
}

.dcl-cmp th[scope="row"] {
	width: 170px;
	min-width: 140px;
	background: var(--c-panel, #faf8f4);
	font-size: 14px;
	font-weight: 600;
	color: var(--c-muted, #6b6b6b);
}

.dcl-cmp td {
	min-width: 200px;
	/* contextul butoanelor din capul tabelului */
	position: relative;
}

.dcl-cmp-p {
	position: relative;
	display: block;
	text-decoration: none;
	color: inherit;
}

.dcl-cmp-p img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 6px;
	margin: 0 0 10px;
}

.dcl-cmp-n {
	display: block;
	font-weight: 600;
}

.dcl-cmp-p:hover .dcl-cmp-n {
	color: var(--c-accent-text, #2f5d33);
}

.dcl-cmp-pret {
	font-weight: 700;
	font-size: 17px;
}

.dcl-cmp-pret del {
	font-weight: 400;
	font-size: 14px;
	color: var(--c-muted, #6b6b6b);
	margin-right: 6px;
}

.dcl-cmp-pret ins {
	text-decoration: none;
}

.dcl-cmp .dcl-cmp-cos {
	display: block;
	text-align: center;
}

/* pe celula produsului, butoanele stau în colț, ca pe card */
.dcl-cmp td .dcl-lb-g-icon {
	top: 8px;
	right: 8px;
}

@media (max-width: 767px) {
	.dcl-lb-g-icon {
		top: 14px;
		right: 14px;
	}

	.dcl-lb-g-icon .dcl-lb {
		width: 32px;
		height: 32px;
	}

	.dcl-cmp th[scope="row"] {
		width: 120px;
		min-width: 110px;
		padding: 12px;
		font-size: 13px;
	}

	.dcl-cmp td {
		min-width: 160px;
		padding: 12px;
	}
}

/* --- starea în lucru a unui buton --- */

.dcl-lb[aria-busy="true"] {
	cursor: progress;
	opacity: .7;
}

/* --- bara listei: alegerea listei, acțiuni, partajare --- */

.dcl-lista-bara {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin: 0 0 24px;
	padding: 14px 16px;
	border: 1px solid var(--c-line, rgba(0, 0, 0, .12));
	border-radius: var(--c-radius, 8px);
	background: var(--c-panel, #faf8f4);
}

.dcl-lista-titlu,
.dcl-lista-nota {
	margin: 0;
	font-weight: 600;
}

.dcl-lista-nota {
	font-weight: 400;
	color: var(--c-muted, #6b6b6b);
}

.dcl-lista-alege-l {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.dcl-lista-act {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-left: auto;
}

.dcl-lista-btn {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--c-line, rgba(0, 0, 0, .12));
	border-radius: var(--c-radius, 8px);
	background: #fff;
	color: var(--c-ink, #1b1b1b);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	list-style: none;
}

.dcl-lista-btn::-webkit-details-marker {
	display: none;
}

.dcl-lista-btn:hover {
	border-color: var(--c-accent, #2f5d33);
	color: var(--c-accent-text, #2f5d33);
}

.dcl-lista-d {
	position: relative;
}

.dcl-lista-d[open] > .dcl-lista-btn {
	border-color: var(--c-accent, #2f5d33);
}

.dcl-lista-f {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.dcl-lista-f input[type="text"] {
	min-width: 0;
	flex: 1 1 180px;
}

.dcl-lista-publica-l,
.dcl-cmp-dif-l {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	font-size: 14px;
	cursor: pointer;
}

.dcl-lista-link-w {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 1 1 320px;
}

.dcl-lista-link {
	min-width: 0;
	flex: 1 1 200px;
	font-size: 13px;
}

.dcl-lista-mesaj {
	flex: 1 0 100%;
	margin: 0;
	font-size: 14px;
	color: var(--c-accent-text, #2f5d33);
}

.dcl-lista-mesaj:empty {
	display: none;
}

/* sub cardurile din lista proprie */
.dcl-lista-card {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.dcl-lista-card select {
	min-width: 0;
	flex: 1 1 120px;
	font-size: 13px;
}

.dcl-lista-card .dcl-lista-btn {
	min-height: 36px;
	font-size: 13px;
}

/* comparare: „Arată doar diferențele” */
.dcl-cmp-doar-dif tr[data-egal="1"] {
	display: none;
}

/* --- formularele de abonare de pe pagina produsului --- */

.dcl-ab-g {
	display: grid;
	gap: 12px;
	margin: 18px 0 0;
}

.dcl-ab-g [hidden] {
	display: none !important;
}

.dcl-ab-w,
.dcl-ab-d {
	padding: 16px;
	border: 1px solid var(--c-line, rgba(0, 0, 0, .12));
	border-radius: var(--c-radius, 8px);
	background: var(--c-panel, #faf8f4);
}

.dcl-ab-d > summary {
	min-height: 24px;
	font-weight: 600;
	cursor: pointer;
}

.dcl-ab-d[open] > summary {
	margin-bottom: 12px;
}

.dcl-ab {
	display: grid;
	gap: 10px;
	margin: 0;
}

.dcl-ab-titlu {
	margin: 0;
	font-weight: 700;
}

.dcl-ab-rand {
	display: grid;
	gap: 4px;
}

.dcl-ab-rand label {
	font-size: 14px;
	font-weight: 600;
}

.dcl-ab-rand input {
	width: 100%;
	box-sizing: border-box;
}

.dcl-ab-acord {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	line-height: 1.5;
}

.dcl-ab-acord input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
}

.dcl-ab-info {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--c-muted, #6b6b6b);
}

.dcl-ab-trimite {
	justify-self: start;
}

.dcl-ab-mesaj {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
}

.dcl-ab-mesaj:empty {
	display: none;
}

.dcl-ab.e-ok .dcl-ab-mesaj {
	color: var(--c-accent-text, #2f5d33);
}

.dcl-ab.e-eroare .dcl-ab-mesaj {
	color: #a4161a;
}

/* --- filele din cont --- */

.dcl-liste-alerte {
	margin: 0 0 24px;
	padding: 14px 16px;
	border: 1px solid var(--c-line, rgba(0, 0, 0, .12));
	border-radius: var(--c-radius, 8px);
}

.dcl-liste-alerte label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 600;
	cursor: pointer;
}

.dcl-liste-alerte input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
}

.dcl-liste-alerte-info,
.dcl-liste-alerte-mesaj {
	margin: 6px 0 0 26px;
	font-size: 13px;
	color: var(--c-muted, #6b6b6b);
}

.dcl-liste-alerte-mesaj:empty {
	display: none;
}

.dcl-ab-fila .button {
	white-space: nowrap;
}

.dcl-ab-fila-gol {
	color: var(--c-muted, #6b6b6b);
}

/* --- pagina linkului din mail (confirmare, renunțare) --- */

.dcl-liste-link {
	max-width: 640px;
	padding-top: 40px;
	padding-bottom: 60px;
}

.dcl-liste-link-produs {
	font-weight: 600;
}

/* --- focus vizibil pe toate comenzile listelor --- */

.dcl-lista-btn:focus-visible,
.dcl-lista-d > summary:focus-visible,
.dcl-ab-d > summary:focus-visible,
.dcl-lista-bara input:focus-visible,
.dcl-lista-bara select:focus-visible,
.dcl-lista-card select:focus-visible,
.dcl-ab input:focus-visible,
.dcl-ab button:focus-visible,
.dcl-liste-alerte input:focus-visible,
.dcl-cmp-w:focus-visible {
	outline: 2px solid var(--c-accent, #2f5d33);
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.dcl-lista-act {
		margin-left: 0;
		width: 100%;
	}

	.dcl-lista-alege-l,
	.dcl-lista-alege-l select {
		width: 100%;
	}

	.dcl-lb-msg {
		bottom: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dcl-lb,
	.dcl-lista-btn {
		transition: none;
	}
}
