/* Free shipping and free gift progress bars. Colors and height come from the variables set in the admin settings (inline style on :root). */
.fc-pb {
	background: var(--fc-pb-bg, transparent);
	color: var(--fc-pb-text, #1f2937);
	box-sizing: border-box;
	max-width: 100%;
}

.fc-pb[hidden] {
	display: none;
}

/* Before the Cart block, and in the Mini-Cart drawer between the title and the items (the drawer blocks use 16px side padding) */
.fc-pb[data-fc-pb-placement="cart_block"] {
	margin-bottom: 1.5em;
}

.fc-pb[data-fc-pb-placement="mini_cart_block"] {
	padding: 0 16px;
	margin-bottom: 16px;
}

.fc-pb__bar {
	margin: 0 0 .75em;
}

.fc-pb__bar:last-child {
	margin-bottom: 0;
}

.fc-pb__message {
	margin: 0 0 .5em;
	font-size: 0.9375rem;
	line-height: 1.4;
	color: var(--fc-pb-text, #1f2937);
}

.fc-pb__add-back {
	margin-left: .5em;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.fc-pb__track {
	width: 100%;
	height: var(--fc-pb-height, 8px);
	border-radius: var(--fc-pb-height, 8px);
	background: var(--fc-pb-track, #e5e7eb);
	overflow: hidden;
}

.fc-pb__fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--fc-pb-fill, #2563eb);
	transition: width .3s;
}

.fc-pb__bar--unlocked .fc-pb__fill {
	background: var(--fc-pb-unlocked, #16a34a);
}

@media (prefers-reduced-motion: reduce) {
	.fc-pb__fill {
		transition: none;
	}
}

/* Dark mode: Lite adds `has-fc-dark-mode` to the body when the dark mode styles are enabled.
   The light-on-dark text and track colors are set on that selector by `FluidCheckout_PB_Renderer::dark_mode_css()`, only while the admin colors are the defaults. */

/* Gift colour picker (variable product gift): one button per variation the customer can pick, with its photo and attribute text. */
.fc-pb__choices {
	margin-top: .75em;
}

.fc-pb__choices-title {
	margin: 0 0 .5em;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--fc-pb-text, #1f2937);
}

.fc-pb__choice-list {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
}

.fc-pb__choice {
	box-sizing: border-box;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: .25em;
	min-width: 72px;
	min-height: 44px;
	max-width: 100%;
	margin: 0;
	padding: .375em;
	border: 2px solid var(--fc-pb-track, #e5e7eb);
	border-radius: 8px;
	background: transparent;
	color: var(--fc-pb-text, #1f2937);
	font: inherit;
	font-size: 0.8125rem;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
}

.fc-pb__choice:hover {
	border-color: var(--fc-pb-fill, #2563eb);
}

.fc-pb__choice:focus-visible {
	outline: 2px solid var(--fc-pb-fill, #2563eb);
	outline-offset: 2px;
}

.fc-pb__choice.is-selected,
.fc-pb__choice[aria-pressed="true"] {
	border-color: var(--fc-pb-fill, #2563eb);
	box-shadow: 0 0 0 1px var(--fc-pb-fill, #2563eb);
	font-weight: 600;
}

.fc-pb__choice[disabled],
.fc-pb__choices[aria-busy="true"] .fc-pb__choice {
	cursor: progress;
	opacity: .7;
}

.fc-pb__choice-image {
	display: block;
	width: 56px;
	height: 56px;
	max-width: 100%;
	border-radius: 4px;
	object-fit: cover;
}

.fc-pb__choice-label {
	display: block;
	max-width: 100%;
	overflow-wrap: anywhere;
}

/* Narrow screens: the choices share the width, and the touch targets stay large */
@media (max-width: 480px) {
	.fc-pb__choice-list {
		gap: .375em;
	}

	.fc-pb__choice {
		flex: 1 1 72px;
		max-width: calc(33.333% - .25em);
	}
}

body.has-fc-dark-mode .fc-pb__choice {
	border-color: var(--fc-pb-track, #4b5563);
}

body.has-fc-dark-mode .fc-pb__choice:hover,
body.has-fc-dark-mode .fc-pb__choice.is-selected,
body.has-fc-dark-mode .fc-pb__choice[aria-pressed="true"] {
	border-color: var(--fc-pb-unlocked, #16a34a);
}
