/* gift picker, styled like the mini-cart cross-sells */

/* mini-cart band (profidev_mini_cart_after_items) */
.txl-promo-band {
	padding: 1.625rem 1.4375rem 2.375rem 2.0625rem;
	background-color: var(--theme-hlp-color-primary, #f4f1ee);
}

.txl-promo-band .txl-promo {
	max-width: 25.75rem;
}

/* checkout / fallback: inside the item list */
.txl-promo-item {
	list-style: none;
	width: 100%;
}

#order_review .txl-promo-item {
	padding-top: 1.25rem;
}

.woocommerce-mini-cart .txl-promo-item {
	max-width: 25.75rem;
}

@media (max-width: 576px) {
	.txl-promo-band {
		padding: 1.125rem 1.375rem 1.4375rem;
	}

	.txl-promo-band .txl-promo {
		max-width: none;
	}
}

.txl-promo {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	color: var(--theme-color-secondary, #303132);
	transition: opacity 0.2s;
}

.txl-promo.is-loading {
	opacity: 0.5;
	pointer-events: none;
}

.txl-promo p {
	margin: 0;
}

.txl-promo .txl-promo__badge {
	padding: 0.3rem 1rem;
	background-color: var(--theme-color-tertiary, #3a3b3d);
	color: var(--theme-color-white, #fff);
	font-size: var(--theme-fs-body-md, 0.875rem);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
}

.txl-promo .txl-promo__title {
	font-size: var(--theme-fs-body-xl, 1.125rem);
	font-weight: 700;
	line-height: 1.3;
}

.txl-promo__note,
.txl-promo__count {
	font-size: var(--theme-fs-body-md, 0.875rem);
}

.txl-promo__options {
	display: flex;
	flex-direction: column;
	gap: 1.3125rem;
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
}

.txl-promo__option {
	display: flex;
	align-items: flex-start;
	gap: 1.875rem;
}

.txl-promo .txl-promo__options .txl-promo__or {
	margin: -0.25rem 0 -0.25rem calc(6rem + 1.875rem);
	font-style: italic;
	font-size: var(--theme-fs-body-md, 0.875rem);
}

.txl-promo__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 6rem;
	aspect-ratio: 1 / 1;
	max-width: 100%;
	padding: 0.5rem;
	background-color: var(--theme-hlp-color-primary, #f4f1ee);
	border: var(--theme-border, 1px solid) var(--theme-border-color-secondary, #d9d6d2);
	border-radius: var(--theme-radius-xs, 0);
	overflow: hidden;
}

.txl-promo__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.txl-promo__desc {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.txl-promo__name {
	font-size: var(--theme-fs-body-lg, 1rem);
	font-weight: 700;
	line-height: 1.25;
	margin-bottom: 3px;
	overflow-wrap: break-word;
	hyphens: auto;
}

.txl-promo__price,
.txl-promo__qty {
	font-size: var(--theme-fs-body-md, 0.875rem);
	line-height: var(--theme-lh-body-xl, 1.5);
}

.txl-promo__qty {
	font-weight: 600;
}

.txl-promo__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.txl-promo .txl-promo__pick,
.txl-promo .txl-promo__less {
	appearance: none;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 2.1875rem;
	padding: 0.5rem 0.9375rem;
	background: none;
	border: var(--theme-border, 1px solid) var(--theme-border-color-primary, #c9c6c2);
	border-radius: 0;
	box-shadow: none;
	color: var(--theme-color-secondary, #303132);
	font: inherit;
	font-size: var(--theme-fs-body-md, 0.875rem);
	font-weight: 500;
	line-height: normal;
	letter-spacing: inherit;
	text-transform: uppercase;
	cursor: pointer;
}

.txl-promo .txl-promo__pick {
	min-width: 7.5rem;
	width: max-content;
}

.txl-promo .txl-promo__less {
	min-width: 2.1875rem;
	padding-inline: 0;
}

.txl-promo .txl-promo__pick:hover:not(:disabled),
.txl-promo .txl-promo__less:hover {
	border-color: var(--theme-color-secondary, #303132);
}

/* chosen */
.txl-promo .txl-promo__pick:disabled {
	background-color: var(--theme-color-tertiary, #3a3b3d);
	border-color: var(--theme-color-tertiary, #3a3b3d);
	color: var(--theme-color-white, #fff);
	cursor: default;
	opacity: 1;
}

.txl-promo .txl-promo__pick:focus-visible,
.txl-promo .txl-promo__less:focus-visible {
	outline: 2px solid var(--theme-color-secondary, #303132);
	outline-offset: 2px;
}

@media (max-width: 576px) {
	.txl-promo__option {
		gap: 1.3125rem;
	}

	.txl-promo__thumb {
		width: 5.4375rem;
	}

	.txl-promo .txl-promo__options .txl-promo__or {
		margin-left: calc(5.4375rem + 1.3125rem);
	}
}

.txl-promo-free {
	font-weight: 700;
	color: var(--theme-color-success, inherit);
}

.txl-promo__price .txl-promo-free {
	font-weight: 400;
	color: inherit;
}

.txl-promo-qty {
	font-weight: 700;
}

.txl-promo-teaser {
	margin: 0 0 0.75rem;
	font-weight: 700;
	color: var(--theme-color-success, inherit);
}
