/* Free Gift Selector — cart row UI (reference layout) */

.gs-plugin-fgs-fragment {
	margin: 1.5rem 0 2rem;
}

.gs-plugin-fgs {
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	font-family: 'Gotham', sans-serif !important;
}

.gs-plugin-fgs__header {
	margin: 0 0 1rem;
	padding: 0 0.25rem;
}

.gs-plugin-fgs__title {
	margin: 0 0 0.35rem;
	font-size: 1.15rem;
	font-weight: 600;
}

.gs-plugin-fgs__subtitle {
	margin: 0;
	color: #444;
	font-size: 0.95rem;
}

.gs-plugin-fgs__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

/* One gift row = horizontal card */
.gs-plugin-fgs__row {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 1rem;
	padding: 1rem 1.1rem;
	background: linear-gradient(180deg, #fdfbf7 0%, #f5f0e8 100%);
	border: 1px solid #e8e0d4;
	border-radius: 0;
	box-sizing: border-box;
}

.gs-plugin-fgs__row.is-locked {
	opacity: 0.78;
}

.gs-plugin-fgs__thumb {
	position: relative;
	flex: 0 0 72px;
	width: 72px;
	text-align: center;
	align-self: center;
}

.gs-plugin-fgs__thumb img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
	transform: rotate(-3deg);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.gs-plugin-fgs__row.is-locked .gs-plugin-fgs__thumb img {
	transform: none;
	opacity: 0.65;
	filter: grayscale(0.35);
}

.gs-plugin-fgs__lock {
	position: absolute;
	top: 2px;
	right: 2px;
	font-size: 0.85rem;
	line-height: 1;
}

.gs-plugin-fgs__center {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding-top: 0.15rem;
}

.gs-plugin-fgs__center-top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
}

.gs-plugin-fgs__name {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	color: #111;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.gs-plugin-fgs__lines {
	list-style: none;
	margin: 0.25rem 0 0.35rem;
	padding: 0;
}

.gs-plugin-fgs__line {
	display: flex;
	align-items: flex-start;
	gap: 0.45rem;
	margin: 0 0 0.35rem;
	font-size: 0.9rem;
	color: #222;
	line-height: 1.35;
}

.gs-plugin-fgs__line:last-child {
	margin-bottom: 0;
}

.gs-plugin-fgs__line-remove {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	padding: 0;
	margin: 0.1rem 0 0;
	border: none;
	background: transparent;
	color: #555;
	cursor: pointer;
	border-radius: 2px;
}

.gs-plugin-fgs__line-remove:hover {
	color: #111;
	background: rgba(0, 0, 0, 0.05);
}

.gs-plugin-fgs__svg-trash {
	display: block;
}

.gs-plugin-fgs__line-text {
	flex: 1 1 auto;
	min-width: 0;
}

.gs-plugin-fgs__toggle-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.55rem;
	margin-top: 0.15rem;
}

/* Pill toggle */
.gs-plugin-fgs__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	padding: 0;
	border: none;
	background: transparent;
	cursor: default;
	line-height: 1;
}

.gs-plugin-fgs__toggle--on {
	cursor: pointer;
}

.gs-plugin-fgs__toggle-track {
	display: inline-block;
	width: 44px;
	height: 24px;
	border-radius: 999px;
	position: relative;
	transition: background 0.2s ease;
}

.gs-plugin-fgs__toggle--off .gs-plugin-fgs__toggle-track {
	background: #d5d5d5;
	border: 1px solid #c8c8c8;
}

.gs-plugin-fgs__toggle--off.is-disabled .gs-plugin-fgs__toggle-track {
	opacity: 0.75;
}

.gs-plugin-fgs__toggle--on .gs-plugin-fgs__toggle-track {
	background: #00d084;
	border: 1px solid #00b875;
}

.gs-plugin-fgs__toggle-thumb {
	position: absolute;
	top: 2px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.55rem;
	font-weight: 700;
	color: #888;
	line-height: 1;
	transition: transform 0.2s ease, color 0.2s ease;
}

.gs-plugin-fgs__toggle--on .gs-plugin-fgs__toggle-thumb {
	left: auto;
	right: 3px;
	color: #00a32a;
	font-size: 0.65rem;
}

.gs-plugin-fgs__free-label {
	font-size: 0.95rem;
	font-weight: 600;
	color: #111;
}

.gs-plugin-fgs__free-label--on {
	color: #00a32a;
}

.gs-plugin-fgs__free-label .woocommerce-Price-amount,
.gs-plugin-fgs__aside-price .woocommerce-Price-amount {
	font-weight: 600;
}

.gs-plugin-fgs__hint {
	margin: 0.15rem 0 0;
	font-size: 0.82rem;
	color: #555;
	line-height: 1.35;
}

/* Right column: black button + bottom price */
.gs-plugin-fgs__aside {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	align-self: stretch;
	min-width: 8.5rem;
	gap: 0.75rem;
	padding-top: 0.1rem;
}

.gs-plugin-fgs__choose {
	display: inline-block;
	margin: 0;
	padding: 0.55rem 1.1rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: none;
	color: #fff !important;
	background: #111 !important;
	border: 1px solid #111 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	text-align: center;
	line-height: 1.2;
	white-space: nowrap;
}

.gs-plugin-fgs__choose:hover {
	background: #000 !important;
	border-color: #000 !important;
	color: #fff !important;
}

.gs-plugin-fgs__choose.is-active {
	/* keep black CTA like reference "Choose samples" when selected */
	background: #111 !important;
	border-color: #111 !important;
}

.gs-plugin-fgs__choose--locked,
.gs-plugin-fgs__choose--locked:disabled {
	background: #e0e0e0 !important;
	color: #555 !important;
	border: 1px solid #ccc !important;
	cursor: not-allowed;
	opacity: 1;
}

.gs-plugin-fgs__aside-price {
	font-size: 0.9rem;
	color: #222;
	margin-top: auto;
	align-self: flex-end;
}

body.gs-plugin-fgs-loading .gs-plugin-fgs__choose,
body.gs-plugin-fgs-loading .gs-plugin-fgs__toggle--on,
body.gs-plugin-fgs-loading .gs-plugin-fgs__line-remove {
	pointer-events: none;
	opacity: 0.65;
}

/* Cart table: hide remove control for gift rows */
.woocommerce-cart .gs-plugin-fgs-cart-row .product-remove {
	display: none !important;
}

@media (max-width: 600px) {
	.gs-plugin-fgs__row {
		flex-wrap: wrap;
	}

	.gs-plugin-fgs__aside {
		flex: 1 1 100%;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		min-width: 0;
		padding-top: 0.5rem;
		border-top: 1px solid rgba(0, 0, 0, 0.06);
	}

	.gs-plugin-fgs__aside-price {
		margin-top: 0;
	}
}