/**
 * Shortcode [sc_menu_venditore] — header venditori (Kadence).
 *
 * Colore degli accenti dei pulsanti rapidi venditore: modifica qui i valori hex (e la variante “soft” per le ombre leggere).
 * Percorso file: wp-content/mu-plugins/assets/sc-menu-venditore.css
 *
 * --sc-vendor-accent       colore principale (testo/bordo/hover fill)
 * --sc-vendor-accent-soft  alone leggero intorno al pulsante (rgba derivata dall’accent)
 */
.sc-vendor-menu-wrap {
	/* ← Cambia questi hex per i test colore */
	--sc-vendor-accent: #e63946;
	--sc-vendor-accent-soft: rgba(230, 57, 70, 0.16);
	--sc-vendor-icon-size: calc(18px * 0.8);

	font-size: 13px;
	line-height: 1.3;
}

.sc-vendor-menu-wrap .sc-vendor-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sc-vendor-menu-wrap .sc-vendor-menu__item {
	margin: 0;
	padding: 0;
}

.sc-vendor-menu-wrap .sc-vendor-menu__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none !important;
	color: var(--sc-vendor-accent) !important;
	background: #fff;
	border: 1px solid var(--sc-vendor-accent);
	box-shadow: 0 0 0 1px var(--sc-vendor-accent-soft);
	transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
	white-space: nowrap;
}

.sc-vendor-menu-wrap .sc-vendor-menu__link:hover,
.sc-vendor-menu-wrap .sc-vendor-menu__link:focus-visible {
	background: var(--sc-vendor-accent);
	color: #fff !important;
	box-shadow: 0 2px 0 var(--vc-ink, #1e2a39);
	transform: translateY(-1px);
	outline: none;
}

.sc-vendor-menu-wrap .sc-vendor-menu__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--sc-vendor-icon-size);
	height: var(--sc-vendor-icon-size);
	flex-shrink: 0;
	overflow: hidden;
}

.sc-vendor-menu-wrap .sc-vendor-menu__icon--img {
	border-radius: 4px;
}

.sc-vendor-menu-wrap .sc-vendor-menu__icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.sc-vendor-menu-wrap .sc-vendor-menu__icon--img img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	display: block;
	object-fit: contain;
	object-position: center;
}

.sc-vendor-menu-wrap .sc-vendor-menu__label {
	font-size: 12px;
	letter-spacing: 0.02em;
}

/*
 * Tablet e desktop (tutto salvo smartphone stretto): icona sopra il testo.
 * Così anche finestre «medi» (~700px) non restano orizzontali come prima.
 */
@media (min-width: 481px) {
	.sc-vendor-menu-wrap .sc-vendor-menu__link {
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		text-align: center;
		gap: 8px;
		min-width: 5.5rem;
		max-width: 8rem;
		padding: 10px 12px;
		border-radius: 14px;
		line-height: 1.2;
		white-space: normal;
	}

	.sc-vendor-menu-wrap .sc-vendor-menu__label {
		font-size: 11px;
		line-height: 1.25;
		font-weight: 800;
		max-width: 100%;
		white-space: normal;
	}

	.sc-vendor-menu-wrap .sc-vendor-menu__icon--img {
		border-radius: 8px;
	}
}

@media (min-width: 481px) and (max-width: 782px) {
	.sc-vendor-menu-wrap {
		--sc-vendor-icon-size: clamp(34px, 8.8vw, 45px);
	}

	.sc-vendor-menu-wrap .sc-vendor-menu__link {
		padding: 9px 10px;
	}
}

@media (min-width: 783px) {
	.sc-vendor-menu-wrap {
		--sc-vendor-icon-size: 48px;
	}

	.sc-vendor-menu-wrap .sc-vendor-menu__link {
		padding: 12px 12px;
	}

	.sc-vendor-menu-wrap .sc-vendor-menu__icon--img {
		border-radius: 10px;
	}
}

@media (max-width: 480px) {
	.sc-vendor-menu-wrap {
		--sc-vendor-icon-size: clamp(42px, 15.2vw, 61px);
	}

	.sc-vendor-menu-wrap .sc-vendor-menu__label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.sc-vendor-menu-wrap .sc-vendor-menu__link {
		flex-direction: row;
		gap: 0;
		padding: 8px 9px;
		border-radius: 14px;
		white-space: nowrap;
	}

	.sc-vendor-menu-wrap .sc-vendor-menu__icon--img {
		border-radius: 8px;
	}
}

/* Messaggio ospite / non-vendor */
.sc-vendor-menu-wrap .sc-vendor-menu--guest {
	display: block;
	max-width: 280px;
	text-align: right;
	font-size: 12px;
	line-height: 1.45;
	color: var(--vc-ink, #1e2a39);
}

.sc-vendor-menu-wrap .sc-vendor-menu--guest__text {
	margin: 0;
	font-weight: 600;
}

.sc-vendor-menu-wrap .sc-vendor-menu--guest__actions {
	margin: 6px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	justify-content: flex-end;
}

/* Pulsanti ospite (tutti i breakpoint): fallback compatto */
.sc-vendor-menu-wrap .sc-vendor-menu--guest__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border-radius: 999px;
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.03em;
	text-decoration: none !important;
	background: #fff;
	color: #d90818 !important;
	border: 1px solid #ff2233;
	box-shadow:
		0 0 0 1px rgba(255, 34, 51, 0.35),
		0 2px 8px rgba(255, 34, 51, 0.12);
	transition:
		background 0.18s ease,
		color 0.18s ease,
		box-shadow 0.2s ease,
		transform 0.15s ease,
		border-color 0.18s ease;
}

.sc-vendor-menu-wrap .sc-vendor-menu--guest__btn:hover,
.sc-vendor-menu-wrap .sc-vendor-menu--guest__btn:focus-visible {
	background: #fff8f8;
	color: #a00612 !important;
	border-color: #ff3344;
	box-shadow:
		0 0 10px rgba(255, 34, 51, 0.28),
		0 0 0 1px rgba(255, 51, 68, 0.45);
	transform: translateY(-1px);
	outline: none;
}

@media (min-width: 783px) {
	.sc-vendor-menu-wrap--guest .sc-vendor-menu--guest {
		max-width: min(560px, 100%);
		margin-inline: auto;
		text-align: center;
	}

	.sc-vendor-menu-wrap--guest .sc-vendor-menu--guest__text {
		text-transform: uppercase;
		font-size: clamp(0.94rem, 1.05vw + 0.65rem, 1.28rem);
		font-weight: 800;
		letter-spacing: 0.08em;
		line-height: 1.4;
	}

	.sc-vendor-menu-wrap--guest .sc-vendor-menu--guest__actions {
		margin-top: 14px;
		justify-content: center;
		gap: 14px 20px;
		flex-wrap: wrap;
	}

	.sc-vendor-menu-wrap--guest .sc-vendor-menu--guest__btn {
		text-transform: uppercase;
		padding: 11px 22px;
		font-size: 13px;
		letter-spacing: 0.06em;
	}
}

/* Utente loggato ma non vendor: messaggio (Archivo Black da Google Fonts nel MU-plugin) */
.sc-vendor-menu-wrap--non-vendor .sc-vendor-menu--non-vendor__headline {
	margin: 0;
	font-family: "Archivo Black", "Arial Black", sans-serif;
	font-weight: 400;
	color: #111111;
	font-size: clamp(0.58rem, 1.7vw + 0.38rem, 0.88rem);
	line-height: 1.35;
	letter-spacing: 0.045em;
	text-align: right;
}

@media (min-width: 783px) {
	.sc-vendor-menu-wrap--non-vendor .sc-vendor-menu--guest {
		max-width: min(640px, 100%);
		margin-inline: auto;
		text-align: center;
	}

	.sc-vendor-menu-wrap--non-vendor .sc-vendor-menu--non-vendor__headline {
		text-align: center;
		font-size: clamp(0.68rem, 0.85vw + 0.5rem, 1rem);
	}
}

/* Bacheca «Il mio account»: Home / Preferiti / Scambio (stesse asset dell’header) */
.woocommerce-account .vc-wc-account-vendor-cards {
	--vc-dash-blue: #0445AF;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.65rem;
	max-width: 36rem;
	margin: 0.25rem 0 1.75rem;
	padding: 0;
	box-sizing: border-box;
}

@media (min-width: 600px) {
	.woocommerce-account .vc-wc-account-vendor-cards {
		gap: 0.85rem;
		max-width: 42rem;
	}
}

.woocommerce-account .vc-wc-account-vendor-cards__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	text-decoration: none !important;
	background: #ffffff;
	border: 1px solid var(--vc-dash-magenta);
	border-radius: 14px;
	padding: 0.65rem 0.45rem 0.75rem;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
	transition:
		transform 0.15s ease,
		box-shadow 0.18s ease,
		border-color 0.18s ease;
	box-sizing: border-box;
	min-height: 0;
}

.woocommerce-account .vc-wc-account-vendor-cards__card:hover,
.woocommerce-account .vc-wc-account-vendor-cards__card:focus-visible {
	transform: translateY(-2px);
	border-color: #04B8D8;
	box-shadow: 0 6px 18px rgba(4, 69, 175, 0.18);
	outline: none;
}

.woocommerce-account .vc-wc-account-vendor-cards__img {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0 0 6px;
	min-height: 4.25rem;
}

.woocommerce-account .vc-wc-account-vendor-cards__img img {
	width: 72px;
	height: auto;
	max-width: min(92px, 24vw);
	display: block;
	object-fit: contain;
}

@media (min-width: 600px) {
	.woocommerce-account .vc-wc-account-vendor-cards__img img {
		width: 88px;
		max-width: 100px;
	}
}

.woocommerce-account .vc-wc-account-vendor-cards__label {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: var(--vc-dash-magenta);
	line-height: 1.2;
	max-width: 100%;
	word-break: break-word;
}

@media (min-width: 600px) {
	.woocommerce-account .vc-wc-account-vendor-cards__label {
		font-size: 12px;
	}
}

