/* Shared by the site and block editor. Colours and spacing are editable in the widget. */
#inner-wrap:has(+ .tpw-telegram-area) > .content-area {
	margin-block-end: 0;
}

.site-container.tpw-telegram-area {
	width: 100%;
	margin-block: clamp(24px, 3vw, 36px) clamp(32px, 4vw, 48px);
}

.single-tpw_shop .site-container.tpw-telegram-area {
	margin-block-start: 0;
}

.tpw-telegram-area .widget {
	margin: 0;
}

.tpw-telegram-card .tpw-telegram-copy {
	flex: 1 1 30rem;
	flex-wrap: nowrap;
	min-width: 0;
	gap: 16px;
}

.tpw-telegram-card .tpw-telegram-phone {
	flex: none;
	width: 56px;
	margin: 0;
}

.tpw-telegram-card .tpw-telegram-phone img {
	display: block;
	width: 100%;
	height: auto;
}

.tpw-telegram-card .wp-block-heading {
	text-wrap: balance;
}

.tpw-telegram-card .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	max-width: 100%;
	text-decoration: none;
}

.tpw-telegram-card .wp-block-button__link::before {
	content: "";
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	background: url("icons/telegram.svg") center / contain no-repeat;
}

.tpw-telegram-card .wp-block-button__link:hover {
	filter: brightness(1.18);
}

.tpw-telegram-card .wp-block-button__link:focus-visible {
	outline: 3px solid #805b16;
	outline-offset: 4px;
}

@media (max-width: 600px) {
	.tpw-telegram-card .tpw-telegram-copy {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.tpw-telegram-card .tpw-telegram-phone {
		width: 42px;
	}

	.tpw-telegram-card .wp-block-buttons,
	.tpw-telegram-card .wp-block-button,
	.tpw-telegram-card .wp-block-button__link {
		width: 100%;
	}
}
