/* ─── Selezione omaggio (carrello / checkout) ───
   Stessa palette già in uso nel plugin (offers-frontend.css): navy
   #134169/#0e2e4b, terracotta #bc5a29, verde "sbloccato" #1a7f37 — nessun
   colore nuovo introdotto. */

.eptmo-gift {
	margin: 16px 0 20px;
}
.eptmo-gift-box {
	background: #fff;
	border: 1px solid rgba(19, 65, 105, 0.12);
	border-radius: 14px;
	padding: 20px;
	margin-bottom: 12px;
	box-shadow: 0 10px 28px -20px rgba(14, 46, 75, 0.2);
}
.eptmo-gift-box.eptmo-gift-loading {
	opacity: 0.6;
	pointer-events: none;
}
.eptmo-gift-title {
	font-size: 1rem;
	font-weight: 800;
	color: #0e2e4b;
	margin: 0 0 4px;
}
.eptmo-gift-title--ok {
	color: #1a7f37;
}
.eptmo-gift-sub {
	font-size: 0.875rem;
	color: #4e5655;
	margin: 0 0 14px;
}

/* Griglia di scelta */
.eptmo-gift-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 14px;
}
.eptmo-gift-card {
	border: 1px solid rgba(19, 65, 105, 0.1);
	border-radius: 12px;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: #f8fafa;
}
.eptmo-gift-card-img {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}
.eptmo-gift-card-img img {
	width: 100%;
	height: 120px;
	object-fit: contain;
	display: block;
}
.eptmo-gift-pill {
	position: absolute;
	top: 8px;
	left: 8px;
	background: #bc5a29;
	color: #fff;
}
.eptmo-gift-card-name {
	font-size: 0.875rem;
	font-weight: 700;
	color: #0e2e4b;
	margin: 4px 0 0;
	line-height: 1.3;
}
.eptmo-gift-card-desc {
	font-size: 0.75rem;
	color: #4e5655;
	line-height: 1.5;
	margin: 0;
}
.eptmo-gift-choose {
	margin-top: auto;
	height: 38px;
	border: none;
	border-radius: 999px;
	background: #134169;
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 150ms;
}
.eptmo-gift-choose:hover {
	background: #bc5a29;
}

/* Riepilogo scelta confermata */
.eptmo-gift-confirm {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	background: #eaf7ee;
	border-left: 3px solid #1a7f37;
	border-radius: 8px;
	padding: 12px 16px;
}
.eptmo-gift-confirm-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.eptmo-gift-confirm-name {
	font-size: 0.9375rem;
	font-weight: 700;
	color: #0e2e4b;
}
.eptmo-gift-confirm-qty {
	font-size: 0.8125rem;
	color: #4e5655;
}
.eptmo-gift-change {
	flex-shrink: 0;
	height: 36px;
	padding: 0 16px;
	border: 1px solid #134169;
	border-radius: 999px;
	background: #fff;
	color: #134169;
	font-size: 0.8125rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 150ms, color 150ms;
}
.eptmo-gift-change:hover {
	background: #134169;
	color: #fff;
}

/* Checkout: stesse misure del box nudge (eptmo-nudge--checkout), stampato
   fuori da <form class="checkout"> sullo stesso hook. */
.eptmo-gift--checkout {
	max-width: 1200px;
	margin: 0 auto 24px;
	padding: 0 32px;
	box-sizing: border-box;
}
@media (max-width: 600px) {
	.eptmo-gift--checkout {
		padding: 0 20px;
	}
}

@media (max-width: 480px) {
	.eptmo-gift-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	}
	.eptmo-gift-confirm {
		flex-direction: column;
		align-items: flex-start;
	}
	.eptmo-gift-change {
		width: 100%;
	}
}
