/* Dulovo Print – Калкулатор */
.dpc {
	--dpc-accent: #32529E;
	--dpc-ink: #16181D;
	--dpc-muted: #4A4D55;
	--dpc-line: #DCDBD5;
	--dpc-soft: #F2F2EF;
	--dpc-selected: #EEF1F8;
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 0 0 20px;
	padding: 20px;
	border: 1px solid var(--dpc-line);
	border-radius: 16px;
	background: #fff;
	color: var(--dpc-ink);
	box-sizing: border-box;
	width: 100%;
}
.dpc *,
.dpc *::before,
.dpc *::after { box-sizing: border-box; }
.dpc p { margin: 0; }
.dpc-step { display: flex; flex-direction: column; gap: 10px; }
.dpc-label {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--dpc-muted);
}
.dpc-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.dpc-field { flex: 1 1 120px; display: flex; flex-direction: column; gap: 6px; }
.dpc-field label { font-size: 14px; font-weight: 600; }
.dpc input[type="number"] {
	width: 100%;
	height: 50px;
	padding: 0 14px;
	border: 1.5px solid #C9C8C1;
	border-radius: 10px;
	font-size: 18px;
	background: #fff;
	color: var(--dpc-ink);
}
.dpc input[type="number"]:focus,
.dpc input[type="file"]:focus-visible { outline: 2px solid var(--dpc-accent); outline-offset: 1px; }
.dpc-x { font-size: 22px; color: #5A5D66; padding-bottom: 12px; }
.dpc-note { font-size: 14px; color: var(--dpc-muted); }
.dpc-note strong { color: var(--dpc-ink); }
.dpc-warn { font-size: 14px; color: #A12A1A; }

.dpc-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.dpc-option { position: relative; display: block; cursor: pointer; margin: 0; }
.dpc-option input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.dpc-option-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 12px 14px;
	border: 2px solid var(--dpc-line);
	border-radius: 12px;
	background: #fff;
}
.dpc-option-body strong { font-size: 16px; }
.dpc-option-body small { font-size: 13px; color: var(--dpc-muted); }
.dpc-option input:checked + .dpc-option-body { border-color: var(--dpc-accent); background: var(--dpc-selected); }
.dpc-option input:focus-visible + .dpc-option-body { outline: 2px solid var(--dpc-accent); outline-offset: 2px; }

.dpc-info { background: var(--dpc-soft); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.dpc-info dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.dpc-info dl > div { background: #fff; border-radius: 10px; padding: 10px 12px; }
.dpc-info dt { font-size: 12px; color: var(--dpc-muted); }
.dpc-info dd { margin: 2px 0 0; font-weight: 700; font-size: 15px; }
.dpc-info p { font-size: 14px; line-height: 1.5; color: var(--dpc-muted); }
.dpc [hidden] { display: none !important; }

.dpc-tiers { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; }
.dpc-tiers th,
.dpc-tiers td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--dpc-line); }
.dpc-tiers th { font-size: 13px; color: var(--dpc-muted); font-weight: 600; }
.dpc-tiers tr.is-active td { background: var(--dpc-selected); font-weight: 700; }

.dpc input[type="file"] {
	width: 100%;
	padding: 12px;
	border: 1.5px dashed #C9C8C1;
	border-radius: 10px;
	background: #FAFAF8;
	font-size: 14px;
}

.dpc-summary { border-top: 1px solid #ECEBE6; padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.dpc-summary-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.dpc-summary-row > span { color: var(--dpc-muted); }
.dpc-total strong { font-size: 26px; color: var(--dpc-accent); }
.dpc-summary small { font-size: 13px; color: var(--dpc-muted); }
.dpc-qty-label { font-weight: 600; margin-right: 8px; }

@media (max-width: 480px) {
	.dpc { padding: 16px; }
	.dpc-x { display: none; }
	.dpc-total strong { font-size: 22px; }
}

.dpc-color-name { text-transform: none; letter-spacing: 0; color: var(--dpc-ink); font-weight: 700; }
.dpc-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.dpc-swatch { position: relative; display: inline-flex; cursor: pointer; margin: 0; }
.dpc-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dpc-swatch-dot {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(22, 24, 29, .25);
	box-shadow: 0 0 0 3px #fff;
	transition: box-shadow .15s ease;
}
.dpc-swatch:hover .dpc-swatch-dot { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #C9C8C1; }
.dpc-swatch input:checked + .dpc-swatch-dot { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--dpc-accent); }
.dpc-swatch input:focus-visible + .dpc-swatch-dot { outline: 2px solid var(--dpc-accent); outline-offset: 6px; }
.dpc-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
