/* ============================================================
   Woo Confezioni Regalo — stili frontend  v1.1.0
   ============================================================ */

/* ---------- UI per-prodotto nel carrello ---------- */

.wcr-item-gift-wrap {
	margin-top: 8px;
	font-size: 0.88rem;
}

.wcr-item-gift-header {
	display: inline-block;
}

.wcr-item-gift-toggle-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	color: #555;
	font-weight: 500;
	user-select: none;
}

.wcr-item-gift-toggle {
	width: 15px;
	height: 15px;
	cursor: pointer;
	accent-color: #7a5c3a;
	flex-shrink: 0;
}

.wcr-gift-icon {
	font-size: 1rem;
	line-height: 1;
}

.wcr-item-gift-body {
	margin-top: 10px;
	padding: 12px 14px;
	border: 1px solid #e0d5c8;
	border-radius: 7px;
	background: #fdfbf8;
}

/* ---------- Griglia card confezioni (condivisa) ---------- */

.wcr-gift-products {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
}

.wcr-gift-card {
	border: 2px solid #e0d5c8;
	border-radius: 7px;
	padding: 8px 8px 10px;
	cursor: pointer;
	text-align: center;
	background: #fff;
	width: 120px;
	flex-shrink: 0;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	outline: none;
}

.wcr-gift-card:hover,
.wcr-gift-card:focus {
	border-color: #7a5c3a;
	box-shadow: 0 2px 8px rgba(122, 92, 58, 0.18);
}

.wcr-gift-card.is-selected {
	border-color: #7a5c3a;
	background: #fdf3e7;
	box-shadow: 0 3px 12px rgba(122, 92, 58, 0.22);
}

.wcr-gift-card-img img {
	width: 100%;
	height: 75px;
	object-fit: contain;
	display: block;
	margin: 0 auto 6px;
}

.wcr-gift-card-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.wcr-gift-card-name {
	font-size: 0.78rem;
	font-weight: 600;
	color: #2c2c2c;
	line-height: 1.3;
}

.wcr-gift-card-price {
	font-size: 0.82rem;
	color: #7a5c3a;
	font-weight: 700;
}

.wcr-gift-card-unit {
	font-size: 0.72rem;
	font-weight: 400;
	color: #999;
}

/* ---------- Campo messaggio bigliettino (condiviso) ---------- */

.wcr-item-gift-message-wrap {
	margin-top: 4px;
}

.wcr-gift-message-label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	color: #444;
	margin-bottom: 5px;
}

.wcr-gift-message {
	width: 100%;
	max-width: 420px;
	padding: 6px 9px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 0.85rem;
	font-family: inherit;
	resize: none;
	overflow: hidden;
	height: 34px;
	min-height: 34px;
	max-height: 160px;
	box-sizing: border-box;
	transition: border-color 0.12s;
	line-height: 1.4;
}

.wcr-gift-message:focus {
	border-color: #7a5c3a;
	outline: none;
	box-shadow: 0 0 0 2px rgba(122, 92, 58, 0.15);
}

.wcr-gift-save-status {
	display: inline-block;
	font-size: 0.75rem;
	color: #7a5c3a;
	margin-left: 8px;
	vertical-align: middle;
}

/* ---------- Riepilogo nel checkout ---------- */

.wcr-checkout-summary {
	margin: 20px 0;
	padding: 14px 18px;
	border: 1px solid #e0d5c8;
	border-radius: 7px;
	background: #fdfbf8;
	font-size: 0.9rem;
}

.wcr-checkout-summary-title {
	margin: 0 0 8px;
	font-size: 0.95rem;
}

.wcr-checkout-summary-list {
	margin: 0 0 10px;
	padding-left: 18px;
	line-height: 1.7;
}

.wcr-checkout-summary-edit {
	margin: 0;
	font-size: 0.82rem;
}

.wcr-checkout-summary-edit a {
	color: #7a5c3a;
}

/* ---------- Dropdown pacchetto ---------- */

.wcr-item-gift-package-wrap {
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.wcr-gift-package-label {
	font-size: 0.82rem;
	font-weight: 600;
	color: #444;
	white-space: nowrap;
}

.wcr-item-gift-package {
	font-size: 0.85rem;
	padding: 4px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-family: inherit;
	cursor: pointer;
}

.wcr-item-gift-package:focus {
	border-color: #7a5c3a;
	outline: none;
	box-shadow: 0 0 0 2px rgba(122, 92, 58, 0.15);
}

/* ---------- Campo nome pacchetto ---------- */

.wcr-item-gift-group-name-wrap {
	margin-bottom: 10px;
}

.wcr-item-gift-group-name {
	width: 100%;
	max-width: 280px;
	padding: 5px 9px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.85rem;
	font-family: inherit;
	font-weight: 600;
	color: #2c2c2c;
}

.wcr-item-gift-group-name:focus {
	border-color: #7a5c3a;
	outline: none;
	box-shadow: 0 0 0 2px rgba(122, 92, 58, 0.15);
}

/* ---------- Selettore quantità ---------- */

.wcr-item-gift-qty-wrap {
	margin: 6px 0 10px;
}

.wcr-gift-qty-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.82rem;
	font-weight: 600;
	color: #444;
}

.wcr-item-gift-qty {
	width: 58px;
	padding: 4px 6px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.85rem;
	text-align: center;
	font-family: inherit;
}

.wcr-item-gift-qty:focus {
	border-color: #7a5c3a;
	outline: none;
	box-shadow: 0 0 0 2px rgba(122, 92, 58, 0.15);
}

.wcr-gift-qty-of {
	color: #888;
	font-weight: 400;
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
	.wcr-gift-card {
		width: 100px;
	}

	.wcr-gift-card-img img {
		height: 60px;
	}
}
