/**
 * Login con Google — botón "Continuar con Google" (inc/login-google/).
 * Sigue las guías de marca de Google: fondo blanco, logo G multicolor,
 * borde #dadce0. Se enqueua solo en Mi Cuenta y checkout.
 */

.rb-google-login {
	margin: 2px 0 12px;
}

/* Divisor "──── o ────" (debajo del botón: Google primero, formulario después) */
.rb-google-divider {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 16px 0 0;
	color: #767676;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.rb-google-divider::before,
.rb-google-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e2e2e2;
}

.rb-google-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #dadce0;
	border-radius: 4px;
	background: #fff;
	color: var(--rb-black, #1a1a1a);
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.rb-google-btn:hover,
.rb-google-btn:focus {
	background: #f7f8f8;
	color: var(--rb-black, #1a1a1a);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	text-decoration: none;
}

/* Astra subraya todo <a> dentro de .entry-content con especificidad (0,2,1)
   —`.ast-single-post .entry-content a`— y le ganaba a `.rb-google-btn` (0,1,0),
   dejando el botón con pinta de enlace. Estos selectores llegan a (0,3,1). */
.entry-content .rb-google-login a.rb-google-btn,
.woocommerce .rb-google-login a.rb-google-btn,
.rb-google-login a.rb-google-btn,
.entry-content .rb-google-login a.rb-google-btn:hover,
.entry-content .rb-google-login a.rb-google-btn:focus,
.entry-content .rb-google-login a.rb-google-btn:visited {
	text-decoration: none;
}

.rb-google-btn svg {
	flex: 0 0 auto;
}

/* ---------------------------------------------------------------------------
 * Botón "mostrar contraseña" de WooCommerce
 * ---------------------------------------------------------------------------
 * Astra reemplaza woocommerce.css por sus *-grid.min.css, que NO traen las
 * reglas de .password-input / .show-password-input. Sin ellas, el <button>
 * vacío que inyecta woocommerce.js heredaba `button { background-color: #000 }`
 * de Astra y se pintaba como una caja negra DEBAJO del campo (position: static).
 * El JS de Woo sí funciona: alterna el type del input y la clase
 * .display-password. Aquí solo lo colocamos y le damos el icono de ojo.
 * ------------------------------------------------------------------------- */

.woocommerce-form .password-input,
.woocommerce form .password-input,
.password-input {
	position: relative;
	display: block;
	width: 100%;
}

/* Espacio para que el texto no pase por debajo del icono. */
.password-input .input-text,
.password-input input[type="password"],
.password-input input[type="text"] {
	width: 100%;
	padding-right: 44px;
}

.woocommerce-form .password-input .show-password-input,
.woocommerce form .password-input .show-password-input,
.password-input .show-password-input {
	position: absolute;
	top: 0;
	right: 0;
	width: 44px;
	height: 100%;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background-image: none;
	box-shadow: none;
	cursor: pointer;
	/* El icono va como máscara: la forma la da el SVG y el color lo da
	   `background-color`. OJO: aquí `background-color` NO es el fondo del
	   botón, es la tinta del icono — con `transparent` no se vería nada. */
	background-color: var(--rb-text-muted, #6b6b6b);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: 20px 20px;
	mask-size: 20px 20px;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
	transition: background-color 0.15s ease;
}

/* Estado "contraseña visible": ojo tachado. */
.woocommerce-form .password-input .show-password-input.display-password,
.woocommerce form .password-input .show-password-input.display-password,
.password-input .show-password-input.display-password {
	background-color: var(--rb-black, #1a1a1a);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
}

.woocommerce-form .password-input .show-password-input:hover,
.woocommerce-form .password-input .show-password-input:focus,
.password-input .show-password-input:hover,
.password-input .show-password-input:focus {
	background-color: var(--rb-black, #1a1a1a);
	border: 0;
	box-shadow: none;
}

.password-input .show-password-input:focus-visible {
	outline: 2px solid var(--rb-black, #1a1a1a);
	outline-offset: -2px;
}

/* Navegadores sin soporte de mask (muy pocos): sin icono, pero jamás
   una caja negra. */
@supports not ((-webkit-mask-image: none) or (mask-image: none)) {
	.password-input .show-password-input {
		background-color: transparent;
	}
}
