/*
Theme Name: VinFast Child
Theme URI: https://vinfast.test
Description: Child theme for the VinFast WordPress implementation.
Author: VinFast Project
Version: 1.1.0
Template: wp_base
Text Domain: vezaconslt
*/

/* WordPress shell integration layered after the compiled design system. */
body.admin-bar #masthead {
	top: 2rem;
}

.page-template-elementor-full-width main {
	padding-bottom: 0;
}

.vinfast-content-area {
	min-height: 40vh;
}

#vinfast-primary-menu .sub-menu {
	pointer-events: none;
}

@media (min-width: 53.125rem) {
	#masthead nav[aria-label="Menu chính"] { margin-left: auto; }
	#masthead > div > .flex.items-center { margin-left: 0.625rem; }
}

#vinfast-primary-menu .menu-item-has-children:hover > .sub-menu,
#vinfast-primary-menu .menu-item-has-children:focus-within > .sub-menu {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

#vinfast-mobile-menu-list .sub-menu {
	display: none;
}

body.vinfast-scroll-locked {
	overscroll-behavior: none;
	touch-action: none;
}

body.vinfast-scroll-locked [data-overlay-scroll] {
	overscroll-behavior: contain;
	touch-action: pan-y;
}

#mobile-menu {
	pointer-events: none;
}

#mobile-menu.is-open {
	pointer-events: auto;
}

.vinfast-mobile-menu__backdrop {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.vinfast-mobile-menu__panel {
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	will-change: transform;
}

#mobile-menu.is-open .vinfast-mobile-menu__backdrop {
	opacity: 1;
}

#mobile-menu.is-open .vinfast-mobile-menu__panel {
	transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
	.vinfast-mobile-menu__backdrop,
	.vinfast-mobile-menu__panel {
		transition: none;
	}
}

.vinfast-site .custom-logo-link {
	display: block;
}

.vinfast-shell-form .wpcf7-form p,
.vinfast-shell-form .wpcf7-response-output {
	margin: 0;
}

.vinfast-shell-form .wpcf7-spinner {
	margin: 0.5rem;
}

.vinfast-cf7 label {
	display: block;
	font-weight: 600;
}

.vinfast-cf7 input:not([type="submit"]),
.vinfast-cf7 select,
.vinfast-cf7 textarea {
	display: block;
	width: 100%;
	margin-top: 0.4375rem;
	background: #fff;
	color: #20242b;
}

.vinfast-cf7--popup {
	display: grid;
	gap: 1.125rem;
}

.vinfast-cf7--popup label {
	color: #20242b;
	font-size: 0.8125rem;
	text-transform: uppercase;
}

.vinfast-cf7--popup input:not([type="submit"]),
.vinfast-cf7--popup select,
.vinfast-cf7--popup textarea {
	padding: 0.5625rem 0;
	border: 0;
	border-bottom: 0.0625rem solid #888;
	outline: none;
}

.vinfast-cf7--popup textarea {
	min-height: 5.25rem;
	max-height: 11.25rem;
	resize: vertical;
}

.vinfast-cf7--popup input:focus,
.vinfast-cf7--popup select:focus,
.vinfast-cf7--popup textarea:focus {
	border-color: #1464f4;
}

.vinfast-cf7__submit {
	text-align: center;
}

.vinfast-cf7__submit input[type="submit"] {
	padding: 0.625rem 1.5rem;
	border: 0;
	border-radius: 62.4375rem;
	background: #1464f4;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.vinfast-shell-form--footer {
	max-width: 45rem;
	margin-bottom: 1.25rem;
}

.vinfast-cf7--footer {
	display: flex;
	flex-wrap: wrap;
}

.vinfast-cf7--footer label {
	min-width: 0;
	flex: 1;
}

.vinfast-cf7--footer input:not([type="submit"]) {
	height: 3.125rem;
	margin: 0;
	padding: 0 1rem;
	border: 0;
}

.vinfast-cf7--footer input[type="submit"] {
	height: 3.125rem;
	padding: 0 1.5rem;
	border: 0;
	border-radius: 0.25rem;
	background: #222;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

.vinfast-form-fallback {
	display: inline-flex;
	padding: 0.625rem 1.125rem;
	background: #1464f4;
	color: #fff;
	font-weight: 700;
}

.wpcf7 form .wpcf7-response-output {
	clear: both;
	padding: 0.625rem 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
	html:focus-within {
		scroll-behavior: auto;
	}
}

@media screen and (max-width: 48.875rem) {
	body.admin-bar #masthead {
		top: 2.875rem;
	}
}

@media screen and (max-width: 37.5rem) {
	body.admin-bar #masthead {
		top: 0;
	}

	.vinfast-cf7--footer label,
	.vinfast-cf7--footer input[type="submit"] {
		width: 100%;
		flex-basis: 100%;
	}
}
