/* Telesheds Custom – Contact Buttons
   Uses the site palette variables (with fallbacks) so it follows Bricks colour changes. */

.tsc-contact {
	--tsc-green: var(--primary-green, #24918A);
	--tsc-dark: var(--heading-dark, #261C01);
	--tsc-muted: var(--paragraph-lite, #261C0199);
	--tsc-soft: var(--icon-bg, #C7DED6);
	--tsc-line: #F0F1E9;
	--tsc-hover: var(--sec-bg, #F0F2E9);
	font-family: "Poppins", sans-serif;
}

.tsc-contact,
.tsc-contact * { box-sizing: border-box; }

.tsc-contact a { text-decoration: none; }

.tsc-contact a:focus-visible {
	outline: 2px solid var(--tsc-green);
	outline-offset: 2px;
}

/* ── Product card ─────────────────────────────── */

.tsc-contact--product {
	container-type: inline-size;
	width: 100%;
	padding: 20px 24px 24px;
	border: 1px solid var(--tsc-line);
	border-radius: 14px;
}

.tsc-contact__intro { margin-bottom: 16px; }

.tsc-contact__heading {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.32px;
	color: var(--tsc-dark);
}

.tsc-contact__subtext {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--tsc-muted);
}

.tsc-contact__buttons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.tsc-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid rgba(36, 145, 138, 0.3);
	border-radius: 6px;
	color: var(--tsc-dark);
	transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.tsc-btn:hover {
	border-color: var(--tsc-green);
	background: var(--tsc-hover);
	transform: translateY(-1px);
}

.tsc-btn__icon {
	flex: 0 0 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--tsc-soft);
	color: var(--tsc-green);
	transition: background-color .2s ease, color .2s ease;
}

.tsc-btn:hover .tsc-btn__icon {
	background: var(--tsc-green);
	color: #fff;
}

.tsc-btn__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 2px;
}

.tsc-btn__label {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--tsc-dark);
}

.tsc-btn__detail {
	font-size: 12px;
	line-height: 1.3;
	color: var(--tsc-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Narrow column (phones, or a narrow sidebar): stack the buttons */
@container (max-width: 400px) {
	.tsc-contact__buttons { grid-template-columns: 1fr; }
}

@media (max-width: 478px) {
	.tsc-contact--product { padding: 16px; }
}

/* ── Header call button ───────────────────────── */

.tsc-contact--header {
	display: inline-flex;
	align-items: center;
}

.tsc-call {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--tsc-dark);
}

.tsc-call__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--tsc-green);
	color: #fff;
	transition: background-color .2s ease, transform .2s ease;
}

.tsc-call:hover .tsc-call__icon {
	background: var(--dark-green, #0B2B29);
	transform: scale(1.05);
}

.tsc-call__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	white-space: nowrap;
}

.tsc-call__label {
	font-size: 11px;
	color: var(--tsc-muted);
}

.tsc-call__number {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.2px;
	color: var(--tsc-dark);
}

.tsc-call:hover .tsc-call__number { color: var(--tsc-green); }

/* Below the desktop breakpoint: icon only, to save space next to the menu */
@media (max-width: 1279px) {
	.tsc-call__text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
	.tsc-call__icon { width: 34px; height: 34px; }
}

/* The header icon group (search / account / cart) hides itself under 400px.
   Keep the group visible when it holds the call button, showing just call + cart. */
@media (max-width: 400px) {
	.brxe-div:has(> .tsc-contact--header) { display: flex !important; }
	.brxe-div:has(> .tsc-contact--header) > :not(.tsc-contact):not(.brxe-woocommerce-mini-cart) { display: none !important; }
}
