/*
 * Favoritos organizados: desplegable "Guardar en grupo" en la ficha pública
 * de marca, y página [awin_mis_favoritos].
 */

/* Desplegable en la ficha de marca */
.awin-fg-dd {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 50;
	min-width: 220px;
	max-width: 280px;
	background: #ffffff;
	border: 1px solid rgba(160,100,60,0.22);
	border-radius: 10px;
	box-shadow: 0 12px 28px rgba(0,0,0,0.14);
	padding: 6px;
	max-height: 280px;
	overflow-y: auto;
}
.awin-fg-dd-empty {
	padding: 10px 12px;
	font-size: 13px;
	color: #8b8f92;
}
.awin-fg-dd-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	padding: 8px 10px;
	background: none;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	text-align: left;
	font-size: 13px;
	color: #2d1810;
	transition: background 0.15s;
}
.awin-fg-dd-item:hover { background: rgba(217,113,63,0.1); }
.awin-fg-dd-item.is-in { color: #d9713f; font-weight: 600; }
.awin-fg-dd-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.awin-fg-dd-check { flex-shrink: 0; color: #d9713f; }
.awin-fg-dd-new {
	display: flex;
	gap: 6px;
	padding: 8px 6px 4px;
	border-top: 1px solid rgba(160,100,60,0.15);
	margin-top: 4px;
}
.awin-fg-dd-new-input {
	flex: 1;
	min-width: 0;
	padding: 7px 9px;
	border: 1px solid rgba(160,100,60,0.25);
	border-radius: 6px;
	font-size: 12px;
	outline: none;
	color: #2d1810;
}
.awin-fg-dd-new-input:focus { border-color: #d9713f; }
.awin-fg-dd-new-btn {
	padding: 7px 12px;
	background: #d9713f;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}
.awin-fg-dd-new-btn:hover { background: #b85a38; }
.awin-fg-dd-new-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Página de gestión [awin_mis_favoritos] */
.awin-fg-page { max-width: 900px; margin: 0 auto; padding: 24px 16px 60px; }
.awin-fg-page-title { font-size: 22px; font-weight: 700; color: #2d1810; margin: 0 0 4px; }
.awin-fg-page-subtitle { font-size: 14px; color: #8b8f92; margin: 0 0 24px; }
.awin-fg-loading, .awin-fg-empty {
	padding: 40px 20px;
	text-align: center;
	color: #8b8f92;
	font-size: 14px;
}
.awin-fg-empty p { margin: 0 0 8px; }
.awin-fg-group {
	background: #ffffff;
	border: 1px solid rgba(160,100,60,0.18);
	border-radius: 12px;
	padding: 16px 18px;
	margin-bottom: 16px;
}
.awin-fg-group-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}
.awin-fg-group-name {
	font-size: 16px;
	font-weight: 700;
	color: #2d1810;
	margin: 0;
	cursor: pointer;
}
.awin-fg-group-actions { display: flex; gap: 6px; flex-shrink: 0; }
.awin-fg-rename-btn, .awin-fg-delete-btn {
	background: none;
	border: 1px solid rgba(160,100,60,0.22);
	border-radius: 6px;
	width: 30px;
	height: 30px;
	cursor: pointer;
	color: #8b8f92;
	font-size: 14px;
	transition: color 0.15s, border-color 0.15s;
}
.awin-fg-rename-btn:hover { color: #d9713f; border-color: #d9713f; }
.awin-fg-delete-btn:hover { color: #dc2626; border-color: #dc2626; }
.awin-fg-group-empty { font-size: 13px; color: #8b8f92; padding: 8px 0; }
.awin-fg-brand-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
}
.awin-fg-brand-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 12px 10px;
	background: #fff9f2;
	border: 1px solid rgba(160,100,60,0.15);
	border-radius: 10px;
	text-align: center;
}
.awin-fg-brand-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; }
.awin-fg-brand-name { font-size: 12px; color: #2d1810; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.awin-fg-remove-brand-btn {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(0,0,0,0.06);
	border: none;
	color: #8b8f92;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}
.awin-fg-remove-brand-btn:hover { background: #dc2626; color: #fff; }

@media (max-width: 480px) {
	.awin-fg-brand-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
