/**
 * Contact blocks shared by the contacts page and the site footer: the
 * Latvia / Lithuania tabs, the icon rows and the company details panel.
 * Loaded on every page (the footer is everywhere); see inc/WDM/contacts-page.php.
 */

:is(.wdm-contacts, .wdm-footer) {
	--wdm-c-green: #7fc241;
	--wdm-c-blue: #005a9a;
	--wdm-c-text: #313131;
	--wdm-c-dark: #161716;
	--wdm-c-label: #434540;
	--wdm-c-panel: #f5f5f7;
	--wdm-c-line: #d9d9d9;
}

:is(.wdm-contacts, .wdm-footer) .wd-list-content a,
:is(.wdm-contacts, .wdm-footer) .wdm-contacts-details a {
	color: inherit;
}

:is(.wdm-contacts, .wdm-footer) .wd-list-content a:hover {
	color: var(--wdm-c-green);
}

:is(.wdm-contacts, .wdm-footer) .wdm-contacts-details p {
	margin: 0;
}

/* Woodmart tabs restyled as the two flag buttons of the design. */

:is(.wdm-contacts, .wdm-footer) .wdm-contacts-tabs {
	gap: 0;
}

:is(.wdm-contacts, .wdm-footer) .wdm-contacts-tabs .wd-tabs-header {
	margin-bottom: 32px;
}

:is(.wdm-contacts, .wdm-footer) .wdm-contacts-tabs .wd-nav-wrapper {
	justify-content: flex-start;
	overflow: visible;
}

:is(.wdm-contacts, .wdm-footer) .wdm-contacts-tabs .wd-nav-tabs {
	display: flex;
	gap: 6px;
	width: 360px;
	max-width: 100%;
	margin: 0;
	padding: 6px;
	border-radius: 11px;
	background: #f6f7f5;
}

:is(.wdm-contacts, .wdm-footer) .wdm-contacts-tabs .wd-nav-tabs > li {
	flex: 1 1 0;
	margin: 0;
}

:is(.wdm-contacts, .wdm-footer) .wdm-contacts-tabs .wd-nav-tabs > li > a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 41px;
	padding: 10px 15px;
	border: 1px solid var(--wdm-c-line);
	border-radius: 5px;
	background: #fff;
	color: var(--wdm-c-text);
	font-weight: 600;
	font-size: 14px;
	line-height: 19px;
	text-transform: none;
}

:is(.wdm-contacts, .wdm-footer) .wdm-contacts-tabs .wd-nav-tabs > li > a::after {
	display: none;
}

:is(.wdm-contacts, .wdm-footer) .wdm-contacts-tabs .wd-nav-tabs > li.wd-active > a {
	border-color: var(--wdm-c-blue);
	background: var(--wdm-c-blue);
	color: #fff;
}

:is(.wdm-contacts, .wdm-footer) .wdm-contacts-tabs .wd-nav-tabs .img-wrapper {
	display: block;
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	margin: 0;
	overflow: hidden;
	border-radius: 50%;
}

:is(.wdm-contacts, .wdm-footer) .wdm-contacts-tabs .wd-nav-tabs .img-wrapper img {
	display: block;
	width: 16px;
	height: 16px;
	object-fit: cover;
}

:is(.wdm-contacts, .wdm-footer) .wdm-contacts-tabs .wd-nav-tabs > li:not(.wd-active) img {
	filter: grayscale(1);
}

:is(.wdm-contacts, .wdm-footer) .wdm-contacts-tabs .wd-nav-tabs .wd-tabs-title {
	color: inherit;
}

:is(.wdm-contacts, .wdm-footer) .wdm-contacts-rows {
	--li-mb: 16px;
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
}

:is(.wdm-contacts, .wdm-footer) .wdm-contacts-rows li {
	align-items: flex-start;
	gap: 12px;
	color: var(--wdm-c-dark);
	font-size: 14px;
	line-height: 20px;
}

:is(.wdm-contacts, .wdm-footer) .wdm-contacts-rows .wd-icon {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin: 0;
}

:is(.wdm-contacts, .wdm-footer) .wdm-contacts-rows .wd-icon img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

:is(.wdm-contacts, .wdm-footer) .wdm-contacts-details {
	align-items: stretch;
	gap: 10px;
	padding: 24px;
	border-radius: 5px;
	background: var(--wdm-c-panel);
}

:is(.wdm-contacts, .wdm-footer) .wdm-contacts-details p {
	color: var(--wdm-c-dark);
	font-size: 13px;
	line-height: 20px;
}

:is(.wdm-contacts, .wdm-footer) .wdm-contacts-details .wdm-contacts-details-title {
	color: var(--wdm-c-green);
	font-weight: 700;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 1px;
	text-transform: uppercase;
}
