/* Group stylesheet for the button widgets. The button shape itself lives in alovesinh-base.css. */

.alovesinh-button-row {
	--alv-row-align: stretch;
	--alv-row-wrap: wrap;
}

/* 280px is the floor, not the width: below it the two calls to action drop to one per row rather
	than squeezing a phone number and a label onto the same short line. */
.alovesinh-button-row-equal > .alovesinh-btn {
	flex: 1;
	justify-content: center;
	min-width: 280px;
}

@media ( max-width: 560px ) {

	.alovesinh-button-row-equal > .alovesinh-btn {
		flex: 1 1 100%;
		min-width: 0;
	}
}

.alovesinh-social-row {
	--alv-row-align: stretch;
}

/* The touch floor holds even where the icon inside is small. No border unless a block
	asks for one: a transparent 1px default would widen every tile on the site by two pixels. */
.alovesinh-social-row-button {
	width: var( --alv-touch );
	height: var( --alv-touch );
	border: var( --alv-social-border, 0 );
	border-radius: var( --alv-social-radius, var( --alv-r-1 ) );
	color: var( --alv-social-color, var( --alv-c-on-dark ) );
	background: var( --alv-social-bg, color-mix( in srgb, var( --alv-c-white ) 6%, transparent ) );
	transition: background var( --alv-dur-1 ) ease, color var( --alv-dur-1 ) ease,
		border-color var( --alv-dur-1 ) ease;
}

/* 18px is what the source design draws inside the 44px tile; a builder icon carries no size of
	its own and would otherwise fill the whole tile. */
.alovesinh-social-row-button svg,
.alovesinh-social-row-button i {
	width: 18px;
	height: 18px;
	font-size: 18px;
	line-height: 1;
}

.alovesinh-social-row-button:hover {
	color: var( --alv-c-white );
	background: var( --alv-c-brand );
}

/* The share row of an article sits on white, not on the footer's deep ground, so the tile turns
	itself inside out: an outline instead of a wash, and the brand arriving on the edge and the
	mark rather than behind them. */
.alovesinh-social-row-outline .alovesinh-social-row-button {
	--alv-social-border: var( --alv-bd-hairline ) solid var( --alv-c-border );
	--alv-social-radius: var( --alv-r-2 );
	--alv-social-color: var( --alv-c-text-2 );
	--alv-social-bg: var( --alv-c-white );
}

.alovesinh-social-row-outline .alovesinh-social-row-button:hover {
	--alv-social-border: var( --alv-bd-hairline ) solid var( --alv-c-brand );

	color: var( --alv-c-brand-deep );
	background: var( --alv-c-white );
}

.alovesinh-call-block {
	display: flex;
	align-items: center;
	gap: var( --alv-sp-2 );
	padding: var( --alv-sp-2 ) var( --alv-sp-3 );
	border: var( --alv-bd-hairline ) solid var( --alv-call-border,
		color-mix( in srgb, var( --alv-c-white ) 18%, transparent ) );
	border-radius: var( --alv-r-3 );
	background: var( --alv-call-bg, color-mix( in srgb, var( --alv-c-white ) 11%, transparent ) );
	transition: background var( --alv-dur-3 ), border-color var( --alv-dur-3 ), transform var( --alv-dur-3 );
}

.alovesinh-call-block:hover {
	border-color: color-mix( in srgb, var( --alv-c-white ) 30%, transparent );
	background: color-mix( in srgb, var( --alv-c-white ) 14%, transparent );
	transform: translateY( -2px );
}

.alovesinh-call-block svg {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	padding: 11px;
	border-radius: var( --alv-r-circle );
	color: var( --alv-c-white );
	background: var( --alv-c-accent );
}

.alovesinh-call-block-text {
	min-width: 0;
}

.alovesinh-call-block-number {
	display: block;
	font-size: var( --alv-fs-5 );
	font-weight: var( --alv-fw-extrabold );
	letter-spacing: var( --alv-tr-tight-1 );
	color: var( --alv-c-white );
}

.alovesinh-call-block-label {
	font-size: var( --alv-fs-2 );
	color: color-mix( in srgb, var( --alv-c-white ) 70%, transparent );
}

.alovesinh-khuyen-mai-dem-nguoc-noi-dung > .alv-w-button-row {
	margin-top: var( --alv-sp-3 );
}

/* Doubled: Elementor gives every widget in a container min-width 0 from two classes, later in the cascade. */
.alovesinh-khuyen-mai-50-suat-nut.alovesinh-khuyen-mai-50-suat-nut > .alv-w-button {
	flex: 1;
	min-width: 280px;
}

@media ( prefers-reduced-motion: reduce ) {

	.alovesinh-call-block,
	.alovesinh-social-row-button {
		transition: none;
	}

	.alovesinh-call-block:hover {
		transform: none;
	}
}
