/**
 * Cloudmaple Product Details - front end
 */

:root {
	--cpd-brand: #0B57A4;
	--cpd-brand-soft: #EAF1FA;
	--cpd-ink: #152238;
	--cpd-muted: #5B6B82;
	--cpd-line: #E3E8EF;
	--cpd-ok: #16A34A;
	--cpd-warn: #D97706;
	--cpd-radius: 10px;
	--cpd-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
}

.cpd-i {
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
}

/* --- summary: subtitle, features, badges --- */

.cpd-subtitle {
	color: var(--cpd-brand);
	font-weight: 600;
	font-size: 1.05em;
	margin: 0 0 1em;
}

.cpd-features {
	list-style: none;
	margin: 0 0 1.4em;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	background: #fff;
}

.cpd-feature {
	display: flex;
	gap: 9px;
	align-items: center;
	font-size: 13px;
	line-height: 1.35;
	color: var(--cpd-ink);
	margin: 0;
}

.cpd-feature .cpd-i {
	color: var(--cpd-brand);
	margin-top: 0;
}

.cpd-badges {
	list-style: none;
	margin: 1.1em 0 0;
	padding: 1em 0 0;
	border-top: 1px solid var(--cpd-line);
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
}

.cpd-badges li {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 13px;
	color: var(--cpd-ink);
	margin: 0;
}

.cpd-badges .cpd-i {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	color: var(--cpd-brand);
}

/* --- buy box additions --- */

.cpd-chosen {
	font-size: 14px;
	color: var(--cpd-ink);
	margin: 0 0 10px;
}

.cpd-chosen-label {
	color: var(--cpd-muted);
}

.cpd-chosen-primary {
	font-weight: 700;
}

.cpd-chosen-secondary {
	color: var(--cpd-muted);
}

.cpd-backorder,
.cpd-availability {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 14px;
	line-height: 1.4;
	margin: 0 0 12px;
}

.cpd-backorder {
	color: var(--cpd-warn);
}

/* Themes nest the stock text in a span; keep it on one line and at one size. */
.cpd-availability > * {
	display: inline;
	font-size: inherit;
	line-height: inherit;
	margin: 0;
	padding: 0;
}

.cpd-availability > *::before {
	content: none;
}

.cpd-backorder::before,
.cpd-availability::before {
	content: "";
	flex: 0 0 17px;
	width: 17px;
	height: 17px;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") center / 17px no-repeat;
	mask: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E") center / 17px no-repeat;
}

.cpd-ppu {
	font-size: 14px;
	color: var(--cpd-muted);
	margin: 2px 0 16px;
}

.cpd-ppu strong {
	color: var(--cpd-ink);
}

.cpd-chosen[hidden],
.cpd-backorder[hidden],
.cpd-ppu[hidden],
.cpd-buybox-empty[hidden] {
	display: none !important;
}

/* --- buy box card --- */

.cpd-buybox {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 24px;
	row-gap: 0;
	align-items: start;
	background: #fff;
	border: 1px solid var(--cpd-line);
	border-radius: var(--cpd-radius);
	box-shadow: var(--cpd-shadow);
	padding: 20px 22px;
	margin: 0 0 18px;
}

/* Nothing chosen yet: a prompt instead of an empty frame. */
.cpd-buybox-empty {
	grid-column: 1 / -1;
	grid-row: 1;
	margin: 0;
	font-size: 14px;
	color: var(--cpd-muted);
}

.cpd-buybox:not(.is-empty) > .cpd-buybox-empty {
	display: none;
}

/* With no prompt configured the card stays out of the way entirely. */
.cpd-buybox--hide-empty.is-empty {
	display: none;
}

/* row 1: chosen variation | price */
.cpd-buybox > .cpd-chosen {
	grid-column: 1;
	grid-row: 1;
	margin: 0;
}

.cpd-buybox > .cpd-price {
	grid-column: 2;
	grid-row: 1;
	text-align: right;
	margin: 0;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--cpd-ink);
}

/* row 2: stock line | price per unit */
.cpd-buybox > .woocommerce-variation {
	grid-column: 1;
	grid-row: 2;
	margin: 10px 0 0;
}

.cpd-buybox > .cpd-ppu {
	grid-column: 2;
	grid-row: 2;
	text-align: right;
	margin: 10px 0 0;
}

/*
 * The delivery note shares row 2 with the stock line. The two never show at the same
 * time — the note only appears when WooCommerce reports no availability text — so the
 * row keeps one height and the card does not jump when the variation changes.
 */
.cpd-buybox > .cpd-backorder {
	grid-column: 1;
	grid-row: 2;
	margin: 10px 0 0;
}

.cpd-buybox.has-availability > .cpd-backorder {
	grid-row: 3;
}

/* row 3: quantity and add to cart */
.cpd-buybox > .woocommerce-variation-add-to-cart {
	grid-column: 1 / -1;
	grid-row: 3;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--cpd-line);
}

.cpd-buybox > .cpd-chosen,
.cpd-buybox > .woocommerce-variation,
.cpd-buybox > .cpd-ppu {
	align-self: start;
}

/* The moved price keeps its tax suffix and sale markup, just larger. */
.cpd-buybox .cpd-price small,
.cpd-buybox .cpd-price .woocommerce-price-suffix {
	display: block;
	font-size: 12.5px;
	font-weight: 400;
	color: var(--cpd-muted);
	margin-top: 2px;
}

.cpd-buybox .cpd-price del {
	display: block;
	font-size: 14px;
	font-weight: 400;
	color: var(--cpd-muted);
	margin: 0 0 2px;
}

.cpd-buybox .cpd-price ins {
	text-decoration: none;
	background: none;
}

/* WooCommerce's own variation price would duplicate the moved one. */
.cpd-buybox.has-cpd-price .woocommerce-variation-price {
	display: none;
}

.cpd-buybox .woocommerce-variation-price .price {
	font-size: 26px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--cpd-ink);
	display: block;
	text-align: right;
}

.cpd-buybox .woocommerce-variation-description {
	grid-column: 1 / -1;
	font-size: 13.5px;
	color: var(--cpd-muted);
}

/* Chosen variation block: tick + heading, variation, product name. */
.cpd-buybox .cpd-chosen {
	display: block;
	font-size: 14px;
}

.cpd-chosen-flag {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
	font-size: 13.5px;
	letter-spacing: .05em;
	color: var(--cpd-ok);
	margin-bottom: 8px;
}

.cpd-chosen-flag .cpd-check {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	fill: var(--cpd-ok);
}

.cpd-chosen-line {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: var(--cpd-ink);
}

.cpd-chosen-line .cpd-chosen-secondary {
	font-weight: 400;
	color: var(--cpd-muted);
}

.cpd-chosen-name {
	display: block;
	font-size: 13px;
	color: var(--cpd-muted);
	margin-top: 2px;
}

/* Variation selector labels, e.g. "1. Izberi volumen". */
.cpd-var-label {
	font-size: 13px;
	font-weight: 700;
	color: #33455E;
	margin: 0 0 8px;
}

.cpd-buybox-card .variations th.label,
.cpd-buybox-card .variations .label label {
	font-size: 13px;
	font-weight: 700;
	color: #33455E;
}

@media (max-width: 600px) {
	.cpd-buybox {
		grid-template-columns: minmax(0, 1fr);
	}

	.cpd-buybox > .cpd-price,
	.cpd-buybox > .cpd-ppu,
	.cpd-buybox > .woocommerce-variation,
	.cpd-buybox > .cpd-backorder {
		grid-column: 1;
		text-align: left;
	}

	.cpd-buybox > .cpd-price {
		grid-row: 2;
		margin-top: 12px;
	}

	.cpd-buybox > .cpd-ppu {
		grid-row: 3;
		margin-top: 2px;
	}

	.cpd-buybox > .woocommerce-variation,
	.cpd-buybox > .cpd-backorder {
		grid-row: 4;
	}

	.cpd-buybox > .woocommerce-variation-add-to-cart {
		grid-row: 5;
	}
}

/* --- wrapper --- */

.cpd {
	clear: both;
	margin: 32px 0 40px;
	color: var(--cpd-ink);
}

.cpd-docs,
.cpd-card,
.cpd-accordion {
	background: #fff;
	border: 1px solid var(--cpd-line);
	border-radius: var(--cpd-radius);
	box-shadow: var(--cpd-shadow);
}

.cpd .cpd-calc {
	margin-bottom: 20px;
}
#cpc-2363-1 {
  padding: 5px;
}
/* --- documents --- */

.cpd-docs {
	padding: 18px 22px;
	margin-bottom: 20px;
}

.cpd-docs h3,
.cpd-card h3 {
	margin: 0 0 14px;
	font-size: 14px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--cpd-brand);
	display: flex;
	gap: 9px;
	align-items: center;
	line-height: 1.3;
}

.cpd-card h3 .cpd-i {
	width: 19px;
	height: 19px;
	flex: 0 0 19px;
}

.cpd-docs-list {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.cpd-doc {
	display: inline-flex;
	gap: 9px;
	align-items: center;
	text-decoration: none;
	font-size: 13.5px;
	font-weight: 600;
	border: 1px solid var(--cpd-line);
	border-radius: 8px;
	padding: 11px 15px;
	color: var(--cpd-ink);
	background: #FBFCFD;
}

.cpd-doc:hover {
	border-color: var(--cpd-brand);
	color: var(--cpd-brand);
}

.cpd-doc .cpd-i {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	color: var(--cpd-brand);
}

.cpd-doc small {
	display: block;
	font-weight: 400;
	color: var(--cpd-muted);
	font-size: 11.5px;
}

/* --- section cards --- */

.cpd-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 20px;
}

.cpd-card {
	padding: 22px;
}

.cpd-card--full,
.cpd-grid .cpd-card:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.cpd-checks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 11px;
}

.cpd-checks li {
	display: flex;
	gap: 10px;
	font-size: 14px;
	margin: 0;
}

.cpd-checks li::before {
	content: "";
	flex: 0 0 17px;
	height: 17px;
	margin-top: 1px;
	border-radius: 50%;
	background-color: var(--cpd-ok);
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
	background-size: 12px;
	background-position: center;
	background-repeat: no-repeat;
}

.cpd-helper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin-top: 18px;
	padding: 12px 18px;
	border: 1.5px solid var(--cpd-brand);
	border-radius: 7px;
	color: var(--cpd-brand);
	background: #fff;
	font-weight: 700;
	font-size: 13.5px;
	text-decoration: none;
}

.cpd-helper:hover {
	background: var(--cpd-brand-soft);
	color: var(--cpd-brand);
}

.cpd-helper .cpd-i {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
}

.cpd-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
	counter-reset: cpd-step;
}

.cpd-steps li {
	display: flex;
	gap: 12px;
	margin: 0;
}

.cpd-steps li::before {
	counter-increment: cpd-step;
	content: counter(cpd-step);
	flex: 0 0 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--cpd-brand-soft);
	color: var(--cpd-brand);
	font-weight: 700;
	font-size: 12.5px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cpd-steps b {
	display: block;
	font-size: 14px;
	margin-bottom: 2px;
}

.cpd-steps p {
	margin: 0;
	font-size: 13px;
	color: var(--cpd-muted);
	line-height: 1.45;
}

.cpd-mats {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.cpd-mat {
	width: 104px;
	text-align: center;
}

.cpd-mat-box {
	height: 76px;
	border: 1px solid var(--cpd-line);
	border-radius: 8px;
	background: #F8FAFC;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 7px;
	color: #64748B;
}

.cpd-mat-box .cpd-i {
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	stroke-width: 1.4;
}

.cpd-mat span {
	font-size: 12.5px;
}

.cpd-note {
	font-size: 13px;
	color: var(--cpd-muted);
	margin: 0 0 14px;
}

/* --- GHS --- */

.cpd-ghs-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.cpd-ghs {
	display: inline-block;
	width: 62px;
	color: #111;
}

.cpd-ghs svg {
	width: 62px;
	height: 62px;
	display: block;
}

.cpd-ghs-frame {
	fill: #fff;
	stroke: #D32F2F;
	stroke-width: 7;
}

.cpd-ghs-img {
	width: 62px;
	height: auto;
	display: block;
}

/* --- accordion --- */

.cpd-accordion {
	overflow: hidden;
}

.cpd-accordion .cpd-panel {
	border-bottom: 1px solid var(--cpd-line);
	margin: 0;
}

.cpd-accordion .cpd-panel:last-child {
	border-bottom: 0;
}

.cpd-accordion summary {
	list-style: none;
	cursor: pointer;
	padding: 20px 24px;
	font-weight: 700;
	font-size: 14.5px;
	text-transform: uppercase;
	letter-spacing: .03em;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.cpd-accordion summary::-webkit-details-marker {
	display: none;
}

.cpd-accordion summary::after {
	content: "+";
	font-size: 22px;
	font-weight: 400;
	color: var(--cpd-brand);
	line-height: 1;
}

.cpd-accordion .cpd-panel[open] > summary {
	color: var(--cpd-brand);
}

.cpd-accordion .cpd-panel[open] > summary::after {
	content: "\2013";
}

.cpd-panel-body {
	padding: 0 24px 24px;
}

.cpd-panel-body > *:first-child {
	margin-top: 0;
}

.cpd-kv-cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 40px;
}

/* Tables: strip whatever the theme paints on tables, keep a single bottom rule. */
.cpd table.cpd-kv,
.cpd table.cpd-matrix {
	width: 100%;
	margin: 0;
	font-size: 13.5px;
	background: transparent !important;
	border: 0 !important;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
	table-layout: auto;
}

.cpd table.cpd-kv tr,
.cpd table.cpd-matrix tr,
.cpd table.cpd-kv tbody tr:nth-child(2n),
.cpd table.cpd-matrix tbody tr:nth-child(2n) {
	background: transparent !important;
	border: 0 !important;
}

.cpd table.cpd-kv th,
.cpd table.cpd-kv td,
.cpd table.cpd-matrix th,
.cpd table.cpd-matrix td {
	background: transparent !important;
	border: 0 !important;
	border-bottom: 1px solid #EDF1F6 !important;
	vertical-align: top;
	text-align: left;
}

.cpd table.cpd-kv td {
	padding: 10px 0;
}

.cpd table.cpd-kv td:first-child {
	color: var(--cpd-muted);
	width: 45%;
	font-weight: 400;
	padding-right: 16px;
}

.cpd table.cpd-kv td:last-child {
	font-weight: 600;
}

.cpd-matrix-wrap {
	overflow-x: auto;
}

.cpd table.cpd-matrix {
	min-width: 620px;
}

.cpd table.cpd-matrix th,
.cpd table.cpd-matrix td {
	padding: 10px 16px 10px 0;
	white-space: nowrap;
}

.cpd table.cpd-matrix thead th {
	color: var(--cpd-brand);
	font-size: 12.5px;
	font-weight: 700;
	border-bottom: 2px solid var(--cpd-brand-soft) !important;
}

.cpd table.cpd-matrix thead th:first-child,
.cpd table.cpd-matrix td:first-child {
	color: var(--cpd-muted);
	white-space: normal;
	font-weight: 400;
}

.cpd table.cpd-matrix td:not(:first-child) {
	font-weight: 600;
}

.cpd table.cpd-matrix .is-selected {
	background: var(--cpd-brand-soft) !important;
}

.cpd-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 12px;
}

.cpd-tag {
	background: #F1F5F9;
	border-radius: 999px;
	padding: 6px 13px;
	font-size: 13px;
}

.cpd-faq > div {
	padding: 14px 0;
	border-bottom: 1px solid #F1F5F9;
}

.cpd-faq > div:last-child {
	border-bottom: 0;
}

.cpd-faq p {
	margin: 0 0 4px;
	font-weight: 600;
	font-size: 14px;
}

.cpd-faq span {
	font-size: 13.5px;
	color: var(--cpd-muted);
	display: block;
}

/* --- responsive --- */

@media (max-width: 900px) {
	.cpd-features {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.cpd-grid,
	.cpd-kv-cols {
		grid-template-columns: 1fr;
	}

	.cpd-accordion summary,
	.cpd-panel-body {
		padding-left: 16px;
		padding-right: 16px;
	}

	.cpd-card,
	.cpd-docs {
		padding: 18px 16px;
	}
}
