.kosa-club,
.kosa-club * {
	box-sizing: border-box;
}

.kosa-club {
	--kosa-green: #0f4f43;
	--kosa-accent: #2bd273;
	--kosa-mint: #d9f5e7;
	--kosa-surface: #f4fcf8;
	--kosa-border: #dcebe4;
	display: grid;
	width: 100%;
	gap: 24px;
	padding: clamp(24px, 4vw, 42px);
	overflow: hidden;
	border: 1px solid var(--kosa-border);
	border-radius: 14px;
	background: var(--kosa-surface);
	color: #17201e;
	line-height: 1.35;
}

.kosa-club__back {
	justify-self: start;
	color: #17201e;
	font-size: clamp(20px, 2vw, 28px);
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
}

.kosa-club__back:hover,
.kosa-club__back:focus {
	color: var(--kosa-green);
}

.kosa-club__progress {
	position: relative;
	min-height: 82px;
	margin-top: 4px;
	padding: 26px 10px 42px;
}

.kosa-club__track {
	height: 8px;
	overflow: hidden;
	border-radius: 999px;
	background: var(--kosa-mint);
}

.kosa-club__fill {
	height: 100%;
	border-radius: inherit;
	background: var(--kosa-accent);
	transition: width 0.35s ease;
}

.kosa-club__dots {
	position: absolute;
	inset: 21px 10px auto;
}

.kosa-dot-wrap {
	position: absolute;
	transform: translateX(-50%);
	text-align: center;
}

.kosa-dot {
	width: 18px;
	height: 18px;
	margin: 0 auto;
	border: 3px solid var(--kosa-surface);
	border-radius: 50%;
	background: var(--kosa-mint);
	box-shadow: 0 0 0 1px var(--kosa-mint);
}

.kosa-dot.is-reached,
.kosa-dot.is-active {
	background: var(--kosa-accent);
	box-shadow: 0 0 0 1px var(--kosa-accent);
}

.kosa-dot-label {
	margin-top: 10px;
	color: #171b1a;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.kosa-club__meta,
.kosa-club__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.kosa-club__meta-col,
.kosa-card {
	min-width: 0;
	padding: 20px;
	border: 1px solid var(--kosa-border);
	border-radius: 12px;
	background: #fff;
}

.kosa-club__meta-kicker {
	color: #929c99;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.kosa-club__meta-value {
	margin-top: 12px;
	color: var(--kosa-green);
	font-size: clamp(24px, 3vw, 38px);
	font-weight: 700;
	line-height: 1;
}

.kosa-club__hint {
	padding: 15px 18px;
	border-radius: 10px;
	background: #eaf6f1;
	color: #17201e;
	font-size: 15px;
}

.kosa-card {
	display: grid;
	align-content: start;
	gap: 8px;
	min-height: 150px;
}

.kosa-card.is-active {
	border-color: var(--kosa-accent);
	box-shadow: 0 0 0 1px var(--kosa-accent);
}

.kosa-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.kosa-card__title {
	color: #17201e;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
}

.kosa-card__sub {
	color: #35413e;
	font-size: 14px;
}

.kosa-card__fine {
	margin-top: 8px;
	color: #98a19f;
	font-size: 12px;
	line-height: 1.35;
}

.kosa-badge {
	flex: 0 0 auto;
	padding: 5px 9px;
	border-radius: 8px;
	background: var(--kosa-mint);
	color: var(--kosa-accent);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.kosa-badge--gold {
	background: var(--kosa-accent);
	color: #fff;
}

.kosa-badge--platinum {
	background: #202322;
	color: var(--kosa-accent);
}

.kosa-cart-hint,
.kosa-cart-upgrade,
.kosa-checkout-info {
	display: block !important;
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 16px;
	padding: 14px 16px;
	border: 0;
	border-radius: 8px;
	color: #173c34;
	font-size: 14px;
	line-height: 1.45;
}

.kosa-cart-hint,
.kosa-checkout-info {
	background: #e8f8f0;
}

.kosa-cart-upgrade {
	background: var(--kosa-accent, #2bd273);
	color: #083c2c;
}

.kosa-mobile-loyalty {
	display: none;
}

@media (max-width: 767px) {
	.kosa-club {
		gap: 18px;
		padding: 16px 10px;
		border-radius: 10px;
	}

	.kosa-club__back {
		font-size: 18px;
	}

	.kosa-club__progress {
		min-height: 70px;
		margin: 0 2px;
		padding: 22px 4px 38px;
	}

	.kosa-club__track {
		height: 7px;
	}

	.kosa-club__dots {
		inset: 17px 4px auto;
	}

	.kosa-dot {
		width: 17px;
		height: 17px;
	}

	.kosa-dot-label {
		margin-top: 9px;
		font-size: 10px;
	}

	.kosa-club__meta {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 6px;
	}

	.kosa-club__meta-col {
		padding: 12px 8px;
		border-radius: 9px;
	}

	.kosa-club__meta-kicker {
		font-size: 8px;
		letter-spacing: 0.04em;
	}

	.kosa-club__meta-value {
		margin-top: 8px;
		font-size: clamp(16px, 5vw, 21px);
		overflow-wrap: anywhere;
	}

	.kosa-club__hint {
		padding: 13px;
		font-size: 13px;
	}

	.kosa-club__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.kosa-card {
		min-height: 0;
		padding: 14px 12px;
		border-radius: 10px;
	}

	.kosa-card:nth-child(3):last-child {
		grid-column: 1 / -1;
	}

	.kosa-card__top {
		flex-wrap: wrap;
	}

	.kosa-card__title,
	.kosa-card__sub {
		font-size: 12px;
	}

	.kosa-card__fine,
	.kosa-badge {
		font-size: 10px;
	}

	.kosa-mobile-loyalty {
		display: grid;
		gap: 10px;
		width: 100%;
		margin: 0 0 16px;
	}

	.kosa-mobile-loyalty .kosa-cart-hint,
	.kosa-mobile-loyalty .kosa-cart-upgrade {
		display: block;
		margin: 0;
	}

	.woocommerce-cart .cart_totals > .kosa-cart-hint,
	.woocommerce-cart .cart_totals > .kosa-cart-upgrade {
		display: none;
	}
}

@media (max-width: 380px) {
	.kosa-club__meta {
		grid-template-columns: 1fr;
	}

	.kosa-club__meta-col {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}

	.kosa-club__meta-value {
		margin-top: 0;
	}
}


/* Compact Kosa Club layout: desktop reference + mobile 2/1 cards. */
.kosa-club-wrap,
.kosa-club-wrap * {
	box-sizing: border-box;
}

.kosa-club-wrap {
	width: 100%;
}

.kosa-club-wrap .kosa-club__back {
	display: inline-flex;
	align-items: center;
	margin: 0 0 18px;
	color: #17201e;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
	text-decoration: none;
}

.kosa-club-wrap .kosa-club {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px;
	overflow: visible;
	border-radius: 10px;
}

.kosa-club-wrap .kosa-club__progress {
	position: relative;
	height: 46px;
	min-height: 0;
	margin: 0 0 4px;
	padding: 0 10px 28px;
}

.kosa-club-wrap .kosa-club__track {
	position: absolute;
	top: 5px;
	right: 10px;
	left: 10px;
	height: 8px;
}

.kosa-club-wrap .kosa-club__dots {
	position: absolute;
	top: 0;
	right: 10px;
	left: 10px;
	height: 18px;
	inset: 0 10px auto;
}

.kosa-club-wrap .kosa-dot-wrap {
	top: 0;
	width: 0;
	transform: none;
}

.kosa-club-wrap .kosa-dot {
	width: 18px;
	height: 18px;
	margin: 0 !important;
	transform: translateX(-50%);
}

.kosa-club-wrap .kosa-dot-label {
	position: relative;
	left: 0 !important;
	width: max-content;
	max-width: none;
	margin-top: 8px;
	margin-right: 0 !important;
	margin-left: 0 !important;
	padding: 0 !important;
	transform: translateX(-50%) !important;
	text-align: center;
	white-space: nowrap;
	font-size: 11px;
}

.kosa-club__balance {
	margin-top: 2px;
}

.kosa-club__balance-kicker {
	color: #17201e;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.kosa-club__balance-value {
	margin-top: 7px;
	color: #17201e;
	font-size: 26px;
	font-weight: 500;
	line-height: 1.1;
}

.kosa-club__balance-value .woocommerce-Price-amount {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

.kosa-club__copy {
	color: #17201e;
	font-size: 15px;
	line-height: 1.4;
}

.kosa-club__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 22px;
	margin-top: 4px;
}

.kosa-club__links a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #17201e;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
}

.kosa-club__links a:hover,
.kosa-club__links a:focus {
	color: var(--kosa-green);
}

.kosa-club__links svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.kosa-club-wrap .kosa-club__cards {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-top: 10px;
	scroll-margin-top: 20px;
}

.kosa-club-wrap .kosa-card {
	gap: 7px;
	min-height: 116px;
	padding: 14px;
	border-radius: 9px;
}

.kosa-club-wrap .kosa-card.is-active {
	border-color: var(--kosa-border);
	box-shadow: none;
}

.kosa-club-wrap .kosa-card__title {
	font-size: 14px;
}

.kosa-club-wrap .kosa-card__sub {
	font-size: 13px;
}

.kosa-club-wrap .kosa-card__fine {
	margin-top: 3px;
	font-size: 11px;
}

@media (max-width: 767px) {
	.kosa-club-wrap .kosa-club__back {
		margin-bottom: 16px;
		font-size: 18px;
	}

	.kosa-club-wrap .kosa-club {
		gap: 12px;
		padding: 14px 9px;
		border-radius: 9px;
	}

	.kosa-club-wrap .kosa-club__progress {
		height: 46px;
		min-height: 0;
		margin: 0 0 3px;
		padding: 0 5px 28px;
	}

	.kosa-club-wrap .kosa-club__track {
		top: 5px;
		right: 5px;
		left: 5px;
		height: 7px;
	}

	.kosa-club-wrap .kosa-club__dots {
		top: 0;
		right: 5px;
		left: 5px;
		height: 17px;
		inset: 0 5px auto;
	}

	.kosa-club-wrap .kosa-dot-wrap:nth-child(1) {
		left: 18% !important;
	}

	.kosa-club-wrap .kosa-dot-wrap:nth-child(2) {
		left: 50% !important;
	}

	.kosa-club-wrap .kosa-dot-wrap:nth-child(3) {
		left: 82% !important;
	}

	.kosa-club-wrap .kosa-dot {
		width: 17px;
		height: 17px;
	}

	.kosa-club-wrap .kosa-dot-label {
		margin-top: 8px;
		font-size: 9px;
	}

	.kosa-club__balance-kicker {
		font-size: 11px;
	}

	.kosa-club__balance-value {
		margin-top: 6px;
		font-size: 24px;
	}

	.kosa-club__copy {
		font-size: 13px;
		line-height: 1.35;
	}

	.kosa-club__links {
		gap: 18px;
		margin-top: 2px;
	}

	.kosa-club__links a {
		gap: 6px;
		font-size: 14px;
	}

	.kosa-club__links svg {
		width: 19px;
		height: 19px;
	}

	.kosa-club-wrap .kosa-club__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		margin-top: 6px;
	}

	.kosa-club-wrap .kosa-card {
		min-height: 0;
		padding: 12px 10px;
	}

	.kosa-club-wrap .kosa-card:nth-child(3):last-child {
		grid-column: 1 / -1;
	}

	.kosa-club-wrap .kosa-card__top {
		flex-wrap: nowrap;
	}

	.kosa-club-wrap .kosa-card__title,
	.kosa-club-wrap .kosa-card__sub {
		font-size: 12px;
	}

	.kosa-club-wrap .kosa-card__fine,
	.kosa-club-wrap .kosa-badge {
		font-size: 10px;
	}
}

@media (max-width: 359px) {
	.kosa-club-wrap .kosa-card__top {
		flex-wrap: wrap;
	}
}

/* Mobile loyalty fallback for custom cart/checkout templates. */
.kosa-club__about {
	display: none !important;
}

.kosa-checkout-loyalty {
	display: grid;
	gap: 10px;
	width: 100%;
	margin: 0 0 16px;
}

.kosa-cart-discount {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	box-sizing: border-box;
	width: 100%;
	margin: 0 0 16px;
	padding: 14px 16px;
	border: 1px solid #dcebe4;
	border-radius: 8px;
	background: #fff;
	color: #173c34;
	font-size: 14px;
	line-height: 1.4;
}

.kosa-cart-discount strong {
	flex: 0 0 auto;
	color: #0f4f43;
	font-weight: 700;
}

.kosa-loyalty-fallback--checkout {
	position: relative;
	z-index: 2;
	display: grid !important;
	gap: 10px;
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	margin: 0 0 16px !important;
	padding: 0 !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.kosa-loyalty-fallback--checkout .kosa-cart-hint,
.kosa-loyalty-fallback--checkout .kosa-cart-upgrade,
.kosa-loyalty-fallback--checkout .kosa-checkout-info {
	display: block !important;
	margin: 0 !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.kosa-loyalty-fallback--checkout .kosa-cart-discount {
	display: flex !important;
	align-items: center;
	margin: 0 !important;
	visibility: visible !important;
	opacity: 1 !important;
}

@media (max-width: 767px) {
	.kosa-loyalty-fallback {
		position: relative;
		z-index: 2;
		display: grid !important;
		gap: 10px;
		width: 100% !important;
		max-width: none !important;
		margin: 0 0 16px !important;
		padding: 0 !important;
		visibility: visible !important;
		opacity: 1 !important;
	}

	.kosa-loyalty-fallback .kosa-cart-hint,
	.kosa-loyalty-fallback .kosa-cart-upgrade,
	.kosa-loyalty-fallback .kosa-checkout-info {
		display: block !important;
		margin: 0 !important;
		visibility: visible !important;
		opacity: 1 !important;
	}

	.kosa-loyalty-fallback .kosa-cart-discount {
		display: flex !important;
		align-items: center;
		margin: 0 !important;
		visibility: visible !important;
		opacity: 1 !important;
	}
}
