/* Контакти: телефон, месенджери, пошта.

   Viber, Telegram і WhatsApp сидять на тому самому номері, що й телефон,
   тому номер виписаний один раз, а месенджери — це назви з іконками.
   Іконки інлайнові: жодного зовнішнього запиту й жодного іконкового шрифта. */

.mtz-contacts {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mtz-contacts__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 48px;
	padding: 0.5rem 0.875rem;
	border: 1px solid #e4e3df;
	border-radius: 2px;
	text-decoration: none;
	color: inherit;
	line-height: 1.35;
}

.mtz-contacts__link:hover,
.mtz-contacts__link:focus {
	border-color: #17181a;
	color: inherit;
}

.mtz-contacts__icon {
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	fill: currentColor;
	color: #5c5f63;
}

.mtz-contacts__link:hover .mtz-contacts__icon {
	color: #17181a;
}

.mtz-contacts__label {
	flex: none;
	font-family: var(--wp--preset--font-family--mono, ui-monospace, monospace);
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5c5f63;
}

.mtz-contacts__value {
	margin-left: auto;
	font-size: 1rem;
	text-align: right;
	overflow-wrap: anywhere;
}

/* Месенджери — один ряд назв із іконками */

.mtz-contacts__messengers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.mtz-contacts__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 40px;
	padding: 0.4rem 0.75rem;
	border: 1px solid #e4e3df;
	border-radius: 999px;
	text-decoration: none;
	color: inherit;
	font-size: 0.9375rem;
	white-space: nowrap;
}

.mtz-contacts__chip:hover,
.mtz-contacts__chip:focus {
	border-color: #17181a;
	color: inherit;
}

.mtz-contacts__chip .mtz-contacts__icon {
	width: 1rem;
	height: 1rem;
}

/* Підвал: те саме, але без рамок і дрібнішим */

.mtz-contacts--list {
	gap: 0.15rem;
}

.mtz-contacts--list .mtz-contacts__link {
	min-height: 0;
	padding: 0.3rem 0;
	border: 0;
	gap: 0.6rem;
}

.mtz-contacts--list .mtz-contacts__link:hover,
.mtz-contacts--list .mtz-contacts__link:focus {
	border-color: transparent;
}

.mtz-contacts--list .mtz-contacts__value {
	margin-left: 0;
	text-align: left;
	font-size: 0.9375rem;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.mtz-contacts--list .mtz-contacts__label {
	display: none;
}

.mtz-contacts--list .mtz-contacts__messengers {
	margin-top: 0.5rem;
	gap: 0.375rem;
}

.mtz-contacts--list .mtz-contacts__chip {
	min-height: 36px;
	padding: 0.3rem 0.625rem;
	font-size: 0.875rem;
}

.mtz-phone {
	white-space: nowrap;
}

/* На телефоні підпис іде окремим рядком над значенням:
   так значення вирівнюються по лівому краю й нічого не тисне. */
@media (max-width: 599px) {
	.mtz-contacts:not(.mtz-contacts--list) .mtz-contacts__value {
		margin-left: 0;
		text-align: left;
	}

	.mtz-contacts:not(.mtz-contacts--list) .mtz-contacts__label {
		flex: 0 0 5rem;
	}
}

/* Перемикач мови у верхній смужці */

.mtz-lang {
	display: inline-flex;
	align-items: center;
	gap: 0.15rem;
}

.mtz-lang__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	min-height: 1.75rem;
	padding: 0 0.4rem;
	border-radius: 2px;
	text-decoration: none;
	color: inherit;
	font: inherit;
	line-height: 1;
}

.mtz-lang__item:hover,
.mtz-lang__item:focus {
	color: #17181a;
	background: rgba(23, 24, 26, 0.06);
}

.mtz-lang__item.is-current {
	color: #17181a;
	background: rgba(23, 24, 26, 0.08);
	cursor: default;
}

/* На телефоні перемикач має бути таким самим зручним для пальця, як решта */
@media (max-width: 599px) {
	.mtz-lang__item {
		min-width: 2.5rem;
		min-height: 2rem;
	}
}
