/*
 * DG Descargar Imágenes
 * Los botones se "resetean" con alta especificidad y !important para que los estilos
 * globales del tema (Hello Elementor reset.css, Kit de Elementor, etc.) no los pisen.
 */

.dgdesc-menu {
	position: fixed !important;
	z-index: 2147483000 !important;
	box-sizing: border-box !important;
	min-width: 200px !important;
	margin: 0 !important;
	padding: 6px !important;
	background: var(--dgdesc-menu-bg, #fff) !important;
	border: 1px solid rgba(0, 0, 0, .12) !important;
	border-radius: 8px !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .18) !important;
	font: 14px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
	color: var(--dgdesc-menu-color, #1d1d1f) !important;
	text-align: left !important;
}

.dgdesc-menu.dgdesc-menu--static {
	position: static !important;
}

/* Reset completo de los botones del plugin. */
.dgdesc-menu button.dgdesc-menu__item,
.dgdesc-menu button.dgdesc-menu__item:hover,
.dgdesc-menu button.dgdesc-menu__item:focus,
.dgdesc-menu button.dgdesc-menu__item:active,
.dgdesc-host button.dgdesc-btn,
.dgdesc-host button.dgdesc-btn:hover,
.dgdesc-host button.dgdesc-btn:focus,
.dgdesc-host button.dgdesc-btn:active {
	-webkit-appearance: none !important;
	appearance: none !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	border: 0 !important;
	outline: none !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	white-space: nowrap !important;
	line-height: 1.2 !important;
	vertical-align: middle !important;
	-webkit-tap-highlight-color: transparent !important;
}

/* Ítem del menú. */
.dgdesc-menu button.dgdesc-menu__item {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 8px !important;
	width: 100% !important;
	padding: 8px 10px !important;
	border-radius: 5px !important;
	background: transparent !important;
	color: var(--dgdesc-menu-color, #1d1d1f) !important;
	font: 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
	text-align: left !important;
	box-shadow: none !important;
	cursor: pointer !important;
}

.dgdesc-menu button.dgdesc-menu__item:hover,
.dgdesc-menu button.dgdesc-menu__item:focus-visible {
	background: var(--dgdesc-menu-hover-bg, #f0f0f2) !important;
	color: var(--dgdesc-menu-hover-color, #1d1d1f) !important;
}

.dgdesc-menu button.dgdesc-menu__item:disabled {
	opacity: .6 !important;
	cursor: progress !important;
}

.dgdesc-menu .dgdesc-menu__hint {
	margin: 0 !important;
	padding: 4px 10px 2px !important;
	font-size: 11px !important;
	opacity: .65 !important;
	color: inherit !important;
}

/* Botón sobre la imagen. */
.dgdesc-host {
	position: relative;
}

.dgdesc-host button.dgdesc-btn {
	position: absolute !important;
	top: 8px !important;
	right: 8px !important;
	left: auto !important;
	bottom: auto !important;
	z-index: 5 !important;
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 4px !important;
	width: auto !important;
	padding: 6px 10px !important;
	border-radius: 999px !important;
	background: var(--dgdesc-btn-bg, #1d1d1f) !important;
	color: var(--dgdesc-btn-color, #fff) !important;
	font: 600 12px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25) !important;
	transition: background-color .15s, color .15s !important;
	cursor: pointer !important;
}

.dgdesc-host button.dgdesc-btn:hover,
.dgdesc-host button.dgdesc-btn:focus-visible {
	background: var(--dgdesc-btn-hover-bg, #000) !important;
	color: var(--dgdesc-btn-hover-color, #fff) !important;
}

.dgdesc-host button.dgdesc-btn.dgdesc-btn--icon {
	padding: 7px !important;
}

.dgdesc-host button.dgdesc-btn:disabled {
	opacity: .6 !important;
}

/* Íconos y textos internos. */
.dgdesc-menu .dgdesc-icon,
.dgdesc-host .dgdesc-icon {
	display: block !important;
	flex: none !important;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	fill: currentColor !important;
}

.dgdesc-menu button.dgdesc-menu__item span,
.dgdesc-host button.dgdesc-btn span {
	display: inline !important;
	margin: 0 !important;
	padding: 0 !important;
	color: inherit !important;
	font: inherit !important;
}
