/*
	Theme Name:	XTRA Child
	Theme URI:	https://xtratheme.com/
	Description:Multipurpose Theme
	Author:		Codevz
	Author URI:	https://codevz.com/
	Template:	xtra
	Version:	1.0
*/

/* Taxi Cosy project customizations. */

:root {
	--taxi-cosy-gold: #c7a63d;
	--taxi-cosy-navy: #064c61;
	--taxi-cosy-banner: #003f49;
	--taxi-cosy-whatsapp: #25d366;
}

body {
	padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

.taxi-cosy-contact-banner {
	box-sizing: border-box;
	width: 100%;
	margin: 10px auto 0;
}

.taxi-cosy-contact-banner a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	box-sizing: border-box;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto;
	padding: 8px 20px;
	color: var(--gold, #cba656);
	font-family: Arial, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	text-align: left;
	text-decoration: none;
	background: rgb(0 0 0 / 25%);
	border: 0;
	border-radius: 8px;
	transition: background-color 180ms ease, transform 180ms ease;
}

.taxi-cosy-contact-banner a:hover,
.taxi-cosy-contact-banner a:focus-visible {
	color: var(--gold, #cba656);
	background-color: rgb(0 0 0 / 35%);
	transform: translateY(-1px);
}

.taxi-cosy-contact-banner__icon {
	display: grid;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	place-items: center;
	color: inherit;
	font-size: 30px;
}

.taxi-cosy-simulation-note {
	box-sizing: border-box;
	width: calc(100% - 24px);
	margin: 18px auto 0;
	padding: 14px 18px;
	color: var(--taxi-cosy-navy);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	background: rgb(255 255 255 / 32%);
	border: 1px solid rgb(255 255 255 / 55%);
	border-radius: 10px;
}

.taxi-cosy-floating-actions {
	position: fixed;
	z-index: 99990;
	inset: auto 0 0;
	pointer-events: none;
}

.taxi-cosy-floating-actions a {
	pointer-events: auto;
}

.taxi-cosy-floating-actions__booking {
	position: fixed;
	bottom: calc(24px + env(safe-area-inset-bottom));
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: min(520px, calc(100vw - 210px));
	min-height: 66px;
	padding: 15px 34px;
	color: #fff;
	font-size: clamp(18px, 2vw, 27px);
	font-weight: 700;
	line-height: 1.1;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	background: var(--taxi-cosy-navy);
	border: 2px solid rgb(199 166 61 / 48%);
	border-radius: 999px;
	box-shadow: 0 10px 30px rgb(0 0 0 / 28%);
	transform: translateX(-50%);
	transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.taxi-cosy-floating-actions__booking:hover,
.taxi-cosy-floating-actions__booking:focus-visible {
	color: #fff;
	background: #08637b;
	box-shadow: 0 12px 34px rgb(0 0 0 / 34%);
	transform: translateX(-50%) translateY(-2px);
}

.taxi-cosy-floating-actions__whatsapp {
	position: fixed;
	right: 24px;
	bottom: calc(24px + env(safe-area-inset-bottom));
	display: grid;
	box-sizing: border-box;
	width: 68px;
	height: 68px;
	place-items: center;
	color: #fff;
	font-size: 40px;
	text-decoration: none;
	background: var(--taxi-cosy-whatsapp);
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 8px 22px rgb(0 0 0 / 30%);
	transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.taxi-cosy-floating-actions__whatsapp:hover,
.taxi-cosy-floating-actions__whatsapp:focus-visible {
	color: #fff;
	background: #1ebd59;
	box-shadow: 0 11px 28px rgb(0 0 0 / 36%);
	transform: translateY(-2px) scale(1.03);
}

/* Keep XTRA's back-to-top control directly above the WhatsApp action. */
i.backtotop {
	right: 34px !important;
	bottom: calc(104px + env(safe-area-inset-bottom)) !important;
	width: 48px;
	height: 48px;
	color: var(--taxi-cosy-navy);
	font-size: 18px;
	line-height: 44px;
	background: #fff;
	border: 2px solid var(--taxi-cosy-whatsapp);
	border-radius: 50%;
	box-shadow: 0 7px 20px rgb(0 0 0 / 24%);
}

@media (max-width: 767px) {
	body {
		padding-bottom: calc(88px + env(safe-area-inset-bottom));
	}

	.taxi-cosy-contact-banner {
		margin-top: 8px;
	}

	.taxi-cosy-contact-banner a {
		gap: 9px;
		width: fit-content;
		padding: 5px 10px;
		font-size: 16px;
		border-radius: 8px;
	}

	.taxi-cosy-contact-banner__icon {
		flex-basis: 28px;
		width: 28px;
		height: 28px;
		font-size: 26px;
	}

	.taxi-cosy-simulation-note {
		width: calc(100% - 20px);
		margin-top: 14px;
		padding: 12px 14px;
		font-size: 14px;
		line-height: 1.45;
	}

	.taxi-cosy-floating-actions__booking {
		right: 82px;
		bottom: calc(12px + env(safe-area-inset-bottom));
		left: 12px;
		width: auto;
		min-height: 60px;
		padding: 12px 16px;
		font-size: clamp(15px, 4.5vw, 20px);
		transform: none;
	}

	.taxi-cosy-floating-actions__booking:hover,
	.taxi-cosy-floating-actions__booking:focus-visible {
		transform: translateY(-2px);
	}

	.taxi-cosy-floating-actions__whatsapp {
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom));
		width: 60px;
		height: 60px;
		font-size: 35px;
		border-width: 2px;
	}

	i.backtotop {
		right: 20px !important;
		bottom: calc(82px + env(safe-area-inset-bottom)) !important;
		width: 44px;
		height: 44px;
		line-height: 40px;
	}
}

@media (max-width: 380px) {
	.taxi-cosy-floating-actions__booking {
		right: 76px;
		font-size: 14px;
	}

	.taxi-cosy-floating-actions__whatsapp {
		width: 56px;
		height: 56px;
		font-size: 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.taxi-cosy-contact-banner a,
	.taxi-cosy-floating-actions__booking,
	.taxi-cosy-floating-actions__whatsapp {
		transition: none;
	}
}
