/* Social Account for WooCommerce — guest slide-in popup.
 * The in-card buttons inherit from buttons.css (enqueued as a dependency). */

.sawc-popup {
	position: fixed;
	z-index: 99999;
	box-sizing: border-box;
	width: 340px;
	max-width: calc(100vw - 40px);
	padding: 1.25em 1.25em 1.1em;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Corner placement + slide-in direction (top cards slide down, bottom cards up). */
.sawc-popup--bottom-right {
	right: 20px;
	bottom: 20px;
}

.sawc-popup--bottom-left {
	left: 20px;
	bottom: 20px;
}

.sawc-popup--top-right {
	right: 20px;
	top: 20px;
	transform: translateY(-16px);
}

.sawc-popup--top-left {
	left: 20px;
	top: 20px;
	transform: translateY(-16px);
}

.sawc-popup.is-visible {
	opacity: 1;
	transform: none;
}

.sawc-popup[hidden] {
	display: none;
}

.sawc-popup__close {
	position: absolute;
	top: 8px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #6b7280;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.sawc-popup__close:hover {
	background: #f3f4f6;
	color: #111827;
}

.sawc-popup__close:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.sawc-popup__title {
	margin: 0 24px 0.25em 0;
	font-size: 1.15em;
	line-height: 1.3;
}

.sawc-popup__text {
	margin: 0 0 1em;
	color: #4b5563;
	font-size: 0.9em;
	line-height: 1.45;
}

/* The embedded buttons block carries its own top margin; drop it in the card. */
.sawc-popup .sawc-social {
	margin: 0;
}

@media (max-width: 480px) {
	/* Pin to both side gutters regardless of chosen corner. */
	.sawc-popup {
		left: 12px;
		right: 12px;
		width: auto;
		max-width: none;
	}

	.sawc-popup--bottom-right,
	.sawc-popup--bottom-left {
		bottom: 12px;
	}

	.sawc-popup--top-right,
	.sawc-popup--top-left {
		top: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sawc-popup {
		transition: none;
		transform: none;
	}
}
