/*
 * Daygas components: the shared building blocks every template uses.
 * Loaded on every front-end page after site.css (handle daygas-components).
 * Template files (product.css, archive.css, checkout.css, form.css, product-tools.css, pages.css)
 * compose these classes and add only what is specific to them.
 *
 * Colours: Blocksy palette only. 1 accent #EE7900 · 2 accent hover · 3 body text · 4 near-black
 * 5 borders · 6 light background · 7 lighter background · 8 white.
 * Orange buttons carry near-black text (4): white on #EE7900 is 2.9:1, near-black is 6.4:1.
 */

:root {
	--dg-accent: var(--theme-palette-color-1);
	--dg-accent-hover: var(--theme-palette-color-2);
	/* The accent for small text: palette 2 is 3.2-3.6:1 on the light backgrounds, this is 4.8-5.4:1. */
	--dg-accent-text: color-mix(in srgb, var(--theme-palette-color-2) 75%, var(--theme-palette-color-4));
	--dg-text: var(--theme-palette-color-3);
	--dg-ink: var(--theme-palette-color-4);
	--dg-line: var(--theme-palette-color-5);
	--dg-bg-soft: var(--theme-palette-color-6);
	--dg-bg-softer: var(--theme-palette-color-7);
	--dg-white: var(--theme-palette-color-8);
	--dg-muted: color-mix(in srgb, var(--theme-palette-color-3) 72%, var(--theme-palette-color-8));
	--dg-glow: color-mix(in srgb, var(--theme-palette-color-1) 38%, transparent);

	--dg-space-1: 4px;
	--dg-space-2: 8px;
	--dg-space-3: 12px;
	--dg-space-4: 16px;
	--dg-space-5: 24px;
	--dg-space-6: 32px;
	--dg-space-7: 48px;
	--dg-space-8: 72px;
	--dg-space-9: 104px;

	--dg-fs-xs: 0.8125rem;
	--dg-fs-sm: 0.9375rem;
	--dg-fs-md: 1.0625rem;
	--dg-fs-lg: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
	--dg-fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	--dg-fs-h2: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem);
	--dg-fs-h1: clamp(2rem, 1.5rem + 2.4vw, 3.5rem);

	--dg-wrap: 1240px;
	/*
	 * The theme container (header, logo, product pages): min(88vw phones / 90vw, 1290px), centred.
	 * --dg-gutter is the space beside it, so every .dg-wrap and every edge-to-edge scroller lines up with the logo.
	 * Capped at 72px: wider than that (above ~1430px) a scroller bleeds 72px past the column, not to the window edge.
	 */
	--dg-container: min(var(--theme-container-width-base, 90vw), var(--theme-normal-container-max-width, 1290px));
	--dg-gutter: min(calc((100vw - var(--dg-container)) / 2), 72px);
	--dg-tap: 48px;
	--dg-focus: 0 0 0 3px color-mix(in srgb, var(--theme-palette-color-1) 45%, transparent);
}

/* Layout ------------------------------------------------------------------ */

.dg-wrap {
	box-sizing: border-box;
	width: 100%;
	margin-inline: auto;
	/* Percent padding is of the section width: the content box is the theme container, wherever the section sits. */
	padding-inline: max(0px, calc((100% - var(--dg-container)) / 2));
}

.dg-section {
	padding-block: clamp(var(--dg-space-7), 7vw, var(--dg-space-9));
}

.dg-section--tight {
	padding-block: clamp(var(--dg-space-6), 5vw, var(--dg-space-7));
}

.dg-section--soft {
	background: var(--dg-bg-soft);
}

/* Was the dark band; Daygas asked for white everywhere (20.10.2026). The class stays on the pages and now means
   "a light band set apart from the white around it". */
.dg-section--warm {
	position: relative;
	color: var(--dg-text);
	background: var(--dg-bg-soft);
	isolation: isolate;
}

.dg-grid {
	display: grid;
	gap: var(--dg-space-5);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--dg-col, 260px)), 1fr));
}

/* The gap spaces the cards. The block margin the theme gives every block but the last made those cards 24px shorter
   than the last one in the row and added 24px between stacked cards. */
.dg-grid.dg-grid > * {
	margin-block: 0;
}

.dg-stack > * + * {
	margin-block-start: var(--dg-space-4);
}

/* Type -------------------------------------------------------------------- */

/* The front page tone on every page: sentence case, no rule before it, 5.9:1 on white. */
.dg-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--dg-space-2);
	margin: 0 0 var(--dg-space-3);
	font-size: var(--dg-fs-sm);
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	color: color-mix(in srgb, var(--dg-accent-hover) 70%, var(--dg-ink));
}

.dg-title {
	margin: 0 0 var(--dg-space-4);
	font-size: var(--dg-fs-h2);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.dg-title--xl {
	font-size: var(--dg-fs-h1);
	line-height: 1.04;
	letter-spacing: -0.02em;
}

.dg-lead {
	max-width: 62ch;
	margin: 0 0 var(--dg-space-5);
	font-size: var(--dg-fs-lg);
	line-height: 1.55;
	text-wrap: pretty;
}

.dg-muted {
	color: var(--dg-muted);
}

.dg-small {
	font-size: var(--dg-fs-sm);
}

/* Buttons ----------------------------------------------------------------- */

.dg-btn {
	--_bg: var(--dg-accent);
	--_fg: var(--dg-ink);
	--_bd: var(--dg-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--dg-space-2);
	box-sizing: border-box;
	min-height: var(--dg-tap);
	padding: 0 var(--dg-space-5);
	border: 2px solid var(--_bd);
	border-radius: var(--dg-radius);
	background: var(--_bg);
	color: var(--_fg);
	font: inherit;
	font-size: var(--dg-fs-md);
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 160ms var(--dg-ease), border-color 160ms var(--dg-ease), transform 160ms var(--dg-ease), box-shadow 160ms var(--dg-ease);
}

.dg-btn:hover {
	--_bg: var(--dg-accent-hover);
	--_bd: var(--dg-accent-hover);
	color: var(--_fg);
	transform: translateY(-1px);
	box-shadow: 0 6px 18px color-mix(in srgb, var(--dg-accent) 28%, transparent);
}

.dg-btn:focus-visible {
	outline: none;
	box-shadow: var(--dg-focus);
}

.dg-btn:active {
	transform: translateY(0);
}

.dg-btn--lg {
	min-height: 56px;
	padding-inline: var(--dg-space-6);
	font-size: var(--dg-fs-lg);
}

.dg-btn--block {
	width: 100%;
}

.dg-btn--ghost {
	--_bg: transparent;
	--_fg: var(--dg-ink);
	--_bd: var(--dg-line);
}

.dg-btn--ghost:hover {
	--_bg: var(--dg-bg-soft);
	--_bd: var(--dg-ink);
	box-shadow: none;
}

/* Outline buttons of the block editor (and the Blocksy ghost button): the label takes the accent for small text,
   the border keeps the accent. The accent itself is 2.9:1 on white (0.4.3). */
html .wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link,
html .wp-block-buttons .wp-block-button .wp-block-button__link.is-style-outline,
html .ct-button-ghost {
	--theme-button-text-initial-color: var(--dg-accent-text);
}

.dg-btn--dark {
	--_bg: var(--dg-ink);
	--_fg: var(--dg-white);
	--_bd: var(--dg-ink);
}

.dg-btn--dark:hover {
	--_bg: var(--dg-text);
	--_bd: var(--dg-text);
	box-shadow: none;
}

.dg-btn[disabled],
.dg-btn[aria-disabled="true"] {
	opacity: 0.55;
	pointer-events: none;
}

.dg-link {
	color: var(--dg-ink);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--dg-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.dg-link:hover {
	color: var(--dg-accent-hover);
}

/* Cards, badges, lists ---------------------------------------------------- */

.dg-card {
	position: relative;
	box-sizing: border-box;
	padding: var(--dg-space-5);
	border: 1px solid var(--dg-line);
	border-radius: var(--dg-radius-lg);
	background: var(--dg-white);
	color: var(--dg-text);
}

.dg-card--soft {
	border-color: transparent;
	background: var(--dg-bg-soft);
}

.dg-card--link {
	transition: border-color 160ms var(--dg-ease), box-shadow 160ms var(--dg-ease), transform 160ms var(--dg-ease);
}

.dg-card--link:hover {
	border-color: var(--dg-accent);
	box-shadow: var(--dg-shadow);
	transform: translateY(-2px);
}

.dg-card__title {
	margin: 0 0 var(--dg-space-2);
	font-size: var(--dg-fs-h3);
	font-weight: 700;
	line-height: 1.2;
}

.dg-badge {
	display: inline-flex;
	align-items: center;
	gap: var(--dg-space-1);
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--dg-bg-soft);
	color: var(--dg-ink);
	font-size: var(--dg-fs-xs);
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
}

.dg-badge--accent {
	background: color-mix(in srgb, var(--dg-accent) 16%, var(--dg-white));
	color: var(--dg-ink);
}

.dg-badge--dark {
	background: var(--dg-ink);
	color: var(--dg-white);
}

.dg-checks {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dg-checks li {
	position: relative;
	padding-inline-start: 30px;
	margin-block: var(--dg-space-2);
}

.dg-checks li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.2em;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--dg-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.dg-steps {
	counter-reset: dg-step;
	display: grid;
	gap: var(--dg-space-5);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.dg-steps > li {
	counter-increment: dg-step;
	position: relative;
	padding-top: 56px;
}

.dg-steps > li::before {
	content: counter(dg-step);
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--dg-accent);
	color: var(--dg-ink);
	font-weight: 700;
}

/* Key specs: label/value pairs ------------------------------------------- */

.dg-specs {
	display: grid;
	gap: 0;
	margin: 0;
	border-top: 1px solid var(--dg-line);
}

.dg-specs > div {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: var(--dg-space-4);
	padding: var(--dg-space-3) 0;
	border-bottom: 1px solid var(--dg-line);
}

.dg-specs dt {
	color: var(--dg-muted);
}

.dg-specs dd {
	margin: 0;
	color: var(--dg-ink);
	font-weight: 600;
	text-align: end;
	font-variant-numeric: tabular-nums;
}

/* Tables: scroll inside their own frame on small screens ------------------ */

.dg-table-wrap {
	position: relative;
	overflow-x: auto;
	border: 1px solid var(--dg-line);
	border-radius: var(--dg-radius-lg);
	background: var(--dg-white);
	-webkit-overflow-scrolling: touch;
}

.dg-table {
	width: 100%;
	min-width: 640px;
	margin: 0;
	border-collapse: collapse;
	font-size: var(--dg-fs-sm);
	font-variant-numeric: tabular-nums;
}

.dg-table th,
.dg-table td {
	padding: var(--dg-space-3) var(--dg-space-4);
	border: 0;
	border-bottom: 1px solid var(--dg-line);
	text-align: start;
	vertical-align: middle;
	white-space: nowrap;
}

.dg-table thead th {
	position: sticky;
	top: 0;
	background: var(--dg-bg-soft);
	color: var(--dg-ink);
	font-size: var(--dg-fs-xs);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.dg-table tbody tr:last-child > * {
	border-bottom: 0;
}

.dg-table tbody tr:hover {
	background: var(--dg-bg-softer);
}

.dg-table tr.is-current {
	background: color-mix(in srgb, var(--dg-accent) 10%, var(--dg-white));
	box-shadow: inset 4px 0 0 var(--dg-accent);
}

.dg-table th:first-child,
.dg-table td:first-child {
	position: sticky;
	inset-inline-start: 0;
	z-index: 1;
	background: inherit;
}

.dg-table tbody td:first-child {
	background: var(--dg-white);
	font-weight: 600;
}

.dg-table tbody tr.is-current td:first-child {
	background: color-mix(in srgb, var(--dg-accent) 10%, var(--dg-white));
}

/* FAQ accordion: native details/summary, no JS --------------------------- */

.dg-faq {
	border-top: 1px solid var(--dg-line);
}

.dg-faq details {
	border-bottom: 1px solid var(--dg-line);
}

.dg-faq summary {
	position: relative;
	display: block;
	min-height: var(--dg-tap);
	padding: var(--dg-space-4) 44px var(--dg-space-4) 0;
	color: var(--dg-ink);
	font-size: var(--dg-fs-md);
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
}

.dg-faq summary::-webkit-details-marker {
	display: none;
}

.dg-faq summary::after {
	content: "";
	position: absolute;
	inset-inline-end: 4px;
	top: 50%;
	width: 24px;
	height: 24px;
	margin-top: -12px;
	border-radius: 50%;
	background: var(--dg-bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
	transition: transform 200ms var(--dg-ease);
}

.dg-faq details[open] summary::after {
	transform: rotate(45deg);
}

.dg-faq summary:focus-visible {
	outline: none;
	box-shadow: var(--dg-focus);
	border-radius: 6px;
}

.dg-faq details > :not(summary) {
	margin: 0 0 var(--dg-space-4);
	max-width: 70ch;
	color: var(--dg-text);
}

/* Form primitives (quote form, hourly cost, checkout extras) -------------- */

.dg-field {
	display: grid;
	gap: 6px;
	margin: 0;
	min-width: 0;
}

.dg-field > label,
.dg-field > legend,
.dg-label {
	padding: 0;
	color: var(--dg-ink);
	font-size: var(--dg-fs-sm);
	font-weight: 600;
}

.dg-field .dg-req {
	color: var(--dg-accent-hover);
}

.dg-input,
.dg-select,
.dg-textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: var(--dg-tap);
	padding: 10px 14px;
	border: 1.5px solid var(--dg-line);
	border-radius: var(--dg-radius);
	background: var(--dg-white);
	color: var(--dg-ink);
	font: inherit;
	font-size: 16px; /* 16px keeps iOS from zooming into the field */
	transition: border-color 140ms var(--dg-ease), box-shadow 140ms var(--dg-ease);
}

.dg-textarea {
	min-height: 112px;
	resize: vertical;
}

.dg-input:focus,
.dg-select:focus,
.dg-textarea:focus {
	border-color: var(--dg-accent);
	outline: none;
	box-shadow: var(--dg-focus);
}

.dg-field.is-invalid .dg-input,
.dg-field.is-invalid .dg-select,
.dg-field.is-invalid .dg-textarea {
	border-color: #b42318;
}

.dg-field__error {
	color: #b42318;
	font-size: var(--dg-fs-xs);
	font-weight: 600;
}

.dg-field__hint {
	color: var(--dg-muted);
	font-size: var(--dg-fs-xs);
}

.dg-input-unit {
	position: relative;
}

.dg-input-unit .dg-input {
	padding-inline-end: 52px;
}

.dg-input-unit > span {
	position: absolute;
	inset-inline-end: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--dg-muted);
	font-size: var(--dg-fs-sm);
	pointer-events: none;
}

/* Choice chips: radio/checkbox inputs styled as pills. */
.dg-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--dg-space-2);
	margin: 0;
	padding: 0;
	border: 0;
}

.dg-chip {
	position: relative;
	display: inline-flex;
}

.dg-chip input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}

.dg-chip span {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 var(--dg-space-4);
	border: 1.5px solid var(--dg-line);
	border-radius: 999px;
	background: var(--dg-white);
	color: var(--dg-ink);
	font-size: var(--dg-fs-sm);
	font-weight: 500;
	transition: border-color 140ms var(--dg-ease), background-color 140ms var(--dg-ease);
}

.dg-chip input:hover + span {
	border-color: var(--dg-ink);
}

.dg-chip input:checked + span {
	border-color: var(--dg-accent);
	background: color-mix(in srgb, var(--dg-accent) 14%, var(--dg-white));
	font-weight: 600;
}

.dg-chip input:focus-visible + span {
	box-shadow: var(--dg-focus);
}

.dg-check {
	display: flex;
	align-items: flex-start;
	gap: var(--dg-space-3);
	font-size: var(--dg-fs-sm);
	line-height: 1.45;
}

.dg-check input {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 1px 0 0;
	accent-color: var(--dg-accent);
}

/* Notices ------------------------------------------------------------------ */

.dg-note {
	display: flex;
	gap: var(--dg-space-3);
	padding: var(--dg-space-4);
	border-radius: var(--dg-radius);
	background: var(--dg-bg-soft);
	color: var(--dg-text);
	font-size: var(--dg-fs-sm);
	line-height: 1.5;
}

.dg-note--accent {
	background: color-mix(in srgb, var(--dg-accent) 12%, var(--dg-white));
	box-shadow: inset 4px 0 0 var(--dg-accent);
}

/* Pagination: Blocksy draws every link 40px tall (41px wide for a number). Touch size is 44px, and a number is at
   least 44px wide. Here and not in archive.css: the site search shows the same pagination without that file. */

nav.ct-pagination .page-numbers {
	min-width: 44px;
	height: 44px;
}

/* Sticky call to action bar on phones ------------------------------------- */

.dg-sticky-cta {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 60;
	display: none;
	align-items: center;
	gap: var(--dg-space-3);
	padding: var(--dg-space-3) var(--dg-gutter) calc(var(--dg-space-3) + env(safe-area-inset-bottom));
	border-top: 1px solid var(--dg-line);
	background: color-mix(in srgb, var(--dg-white) 94%, transparent);
	backdrop-filter: blur(10px);
	box-shadow: 0 -8px 24px rgb(0 0 0 / 0.08);
	transform: translateY(110%);
	transition: transform 240ms var(--dg-ease);
}

.dg-sticky-cta.is-visible {
	transform: translateY(0);
}

.dg-sticky-cta__meta {
	min-width: 0;
	flex: 1 1 auto;
	font-size: var(--dg-fs-sm);
	line-height: 1.3;
}

.dg-sticky-cta__meta strong {
	display: block;
	overflow: hidden;
	color: var(--dg-ink);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dg-sticky-cta .dg-btn {
	flex: none;
}

@media (max-width: 999px) {
	.dg-sticky-cta {
		display: flex;
	}

	body.dg-has-sticky-cta {
		padding-bottom: 76px;
	}
}

/* Screen reader only */
.dg-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;
}

/* Contacts (inc/contact.php, 21.10.2026) ------------------------------------------------------------------
   Round marks as on daygas.bg. WhatsApp and Viber carry their own colours so they are recognised at a glance;
   the glyph is white on both (4.5:1 and more on #128C4A and #665CAC). */

.dg-contacts {
	display: flex;
	flex-wrap: wrap;
	gap: var(--dg-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.dg-contacts__item {
	margin: 0;
}

.dg-contact {
	--_mark-bg: var(--dg-accent);
	--_mark-fg: var(--dg-ink);
	display: inline-flex;
	align-items: center;
	gap: var(--dg-space-3);
	color: var(--dg-ink);
	text-decoration: none;
}

.dg-contact--whatsapp {
	--_mark-bg: #128c4a;
	--_mark-fg: #fff;
}

.dg-contact--viber {
	--_mark-bg: #665cac;
	--_mark-fg: #fff;
}

.dg-contact__mark {
	display: grid;
	flex: none;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--_mark-bg);
	color: var(--_mark-fg);
	transition: transform 160ms var(--dg-ease);
}

.dg-contact__mark .dg-icon {
	width: 20px;
	height: 20px;
}

.dg-contact:hover .dg-contact__mark {
	transform: translateY(-1px);
}

.dg-contact:focus-visible {
	outline: none;
	border-radius: var(--dg-radius);
	box-shadow: var(--dg-focus);
}

/* Cards: label over the value, the way daygas.bg lists them. */
.dg-contacts--cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
	gap: var(--dg-space-3);
}

.dg-contact--card {
	box-sizing: border-box;
	width: 100%;
	min-height: 64px;
	padding: var(--dg-space-3) var(--dg-space-4);
	border: 1px solid var(--dg-line);
	border-radius: var(--dg-radius);
	background: var(--dg-white);
}

.dg-contact--card:hover {
	border-color: var(--dg-accent);
	color: var(--dg-ink);
}

.dg-contact__text {
	display: grid;
	gap: 2px;
	min-width: 0;
	line-height: 1.2;
}

.dg-contact__text small {
	color: var(--dg-muted);
	font-size: var(--dg-fs-xs);
	font-weight: 500;
}

.dg-contact__text strong {
	overflow-wrap: anywhere;
	font-size: var(--dg-fs-md);
	font-weight: 600;
}

/* Row: small pills (quick actions). */
.dg-contact--pill {
	box-sizing: border-box;
	min-height: 44px;
	padding: 4px 14px 4px 4px;
	border: 1px solid var(--dg-line);
	border-radius: 999px;
	background: var(--dg-white);
	font-size: var(--dg-fs-sm);
	font-weight: 600;
	gap: var(--dg-space-2);
}

.dg-contact--pill .dg-contact__mark {
	width: 34px;
	height: 34px;
}

.dg-contact--pill .dg-contact__mark .dg-icon {
	width: 18px;
	height: 18px;
}

.dg-contact--pill:hover {
	border-color: var(--dg-ink);
	color: var(--dg-ink);
}

.dg-contacts__item--quote .dg-btn {
	min-height: 44px;
	padding-inline: var(--dg-space-4);
	font-size: var(--dg-fs-sm);
}

/* Icons only (header, footer). A 44px target around a 34px mark. */
.dg-contact--icon {
	justify-content: center;
	width: 44px;
	height: 44px;
}

.dg-contact--icon .dg-contact__mark {
	width: 34px;
	height: 34px;
}

.dg-contact--icon .dg-contact__mark .dg-icon {
	width: 18px;
	height: 18px;
}

.dg-contacts--icons {
	gap: 0;
}

.dg-contacts-box__title {
	margin: 0 0 var(--dg-space-3);
	color: var(--dg-ink);
	font-weight: 600;
}

/* Footer and merchant cards: the messenger icons under the address, then the corporate site. */
.dg-contacts--merchant {
	margin-block-start: var(--dg-space-2);
	margin-inline-start: -5px;
}

.dg-corporate {
	display: inline-flex;
	align-items: center;
	gap: var(--dg-space-2);
	margin-block-start: var(--dg-space-3);
}

.dg-corporate--footer {
	box-sizing: border-box;
	min-height: 44px;
	padding: 0 var(--dg-space-4);
	border: 1px solid var(--dg-line);
	border-radius: var(--dg-radius);
	color: var(--dg-ink);
	font-weight: 600;
	text-decoration: none;
}

.dg-corporate--footer:hover {
	border-color: var(--dg-ink);
	color: var(--dg-ink);
}

/* Solutions by facility type (inc/solutions.php, 21.10.2026) --------------------------------------------- */

.dg-solboxes {
	display: flex;
	flex-wrap: wrap;
	gap: var(--dg-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.dg-solbox {
	margin: 0;
}

.dg-solbox > a,
.dg-solbox:not(:has(a)) {
	display: inline-flex;
	align-items: center;
	gap: var(--dg-space-2);
	box-sizing: border-box;
	min-height: 44px;
	padding: 6px 12px 6px 8px;
	border: 1px solid var(--dg-line);
	border-radius: var(--dg-radius);
	background: var(--dg-white);
	color: var(--dg-ink);
	font-size: var(--dg-fs-sm);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.dg-solbox > a:hover {
	border-color: var(--dg-accent);
	color: var(--dg-ink);
}

.dg-solbox > a:focus-visible {
	outline: none;
	box-shadow: var(--dg-focus);
}

.dg-solbox__icon {
	box-sizing: border-box;
	width: 30px;
	height: 30px;
	padding: 5px;
	border-radius: 8px;
	background: color-mix(in srgb, var(--dg-accent) 16%, var(--dg-white));
	color: var(--dg-accent-text);
}

.dg-fit {
	display: grid;
	gap: var(--dg-space-3);
	margin-block: var(--dg-space-4) 0;
}

.dg-fit__title {
	margin: 0;
	color: var(--dg-ink);
	font-size: var(--dg-fs-sm);
	font-weight: 600;
}

.dg-fit .dg-contacts {
	margin-block-start: var(--dg-space-1);
}

.dg-solutions {
	display: grid;
	gap: var(--dg-space-5);
}

.dg-solutions__head {
	display: grid;
	gap: var(--dg-space-3);
	max-width: 760px;
}

.dg-solutions__head > * {
	margin: 0;
}

.dg-solcards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
	gap: var(--dg-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.dg-solcard {
	display: grid;
	align-content: start;
	gap: var(--dg-space-3);
	margin: 0;
	padding: var(--dg-space-5);
	border: 1px solid var(--dg-line);
	border-radius: var(--dg-radius-lg);
	background: var(--dg-white);
}

.dg-solcard.is-current {
	border-color: var(--dg-accent);
	box-shadow: inset 0 3px 0 var(--dg-accent);
}

.dg-solcard__title {
	margin: 0;
	font-size: var(--dg-fs-lg);
	line-height: 1.25;
}

.dg-solcard__title a {
	color: var(--dg-ink);
	text-decoration: underline;
	text-decoration-color: var(--dg-accent);
	text-underline-offset: 4px;
}

.dg-solcard__here {
	margin: 0;
	color: var(--dg-accent-text);
	font-size: var(--dg-fs-xs);
	font-weight: 600;
}

.dg-solcard .dg-solboxes {
	flex-direction: column;
}

.dg-solcard .dg-solbox > a,
.dg-solcard .dg-solbox:not(:has(a)) {
	width: 100%;
}

.dg-solutions__actions {
	display: grid;
	gap: var(--dg-space-3);
	padding: var(--dg-space-5);
	border-radius: var(--dg-radius-lg);
	background: var(--dg-bg-soft);
}

.dg-solutions__ask {
	margin: 0;
	color: var(--dg-ink);
	font-weight: 600;
}

/* Inside page content the link rules underline the group boxes. */
.dg-solboxes .dg-solbox > a {
	text-decoration: none;
}

/* Phones, under the facility groups: the quote button across the row, then WhatsApp, Viber and email as three
   equal tiles. */
@media (max-width: 689.98px) {
	:is(.dg-fit, .dg-solutions__actions) ul.dg-contacts--row {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	:is(.dg-fit, .dg-solutions__actions) ul.dg-contacts--row > .dg-contacts__item--quote {
		grid-column: 1 / -1;
	}

	:is(.dg-fit, .dg-solutions__actions) ul.dg-contacts--row .dg-contacts__item--quote .dg-btn {
		justify-content: center;
		width: 100%;
	}

	:is(.dg-fit, .dg-solutions__actions) ul.dg-contacts--row a.dg-contact--pill {
		flex-direction: column;
		justify-content: center;
		gap: 4px;
		width: 100%;
		padding: 8px 4px;
		border-radius: var(--dg-radius);
		font-size: var(--dg-fs-xs);
	}
}

/* CE certificate on the product page and the payment note on the checkout (21.10.2026) ------------------- */

.dg-pp-ce {
	display: flex;
	align-items: flex-start;
	gap: var(--dg-space-4);
	padding: var(--dg-space-5);
	border: 1px solid var(--dg-line);
	border-radius: var(--dg-radius-lg);
	background: var(--dg-white);
}

.dg-pp-ce__mark {
	display: grid;
	flex: none;
	place-items: center;
	width: 64px;
	height: 64px;
	border: 2px solid var(--dg-ink);
	border-radius: var(--dg-radius);
	color: var(--dg-ink);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.dg-pp-ce__body {
	display: grid;
	gap: var(--dg-space-3);
	min-width: 0;
}

.dg-pp-ce__body > p {
	margin: 0;
}

.dg-pp-doc--soon .dg-pp-doc__box {
	display: flex;
	align-items: center;
	gap: var(--dg-space-3);
	box-sizing: border-box;
	height: 100%;
	min-height: 64px;
	padding: var(--dg-space-3) var(--dg-space-4);
	border: 1px dashed var(--dg-line);
	border-radius: var(--dg-radius);
	background: var(--dg-bg-softer);
	color: var(--dg-ink);
}

.dg-securepay {
	display: flex;
	align-items: flex-start;
	gap: var(--dg-space-3);
	margin: 0 0 var(--dg-space-4);
	padding: var(--dg-space-3) var(--dg-space-4);
	border: 1px solid color-mix(in srgb, #128c4a 35%, var(--dg-line));
	border-radius: var(--dg-radius);
	background: color-mix(in srgb, #128c4a 6%, var(--dg-white));
}

.dg-securepay__icon {
	flex: none;
	color: #128c4a;
}

.dg-securepay__text {
	display: grid;
	gap: 2px;
	font-size: var(--dg-fs-sm);
	line-height: 1.45;
}

.dg-securepay__text strong {
	color: var(--dg-ink);
}

/* Quote page (21.10.2026): the contact box among the points beside the form. */
.dg-formsec__side .dg-contacts-box {
	padding: var(--dg-space-4);
	border: 1px solid var(--dg-line);
	border-radius: var(--dg-radius-lg);
	background: var(--dg-white);
}
