/*
 * Sacoșica Cadouri
 * Toate regulile au prefixul .scc și se încarcă doar pe paginile cu shortcode-urile pluginului.
 */

.scc {
	--scc-ink: #2f3a30;
	--scc-text: #4f5f50;
	--scc-muted: #5b6a5c;
	--scc-accent: #a8417a;
	--scc-pink: #ea85c7;
	--scc-pink-soft: #fbe3f1;
	--scc-peach: #f2dad0;
	--scc-cream: #fbf3ef;
	--scc-line: #efe5e0;
	--scc-sage: #899a89;
	--scc-sage-soft: #eef1ee;
	font-family: 'Poppins', sans-serif;
	color: #3d4a3e;
	line-height: 1.6;
	box-sizing: border-box;
}
.scc *,
.scc *::before,
.scc *::after {
	box-sizing: border-box;
}
.scc button {
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1.2;
}
.scc-missing {
	padding: 16px 20px;
	border: 2px dashed #ecb4b9;
	border-radius: 12px;
	background: #fff;
	font-size: 14px;
}

/* ---------- Caseta mică de preț ---------- */

.scc-pricebox {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 2px 10px;
	padding: 18px 22px;
	background: #fff;
	border: 1px solid var(--scc-line);
	border-radius: 18px;
}
.scc-pb-from { font-size: 14px; color: var(--scc-muted); }
.scc-pb-price { font-size: 38px; font-weight: 700; color: var(--scc-accent); line-height: 1; }
.scc-pb-unit { font-size: 15px; color: var(--scc-text); }
.scc-pb-net { flex-basis: 100%; font-size: 14px; color: var(--scc-muted); }

/* ---------- Calculator ---------- */

.scc-calc {
	background: var(--scc-peach);
	border-radius: 24px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.scc-head {
	background: #fff;
	border-radius: 18px;
	padding: 16px 20px;
}
.scc-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 10px;
}
.scc-price strong {
	font-size: 38px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--scc-accent);
}
.scc-unit { font-size: 15px; color: var(--scc-text); }
.scc-net { font-size: 14px; color: var(--scc-muted); margin-top: 2px; }

.scc-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.scc-label {
	font-size: 14px;
	font-weight: 500;
	color: var(--scc-ink);
	margin: 0;
}
.scc-seg {
	display: grid;
	grid-template-columns: repeat(var(--scc-cols, 2), minmax(0, 1fr));
	gap: 6px;
	background: #fff;
	padding: 5px;
	border-radius: 16px;
}
.scc .scc-seg button {
	min-height: 48px;
	padding: 6px 8px;
	border: none;
	border-radius: 12px;
	background: transparent;
	color: var(--scc-text);
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
}
.scc .scc-seg button small {
	font-size: 12px;
	font-weight: 400;
	color: inherit;
	opacity: .85;
}
.scc .scc-seg button:hover {
	background: var(--scc-cream);
	color: var(--scc-ink);
}
.scc .scc-seg button.is-on {
	background: var(--scc-pink);
	color: #2a1f26;
	font-weight: 600;
}
.scc-qty {
	display: flex;
	gap: 8px;
}
.scc .scc-step {
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	padding: 0;
	border-radius: 14px;
	border: 1.5px solid var(--scc-sage);
	background: #fff;
	color: var(--scc-ink);
	font-size: 22px;
	font-weight: 400;
	cursor: pointer;
}
.scc .scc-step:hover,
.scc .scc-step:focus-visible {
	background: var(--scc-sage-soft);
	color: var(--scc-ink);
}
.scc .scc-qty input {
	flex: 1;
	min-width: 0;
	width: auto;
	height: 44px;
	margin: 0;
	padding: 0 8px;
	border-radius: 14px;
	border: 1.5px solid var(--scc-sage);
	background: #fff;
	font-family: inherit;
	font-size: 20px;
	font-weight: 600;
	text-align: center;
	color: var(--scc-ink);
	box-shadow: none;
}

.scc-result {
	background: #fff;
	border-radius: 18px;
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.scc-row,
.scc-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
}
.scc-row > span { font-size: 14px; color: var(--scc-text); }
.scc-row strong { font-size: 16px; font-weight: 600; color: var(--scc-ink); white-space: nowrap; }
.scc-total {
	background: var(--scc-pink-soft);
	border-radius: 12px;
	padding: 10px 14px;
	margin-top: 4px;
}
.scc-total > span { font-size: 14px; font-weight: 500; color: var(--scc-text); }
.scc-total strong { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--scc-accent); white-space: nowrap; }
.scc-total-net {
	text-align: right;
	font-size: 13px;
	color: var(--scc-muted);
	padding: 0 14px;
}
.scc .scc-hint { margin: 0; font-size: 12px; line-height: 1.5; color: var(--scc-muted); }

.scc .scc-cta,
.scc .scc-cta:visited {
	display: block;
	background: var(--scc-ink);
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.4;
	padding: 13px 24px;
	border-radius: 999px;
	text-align: center;
	min-height: 48px;
}
.scc .scc-cta:hover,
.scc .scc-cta:focus-visible {
	background: #1f281f;
	color: #fff;
}

.scc-volume {
	background: rgba(255, 255, 255, .55);
	border: 1.5px dashed var(--scc-sage);
	border-radius: 18px;
	padding: 14px 18px;
	transition: background .2s, border-color .2s;
}
.scc-volume.is-on {
	background: #fff;
	border-style: solid;
	border-color: var(--scc-pink);
}
.scc .scc-volume p {
	margin: 0 0 6px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--scc-text);
}
.scc .scc-volume a {
	font-size: 14px;
	font-weight: 600;
	color: var(--scc-accent);
	text-decoration: none;
}
.scc .scc-volume a:hover { text-decoration: underline; }

.scc button:focus-visible,
.scc a:focus-visible,
.scc input:focus-visible {
	outline: 2px solid var(--scc-accent);
	outline-offset: 2px;
}

@media (max-width: 720px) {
	.scc-calc { padding: 18px; }
	.scc-price strong,
	.scc-pb-price { font-size: 32px; }
}

/* ---------- 1.0.1: calculator compact (aceeași înălțime cu galeria) ---------- */

.scc-calc {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 12px 12px;
	padding: 18px;
	border-radius: 22px;
}
.scc-calc > * { grid-column: 1 / -1; }
.scc-calc:has([data-variant]) > .scc-field:has([data-variant]),
.scc-calc:has([data-variant]) > .scc-field:has(.scc-qty),
.scc-calc:not(:has([data-variant])) > .scc-field:has(.scc-qty),
.scc-calc:not(:has([data-variant])) > .scc-field:has([data-ship]) {
	grid-column: auto;
}
.scc-head {
	background: transparent;
	padding: 0;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 2px 14px;
}
.scc-price strong { font-size: 32px; }
.scc-net { margin-top: 0; font-size: 13px; }
.scc-field { gap: 6px; }
.scc-label { font-size: 13px; }
.scc-seg { padding: 4px; gap: 4px; border-radius: 14px; }
.scc .scc-seg button { min-height: 40px; padding: 4px 6px; font-size: 14px; border-radius: 10px; }
.scc .scc-seg button small { font-size: 11px; }
.scc .scc-step { width: 40px; height: 48px; flex-basis: 40px; border-radius: 12px; }
.scc .scc-qty input { height: 48px; font-size: 18px; border-radius: 12px; }
.scc-qty { gap: 6px; }
.scc-result { padding: 12px 14px; gap: 4px; border-radius: 16px; }
.scc-row > span { font-size: 13px; }
.scc-row strong { font-size: 15px; }
.scc-total { padding: 8px 12px; margin-top: 2px; }
.scc-total strong { font-size: 20px; }
.scc-total-net { font-size: 12px; padding: 0 12px; }
.scc .scc-hint { font-size: 11.5px; line-height: 1.45; margin-top: 2px; }
.scc .scc-cta, .scc .scc-cta:visited { padding: 11px 20px; min-height: 44px; font-size: 15px; }
.scc-volume { padding: 10px 14px; border-radius: 14px; }
.scc .scc-volume p { font-size: 12.5px; margin: 0 0 2px; line-height: 1.45; }
.scc .scc-volume a { font-size: 13px; }

@media (max-width: 420px) {
	.scc-calc { grid-template-columns: minmax(0, 1fr); }
	.scc-calc > .scc-field { grid-column: 1 / -1 !important; }
}
