/**
 * Mi cuenta — mismos tokens/botones del sidebar de reserva.
 */

.tb-account {
	--tb-brand-destino: #2f998f;
	--tb-brand-destino-hover: #257a73;
	--tb-brand-esencia: #f5f4f2;
	--tb-brand-alegria: #fada47;
	--tb-brand-text: #1a2744;
	--tb-brand-text-muted: #4a5568;
	--tb-brand-border: rgba(47, 153, 143, 0.25);
	display: grid !important;
	grid-template-columns: 280px minmax(0, 1fr) !important;
	gap: 28px 32px;
	max-width: 1120px;
	width: 100%;
	margin: 0 auto;
	padding: 28px 16px 64px;
	color: var(--tb-brand-text);
	font-family: Montserrat, system-ui, sans-serif;
	align-items: start;
	box-sizing: border-box;
}

/*
 * Anular float WooCommerce + Elementor Pro My Account (25%/75%)
 * que dejan el sidebar estrecho y un hueco grande al centro.
 */
body.tb-my-account-page .woocommerce-MyAccount-navigation,
body.tb-my-account-page .woocommerce-MyAccount-content,
body.tb-my-account-page .tb-account-nav,
body.tb-my-account-page .tb-account__content,
body.tb-my-account-page .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation,
body.tb-my-account-page .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-content,
body.tb-my-account-page .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce-MyAccount-navigation,
body.tb-my-account-page .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce-MyAccount-content,
body.tb-my-account-page .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce .woocommerce-MyAccount-navigation,
body.tb-my-account-page .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce .woocommerce-MyAccount-content,
.elementor .tb-account .woocommerce-MyAccount-navigation,
.elementor .tb-account .woocommerce-MyAccount-content {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	padding-inline-start: 0 !important;
	padding-inline-end: 0 !important;
}

body.tb-my-account-page .elementor-widget-woocommerce-my-account .tb-account,
.elementor .tb-account {
	display: grid !important;
	grid-template-columns: 280px minmax(0, 1fr) !important;
	gap: 28px 32px !important;
	width: 100% !important;
	max-width: 1120px !important;
	box-sizing: border-box;
}

body.tb-my-account-page .tb-account-nav,
.elementor .tb-account-nav {
	width: 100% !important;
	max-width: none !important;
	justify-self: stretch;
}

body.tb-my-account-page {
	background: var(--tb-brand-esencia);
}

body.tb-my-account-page .woocommerce-notices-wrapper {
	max-width: 1120px;
	margin: 16px auto 0;
	padding: 0 16px;
}

/* —— Sidebar —— */
.tb-account-nav {
	background: #fff;
	border: 1px solid var(--tb-brand-border);
	border-radius: 14px;
	padding: 20px 14px 16px;
	box-sizing: border-box;
	min-width: 0;
	overflow: visible;
}

.tb-account-nav__hello {
	padding: 4px 10px 16px;
	border-bottom: 1px solid var(--tb-brand-border);
	margin-bottom: 10px;
}

.tb-account-nav__hello-label {
	margin: 0;
	font-size: 0.85rem;
	color: var(--tb-brand-text-muted);
}

.tb-account-nav__hello-name {
	margin: 2px 0 0;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--tb-brand-destino);
	display: flex;
	align-items: center;
	gap: 6px;
}

.tb-account-nav__hello-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--tb-brand-destino);
	color: #fff;
	font-size: 10px;
	line-height: 1;
	flex-shrink: 0;
}

.tb-account-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	width: 100%;
}

.tb-account-nav__list li {
	margin: 0;
	width: 100%;
}

.tb-account-nav__list a {
	display: flex !important;
	align-items: center;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
	padding: 11px 12px !important;
	border-radius: 10px;
	color: var(--tb-brand-text) !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.3;
	white-space: nowrap;
	overflow: visible;
}

.tb-account-nav__list a:hover {
	background: var(--tb-brand-esencia);
}

.tb-account-nav__list li.is-active a,
.tb-account-nav__list a[aria-current="page"] {
	background: rgba(47, 153, 143, 0.12) !important;
	color: var(--tb-brand-destino) !important;
}

.tb-account-nav__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

.tb-account-nav__label {
	flex: 1 1 auto;
	min-width: 0;
}

.tb-account-nav__item--customer-logout {
	margin-top: 8px;
	border-top: 1px solid var(--tb-brand-border);
	padding-top: 8px;
}

/* —— Content —— */
.tb-account__content {
	min-width: 0;
}

.tb-account-profile-card {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 18px 20px;
	margin: 0 0 20px;
	background: #fff;
	border: 1px solid var(--tb-brand-border);
	border-radius: 14px;
}

.tb-account-profile-card__avatar img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	display: block;
	object-fit: cover;
}

.tb-account-profile-card__name {
	margin: 0 0 4px;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--tb-brand-text);
}

.tb-account-profile-card__email {
	margin: 0;
	color: var(--tb-brand-text-muted);
	font-size: 0.92rem;
}

.tb-account-profile-card__news {
	margin: 8px 0 0;
	font-size: 0.85rem;
	color: var(--tb-brand-destino);
	display: flex;
	align-items: center;
	gap: 6px;
}

.tb-account-profile-card__check {
	display: inline-flex;
	width: 16px;
	height: 16px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--tb-brand-destino);
	color: #fff;
	font-size: 10px;
}

/* —— Data form —— */
.tb-account-data {
	background: #fff;
	border: 1px solid var(--tb-brand-border);
	border-radius: 14px;
	overflow: hidden;
}

.tb-account-data__head {
	padding: 14px 20px;
	border-top: 3px solid var(--tb-brand-destino);
	border-bottom: 1px solid var(--tb-brand-border);
	background: var(--tb-brand-esencia);
}

.tb-account-data__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--tb-brand-text);
}

.tb-account-data__form {
	padding: 20px;
}

.tb-account-data__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 20px;
}

.tb-account-field {
	margin: 0;
}

.tb-account-field label,
.tb-account-field__label {
	display: block;
	margin: 0 0 6px;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--tb-brand-text-muted);
}

.tb-account-field .input-text,
.tb-account-select,
.tb-account-birth select {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--tb-brand-border);
	border-radius: 12px;
	background: #fff;
	color: var(--tb-brand-text);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	box-sizing: border-box;
}

.tb-account-field .input-text:focus,
.tb-account-select:focus,
.tb-account-birth select:focus {
	outline: none;
	border-color: var(--tb-brand-destino);
	box-shadow: 0 0 0 3px rgba(47, 153, 143, 0.18);
}

.tb-account-field--birth {
	grid-column: 1 / -1;
}

.tb-account-birth {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.tb-account-data__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 18px 0 0;
}

.tb-account-data__password-toggle,
body.tb-my-account-page .tb-account-data__password-toggle,
.elementor .tb-account .tb-account-data__password-toggle {
	border: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #2f998f !important;
	-webkit-text-fill-color: #2f998f !important;
	font: inherit !important;
	font-size: 0.9rem !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	text-decoration: underline !important;
	padding: 0 !important;
	min-height: 0 !important;
	min-width: 0 !important;
	border-radius: 0 !important;
	display: inline !important;
}

.tb-account-data__password-toggle:hover,
body.tb-my-account-page .tb-account-data__password-toggle:hover {
	color: #257a73 !important;
	-webkit-text-fill-color: #257a73 !important;
}

.tb-account-data__news {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.85rem;
	color: var(--tb-brand-text-muted);
	max-width: 340px;
	cursor: pointer;
}

.tb-account-data__news input {
	margin-top: 3px;
	accent-color: var(--tb-brand-destino);
}

.tb-account-password {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--tb-brand-border);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 20px;
}

.tb-account-password[hidden] {
	display: none !important;
}

.tb-account-data__actions {
	margin: 22px 0 0;
	display: flex;
	justify-content: flex-end;
}

/* CTA teal = .tb-reserve-button; gana a kit Elementor (amarillo + texto oscuro) */
body.tb-my-account-page .tb-account-btn,
body.tb-my-account-page button.tb-account-btn,
body.tb-my-account-page .woocommerce button.tb-account-btn,
body.tb-my-account-page .woocommerce button.button.tb-account-btn,
body.tb-my-account-page button[name="save_account_details"],
body.tb-my-account-page .woocommerce-EditAccountForm .button.tb-account-btn,
body.tb-my-account-page .woocommerce-EditAccountForm button[name="save_account_details"],
body.tb-my-account-page .elementor-widget-woocommerce-my-account button.tb-account-btn,
body.tb-my-account-page .elementor-widget-woocommerce-my-account button[name="save_account_details"],
.elementor body.tb-my-account-page button.tb-account-btn,
.elementor .tb-account button.tb-account-btn,
.elementor .tb-account button[name="save_account_details"],
.tb-account-auth .tb-account-btn,
.tb-account-auth button.tb-account-btn,
body button.tb-account-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 46px !important;
	min-width: 180px !important;
	padding: 12px 16px !important;
	border: 1px solid #2f998f !important;
	border-radius: 999px !important;
	background: #2f998f !important;
	background-color: #2f998f !important;
	background-image: none !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	caret-color: #ffffff !important;
	font-family: Montserrat, system-ui, sans-serif !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: normal !important;
	cursor: pointer !important;
	text-decoration: none !important;
	text-shadow: none !important;
	box-shadow: none !important;
	filter: none !important;
	opacity: 1 !important;
}

body.tb-my-account-page .tb-account-btn:hover,
body.tb-my-account-page .tb-account-btn:focus,
body.tb-my-account-page .tb-account-btn:focus-visible,
body.tb-my-account-page button.tb-account-btn:hover,
body.tb-my-account-page button[name="save_account_details"]:hover,
body.tb-my-account-page .woocommerce-EditAccountForm button[name="save_account_details"]:hover,
.elementor .tb-account button.tb-account-btn:hover,
.elementor .tb-account button[name="save_account_details"]:hover,
.tb-account-auth .tb-account-btn:hover,
.tb-account-auth .tb-account-btn:focus-visible,
body button.tb-account-btn:hover {
	background: #257a73 !important;
	background-color: #257a73 !important;
	border-color: #257a73 !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	box-shadow: 0 4px 14px rgba(47, 153, 143, 0.28) !important;
	outline: none !important;
	filter: none !important;
}

.tb-account-btn--secondary {
	background: var(--tb-brand-alegria);
	border-color: var(--tb-brand-text);
	color: var(--tb-brand-text) !important;
}

.tb-account-btn--secondary:hover,
.tb-account-btn--secondary:focus-visible {
	background: #f5d02f;
	border-color: var(--tb-brand-text);
	color: var(--tb-brand-text) !important;
	box-shadow: 0 4px 14px rgba(26, 39, 68, 0.12);
}

/* Hide default WC chrome inside account */
.tb-account .woocommerce-MyAccount-navigation > ul:not(.tb-account-nav__list) {
	display: none;
}

body.tb-my-account-page .entry-title,
body.tb-my-account-page .page-header .entry-title {
	max-width: 1120px;
	margin-left: auto;
	margin-right: auto;
	padding: 24px 16px 0;
	font-size: 25px;
	font-weight: 700;
	color: var(--tb-brand-text);
}

@media (max-width: 900px) {
	.tb-account,
	body.tb-my-account-page .elementor-widget-woocommerce-my-account .tb-account,
	.elementor .tb-account {
		grid-template-columns: 1fr !important;
		padding-top: 16px;
	}

	.tb-account-data__grid,
	.tb-account-password {
		grid-template-columns: 1fr;
	}

	.tb-account-data__tools {
		flex-direction: column;
		align-items: flex-start;
	}

	.tb-account-data__actions {
		justify-content: stretch;
	}

	.tb-account-btn,
	body.tb-my-account-page button.tb-account-btn {
		width: 100%;
	}
}

/* —— Login / register (guest) —— */
.tb-account-auth {
	--tb-brand-destino: #2f998f;
	--tb-brand-destino-hover: #257a73;
	--tb-brand-esencia: #f5f4f2;
	--tb-brand-alegria: #fada47;
	--tb-brand-text: #1a2744;
	--tb-brand-text-muted: #4a5568;
	--tb-brand-border: rgba(47, 153, 143, 0.25);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	max-width: 920px;
	margin: 0 auto;
	padding: 28px 16px 64px;
	font-family: Montserrat, system-ui, sans-serif;
	color: var(--tb-brand-text);
}

.tb-account-auth__card {
	background: #fff;
	border: 1px solid var(--tb-brand-border);
	border-radius: 14px;
	padding: 28px 24px;
}

.tb-account-auth__title {
	margin: 0 0 8px;
	font-size: 1.35rem;
	font-weight: 700;
}

.tb-account-auth__lead {
	margin: 0 0 20px;
	color: var(--tb-brand-text-muted);
	font-size: 0.92rem;
	line-height: 1.45;
}

.tb-account-auth__form .tb-account-field {
	margin: 0 0 14px;
}

.tb-account-auth__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 18px;
}

.tb-account-auth__remember {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.88rem;
	color: var(--tb-brand-text-muted);
	cursor: pointer;
}

.tb-account-auth__lost {
	color: var(--tb-brand-destino);
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: underline;
}

.tb-account-auth__actions {
	margin: 0;
}

.tb-account-auth__actions .tb-account-btn {
	width: 100%;
}

.tb-account-auth__switch {
	margin: 16px 0 0;
	text-align: center;
	font-size: 0.9rem;
	color: var(--tb-brand-text-muted);
}

.tb-account-auth__switch a {
	color: var(--tb-brand-destino);
	font-weight: 700;
	text-decoration: underline;
}

.tb-account-auth__note {
	margin: 0 0 14px;
	font-size: 0.88rem;
	color: var(--tb-brand-text-muted);
}

body.tb-my-account-page:not(.logged-in) .tb-account {
	display: block;
	padding: 0;
}

@media (max-width: 800px) {
	.tb-account-auth {
		grid-template-columns: 1fr;
		padding-top: 16px;
	}
}
