/* Social Account for WooCommerce — guest checkout step (v1). Light palette only; the sign-in buttons inside come from buttons.css. */

html.twm-sa-step-open {
	overflow: hidden;
}

.twm-sa-step {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 16px;
	background: transparent;
	color: #1f2937;
	font-size: 16px;
	line-height: 1.45;
}

.twm-sa-step__backdrop {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(17, 24, 39, 0.55);
}

.twm-sa-step__dialog {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 100%;
	max-width: 420px;
	max-height: 85vh;
	max-height: 85%;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 28px 24px 22px;
	border-radius: 14px;
	background: #fff;
	color: #1f2937;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
	text-align: center;
}

.twm-sa-step__dialog:focus {
	outline: none;
}

.twm-sa-step__close {
	position: absolute;
	top: 6px;
	right: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #6b7280;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.twm-sa-step__close:hover {
	background: #f3f4f6;
	color: #111827;
}

.twm-sa-step__close:focus-visible,
.twm-sa-step__continue:focus-visible,
.twm-sa-step__login a:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

/* The buttons block: its divider text is the dialog's title here, so the lines either side of it go. */
.twm-sa-step .sawc-social {
	margin: 0;
}

.twm-sa-step .sawc-social__divider {
	display: block;
	margin: 0 24px 0.9em;
	background: transparent;
	color: #111827;
	font-size: 1.25em;
	font-weight: 700;
	line-height: 1.3;
}

.twm-sa-step .sawc-social__divider::before,
.twm-sa-step .sawc-social__divider::after {
	display: none;
}

.twm-sa-step .sawc-social__divider span {
	padding: 0;
}

.twm-sa-step .sawc-social__privacy {
	margin: 0.9em 0 0;
	background: transparent;
	color: #6b7280;
	font-size: 0.8em;
	text-align: center;
}

.twm-sa-step .sawc-social__privacy p {
	margin: 0;
}

.twm-sa-step__rule {
	height: 0;
	margin: 1.25em 0 1em;
	border: 0;
	border-top: 1px solid #e5e7eb;
	background: transparent;
}

.twm-sa-step__login {
	margin: 0 0 0.9em;
	background: transparent;
	color: #4b5563;
	font-size: 0.95em;
}

.twm-sa-step__login a {
	color: #1d4ed8;
	font-weight: 600;
	text-decoration: underline;
}

.twm-sa-step__continue {
	display: block;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 0.6em 1em;
	border: 0;
	border-radius: 8px;
	background: #f3f4f6;
	color: #1f2937;
	font-size: 0.95em;
	font-weight: 600;
	cursor: pointer;
}

.twm-sa-step__continue::after {
	content: " \2192";
}

.twm-sa-step__continue:hover {
	background: #e5e7eb;
}

/* A phone: the dialog is a sheet from the bottom of the screen, at most 85% of its height, scrolling inside. */
@media (max-width: 559px) {
	.twm-sa-step {
		align-items: flex-end;
		padding: 0;
	}

	.twm-sa-step__dialog {
		max-width: none;
		padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
		border-radius: 16px 16px 0 0;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.twm-sa-step__backdrop {
		animation: twm-sa-step-fade 0.18s ease-out;
	}

	.twm-sa-step__dialog {
		animation: twm-sa-step-rise 0.22s ease-out;
	}
}

@keyframes twm-sa-step-fade {
	from {
		opacity: 0;
	}
}

@keyframes twm-sa-step-rise {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}
