.tnl-gal-wrap {
	max-width: 380px;
	margin: 0 auto;
	font-family: inherit;
}

.tnl-gal-logo {
	display: flex;
	justify-content: center;
	margin-bottom: 1rem;
}

.tnl-gal-logo img {
	max-height: 60px;
	max-width: 100%;
}

.tnl-gal-tabs {
	display: flex;
	border-bottom: 1px solid #e0e0e0;
	margin-bottom: 1.25rem;
}

.tnl-gal-tab {
	flex: 1;
	background: none;
	border: none;
	padding: 0.75rem 0.5rem;
	font-size: 0.95rem;
	cursor: pointer;
	color: #666;
	border-bottom: 2px solid transparent;
	transition: color .15s ease, border-color .15s ease;
}

.tnl-gal-tab.is-active {
	color: #111;
	font-weight: 600;
	border-bottom-color: #111;
}

.tnl-gal-alert {
	padding: 0.65rem 0.85rem;
	border-radius: 6px;
	background: #fdecea;
	color: #9a2323;
	font-size: 0.875rem;
	margin-bottom: 1rem;
}

.tnl-gal-alert.is-success {
	background: #e8f6ec;
	color: #1e6b39;
}

.tnl-gal-google-btn {
	display: flex;
	justify-content: center;
	min-height: 40px;
	margin-bottom: 1rem;
}

.tnl-gal-divider {
	display: flex;
	align-items: center;
	text-align: center;
	color: #999;
	font-size: 0.8rem;
	margin: 1rem 0;
}

.tnl-gal-divider::before,
.tnl-gal-divider::after {
	content: "";
	flex: 1;
	border-bottom: 1px solid #e0e0e0;
}

.tnl-gal-divider span {
	padding: 0 0.75rem;
}

.tnl-gal-form {
	display: none;
	flex-direction: column;
	gap: 0.35rem;
}

.tnl-gal-form.is-active {
	display: flex;
}

.tnl-gal-form label {
	font-size: 0.825rem;
	font-weight: 600;
	color: #333;
	margin-top: 0.5rem;
}

.tnl-gal-form input[type="email"],
.tnl-gal-form input[type="password"],
.tnl-gal-form input[type="text"] {
	padding: 0.6rem 0.7rem;
	border: 1px solid #d5d5d5;
	border-radius: 6px;
	font-size: 0.95rem;
}

.tnl-gal-form input:focus {
	outline: none;
	border-color: #111;
}

.tnl-gal-submit {
	margin-top: 1.1rem;
	padding: 0.7rem;
	border: none;
	border-radius: 6px;
	background: #111;
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: opacity .15s ease;
}

.tnl-gal-submit:hover {
	opacity: 0.9;
}

.tnl-gal-submit[disabled] {
	opacity: 0.6;
	cursor: default;
}

.tnl-gal-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.tnl-gal-already {
	max-width: 380px;
	margin: 0 auto;
	font-size: 0.95rem;
}

.tnl-gal-forgot-link {
	text-align: center;
	margin-top: 0.75rem;
}

.tnl-gal-forgot-link a {
	font-size: 0.85rem;
	color: #666;
	text-decoration: none;
}

.tnl-gal-forgot-link a:hover {
	text-decoration: underline;
}

.tnl-gal-forgot-intro {
	font-size: 0.875rem;
	color: #555;
	margin: 0 0 0.5rem;
}

.tnl-gal-turnstile {
	margin: 0.85rem 0 0.25rem;
	display: flex;
	justify-content: center;
}

/* ---------- Panel de cuenta (usuario logueado) ---------- */
.tnl-gal-account {
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 1.1rem 1.25rem;
}

.tnl-gal-account-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.tnl-gal-account-header img {
	border-radius: 50%;
}

.tnl-gal-account-email {
	font-size: 0.8rem;
	color: #777;
}

.tnl-gal-account-links {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.tnl-gal-account-links a {
	font-size: 0.9rem;
	color: #111;
	text-decoration: none;
	padding: 0.45rem 0;
	border-bottom: 1px solid #f0f0f0;
}

.tnl-gal-account-links a:last-child {
	border-bottom: none;
	color: #9a2323;
}

.tnl-gal-account-links a:hover {
	text-decoration: underline;
}

/* ---------- Inyección en WooCommerce (Mi cuenta) ---------- */
.tnl-gal-wc-inject {
	margin-bottom: 1.25rem;
}

.tnl-gal-wc-inject .tnl-gal-google-btn {
	display: flex;
	justify-content: center;
	min-height: 40px;
	margin-bottom: 0.75rem;
}

.tnl-gal-wc-inject .tnl-gal-divider {
	display: flex;
	align-items: center;
	text-align: center;
	color: #999;
	font-size: 0.8rem;
	margin: 0;
}

.tnl-gal-wc-inject .tnl-gal-divider::before,
.tnl-gal-wc-inject .tnl-gal-divider::after {
	content: "";
	flex: 1;
	border-bottom: 1px solid #e0e0e0;
}

.tnl-gal-wc-inject .tnl-gal-divider span {
	padding: 0 0.75rem;
}

/* ---------- Botón de header [tnl_auth_button] ---------- */
.tnl-gal-header-widget {
	position: relative;
	display: inline-block;
}

.tnl-gal-header-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: #111;
	color: #fff;
	border: none;
	padding: 0.55rem 1.05rem;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	line-height: 1;
	transition: opacity .15s ease, transform .1s ease;
}

.tnl-gal-header-btn:hover {
	opacity: 0.88;
}

.tnl-gal-header-btn:active {
	transform: scale(0.98);
}

.tnl-gal-header-icon {
	flex: none;
	color: #fff;
}

.tnl-gal-header-btn--account {
	background: #fff;
	color: #111;
	border: 1px solid #d5d5d5;
}

.tnl-gal-header-avatar {
	border-radius: 50%;
	display: block;
	width: 22px;
	height: 22px;
}

.tnl-gal-header-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: min(360px, 92vw);
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(17, 17, 17, 0.14);
	padding: 1.35rem 1.35rem 1.5rem;
	z-index: 100;
	animation: tnl-gal-panel-in .16s ease;
}

.tnl-gal-header-panel .tnl-gal-wrap {
	max-width: none;
}

@keyframes tnl-gal-panel-in {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
	.tnl-gal-header-panel {
		position: fixed;
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		width: 100%;
		border-radius: 16px 16px 0 0;
		max-height: 85vh;
		overflow-y: auto;
	}
}
