/*
 * Casca das páginas com cabeçalho e rodapé próprios (checkout e Minha conta): topo preto com
 * logo, corpo com cartões e formulários, rodapé curto. Depende de hw-base.css.
 */

/*
 * O select2 posiciona a lista a partir do ancestral posicionado. Sem isto ele usa o <html>, que
 * com a barra de admin tem margem no topo: a lista abria 32px acima, por cima do campo, e
 * fechava ao soltar o clique.
 */
.hw-shell-page {
	position: relative;
}

.hw-shell {
	background: var(--hw-soft);
}

.hw-shell :is(td, th, dt, dd, legend, textarea, small, strong, abbr, bdi, address) {
	font-family: 'Montserrat', sans-serif;
}

/* ---------- Topo: logo, ajuda, título e etapas (o cabeçalho do site não aparece aqui) ---------- */

.hw .hw-shell__top {
	margin-top: 0;
	padding: 32px 0 56px;
	border-radius: 0 0 72px 72px;
}

.hw .hw-shell__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	margin-bottom: 48px;
}

.hw .hw-shell__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

.hw .hw-shell__lead {
	max-width: 640px;
	margin: 14px 0 0;
	color: var(--hw-soft);
	font-size: 16px;
	font-weight: 300;
}

.hw .hw-shell__logo {
	display: inline-flex;
}

.hw .hw-shell__logo img {
	width: auto;
	height: 60px;
}

.hw .hw-shell__top .hw-hero__title {
	max-width: none;
	font-size: clamp(30px, 4vw, 48px);
}

.hw .hw-steps {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin: 32px 0 0;
	padding: 0;
	color: #fff;
	font-size: 14px;
	list-style: none;
}

.hw .hw-steps__item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.hw .hw-steps__item + .hw-steps__item::before {
	content: "";
	width: 32px;
	height: 1px;
	margin-right: 4px;
	background: #6B6B66;
}

.hw .hw-steps__number {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: 13px;
	line-height: 1;
}

.hw .hw-steps__item--done .hw-steps__number {
	color: var(--hw-lime);
}

.hw .hw-steps__item--current {
	font-weight: 600;
}

.hw .hw-steps__item--current .hw-steps__number {
	border-color: var(--hw-lime);
	background: var(--hw-lime);
	color: var(--hw-ink);
}

.hw .hw-steps__item--next {
	color: #C9C9C3;
}

.hw .hw-steps a {
	color: #fff;
	text-decoration: underline;
}

.hw .hw-shell__help {
	margin: 0;
	color: #fff;
	font-size: 14px;
	font-weight: 300;
}

.hw .hw-shell__help a {
	color: var(--hw-lime);
	font-weight: 500;
}

.hw .hw-shell__body {
	padding-top: 40px;
	padding-bottom: 88px;
}

/* ---------- Cartões ---------- */

.hw.hw-shell .hw-card {
	margin: 0 0 24px;
	padding: 32px;
	border-radius: 24px;
	background: #fff;
}

.hw.hw-shell .hw-card__title,
.hw.hw-shell .clementina-restaurants__title {
	margin: 0 0 24px;
	color: var(--hw-ink);
	font-size: 28px;
	font-weight: 300;
	line-height: 1.15;
	letter-spacing: 0;
	text-transform: none;
}

.hw.hw-shell .hw-card__title:has(+ .hw-card__intro) {
	margin-bottom: 6px;
}

.hw.hw-shell .hw-card__intro {
	margin: 0 0 24px;
	color: var(--hw-muted);
	font-size: 14px;
}

/* ---------- Campos ---------- */

.hw.hw-shell .hw-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 20px;
}

.hw.hw-shell .hw-fields .form-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}

.hw.hw-shell .hw-fields .form-row::before,
.hw.hw-shell .hw-fields .form-row::after {
	display: none;
}

/* Linha de um campo oculto (país): não ocupa lugar na grade. */
.hw.hw-shell .hw-fields .form-row-hidden {
	display: none;
}

.hw.hw-shell .hw-fields :is(.form-row-wide, .notes) {
	grid-column: 1 / -1;
}

.hw.hw-shell :is(.form-row, .wc_payment_method) label {
	text-transform: none;
}

.hw.hw-shell .form-row label {
	margin: 0;
	color: var(--hw-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
}

.hw.hw-shell .form-row .required {
	color: #B3261E;
	text-decoration: none;
}

.hw.hw-shell .form-row .optional {
	color: var(--hw-muted);
	font-weight: 400;
}

.hw.hw-shell .woocommerce-input-wrapper {
	display: block;
	width: 100%;
}

.hw.hw-shell :is(input:not([type="radio"], [type="checkbox"], [type="submit"], [type="hidden"]), textarea, select) {
	width: 100%;
	min-height: 48px;
	height: auto;
	margin: 0;
	padding: 10px 14px !important;
	border: 1px solid #85857E;
	border-radius: 8px;
	background: #fff;
	box-shadow: none;
	color: var(--hw-ink);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
}

.hw.hw-shell textarea {
	min-height: 112px;
}

.hw.hw-shell :is(input, textarea, select):focus-visible {
	outline: 3px solid var(--hw-lime);
	outline-offset: 2px;
}

.hw.hw-shell ::placeholder {
	color: #76766F;
	opacity: 1;
}

/*
 * Listas suspensas: o script do tema pai aplica select2 em todo <select>. O "CSS adicional" do
 * site (Personalizar) pinta a borda do select2 e todo <bdi> (preços) com a cor primária, com
 * !important, em qualquer página; por isso as regras abaixo também precisam de !important.
 */
.hw.hw-shell .select2-container {
	width: 100% !important;
	height: auto;
	line-height: 1.4;
}

.hw.hw-shell .select2-container .select2-selection--single {
	height: 48px !important;
	border: 1px solid #85857E !important;
	border-radius: 8px !important;
	background: #fff !important;
}

.hw.hw-shell .select2-container .select2-selection--single .select2-selection__rendered {
	height: 46px !important;
	padding: 0 40px 0 14px !important;
	color: var(--hw-ink) !important;
	font-size: 16px;
	line-height: 46px !important;
}

.hw.hw-shell .select2-container .select2-selection--single .select2-selection__arrow {
	top: 1px !important;
	right: 8px !important;
	height: 46px !important;
}

.hw.hw-shell .select2-container--focus .select2-selection--single,
.hw.hw-shell .select2-container--open .select2-selection--single {
	outline: 3px solid var(--hw-lime);
	outline-offset: 2px;
}

.hw.hw-shell bdi {
	color: inherit !important;
}

.hw.hw-shell .woocommerce-form__label-for-checkbox {
	display: flex !important;
	align-items: flex-start;
	gap: 12px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.45;
	cursor: pointer;
}

.hw.hw-shell .woocommerce-form__label-for-checkbox input[type="checkbox"],
.hw.hw-shell #payment #terms {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--hw-lime);
}

/* ---------- Avisos, login ---------- */

.hw.hw-shell :is(.woocommerce-error, .woocommerce-info, .woocommerce-message) {
	margin: 0 0 24px;
	padding: 16px 20px;
	border: 0;
	border-left: 4px solid var(--hw-lime);
	border-radius: 12px;
	background: #fff;
	color: var(--hw-ink);
	font-size: 15px;
	line-height: 1.45;
	list-style: none;
}

.hw.hw-shell :is(.woocommerce-error, .woocommerce-info, .woocommerce-message)::before {
	display: none;
}

.hw.hw-shell .woocommerce-error {
	border-left-color: #B3261E;
}

.hw.hw-shell .woocommerce-error li + li {
	margin-top: 6px;
}

.hw.hw-shell :is(.woocommerce-error, .woocommerce-info, .woocommerce-message) a {
	color: var(--hw-ink);
	text-decoration: underline;
}

.hw.hw-shell form.woocommerce-form-login {
	margin: 0 0 24px;
	padding: 32px;
	border: 0;
	border-radius: 24px;
	background: #fff;
	box-shadow: none;
}

.hw.hw-shell form.woocommerce-form-login > p:first-child {
	margin: 0 0 24px;
	color: var(--hw-muted);
	font-size: 15px;
	line-height: 1.45;
}

.hw.hw-shell form.woocommerce-form-login .form-row {
	margin: 0 0 16px;
	padding: 0;
	float: none;
	width: auto;
}

/*
 * O tema deixa as linhas em flex: o rótulo da senha ia para o lado do campo. No login (checkout e Minha conta),
 * fora a linha do botão, e em qualquer linha com campo de senha, o rótulo fica acima.
 */
.hw.hw-shell form.woocommerce-form-login .form-row:not(:has(.woocommerce-form-login__submit)),
.hw.hw-shell form .form-row:has(.password-input) {
	display: block;
}

.hw.hw-shell form.woocommerce-form-login label {
	display: block;
	margin: 0 0 8px;
	color: var(--hw-ink);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
}

.hw.hw-shell form.woocommerce-form-login label .required {
	color: #B3261E;
	text-decoration: none;
}

.hw.hw-shell form.woocommerce-form-login input.input-text {
	width: 100%;
	height: 48px !important;
	margin: 0;
	padding: 10px 14px !important;
	border: 1px solid #85857E !important;
	border-radius: 8px !important;
	background: #fff !important;
	box-shadow: none;
	color: var(--hw-ink);
	font-size: 16px;
}

.hw.hw-shell form.woocommerce-form-login input.input-text:focus-visible {
	outline: 3px solid var(--hw-lime);
	outline-offset: 2px;
}

/* Lembre-me e Entrar na mesma linha; o link de senha perdida abaixo. */
.hw.hw-shell form.woocommerce-form-login .woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 24px 0 0;
	color: var(--hw-ink);
	font-size: 15px;
	font-weight: 400;
	cursor: pointer;
}

.hw.hw-shell form.woocommerce-form-login .woocommerce-form-login__rememberme input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--hw-lime);
}

/*
 * Botão de mostrar senha: o script do WooCommerce envolve o campo em span.password-input e põe
 * o botão dentro. Ele fica sobre a ponta direita do campo, sem fundo nem borda próprios.
 */
.hw.hw-shell .password-input {
	display: block;
	position: relative;
}

.hw.hw-shell .password-input input.input-text {
	padding-right: 52px !important;
}

.hw.hw-shell .form-row button.show-password-input {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 48px;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 8px 8px 0 !important;
	background: transparent !important;
	color: var(--hw-ink) !important;
	box-shadow: none;
	transform: none;
	cursor: pointer;
}

.hw.hw-shell .form-row button.show-password-input:hover {
	background: transparent !important;
	color: var(--hw-lime) !important;
}

.hw.hw-shell .form-row button.show-password-input::before,
.hw.hw-shell .form-row button.show-password-input::after {
	position: static;
	margin: 0;
	transform: none;
}

.hw.hw-shell form.woocommerce-form-login p.lost_password {
	margin: 16px 0 0;
	font-size: 14px;
}

.hw.hw-shell form.woocommerce-form-login p.lost_password a {
	color: var(--hw-muted) !important;
	text-decoration: underline;
}

.hw.hw-shell form.woocommerce-form-login button.woocommerce-form-login__submit,
.hw.hw-shell :is(a.button, button.button) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0;
	padding: 0 36px;
	border: 1px solid var(--hw-lime) !important;
	border-radius: 999px;
	background: var(--hw-lime) !important;
	color: var(--hw-ink) !important;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
}

.hw.hw-shell form.woocommerce-form-login button.woocommerce-form-login__submit:hover,
.hw.hw-shell :is(a.button, button.button):hover {
	border-color: var(--hw-ink) !important;
	background: var(--hw-ink) !important;
	color: #fff !important;
}

/* ---------- Cartões pretos de reserva (resumo do checkout e reserva na conta) ---------- */

.hw.hw-shell :is(.hw-summary, .hw-booking) {
	overflow: hidden;
	border-radius: 28px;
	background: var(--hw-black);
	color: #fff;
}

.hw.hw-shell :is(.hw-summary__label, .hw-summary__stay dt, .hw-booking__label, .hw-booking__facts dt) {
	margin: 0;
	color: var(--hw-lime);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.hw.hw-shell :is(.hw-summary__title, .hw-booking__title) {
	margin: 0;
	color: #fff;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.hw.hw-shell :is(.hw-summary__stay, .hw-booking__facts) dd {
	margin: 4px 0 0;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
}

.hw.hw-shell :is(.hw-summary__stay, .hw-booking__facts) dd::first-letter {
	text-transform: uppercase;
}

/* Quadrado verde acima do título dos cartões escuros. */
.hw.hw-shell :is(.hw-card--dark .hw-card__title, .clementina-restaurants__title)::before {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	margin-bottom: 14px;
	background: var(--hw-lime);
}

/* ---------- Rodapé curto ---------- */

.hw .hw-shell__footer {
	background: #4A4A4A;
	color: var(--hw-soft);
	font-size: 13px;
	font-weight: 300;
}

.hw .hw-shell__footer .hw-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	padding-top: 36px;
	padding-bottom: 36px;
}

.hw .hw-shell__footer img {
	width: auto;
	height: 48px;
}

.hw .hw-shell__footer p {
	margin: 0;
	color: var(--hw-soft);
	line-height: 1.5;
}

.hw .hw-shell__footer a {
	color: var(--hw-soft);
}

.hw .hw-shell__footer .hw-shell__copyright {
	max-width: 320px;
	font-size: 12px;
}

/* ---------- Responsivo ---------- */

@media (max-width: 767px) {
	.hw .hw-shell__top {
		padding: 24px 0 40px;
		border-radius: 0 0 30px 30px;
	}

	.hw .hw-shell__bar {
		margin-bottom: 32px;
	}

	.hw .hw-shell__logo img {
		height: 48px;
	}

	.hw .hw-steps {
		flex-direction: column;
		align-items: flex-start;
		margin-top: 24px;
	}

	.hw .hw-steps__item + .hw-steps__item::before {
		display: none;
	}

	.hw .hw-shell__body {
		padding-top: 24px;
		padding-bottom: 56px;
	}

	.hw.hw-shell .hw-card,
	.hw.hw-shell form.woocommerce-form-login {
		padding: 24px 20px;
		border-radius: 20px;
	}

	.hw.hw-shell .hw-card__title {
		font-size: 24px;
	}

	.hw.hw-shell .hw-fields {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 390px) {
	.hw.hw-shell .hw-container {
		padding-left: 16px;
		padding-right: 16px;
	}

	.hw.hw-shell .hw-card {
		padding: 20px 16px;
	}
}

/*
 * A lista do select2 fica no <body>, fora do .hw-shell. O ova-framework a fixa em 120px e o
 * ova-hotel centraliza o texto, em qualquer página; a largura vem do min-width inline que o
 * select2 aplica com dropdownAutoWidth (assets/js/select2-guard.js).
 */
body.hw-shell-page .select2-container--open .select2-dropdown {
	width: auto !important;
	text-align: left;
	border: 1px solid #85857E !important;
	border-radius: 8px !important;
	overflow: hidden;
	background: #fff;
	font-family: inherit;
}

body.hw-shell-page .select2-container--default .select2-results__option {
	padding: 10px 14px;
	color: #111111;
	font-size: 16px;
}

body.hw-shell-page .select2-container--default .select2-results__option--highlighted[aria-selected],
body.hw-shell-page .select2-container--default .select2-results__option--highlighted[data-selected] {
	background: var(--hw-lime) !important;
	color: var(--hw-ink) !important;
}

body.hw-shell-page .select2-container--default .select2-results__option[aria-selected=true],
body.hw-shell-page .select2-container--default .select2-results__option[data-selected=true] {
	background: #E4E4DE;
}
