/**
 * Free Sponge Picker modal.
 *
 * Deliberately self-contained: the Zephyr theme is heavily styled, so every
 * rule here is scoped under .hw-fsp and avoids inheriting button styles.
 */

body.hw-fsp-open {
	overflow: hidden;
}

.hw-fsp {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.hw-fsp[hidden] {
	display: none;
}

.hw-fsp__backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.55 );
}

.hw-fsp__dialog {
	position: relative;
	width: 100%;
	max-width: 620px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 18px 50px rgba( 0, 0, 0, 0.28 );
	padding: 28px 28px 22px;
	box-sizing: border-box;
}

.hw-fsp.is-busy .hw-fsp__dialog {
	opacity: 0.6;
	pointer-events: none;
}

.hw-fsp__close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 36px;
	height: 36px;
	line-height: 1;
	font-size: 26px;
	color: #666;
	background: none;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	padding: 0;
}

.hw-fsp__close:hover {
	background: #f2f2f2;
	color: #111;
}

.hw-fsp__title {
	margin: 0 0 6px;
	font-size: 22px;
	line-height: 1.25;
	padding-right: 36px;
}

.hw-fsp__intro {
	margin: 0 0 18px;
	color: #666;
	font-size: 14px;
}

.hw-fsp__grid {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 180px, 1fr ) );
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hw-fsp__item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hw-fsp-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	height: 100%;
	padding: 14px;
	border: 2px solid #e6e6e6;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hw-fsp-card:hover,
.hw-fsp-card:focus {
	border-color: #8bc34a;
	box-shadow: 0 6px 18px rgba( 0, 0, 0, 0.1 );
	text-decoration: none;
}

.hw-fsp-card__media img {
	display: block;
	width: 100%;
	max-width: 150px;
	height: auto;
	margin: 0 auto 10px;
	border-radius: 6px;
}

.hw-fsp-card__label {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.3;
}

.hw-fsp-card__price {
	margin-top: 4px;
	font-size: 13px;
	color: #4a7c1f;
}

.hw-fsp-card__price del {
	color: #999;
	margin-right: 4px;
}

.hw-fsp-card__cta {
	margin-top: auto;
	padding-top: 12px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #4a7c1f;
}

.hw-fsp__status {
	margin: 16px 0 0;
	min-height: 20px;
	font-size: 14px;
	color: #666;
}

.hw-fsp__status.is-error {
	color: #b3261e;
}

@media ( max-width: 480px ) {
	.hw-fsp__dialog {
		padding: 22px 16px 16px;
	}

	.hw-fsp__grid {
		grid-template-columns: repeat( 2, 1fr );
		gap: 10px;
	}
}
