/*!
 * KodaChoices — choice cards for Gravity Forms.
 *
 * Every look comes from CSS custom properties set by the field's style (.kc-s-{id},
 * printed after this file) and by the field itself (inline style on the container).
 * Repeated class names (.kchoices.kchoices.kchoices) only raise specificity over the
 * Gravity Forms themes, so no !important is needed.
 */

/* ---------- Defaults (lowest specificity, so any style rule wins) ---------- */
:where(.kchoices, .kc-dd) {
	--kc-min-w: 150px;
	--kc-gap: 12px;
	--kc-pad: 10px;
	--kc-pad-b: 10px;
	--kc-inner-gap: 8px;
	--kc-card-bg: #ffffff;
	--kc-radius: 10px;
	--kc-border-w: 1px;
	--kc-border-c: #d0d5dd;
	--kc-shadow: none;
	--kc-ratio: 4 / 3;
	--kc-fit: cover;
	--kc-media-size: 56px;
	--kc-icon-scale: 50%;
	--kc-media-r: 6px;
	--kc-media-bg: #f2f4f7;
	--kc-icon-c: #344054;
	--kc-media-bw: 0px;
	--kc-media-bc: #d0d5dd;
	--kc-label-size: 15px;
	--kc-label-w: 600;
	--kc-label-c: #101828;
	--kc-sub-size: 13px;
	--kc-sub-c: #667085;
	--kc-price-c: #475467;
	--kc-accent: #2563eb;
	--kc-sel-bw: 2px;
	--kc-sel-bg: #eff6ff;
	--kc-sel-label-c: var(--kc-label-c);
	--kc-check-size: 22px;
	--kc-check-c: #ffffff;
	--kc-badge-r: 999px;
	--kc-dis-op: 45%;
	--kc-cols-d: 3;
	--kc-sel-extra: 0 0 #0000;
}

/* ---------- The grid ---------- */
:is(div, ul).kchoices.kchoices.kchoices {
	display: grid;
	grid-template-columns: repeat(var(--kc-cols-d, 3), minmax(0, 1fr));
	gap: var(--kc-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	inline-size: 100%;
	max-inline-size: 100%;
	box-sizing: border-box;
}
:is(div, ul).kchoices.kchoices.kchoices.kc-auto-d {
	grid-template-columns: repeat(auto-fill, minmax(min(var(--kc-min-w), 100%), 1fr));
}
@media (max-width: 1024px) {
	:is(div, ul).kchoices.kchoices.kchoices:not(.kc-auto-t) {
		grid-template-columns: repeat(var(--kc-cols-t, var(--kc-cols-d, 3)), minmax(0, 1fr));
	}
	:is(div, ul).kchoices.kchoices.kchoices.kc-auto-t {
		grid-template-columns: repeat(auto-fill, minmax(min(var(--kc-min-w), 100%), 1fr));
	}
}
@media (max-width: 640px) {
	:is(div, ul).kchoices.kchoices.kchoices:not(.kc-auto-p) {
		grid-template-columns: repeat(var(--kc-cols-p, var(--kc-cols-t, var(--kc-cols-d, 3))), minmax(0, 1fr));
	}
	:is(div, ul).kchoices.kchoices.kchoices.kc-auto-p {
		grid-template-columns: repeat(auto-fill, minmax(min(var(--kc-min-w), 100%), 1fr));
	}
}
.kchoices.kchoices.kchoices > .gfield-choice-toggle-all,
.kchoices.kchoices.kchoices > li:not(.kc-choice) {
	grid-column: 1 / -1;
	list-style: none;
	margin: 0;
}
.kchoices.kchoices.kchoices.kc-has-max .gfield-choice-toggle-all,
.kchoices.kchoices.kchoices.kc-has-max > .gchoice_select_all,
.kchoices.kchoices.kchoices.kc-has-max > .gfield-choice-toggle-all > button.gfield_choice_all_toggle {
	display: none;
}

/* ---------- Group headings ---------- */
.kchoices.kchoices.kchoices > .kc-group-heading {
	grid-column: 1 / -1;
	margin: 6px 0 -2px;
	padding: 0;
	list-style: none;
	color: var(--kc-label-c);
	font-size: calc(var(--kc-label-size) * .8);
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	opacity: .75;
}
.kchoices.kchoices.kchoices > .kc-group-heading:first-child {
	margin-block-start: 0;
}

/* ---------- Phones: one swipeable row ---------- */
@media (max-width: 640px) {
	:is(div, ul).kchoices.kchoices.kchoices.kc-swipe {
		display: flex;
		flex-direction: row;
		align-items: stretch;
		flex-wrap: nowrap;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: 2px;
		padding: 4px 2px 12px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}
	.kchoices.kchoices.kchoices.kc-swipe > .kc-choice {
		flex: 0 0 min(var(--kc-min-w), 72%);
		scroll-snap-align: start;
	}
	.kchoices.kchoices.kchoices.kc-swipe > .kc-group-heading {
		flex: 0 0 auto;
		align-self: center;
		margin: 0 4px;
		writing-mode: vertical-rl;
		transform: rotate(180deg);
	}
	.kchoices.kchoices.kchoices.kc-swipe > .gfield-choice-toggle-all,
	.kchoices.kchoices.kchoices.kc-swipe > li:not(.kc-choice):not(.kc-group-heading) {
		flex: 0 0 auto;
		align-self: center;
	}
}

/* ---------- One choice ---------- */
.kchoices.kchoices.kchoices .kc-choice {
	position: relative;
	display: block;
	margin: 0;
	padding: 0;
	min-inline-size: 0;
	inline-size: auto;
	max-inline-size: none;
	list-style: none;
	box-sizing: border-box;
}
.kchoices.kchoices.kchoices .kc-choice::before,
.kchoices.kchoices.kchoices .kc-choice::marker {
	content: none;
}
.kchoices.kchoices.kchoices .kc-choice > input[type="radio"],
.kchoices.kchoices.kchoices .kc-choice > input[type="checkbox"] {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	inline-size: 1px;
	block-size: 1px;
	min-inline-size: 0;
	min-block-size: 0;
	margin: 0;
	padding: 0;
	border: 0;
	opacity: 0;
	overflow: hidden;
	clip-path: inset(50%);
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}
.kchoices.kchoices.kchoices .kc-choice > br {
	display: none;
}
.kchoices.kchoices.kchoices .kc-choice > .gchoice_other_control {
	display: block;
	inline-size: 100%;
	max-inline-size: none;
	margin: 6px 0 0;
	box-sizing: border-box;
}

/* ---------- The card (Gravity Forms' own label) ---------- */
.kchoices.kchoices.kchoices .kc-card {
	position: relative;
	display: grid;
	grid-template-areas: "media" "text" "price";
	grid-template-columns: minmax(0, 1fr);
	align-content: start;
	justify-items: center;
	gap: var(--kc-inner-gap);
	box-sizing: border-box;
	block-size: 100%;
	inline-size: 100%;
	max-inline-size: none;
	margin: 0;
	padding: var(--kc-pad) var(--kc-pad) var(--kc-pad-b);
	background: var(--kc-card-bg);
	border: var(--kc-border-w) solid var(--kc-border-c);
	border-radius: var(--kc-radius);
	box-shadow: var(--kc-shadow);
	color: var(--kc-label-c);
	font-family: inherit;
	font-size: var(--kc-label-size);
	font-weight: var(--kc-label-w);
	line-height: 1.3;
	letter-spacing: normal;
	text-align: center;
	text-transform: none;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background-color .15s ease;
	-webkit-tap-highlight-color: transparent;
}
.kchoices.kchoices.kchoices.kc-round .kc-card {
	border-radius: 999px;
}
.kchoices.kchoices.kchoices.kc-align-left .kc-card {
	justify-items: start;
	text-align: left;
}
.kchoices.kchoices.kchoices .kc-media {
	grid-area: media;
}
.kchoices.kchoices.kchoices .kc-text {
	grid-area: text;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-inline-size: 0;
	inline-size: 100%;
}
.kchoices.kchoices.kchoices .kc-label {
	display: block;
	color: var(--kc-label-c);
	font-size: var(--kc-label-size);
	font-weight: var(--kc-label-w);
	line-height: 1.3;
	overflow-wrap: break-word;
	hyphens: auto;
}
.kchoices.kchoices.kchoices .kc-sub {
	display: block;
	color: var(--kc-sub-c);
	font-size: var(--kc-sub-size);
	font-weight: 400;
	line-height: 1.35;
}
.kchoices.kchoices.kchoices .kc-card .ginput_price {
	grid-area: price;
	display: block;
	color: var(--kc-price-c);
	font-size: var(--kc-sub-size);
	font-weight: 500;
	white-space: nowrap;
}
.kchoices.kchoices.kchoices:not(.kc-prices) .kc-card .ginput_price {
	display: none;
}
/* Labels off: still read out by screen readers. Choices without a picture keep their label. */
.kchoices.kchoices.kchoices:not(.kc-labels) .kc-has-media .kc-text {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Beside the text */
.kchoices.kchoices.kchoices.kc-layout-row .kc-card {
	grid-template-areas: "media text" "media price";
	grid-template-columns: auto minmax(0, 1fr);
	align-content: center;
	align-items: center;
	justify-items: start;
	text-align: left;
}
.kchoices.kchoices.kchoices.kc-layout-row .kc-card .ginput_price {
	align-self: start;
}
.kchoices.kchoices.kchoices.kc-layout-row .kc-no-media .kc-card {
	grid-template-areas: "text" "price";
	grid-template-columns: minmax(0, 1fr);
}
.kchoices.kchoices.kchoices.kc-layout-row.kc-align-center .kc-no-media .kc-card {
	justify-items: center;
	text-align: center;
}
.kchoices.kchoices.kchoices.kc-layout-row .kc-text {
	align-self: center;
}

/* ---------- Pictures ---------- */
.kchoices.kchoices.kchoices .kc-media--image {
	position: relative;
	display: block;
	inline-size: 100%;
	aspect-ratio: var(--kc-ratio);
	overflow: hidden;
	border-radius: var(--kc-media-r);
	box-shadow: 0 0 0 var(--kc-media-bw) var(--kc-media-bc);
	background: rgba(16, 24, 40, .04);
	line-height: 0;
}
.kchoices.kchoices.kchoices .kc-media--image img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	max-inline-size: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	object-fit: var(--kc-fit);
	transition: transform .3s ease;
}
.kchoices.kchoices.kchoices.kc-layout-row .kc-media--image {
	inline-size: var(--kc-media-size);
}
.kchoices.kchoices.kchoices.kc-media-round .kc-media--image {
	inline-size: var(--kc-media-size);
	max-inline-size: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
}
/* Second picture, shown on hover */
.kchoices.kchoices.kchoices .kc-media--image .kc-img-2 {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .25s ease, transform .3s ease;
}
.kchoices.kchoices.kchoices .kc-choice > input + .kc-card:hover .kc-img-2,
.kchoices.kchoices.kchoices .kc-choice > input:focus-visible + .kc-card .kc-img-2 {
	opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
	.kchoices.kchoices.kchoices .kc-media--image .kc-img-2 {
		transition: none;
	}
}

/* Edge to edge (picture above the text) */
.kchoices.kchoices.kchoices.kc-bleed.kc-layout-stack:not(.kc-media-round) .kc-has-media .kc-media--image {
	inline-size: calc(100% + 2 * var(--kc-pad));
	max-inline-size: none;
	margin: calc(-1 * var(--kc-pad)) calc(-1 * var(--kc-pad)) 0;
	border-radius: max(0px, calc(var(--kc-radius) - var(--kc-border-w))) max(0px, calc(var(--kc-radius) - var(--kc-border-w))) 0 0;
}
.kchoices.kchoices.kchoices.kc-bleed.kc-layout-stack.kc-round:not(.kc-media-round) .kc-has-media .kc-media--image {
	border-radius: 999px 999px 0 0;
}

/* Text over the picture */
.kchoices.kchoices.kchoices.kc-layout-overlay.kc-mode-image .kc-has-media .kc-card {
	grid-template-areas: "stack";
	padding: 0;
	overflow: hidden;
}
.kchoices.kchoices.kchoices.kc-layout-overlay.kc-mode-image .kc-has-media .kc-media,
.kchoices.kchoices.kchoices.kc-layout-overlay.kc-mode-image .kc-has-media .kc-text,
.kchoices.kchoices.kchoices.kc-layout-overlay.kc-mode-image .kc-has-media .ginput_price {
	grid-area: stack;
}
.kchoices.kchoices.kchoices.kc-layout-overlay.kc-mode-image .kc-has-media .kc-media--image {
	inline-size: 100%;
	border-radius: 0;
	box-shadow: none;
}
.kchoices.kchoices.kchoices.kc-layout-overlay.kc-mode-image .kc-has-media .kc-text {
	position: relative;
	z-index: 1;
	align-self: end;
	box-sizing: border-box;
	padding: calc(var(--kc-pad) * 2.5) var(--kc-pad) var(--kc-pad-b);
	background: linear-gradient(to top, rgba(0, 0, 0, .68), rgba(0, 0, 0, .28) 65%, rgba(0, 0, 0, 0));
}
.kchoices.kchoices.kchoices.kc-layout-overlay.kc-mode-image .kc-has-media .ginput_price {
	position: relative;
	z-index: 1;
	align-self: start;
	justify-self: start;
	margin: var(--kc-pad);
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .55);
	color: #fff;
}

/* ---------- Swatches ---------- */
.kchoices.kchoices.kchoices .kc-media--swatch {
	position: relative;
	display: block;
	inline-size: var(--kc-media-size);
	block-size: var(--kc-media-size);
	border-radius: var(--kc-media-r);
	box-shadow: 0 0 0 var(--kc-media-bw) var(--kc-media-bc);
}
.kchoices.kchoices.kchoices .kc-swatch {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .12);
}

/* ---------- Icons ---------- */
.kchoices.kchoices.kchoices .kc-media--icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: var(--kc-media-size);
	block-size: var(--kc-media-size);
	border-radius: var(--kc-media-r);
	background: var(--kc-media-bg);
	color: var(--kc-icon-c);
	box-shadow: 0 0 0 var(--kc-media-bw) var(--kc-media-bc);
}
.kchoices.kchoices.kchoices .kc-media--icon .kc-svg {
	display: block;
	inline-size: var(--kc-icon-scale);
	block-size: var(--kc-icon-scale);
	max-inline-size: none;
	overflow: visible;
}
.kchoices.kchoices.kchoices.kc-media-round .kc-media--swatch,
.kchoices.kchoices.kchoices.kc-media-round .kc-media--icon {
	border-radius: 50%;
}

/* ---------- Selected ---------- */
.kchoices.kchoices.kchoices .kc-choice > input:checked + .kc-card {
	background: var(--kc-sel-bg);
	border-color: var(--kc-accent);
	box-shadow: 0 0 0 max(0px, calc(var(--kc-sel-bw) - var(--kc-border-w))) var(--kc-accent), var(--kc-sel-extra), var(--kc-shadow);
}
.kchoices.kchoices.kchoices .kc-choice > input:checked + .kc-card .kc-label {
	color: var(--kc-sel-label-c);
}
.kchoices.kchoices.kchoices .kc-choice > input:checked + .kc-card .kc-sub,
.kchoices.kchoices.kchoices .kc-choice > input:checked + .kc-card .ginput_price {
	color: color-mix(in srgb, var(--kc-sel-label-c) 72%, transparent);
}
/* Outline around the picture / icon / swatch instead of the card. */
.kchoices.kchoices.kchoices.kc-sel-on-media .kc-has-media > input:checked + .kc-card {
	border-color: var(--kc-border-c);
	box-shadow: var(--kc-shadow);
}
.kchoices.kchoices.kchoices.kc-sel-on-media .kc-has-media > input:checked + .kc-card .kc-media {
	outline: var(--kc-sel-bw) solid var(--kc-accent);
	outline-offset: 2px;
	box-shadow: 0 0 0 var(--kc-media-bw) var(--kc-media-bc), var(--kc-sel-extra);
}
.kchoices.kchoices.kchoices.kc-sel-ring {
	--kc-sel-extra: 0 0 0 4px color-mix(in srgb, var(--kc-accent) 22%, transparent);
}
.kchoices.kchoices.kchoices.kc-sel-glow {
	--kc-sel-extra: 0 8px 22px -6px color-mix(in srgb, var(--kc-accent) 55%, transparent);
}
.kchoices.kchoices.kchoices.kc-sel-lift {
	--kc-sel-extra: 0 12px 22px -10px rgba(16, 24, 40, .35);
}
.kchoices.kchoices.kchoices.kc-sel-lift .kc-choice > input:checked + .kc-card {
	transform: translateY(-3px);
}
.kchoices.kchoices.kchoices.kc-sel-scale .kc-choice > input:checked + .kc-card {
	transform: scale(1.03);
}

/* ---------- Hover and keyboard focus ---------- */
.kchoices.kchoices.kchoices.kc-hover-border .kc-choice > input:not(:disabled):not(:checked) + .kc-card:hover {
	border-color: color-mix(in srgb, var(--kc-border-c), #101828 35%);
}
.kchoices.kchoices.kchoices.kc-hover-lift .kc-choice > input:not(:disabled) + .kc-card:hover {
	transform: translateY(-3px);
}
.kchoices.kchoices.kchoices.kc-hover-lift .kc-choice > input:not(:disabled):not(:checked) + .kc-card:hover,
.kchoices.kchoices.kchoices.kc-hover-shadow .kc-choice > input:not(:disabled):not(:checked) + .kc-card:hover {
	box-shadow: 0 10px 20px -8px rgba(16, 24, 40, .25), var(--kc-shadow);
}
.kchoices.kchoices.kchoices.kc-hover-zoom .kc-choice > input:not(:disabled) + .kc-card:hover .kc-media--image img {
	transform: scale(1.07);
}
.kchoices.kchoices.kchoices .kc-choice > input:focus-visible + .kc-card {
	outline: 2px solid var(--kc-accent);
	outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
	.kchoices.kchoices.kchoices .kc-card,
	.kchoices.kchoices.kchoices .kc-media--image img,
	.kchoices.kchoices.kchoices .kc-check {
		transition: none;
	}
	.kchoices.kchoices.kchoices .kc-choice > input + .kc-card {
		transform: none;
	}
}

/* ---------- Unavailable ---------- */
.kchoices.kchoices.kchoices .kc-choice > input:disabled + .kc-card {
	opacity: var(--kc-dis-op);
	cursor: not-allowed;
}
.kchoices.kchoices.kchoices.kc-dis-gray .kc-choice > input:disabled + .kc-card .kc-media {
	filter: grayscale(1);
}

/* The form editor disables every input in its preview: only real "unavailable" choices look it. */
#gform_fields .kchoices.kchoices.kchoices .kc-choice:not(.kc-disabled) > input:disabled + .kc-card {
	opacity: 1;
	cursor: inherit;
}
#gform_fields .kchoices.kchoices.kchoices .kc-choice:not(.kc-disabled) > input:disabled + .kc-card .kc-media {
	filter: none;
}

/* ---------- Quiz add-on: instant feedback ----------
 * Once answered, the Quiz add-on locks every choice and marks the right one (and a wrong
 * pick). Show those marks instead of the "unavailable" look. */
.gquiz-instant-feedback-validated .kchoices.kchoices.kchoices .kc-choice > input:disabled + .kc-card {
	opacity: .55;
	cursor: default;
}
.gquiz-instant-feedback-validated .kchoices.kchoices.kchoices .kc-choice > input:disabled + .kc-card .kc-media {
	filter: none;
}
.gquiz-instant-feedback-validated .kchoices.kchoices.kchoices .kc-choice > input + .kc-card.gquiz-correct-choice,
.gquiz-instant-feedback-validated .kchoices.kchoices.kchoices .kc-choice > input + .kc-card.gquiz-incorrect-choice {
	--kc-accent: var(--kc-quiz-c);
	--kc-border-c: var(--kc-quiz-c);
	--kc-sel-bg: var(--kc-quiz-bg);
	--kc-card-bg: var(--kc-quiz-bg);
	opacity: 1;
	border-color: var(--kc-quiz-c);
	background-color: var(--kc-quiz-bg);
	box-shadow: 0 0 0 1px var(--kc-quiz-c);
}
.gquiz-instant-feedback-validated .kchoices.kchoices.kchoices .kc-card.gquiz-correct-choice { --kc-quiz-c: #12b76a; --kc-quiz-bg: #ecfdf3; }
.gquiz-instant-feedback-validated .kchoices.kchoices.kchoices .kc-card.gquiz-incorrect-choice { --kc-quiz-c: #f04438; --kc-quiz-bg: #fef3f2; }
.kchoices.kchoices.kchoices .kc-card .gquiz-indicator {
	position: absolute;
	z-index: 3;
	inset-block-end: 8px;
	inset-inline-start: 8px;
	inline-size: 22px;
	block-size: 22px;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgb(16 24 40 / 20%);
}

/* ---------- Checkmark ---------- */
.kchoices.kchoices.kchoices .kc-check {
	position: absolute;
	z-index: 2;
	inset-block-start: 8px;
	inset-inline-end: 8px;
	display: block;
	inline-size: var(--kc-check-size);
	block-size: var(--kc-check-size);
	border-radius: 50%;
	background: var(--kc-accent);
	box-shadow: 0 1px 3px rgba(16, 24, 40, .25);
	opacity: 0;
	scale: .5;
	transition: opacity .15s ease, scale .15s ease;
	pointer-events: none;
}
.kchoices.kchoices.kchoices .kc-check::after {
	content: "";
	position: absolute;
	inset: 0;
	background-color: var(--kc-check-c);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 62% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.kchoices.kchoices.kchoices .kc-choice > input:checked + .kc-card .kc-check {
	opacity: 1;
	scale: 1;
}
.kchoices.kchoices.kchoices.kc-check-none .kc-check {
	display: none;
}
.kchoices.kchoices.kchoices.kc-check-square .kc-check {
	border-radius: 4px;
}
.kchoices.kchoices.kchoices.kc-check-tick .kc-check {
	background: transparent;
	box-shadow: none;
}
.kchoices.kchoices.kchoices.kc-check-tick .kc-check::after {
	background-color: var(--kc-accent);
	-webkit-mask-size: 100%;
	mask-size: 100%;
	filter: drop-shadow(0 0 1px #fff);
}
.kchoices.kchoices.kchoices.kc-check-tick .kc-swatch-dark .kc-check::after {
	background-color: #fff;
}
.kchoices.kchoices.kchoices.kc-check-at-tl .kc-check {
	inset-inline-end: auto;
	inset-inline-start: 8px;
}
.kchoices.kchoices.kchoices.kc-check-at-br .kc-check {
	inset-block-start: auto;
	inset-block-end: 8px;
}
.kchoices.kchoices.kchoices.kc-check-at-bl .kc-check {
	inset-block-start: auto;
	inset-block-end: 8px;
	inset-inline-end: auto;
	inset-inline-start: 8px;
}
/* Center: on the picture / icon / swatch when there is one, otherwise on the card. */
.kchoices.kchoices.kchoices.kc-check-at-c .kc-check {
	inset-block-start: 50%;
	inset-inline-start: 50%;
	inset-inline-end: auto;
	translate: -50% -50%;
}
.kchoices.kchoices.kchoices.kc-check-at-c .kc-no-media .kc-check {
	inset-block-start: 8px;
	inset-inline-start: auto;
	inset-inline-end: 8px;
	translate: none;
}
.kchoices.kchoices.kchoices.kc-check-at-c .kc-has-media .kc-card > .kc-check {
	display: none;
}
.kchoices.kchoices.kchoices .kc-media > .kc-check {
	display: none;
}
.kchoices.kchoices.kchoices.kc-check-at-c:not(.kc-check-none) .kc-media > .kc-check {
	display: block;
}

/* ---------- Badge ---------- */
.kchoices.kchoices.kchoices .kc-badge {
	position: absolute;
	z-index: 2;
	inset-block-start: 8px;
	inset-inline-start: 8px;
	max-inline-size: calc(100% - 16px);
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 3px 9px;
	border-radius: var(--kc-badge-r);
	background: #101828;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .01em;
	white-space: nowrap;
	pointer-events: none;
}
.kchoices.kchoices.kchoices.kc-badge-at-tr .kc-badge {
	inset-inline-start: auto;
	inset-inline-end: 8px;
}
.kchoices.kchoices.kchoices.kc-badge-at-tc .kc-badge {
	inset-block-start: 0;
	inset-inline-start: 50%;
	translate: -50% -50%;
}
.kchoices.kchoices.kchoices .kc-no-media .kc-badge,
.kchoices.kchoices.kchoices.kc-round .kc-badge {
	inset-block-start: 0;
	translate: 0 -50%;
}
.kchoices.kchoices.kchoices.kc-badge-at-tc .kc-no-media .kc-badge {
	translate: -50% -50%;
}
.kchoices.kchoices.kchoices.kc-round:not(.kc-badge-at-tc) .kc-badge {
	inset-inline-start: 18px;
}
.kchoices.kchoices.kchoices.kc-round.kc-badge-at-tr .kc-badge {
	inset-inline-start: auto;
	inset-inline-end: 18px;
}
.kchoices.kchoices.kchoices:has(.kc-no-media .kc-badge),
.kchoices.kchoices.kchoices.kc-round:has(.kc-badge) {
	padding-block-start: 10px;
}
.kchoices.kchoices.kchoices .kc-badge--popular { background: #fef0c7; color: #93370d; }
.kchoices.kchoices.kchoices .kc-badge--new { background: #d1fadf; color: #05603a; }
.kchoices.kchoices.kchoices .kc-badge--sale { background: #fee4e2; color: #b42318; }
.kchoices.kchoices.kchoices .kc-badge--soldout { background: #eaecf0; color: #475467; }
.kchoices.kchoices.kchoices .kc-badge--accent { background: var(--kc-accent); color: #fff; }
.kchoices.kchoices.kchoices .kc-choice:has(.kc-zoom) .kc-badge {
	inset-inline-start: 44px;
}
.kchoices.kchoices.kchoices.kc-badge-at-tr .kc-choice:has(.kc-zoom) .kc-badge,
.kchoices.kchoices.kchoices.kc-badge-at-tc .kc-choice:has(.kc-zoom) .kc-badge {
	inset-inline-start: auto;
}
.kchoices.kchoices.kchoices.kc-badge-at-tc .kc-choice:has(.kc-zoom) .kc-badge {
	inset-inline-start: 50%;
}

/* ---------- Enlarge button and lightbox ---------- */
.kchoices.kchoices.kchoices .kc-choice > button.kc-zoom.kc-zoom {
	position: absolute;
	z-index: 3;
	inset-block-start: 8px;
	inset-inline-start: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	inline-size: 30px;
	block-size: 30px;
	min-inline-size: 0;
	min-block-size: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: #101828;
	box-shadow: 0 1px 4px rgba(16, 24, 40, .25);
	cursor: zoom-in;
	line-height: 1;
}
.kchoices.kchoices.kchoices .kc-choice > button.kc-zoom.kc-zoom svg {
	display: block;
	inline-size: 17px;
	block-size: 17px;
}
.kchoices.kchoices.kchoices .kc-choice > button.kc-zoom.kc-zoom:hover {
	background: #fff;
}
.kchoices.kchoices.kchoices .kc-choice > button.kc-zoom.kc-zoom:focus-visible {
	outline: 2px solid var(--kc-accent);
	outline-offset: 2px;
}
.kc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(16, 24, 40, .82);
	opacity: 0;
	transition: opacity .2s ease;
}
.kc-lightbox.is-open {
	opacity: 1;
}
.kc-lightbox figure {
	margin: 0;
	max-inline-size: min(1100px, 100%);
	text-align: center;
}
.kc-lightbox img {
	display: block;
	max-inline-size: 100%;
	max-block-size: calc(100vh - 120px);
	margin: 0 auto;
	border-radius: 8px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}
.kc-lightbox figcaption {
	margin-top: 12px;
	color: #fff;
	font-size: 15px;
}
.kc-lightbox__close {
	position: absolute;
	inset-block-start: 14px;
	inset-inline-end: 14px;
	inline-size: 44px;
	block-size: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .15);
	color: #fff;
	font-size: 26px;
	line-height: 44px;
	cursor: pointer;
}
.kc-lightbox__close:hover,
.kc-lightbox__close:focus-visible {
	background: rgba(255, 255, 255, .3);
	outline: none;
}
body.kc-lightbox-open {
	overflow: hidden;
}

/* ---------- Description (on hover / focus) ---------- */
.kchoices.kchoices.kchoices .kc-desc {
	position: absolute;
	z-index: 5;
	inset-block-end: calc(100% + 8px);
	inset-inline-start: 50%;
	translate: -50% 0;
	inline-size: max-content;
	max-inline-size: 240px;
	padding: 6px 10px;
	border-radius: 6px;
	background: #101828;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity .15s ease, visibility .15s ease;
	pointer-events: none;
}
.kchoices.kchoices.kchoices .kc-desc::after {
	content: "";
	position: absolute;
	inset-block-start: 100%;
	inset-inline-start: 50%;
	margin-inline-start: -5px;
	border: 5px solid transparent;
	border-block-start-color: #101828;
}
.kchoices.kchoices.kchoices .kc-choice:hover .kc-desc,
.kchoices.kchoices.kchoices .kc-choice:focus-within .kc-desc {
	opacity: 1;
	visibility: visible;
}

/* ---------- Live region for "You can choose up to…" ---------- */
.kc-sr-only {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---------- Limits, quantities, rules ---------- */
.kchoices.kchoices.kchoices .kc-left {
	display: block;
	margin-top: 2px;
	font-size: .78em;
	font-weight: 600;
	color: var(--kc-accent, #2563eb);
}
.kchoices.kchoices.kchoices .kc-logic-hidden { display: none !important; }
.kchoices.kchoices.kchoices .kc-qty {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 4px;
	margin: 6px auto 0;
	width: max-content;
	max-width: 100%;
}
.kchoices.kchoices.kchoices .kc-has-qty:has(input:checked) .kc-qty { display: flex; }
/* A choice with a stepper: the card, then the stepper under it (both inside the grid cell). */
.kchoices.kchoices.kchoices .kc-choice.kc-has-qty { display: flex; flex-direction: column; }
.kchoices.kchoices.kchoices .kc-choice.kc-has-qty > .kc-card { flex: 1 1 auto; block-size: auto; }
.kchoices.kchoices.kchoices.kchoices .kc-qty button.kc-qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 1px solid #d0d5dd;
	border-radius: 50%;
	background: #fff;
	color: #344054;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	min-width: 0;
	min-height: 0;
	box-shadow: none;
	text-transform: none;
	cursor: pointer;
}
.kchoices.kchoices.kchoices.kchoices .kc-qty button.kc-qty-btn:hover { border-color: var(--kc-accent, #2563eb); color: var(--kc-accent, #2563eb); }
.kchoices.kchoices.kchoices.kchoices .kc-qty button.kc-qty-btn:focus-visible { outline: 2px solid var(--kc-accent, #2563eb); outline-offset: 2px; }
.kchoices.kchoices.kchoices.kchoices .kc-qty input.kc-qty-input {
	width: 3.2em;
	min-width: 0;
	max-width: 4em;
	background: #fff;
	color: #101828;
	box-shadow: none;
	line-height: 1.2;
	min-height: 30px;
	margin: 0;
	padding: 2px 4px;
	text-align: center;
	border: 1px solid #d0d5dd;
	border-radius: 6px;
	font-size: 14px;
}
.kc-counter {
	margin-top: 8px;
	font-size: .85em;
	color: #475467;
}
.kc-counter.is-done { color: #067647; font-weight: 600; }


/* ---------- Search box, shuffle, earlier answers ---------- */
.kc-search { margin: 0 0 10px; }
.kc-search.kc-search.kc-search.kc-search input.kc-search-input,
.kc-dd.kc-dd.kc-dd.kc-dd input.kc-dd-search {
	box-sizing: border-box;
	inline-size: 100%;
	max-inline-size: 360px;
	min-block-size: 38px;
	padding: 6px 12px;
	border: 1px solid var(--kc-border-c, #d0d5dd);
	border-radius: 8px;
	background: #fff;
	font-size: 15px;
}
.kc-search-none { margin: 8px 0 0; color: #667085; font-size: .9em; }
.kc-search-none[hidden] { display: none; }
.kchoices.kchoices.kchoices .kc-search-hidden { display: none !important; }
.kchoices.kchoices.kchoices .kc-tag:empty::before { content: "…"; opacity: .5; }

/* ---------- Visual dropdowns ---------- */
.kc-native-hidden {
	position: absolute !important;
	inline-size: 1px !important;
	block-size: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	opacity: 0 !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
	pointer-events: none !important;
}
.kc-dd.kc-dd.kc-dd.kc-dd {
	position: relative;
	inline-size: 100%;
	max-inline-size: 100%;
	font-size: var(--kc-label-size);
}
.kc-dd.kc-dd.kc-dd.kc-dd.kc-dd button.kc-dd-button {
	display: flex;
	align-items: center;
	gap: 10px;
	box-sizing: border-box;
	inline-size: 100%;
	min-block-size: 46px;
	margin: 0;
	padding: 6px 12px;
	border: var(--kc-border-w) solid var(--kc-border-c);
	border-radius: min(var(--kc-radius), 12px);
	background: var(--kc-card-bg);
	color: var(--kc-label-c);
	font: inherit;
	font-size: var(--kc-label-size);
	font-weight: 400;
	line-height: 1.3;
	text-align: start;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	min-inline-size: 0;
	max-inline-size: 100%;
	cursor: pointer;
}
.kc-dd.kc-dd.kc-dd.kc-dd.kc-dd button.kc-dd-button:hover { border-color: var(--kc-accent); }
.kc-dd.kc-dd.kc-dd.kc-dd.kc-dd button.kc-dd-button:focus-visible,
.kc-dd.kc-dd.kc-dd.kc-dd.kc-dd.is-open button.kc-dd-button { outline: none; border-color: var(--kc-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kc-accent) 25%, transparent); }
.kc-dd .kc-dd-value { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-inline-size: 0; }
.kc-dd .kc-dd-value.is-placeholder { color: #667085; }
.kc-dd .kc-dd-arrow { flex: none; inline-size: 18px; block-size: 18px; color: #667085; transition: transform .15s; }
.kc-dd.is-open .kc-dd-arrow { transform: rotate(180deg); }
.kc-dd .kc-dd-panel {
	position: absolute;
	z-index: 1000;
	inset-inline: 0;
	inset-block-start: calc(100% + 4px);
	box-sizing: border-box;
	padding: 6px;
	border: 1px solid var(--kc-border-c);
	border-radius: min(var(--kc-radius), 12px);
	background: #fff;
	box-shadow: 0 12px 32px rgb(16 24 40 / 16%);
}
.kc-dd .kc-dd-panel[hidden] { display: none; }
.kc-dd.kc-dd.kc-dd.kc-dd input.kc-dd-search { display: block; max-inline-size: none; margin: 0 0 6px; }
.kc-dd .kc-dd-list {
	max-block-size: 300px;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
	outline: none;
}
.kc-dd .kc-dd-option {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 8px 10px;
	border-radius: 8px;
	cursor: pointer;
	list-style: none;
}
.kc-dd .kc-dd-option[hidden] { display: none; }
.kc-dd .kc-dd-option::before,
.kc-dd .kc-dd-option::marker { content: none; }
.kc-dd .kc-dd-option.is-active { background: #f2f4f7; }
.kc-dd .kc-dd-option[aria-selected="true"] { background: var(--kc-sel-bg); color: var(--kc-sel-label-c); }
.kc-dd .kc-dd-option[aria-selected="true"].is-active { box-shadow: inset 0 0 0 2px var(--kc-accent); }
.kc-dd .kc-dd-option.is-disabled { opacity: var(--kc-dis-op); cursor: not-allowed; }
.kc-dd .kc-dd-text { display: flex; flex-direction: column; flex: 1 1 auto; min-inline-size: 0; }
.kc-dd .kc-dd-label { font-weight: var(--kc-label-w); overflow-wrap: anywhere; }
.kc-dd .kc-dd-label .ginput_price { font-weight: 400; color: var(--kc-price-c); }
.kc-dd .kc-dd-sub { font-size: var(--kc-sub-size); color: var(--kc-sub-c); }
.kc-dd .kc-left { font-size: .78em; font-weight: 600; color: var(--kc-accent); }
.kc-dd .kc-badge {
	flex: none;
	padding: 2px 8px;
	border-radius: var(--kc-badge-r);
	background: #f2f4f7;
	color: #344054;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}
.kc-dd .kc-badge--popular, .kc-dd .kc-badge--accent { background: var(--kc-accent); color: #fff; }
.kc-dd .kc-badge--new { background: #067647; color: #fff; }
.kc-dd .kc-badge--sale { background: #d92d20; color: #fff; }
.kc-dd .kc-badge--soldout { background: #475467; color: #fff; }
/* Small media beside each option. */
.kc-dd .kc-media {
	position: relative;
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	inline-size: 36px;
	block-size: 36px;
	border-radius: min(var(--kc-media-r), 8px);
	background: var(--kc-media-bg);
	color: var(--kc-icon-c);
	overflow: hidden;
}
.kc-dd .kc-media img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.kc-dd .kc-media--swatch { border-radius: 50%; background: none; box-shadow: inset 0 0 0 1px rgb(16 24 40 / 15%); }
.kc-dd .kc-media .kc-swatch { position: absolute; inset: 0; border-radius: inherit; }
.kc-dd .kc-media svg { inline-size: 55%; block-size: 55%; fill: currentColor; }
.kc-dd .kc-media .kc-check,
.kc-dd .kc-media .kc-img-2 { display: none; }
.kc-dd .kc-dd-tick {
	flex: none;
	inline-size: 18px;
	block-size: 18px;
	border: 2px solid var(--kc-border-c);
	border-radius: 4px;
	box-sizing: border-box;
}
.kc-dd .kc-dd-option[aria-selected="true"] .kc-dd-tick {
	border-color: var(--kc-accent);
	background: var(--kc-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.kc-dd .kc-dd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kc-dd .kc-dd-chips:empty { display: none; }
.kc-dd .kc-dd-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-inline-size: 100%;
	padding: 3px 4px 3px 4px;
	border: 1px solid var(--kc-accent);
	border-radius: 999px;
	background: var(--kc-sel-bg);
	font-size: 14px;
}
.kc-dd .kc-dd-chip .kc-media { inline-size: 24px; block-size: 24px; border-radius: 50%; }
.kc-dd .kc-dd-chip .kc-dd-text { flex-direction: row; }
.kc-dd .kc-dd-chip .kc-dd-label { font-weight: 500; }
.kc-dd .kc-dd-chip .kc-dd-label:first-child { padding-inline-start: 6px; }
.kc-dd.kc-dd.kc-dd.kc-dd.kc-dd button.kc-dd-chip-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 22px;
	block-size: 22px;
	min-inline-size: 0;
	min-block-size: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #475467;
	font-size: 16px;
	line-height: 1;
	box-shadow: none;
	cursor: pointer;
}
.kc-dd.kc-dd.kc-dd.kc-dd.kc-dd button.kc-dd-chip-remove:hover,
.kc-dd.kc-dd.kc-dd.kc-dd.kc-dd button.kc-dd-chip-remove:focus-visible { background: rgb(16 24 40 / 10%); color: #101828; }
.kc-dd .kc-dd-value .kc-media { inline-size: 30px; block-size: 30px; }
@media (prefers-reduced-motion: reduce) { .kc-dd .kc-dd-arrow { transition: none; } }
