/* HMR Stripe Gateway — checkout styles */
.ssg-wrap {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 4px 0;
}

.ssg-description {
	margin: 0;
	font-size: 0.925em;
	opacity: 0.8;
}

.ssg-testmode {
	margin: 0;
	padding: 8px 12px;
	font-size: 0.85em;
	border-radius: 6px;
	background: #fff8e5;
	color: #6b4e00;
	border: 1px solid #f3dfa6;
}

.ssg-wrap,
.ssg-element {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.ssg-element {
	min-height: 120px;
	position: relative;
}

.ssg-element iframe {
	max-width: 100%;
}

.ssg-element .ssg-skeleton {
	height: 120px;
	border-radius: 8px;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0.04) 100%);
	background-size: 200% 100%;
	animation: ssg-shimmer 1.2s ease-in-out infinite;
}

.ssg-element.is-ready {
	min-height: 0;
}

.ssg-errors {
	display: none;
	padding: 10px 12px;
	border-radius: 6px;
	font-size: 0.9em;
	background: #fdecec;
	color: #8a1c1c;
	border: 1px solid #f5c2c2;
}

.ssg-errors.is-visible {
	display: block;
}

.ssg-lock {
	display: inline-flex;
	vertical-align: middle;
	margin-inline-start: 6px;
	opacity: 0.6;
}

/* Classic checkout: give the payment box a clean, modern look */
.woocommerce-checkout #payment .payment_method_ssg_stripe .payment_box {
	background: transparent;
	padding: 12px 0 4px;
}

.woocommerce-checkout #payment .payment_method_ssg_stripe .payment_box::before {
	display: none;
}

/* Phones: no side padding so the form uses the full width */
@media (max-width: 600px) {
	.woocommerce-checkout #payment .payment_method_ssg_stripe .payment_box {
		padding: 10px 0 2px;
		margin-inline: 0;
	}
	.ssg-wrap { gap: 10px; }
	.ssg-errors { font-size: 0.95em; }
}

@keyframes ssg-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
	.ssg-element .ssg-skeleton { animation: none; }
}
