/* Neopep Customizer — frontend
   Developed by Rankzaar — https://www.rankzaar.com */

.neopep-kits {
	--neopep-accent: #1e874b;
	margin: 0 0 24px;
	padding: 18px;
	border: 1px solid #e4e7ec;
	border-radius: 12px;
	background: #fbfcfd;
}

.neopep-kits__title {
	margin: 0 0 4px;
	font-size: 1.05rem;
	line-height: 1.3;
}

.neopep-kits__desc {
	margin: 0 0 14px;
	font-size: .875rem;
	opacity: .7;
}

.neopep-kits__grid {
	display: grid;
	gap: 10px;
}

.neopep-kits--card .neopep-kits__grid {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* --- single kit row / card --- */

.neopep-kit {
	display: block;
	margin: 0;
	padding: 12px;
	border: 1px solid #e4e7ec;
	border-radius: 10px;
	background: #fff;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.neopep-kit__main {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	cursor: pointer;
}

.neopep-kit:hover {
	border-color: var(--neopep-accent);
}

.neopep-kit.is-selected {
	border-color: var(--neopep-accent);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--neopep-accent) 22%, transparent);
}

.neopep-kit__input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 3px 0 0;
	accent-color: var(--neopep-accent);
}

.neopep-kit__thumb {
	flex: 0 0 auto;
	width: 56px;
	line-height: 0;
}

.neopep-kit__thumb img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.neopep-kit__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.neopep-kit__name {
	font-weight: 600;
	line-height: 1.3;
}

.neopep-kit__excerpt {
	font-size: .8125rem;
	opacity: .65;
	line-height: 1.4;
}

.neopep-kit__price {
	font-size: .9375rem;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
}

.neopep-kit__price del {
	opacity: .55;
	font-size: .85em;
}

.neopep-kit__save {
	font-style: normal;
	font-size: .78rem;
	font-weight: 600;
	color: #fff;
	background: var(--neopep-accent);
	padding: 1px 7px;
	border-radius: 999px;
}

/* --- helpers --- */

.neopep-kits__clear {
	margin-top: 10px;
	background: none;
	border: 0;
	padding: 0;
	font-size: .8125rem;
	text-decoration: underline;
	cursor: pointer;
	opacity: .7;
}

.neopep-kits__total {
	margin: 12px 0 0;
	font-size: .9375rem;
	font-weight: 600;
}

.neopep-kits__total[hidden] {
	display: none;
}

@media (max-width: 480px) {
	.neopep-kits { padding: 14px; }
	.neopep-kits--card .neopep-kits__grid { grid-template-columns: 1fr; }
}

/* --- variable kits --- */

.neopep-kit__variations {
	margin: 10px 0 0;
	padding-left: 30px;
}

.neopep-kits--card .neopep-kit__variations {
	padding-left: 0;
}

.neopep-kit__variation-select {
	width: 100%;
	max-width: 100%;
	padding: 7px 10px;
	border: 1px solid #d5d9e0;
	border-radius: 8px;
	background: #fff;
	font-size: .875rem;
	line-height: 1.3;
}

.neopep-kit__variation-select:focus {
	outline: none;
	border-color: var(--neopep-accent);
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--neopep-accent) 20%, transparent);
}

.neopep-kit__regular[hidden],
.neopep-kit__save[hidden] {
	display: none;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
