/* Midacta escritorio — armonía con midacta.com (azul marino, cyan, ámbar) */
.midacta-ud {
	--midacta-navy: #003366;
	--midacta-cyan: #00aeef;
	--midacta-orange: #f9b233;
	--midacta-brown: #4b3621;
	--midacta-gray: #e0e0e0;
	--midacta-tab-active: #002d62;
	--midacta-tab-text: #333333;
	--midacta-tab-border-soft: rgba(0, 45, 98, 0.14);
	--midacta-tab-gap: 10px;
	--midacta-bg-page: #ffffff;
	--midacta-card: #ffffff;
	font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--midacta-navy);
	box-sizing: border-box;
	margin: 0 0 2rem;
}

.midacta-ud *,
.midacta-ud *::before,
.midacta-ud *::after {
	box-sizing: inherit;
}

.midacta-ud-layout {
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: var(--midacta-bg-page);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0, 51, 102, 0.08);
	border: 1px solid var(--midacta-gray);
}

/* Con iframe visible: altura mínima para el panel embebido */
.midacta-ud-layout:has(#midacta-ud-embed:not([hidden])) {
	min-height: 0;
}

.midacta-ud-layout:has(#midacta-ud-embed:not([hidden])) .midacta-ud-body {
	flex: 0 1 auto;
	min-height: 0;
}

.midacta-ud-layout:has(#midacta-ud-embed:not([hidden])) .midacta-ud-main {
	flex: 0 1 auto;
	min-height: 0;
}

/* ——— Cabecera estilo web ——— */
.midacta-ud-topbar {
	flex-shrink: 0;
	background: var(--midacta-card);
	border-bottom: 1px solid var(--midacta-gray);
}

.midacta-ud-topbar__inner {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	min-height: 0;
}

.midacta-ud-topbar__nav {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	align-content: center;
	justify-content: flex-start;
	row-gap: 0;
	column-gap: 0.4rem;
	flex: 1;
	min-width: 0;
	padding: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

#midacta-ud-root .midacta-ud-topbar__nav .midacta-ud-nav__link {
	margin: 0 !important;
}

.midacta-ud-topbar__nav .midacta-ud-nav__icon {
	display: none;
}

/* Base tab (span o botón): mismo aspecto inactivo */
.midacta-ud-nav__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	padding: 0.42rem 0.9rem;
	margin: 0;
	min-height: 2rem;
	color: var(--midacta-tab-text);
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 500;
	font-family: inherit;
	text-align: center;
	white-space: nowrap;
	text-transform: none;
	letter-spacing: 0.01em;
	border: 1px solid var(--midacta-tab-border-soft);
	border-radius: 50px;
	background: transparent;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
	flex-shrink: 0;
	line-height: 1.25;
	box-shadow: none;
}

button.midacta-ud-nav__link {
	-webkit-appearance: none;
	appearance: none;
}

/*
 * Los ítems con URL son <button>: muchos temas aplican .entry-content button { fondo primario }
 * a todos los botones. Forzamos inactivo = transparente; solo .midacta-ud-nav__link--selected es azul.
 */
#midacta-ud-root .midacta-ud-topbar__nav button.midacta-ud-nav__link:not(.midacta-ud-nav__link--selected) {
	background: transparent !important;
	color: var(--midacta-tab-text) !important;
	border: 1px solid var(--midacta-tab-border-soft) !important;
	box-shadow: none !important;
	font-family: "DM Sans", system-ui, sans-serif !important;
	font-weight: 500 !important;
	text-transform: none !important;
	letter-spacing: 0.01em !important;
}

#midacta-ud-root .midacta-ud-topbar__nav button.midacta-ud-nav__link:not(.midacta-ud-nav__link--selected):hover:not(:disabled) {
	border-color: rgba(0, 45, 98, 0.28) !important;
	color: #1a1a1a !important;
	background: transparent !important;
}

.midacta-ud-topbar__nav span.midacta-ud-nav__link:hover:not(.midacta-ud-nav__link--disabled) {
	border-color: rgba(0, 45, 98, 0.28);
	color: #1a1a1a;
	background: transparent;
}

/* Solo la pestaña seleccionada (clase dedicada; evita colisión BEM con --slug) */
#midacta-ud-root .midacta-ud-topbar__nav button.midacta-ud-nav__link.midacta-ud-nav__link--selected:not(.midacta-ud-nav__link--disabled),
.midacta-ud-nav__link.midacta-ud-nav__link--selected:not(.midacta-ud-nav__link--disabled) {
	background: var(--midacta-tab-active) !important;
	color: #ffffff !important;
	border-color: var(--midacta-tab-active) !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

#midacta-ud-root .midacta-ud-topbar__nav button.midacta-ud-nav__link.midacta-ud-nav__link--selected:not(.midacta-ud-nav__link--disabled):hover {
	background: #00224d !important;
	border-color: #00224d !important;
	color: #fff !important;
}

.midacta-ud-nav__link--disabled {
	opacity: 0.5;
	cursor: not-allowed;
	border-color: rgba(0, 45, 98, 0.08);
	background: transparent;
	color: #9ca3af;
}

.midacta-ud-topbar__logout {
	flex-shrink: 0;
	align-self: center;
	color: var(--midacta-tab-active) !important;
	text-decoration: none;
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: none;
	letter-spacing: 0.01em;
	padding: 0.42rem 0.95rem;
	min-height: 2rem;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	border: 1px solid rgba(0, 45, 98, 0.35);
	border-radius: 50px;
	background: transparent;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.midacta-ud-topbar__logout::before {
	content: "";
	width: 0.85em;
	height: 0.85em;
	background-color: currentColor;
	-webkit-mask: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M16 17l5-5-5-5v3H9v4h7v3zM14 2H5a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h9v-2H5V4h9V2z'/></svg>");
	mask: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M16 17l5-5-5-5v3H9v4h7v3zM14 2H5a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h9v-2H5V4h9V2z'/></svg>");
}

.midacta-ud-topbar__logout:hover {
	border-color: var(--midacta-tab-active);
	color: #ffffff !important;
	background: var(--midacta-tab-active);
}

.midacta-ud-topbar__nav::-webkit-scrollbar {
	height: 6px;
}

.midacta-ud-topbar__nav::-webkit-scrollbar-thumb {
	background: rgba(0, 45, 98, 0.25);
	border-radius: 999px;
}

/* ——— Cuerpo ——— */
.midacta-ud-body {
	flex: 0 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: var(--midacta-bg-page);
}

.midacta-ud-banner {
	margin: 1rem 1.5rem 0;
	padding: 0.85rem 1.1rem;
	background: #e3f7fd;
	color: var(--midacta-navy);
	border-radius: 999px;
	border: 1px solid rgba(0, 174, 239, 0.35);
	font-size: 0.8125rem;
}

.midacta-ud-banner[hidden] {
	display: none !important;
}

.midacta-ud-main {
	flex: 0 1 auto;
	display: flex;
	flex-direction: column;
	padding: 1.35rem 1.5rem 1.5rem;
	min-width: 0;
	min-height: 0;
}

.midacta-ud-home {
	flex: 0 1 auto;
	overflow: visible;
}

.midacta-ud-home[hidden] {
	display: none !important;
}

.midacta-ud-profile[hidden] {
	display: none !important;
}

.midacta-ud-profile-view {
	max-width: 920px;
	margin: 0 auto;
	padding: 1.6rem 1.65rem 1.75rem;
	background: #fff;
	border: 1px solid var(--midacta-gray);
	box-shadow: 0 4px 20px rgba(0, 51, 102, 0.05);
}

.midacta-ud-profile-avatar {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0 0 1.35rem;
	padding: 0.85rem 0.9rem;
	border: 1px solid #edf1f4;
	border-radius: 14px;
	background: #fafcfe;
}

.midacta-ud-profile-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.95rem 1rem;
}

.midacta-ud-profile-form label {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.84rem;
	color: #345877;
	font-weight: 600;
}

.midacta-ud-profile-form input,
.midacta-ud-profile-form textarea,
.midacta-ud-profile-form select {
	border: 1px solid #d9e3ec !important;
	border-radius: 12px !important;
	padding: 0.64rem 0.78rem;
	font: inherit;
	background: #fff;
	color: #0f2f52;
	min-height: 42px;
	box-shadow: none !important;
}

.midacta-ud-profile-form textarea {
	min-height: 128px;
	resize: vertical;
}

.midacta-ud-profile-form input:focus,
.midacta-ud-profile-form textarea:focus,
.midacta-ud-profile-form select:focus {
	outline: none;
	border-color: rgba(0, 174, 239, 0.48) !important;
	box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.14);
}

#midacta-ud-root .midacta-ud-profile-form .input-text,
#midacta-ud-root .midacta-ud-profile-form .woocommerce-Input,
#midacta-ud-root .midacta-ud-profile-form .woocommerce-input-wrapper input,
#midacta-ud-root .midacta-ud-profile-form .woocommerce-input-wrapper textarea {
	border-radius: 12px !important;
	border-color: #d9e3ec !important;
	box-shadow: none !important;
}

.midacta-ud-profile-form p.form-row,
.midacta-ud-profile-form p {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.midacta-ud-profile-form .form-row label,
.midacta-ud-profile-form p > label {
	margin: 0;
	font-size: 0.84rem;
	color: #345877;
	font-weight: 600;
}

.midacta-ud-profile-form .clear {
	display: none;
}

.midacta-ud-profile-form fieldset {
	grid-column: 1 / -1;
	border: 1px solid #e6edf3;
	border-radius: 14px;
	padding: 0.95rem 0.85rem 0.85rem;
	margin: 0.1rem 0 0.15rem;
	background: #fcfdff;
}

.midacta-ud-profile-form fieldset legend {
	color: var(--midacta-navy);
	font-weight: 700;
	font-size: 1rem;
	padding: 0 0.4rem;
}

.midacta-ud-profile-form em {
	font-size: 0.76rem;
	color: #5a7a99;
}

.midacta-ud-profile-form button {
	grid-column: 1 / -1;
	justify-self: start;
	margin-top: 0.4rem;
}

.midacta-ud-profile-social {
	grid-column: 1 / -1;
	border: 1px solid #e6edf3;
	border-radius: 14px;
	padding: 0.95rem 0.9rem;
	background: #fcfdff;
}

.midacta-ud-profile-social__title {
	margin: 0 0 0.65rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--midacta-navy);
}

.midacta-ud-profile-amelia {
	margin-top: 1.4rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

.midacta-ud-profile-amelia__title {
	margin: 0;
	padding: 0.85rem 1rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--midacta-navy);
	border-bottom: 1px solid #edf1f4;
	background: #fafcfe;
}

.midacta-ud-profile-amelia__content {
	padding: 0;
}

/* Amelia en Mi perfil (solo integración / datos): sin Citas/Eventos, sin cabecera ni cerrar sesión en Amelia. */
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .amelia-cabinet .am-cabinet__header,
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .amelia-cabinet .am-cap__header,
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .amelia-cabinet [class*="am-cap"][class*="header"],
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .amelia-cabinet [class*="cabinet"][class*="header"],
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .amelia-v2-booking [class*="cabinet-header"],
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .amelia-v2-booking [class*="profile-header"] {
	display: none !important;
}

/* Sin marco alrededor del bloque Amelia incrustado */
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .amelia-cabinet .el-card,
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .amelia-v2-booking .el-card,
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] [id^="amelia-app-booking"] .el-card,
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] [id^="amelia-v2-booking"] .el-card {
	border: 0 !important;
	box-shadow: none !important;
}

.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .amelia-cabinet,
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .amelia-v2-booking,
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] [id^="amelia-app-booking"],
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] [id^="amelia-v2-booking"] {
	height: auto !important;
	min-height: 0 !important;
	overflow: visible !important;
}

.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .el-main,
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .el-tabs__content {
	height: auto !important;
	min-height: 0 !important;
}

/* Perfil Amelia dentro de Mi perfil: abre en Detalles y sin barra lateral izquierda. */
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .am-cabinet-dashboard {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
}

.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .am-cabinet-dashboard-header {
	display: none !important;
}

/* Acotado a clases reales del panel de Amelia para no ocultar contenedores ajenos
   (p. ej. tarjeta de Google Calendar con clases auxiliares). */
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .am-cabinet-menu,
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .am-cabinet-sidebar,
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .am-cabinet-sb,
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .amelia-cabinet > .el-aside,
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .amelia-v2-booking > .el-aside {
	display: none !important;
}

.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .am-cabinet-content {
	width: 100% !important;
	max-width: 100% !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
}

/* Vista plana: sin sombreados en contenedores/campos Amelia dentro de Mi perfil. */
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .am-cabinet-dashboard,
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .am-cabinet-content,
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .am-cabinet-profile,
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .el-card,
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .el-input__inner,
.midacta-ud-profile-amelia__content[data-midacta-amelia-context="profile"] .el-textarea__inner {
	box-shadow: none !important;
}

.midacta-ud-profile-notice {
	border-radius: 12px;
	padding: 0.65rem 0.85rem;
	margin: 0 0 1rem;
}

.midacta-ud-profile-notice--success {
	background: #e9f8ef;
	border: 1px solid #8ad4a7;
	color: #1c6a3b;
}

.midacta-ud-profile-notice--error {
	background: #fff0f0;
	border: 1px solid #f0abab;
	color: #9c2a2a;
}

.midacta-ud-grid {
	display: grid;
	grid-template-columns: minmax(260px, 300px) 1fr;
	gap: 1.75rem;
	align-items: start;
}

/* ——— Tarjeta perfil (borde ámbar + bloque marrón) ——— */
.midacta-ud-profile-card {
	background: var(--midacta-card);
	border-radius: 18px;
	box-shadow: 0 4px 20px rgba(0, 51, 102, 0.07);
	border: 5px solid var(--midacta-orange);
	overflow: hidden;
	text-align: center;
}

.midacta-ud-profile-card__top {
	padding: 1.5rem 1.25rem 1.25rem;
	background: #fff;
}

.midacta-ud-profile-card__avatar-wrap {
	position: relative;
	display: inline-block;
	margin: 0 auto;
}

.midacta-ud-profile-card__file {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.midacta-ud-profile-card__avatar {
	width: 148px !important;
	height: 148px !important;
	border-radius: 16px !important;
	object-fit: cover;
	background: #f0f0f0 !important;
	display: block;
}

#midacta-ud-root .midacta-ud-profile-card__cam {
	position: absolute;
	right: -4px;
	bottom: -4px;
	width: 46px;
	height: 46px;
	min-width: 46px;
	min-height: 46px;
	padding: 0;
	margin: 0;
	border-radius: 50%;
	border: 3px solid #fff;
	background: linear-gradient(145deg, #1ec8ff 0%, var(--midacta-cyan) 45%, #0095c8 100%) !important;
	box-shadow:
		0 0 0 2px rgba(0, 45, 98, 0.22),
		0 4px 14px rgba(0, 120, 180, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	overflow: hidden;
}

#midacta-ud-root .midacta-ud-profile-card__cam:hover:not(:disabled) {
	filter: brightness(1.05);
	transform: scale(1.06);
	box-shadow:
		0 0 0 2px rgba(0, 45, 98, 0.28),
		0 6px 18px rgba(0, 120, 180, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

#midacta-ud-root .midacta-ud-profile-card__cam:focus-visible {
	outline: none;
	box-shadow:
		0 0 0 3px #fff,
		0 0 0 5px var(--midacta-navy),
		0 4px 14px rgba(0, 120, 180, 0.45) !important;
}

#midacta-ud-root .midacta-ud-profile-card__cam:disabled {
	cursor: wait;
	opacity: 0.85;
	transform: none;
}

.midacta-ud-profile-card__cam-icon {
	display: block;
	width: 22px;
	height: 22px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	pointer-events: none;
	text-indent: 0;
}

.midacta-ud-profile-card__brown {
	background: var(--midacta-brown);
	color: #fff;
	padding: 1.15rem 1.1rem 1rem;
}

.midacta-ud-profile-card__name {
	margin: 0 0 0.85rem;
	font-size: 1.2rem;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.02em;
}

.midacta-ud-profile-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 0.75rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.midacta-ud-profile-card__verified-icon {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--midacta-cyan);
	flex-shrink: 0;
	position: relative;
}

.midacta-ud-profile-card__verified-icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: translate(-45%, -55%) rotate(45deg);
}

/* ——— Tarjeta principal ——— */
.midacta-ud-content-card {
	background: var(--midacta-card);
	border-radius: 18px;
	border: 1px solid var(--midacta-gray);
	box-shadow: 0 4px 20px rgba(0, 51, 102, 0.06);
	padding: 1.75rem 2rem 2rem;
	min-height: 0;
}

.midacta-ud-content-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.65rem;
	font-weight: 700;
	text-align: center;
	color: var(--midacta-navy);
	letter-spacing: -0.02em;
}

.midacta-ud-content-card__meta {
	margin: 0 0 1.35rem;
	font-size: 0.875rem;
	text-align: center;
	color: #5a7a99;
	font-weight: 500;
}

.midacta-ud-commission {
	margin: 0 0 1.2rem;
}

.midacta-ud-commission__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 0.65rem;
	flex-wrap: wrap;
}

.midacta-ud-commission__title {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--midacta-navy);
}

.midacta-ud-commission__range {
	display: inline-flex;
	gap: 0.35rem;
}

.midacta-ud-commission__range-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.28rem 0.72rem;
	border: 1px solid var(--midacta-tab-border-soft);
	border-radius: 999px;
	text-decoration: none;
	color: var(--midacta-tab-text);
	font-size: 0.76rem;
	font-weight: 600;
	background: #fff;
}

.midacta-ud-commission__range-btn.is-active {
	background: var(--midacta-tab-active);
	border-color: var(--midacta-tab-active);
	color: #fff;
}

.midacta-ud-commission__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(120px, 1fr));
	gap: 0.65rem;
}

.midacta-ud-commission__card {
	border: 1px solid var(--midacta-gray);
	border-radius: 12px;
	background: #fafafa;
	padding: 0.65rem 0.75rem;
}

.midacta-ud-commission__label {
	display: block;
	font-size: 0.74rem;
	color: #5a7a99;
	margin-bottom: 0.2rem;
}

.midacta-ud-commission__card strong {
	color: var(--midacta-navy);
	font-size: 1rem;
}

.midacta-ud-divider {
	border: none;
	border-top: 1px solid var(--midacta-gray);
	margin: 0 0 1.25rem;
}

.midacta-ud-content-card__section {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--midacta-navy);
}

.midacta-ud-cards {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	margin-bottom: 1.25rem;
}

.midacta-ud-card {
	background: #fafafa;
	border-radius: 14px;
	padding: 0.95rem 1.15rem;
	border: 1px solid var(--midacta-gray);
}

.midacta-ud-card--muted {
	opacity: 0.72;
}

.midacta-ud-card__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.midacta-ud-card__title {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--midacta-navy);
	flex: 1;
	min-width: 140px;
}

.midacta-ud-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.4rem;
	min-height: 40px;
	background: var(--midacta-navy);
	color: #fff !important;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	font-family: inherit;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border: 1px solid var(--midacta-navy);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	white-space: nowrap;
}

.midacta-ud-card__cta:hover {
	background: #002952;
	border-color: #002952;
}

.midacta-ud-card__empty {
	margin: 0;
	font-size: 0.8rem;
	color: #6b7280;
}

.midacta-ud-hint {
	margin: 0;
	font-size: 0.8125rem;
	color: #5a7a99;
	line-height: 1.55;
	max-width: 42em;
}

/* ——— Vista embebida ——— */
.midacta-ud-embed {
	flex: 0 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: var(--midacta-card);
	border-radius: 18px;
	border: 1px solid var(--midacta-gray);
	box-shadow: 0 4px 20px rgba(0, 51, 102, 0.06);
	overflow: visible;
}

.midacta-ud-embed[hidden] {
	display: none !important;
}

.midacta-ud-embed__bar {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	padding: 0.85rem 1.25rem;
	background: #fafafa;
	border-bottom: 1px solid var(--midacta-gray);
}

.midacta-ud-embed__back {
	font-family: inherit;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 0.55rem 1.35rem;
	border: 1px solid var(--midacta-navy);
	border-radius: 999px;
	background: var(--midacta-navy);
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.midacta-ud-embed__back:hover {
	background: #002952;
	border-color: #002952;
}

.midacta-ud-frame {
	flex: 0 1 auto;
	width: 100%;
	min-height: 0;
	height: auto;
	border: 0;
	display: block;
	background: #fff;
}

.midacta-ud-login-notice {
	padding: 1rem 1.25rem;
	background: #fff8e6;
	border-radius: 14px;
	border: 1px solid var(--midacta-orange);
	font-family: "DM Sans", system-ui, sans-serif;
	color: var(--midacta-brown);
}

.midacta-ud-auth-gate {
	--midacta-navy: #003366;
	padding: 1.25rem 0;
	text-align: center;
	font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: var(--midacta-navy, #003366);
}

.midacta-ud-auth-modal[hidden] {
	display: none !important;
}

.midacta-ud-auth-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
}

.midacta-ud-auth-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(3, 18, 36, 0.58);
}

.midacta-ud-auth-modal__card {
	position: relative;
	width: min(520px, calc(100% - 1rem));
	margin: 2.5vh auto 0;
	background: #fff;
	border-radius: 18px;
	padding: 1.6rem 1.1rem 1.55rem;
	box-shadow: 0 16px 40px rgba(8, 20, 46, 0.22);
	max-height: 92vh;
	overflow: auto;
}

.midacta-ud-auth-modal__close {
	position: absolute;
	right: 10px;
	top: 10px;
	border: none;
	background: transparent;
	font-size: 20px;
	cursor: pointer;
}

.midacta-ud-auth-modal__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

.midacta-ud-auth-switch {
	display: none !important;
}

.midacta-ud-auth-switch__btn {
	border: 1px solid #ced9e3;
	background: #f8fbff;
	color: #244463;
	border-radius: 999px;
	padding: 0.24rem 0.72rem;
	font-size: 0.72rem;
	font-weight: 700;
	cursor: pointer;
}

.midacta-ud-auth-switch__btn.is-active {
	background: var(--midacta-navy);
	border-color: var(--midacta-navy);
	color: #fff;
}

.midacta-ud-auth-block {
	border: none;
	border-radius: 0;
	padding: 0.2rem 1.1rem 0.6rem;
	background: #fff;
	text-align: center;
	display: flex;
	flex-direction: column;
	width: 90%;
	margin: 0 auto;
}

.midacta-ud-auth-block h3 {
	margin: 0 0 0.95rem;
	font-size: 2rem;
	font-weight: 700;
	color: #183a63;
	text-align: center;
}

.midacta-ud-auth-block p {
	margin: 0 0 0.62rem;
	font-size: 0.9rem;
	color: #294c6f;
	text-align: center;
}

.midacta-ud-auth-block form {
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
}

.midacta-ud-auth-divider {
	margin: 0.35rem 0 0.9rem;
	font-size: 0.9rem;
	color: #73869c;
}

.midacta-ud-auth-block input[type="text"],
.midacta-ud-auth-block input[type="email"],
.midacta-ud-auth-block input[type="password"] {
	width: 100%;
	min-height: 56px;
	padding: 0.7rem 1rem;
	border: 1px solid #e1e8ef;
	border-radius: 18px;
	background: #f6f9fc;
	box-shadow: none;
	font-size: 1rem;
	color: #1c3755;
}

.midacta-ud-auth-block input:focus {
	outline: none;
	border-color: #9fb6d6;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(23, 56, 184, 0.1);
}

.midacta-ud-auth-block .woocommerce-form-login__rememberme {
	display: none;
}

.midacta-ud-auth-social {
	margin: 0 auto 0.45rem;
	padding-top: 0.15rem;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.midacta-ud-auth-social .nsl-container-buttons {
	width: 100% !important;
}

.midacta-ud-auth-social .nsl-container-buttons a,
.midacta-ud-auth-social .nsl-button {
	min-height: 56px !important;
	border-radius: 18px !important;
	margin: 0 !important;
	width: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: #f6f9fc !important;
	border: 1px solid #e1e8ef !important;
}

.midacta-ud-auth-social .nsl-button-label,
.midacta-ud-auth-social .nsl-button span {
	color: #111827 !important;
	-webkit-text-fill-color: #111827 !important;
	opacity: 1 !important;
	font-weight: 600 !important;
}

.midacta-ud-auth-social .nsl-container-buttons a,
.midacta-ud-auth-social .nsl-button,
.midacta-ud-auth-social .nsl-button svg {
	opacity: 1 !important;
	filter: none !important;
}

.midacta-ud-auth-social .nsl-container-buttons a {
	color: #111827 !important;
	-webkit-text-fill-color: #111827 !important;
}

.midacta-ud-auth-social div.nsl-container .nsl-button-google[data-skin='light'],
.midacta-ud-auth-social div.nsl-container .nsl-button-google[data-skin='neutral'],
.midacta-ud-auth-social div.nsl-container .nsl-button-google {
	color: #111827 !important;
	-webkit-text-fill-color: #111827 !important;
	box-shadow: inset 0 0 0 1px #c8d0da !important;
}

.midacta-ud-auth-social div.nsl-container .nsl-button-google .nsl-button-label-container {
	color: #111827 !important;
	-webkit-text-fill-color: #111827 !important;
	opacity: 1 !important;
	font-family: "DM Sans", system-ui, sans-serif !important;
}

.midacta-ud-auth-social .nsl-container-buttons a .nsl-button-label,
.midacta-ud-auth-social .nsl-container-buttons a span,
.midacta-ud-auth-social .nsl-button .nsl-button-label,
.midacta-ud-auth-social .nsl-button span,
.midacta-ud-auth-social .nsl-button:hover .nsl-button-label,
.midacta-ud-auth-social .nsl-button:focus .nsl-button-label,
.midacta-ud-auth-social .nsl-button:active .nsl-button-label {
	color: #111827 !important;
	-webkit-text-fill-color: #111827 !important;
	opacity: 1 !important;
	text-shadow: none !important;
}

.midacta-ud-auth-block .midacta-ud-card__cta,
.midacta-ud-auth-block .button,
.midacta-ud-auth-block button[type="submit"] {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 100%;
	min-height: 56px;
	padding: 0.5rem 1rem;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0;
	border-radius: 18px;
	background: var(--midacta-navy) !important;
	border: 0 !important;
	color: #fff !important;
}

.midacta-ud-auth-block--register button[type="submit"],
.midacta-ud-auth-block--lostpassword button[type="submit"],
.midacta-ud-auth-block--resetpass button[type="submit"] {
	display: inline-flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}

#midacta-ud-root .midacta-ud-auth-modal .midacta-ud-auth-block button[type="submit"],
#midacta-ud-root .midacta-ud-auth-modal .midacta-ud-auth-block .midacta-ud-card__cta {
	background-color: var(--midacta-navy) !important;
	background-image: none !important;
	border: 1px solid var(--midacta-navy) !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	text-shadow: none !important;
	font-weight: 700 !important;
}

#midacta-ud-root .midacta-ud-auth-modal .midacta-ud-auth-block button[type="submit"]:hover,
#midacta-ud-root .midacta-ud-auth-modal .midacta-ud-auth-block button[type="submit"]:focus-visible,
#midacta-ud-root .midacta-ud-auth-modal .midacta-ud-auth-block .midacta-ud-card__cta:hover,
#midacta-ud-root .midacta-ud-auth-modal .midacta-ud-auth-block .midacta-ud-card__cta:focus-visible {
	background-color: #002952 !important;
	border-color: #002952 !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	outline: none !important;
}

/* Modal invitado está fuera de #midacta-ud-root: mismas reglas + tamaño = botón Google (56px, 18px, 100%). */
.midacta-ud-auth-gate .midacta-ud-auth-modal .midacta-ud-auth-submit,
.midacta-ud-auth-gate .midacta-ud-auth-modal .midacta-ud-auth-block button[type="submit"] {
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	max-width: 100% !important;
	min-height: 56px !important;
	height: auto !important;
	padding: 0 1rem !important;
	border-radius: 18px !important;
	background-color: var(--midacta-navy) !important;
	border: 1px solid var(--midacta-navy) !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.midacta-ud-auth-gate .midacta-ud-auth-modal .midacta-ud-auth-submit:hover,
.midacta-ud-auth-gate .midacta-ud-auth-modal .midacta-ud-auth-submit:focus-visible,
.midacta-ud-auth-gate .midacta-ud-auth-modal .midacta-ud-auth-block button[type="submit"]:hover,
.midacta-ud-auth-gate .midacta-ud-auth-modal .midacta-ud-auth-block button[type="submit"]:focus-visible {
	background-color: #002952 !important;
	border-color: #002952 !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

/* Hard override: algunos temas fuerzan estilos globales en submit y lo hacen invisible. */
.midacta-ud-auth-block form button[type="submit"],
.midacta-ud-auth-block form input[type="submit"] {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 100% !important;
	min-height: 56px !important;
	padding: 0.5rem 1rem !important;
	font-size: 1rem !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
	letter-spacing: 0 !important;
	text-indent: 0 !important;
	text-transform: none !important;
	background: var(--midacta-navy) !important;
	border: 0 !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	filter: none !important;
}

.midacta-ud-auth-modal__close {
	right: 14px;
	top: 14px;
	width: 32px;
	height: 32px;
	min-width: 32px;
	min-height: 32px;
	border-radius: 999px;
	border: 0 !important;
	background: transparent !important;
	color: var(--midacta-navy) !important;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-shadow: none !important;
	text-align: center;
	cursor: pointer;
}

.midacta-ud-auth-modal__close:hover,
.midacta-ud-auth-modal__close:focus-visible {
	background: transparent !important;
	color: #0d2f55 !important;
	outline: none;
	box-shadow: none !important;
}

.midacta-ud-auth-lostpass {
	margin: 0.35rem 0 0.75rem;
}

.midacta-ud-auth-lostpass a {
	color: #254467;
	font-weight: 700;
	text-decoration: none;
}

.midacta-ud-auth-lostpass button {
	border: 0;
	background: transparent;
	color: #254467;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
}

.midacta-ud-auth-lostpass button:hover,
.midacta-ud-auth-lostpass button:focus,
.midacta-ud-auth-lostpass button:focus-visible,
.midacta-ud-auth-lostpass button:active {
	background: transparent !important;
	color: #254467 !important;
	text-decoration: underline !important;
	box-shadow: none !important;
	border: 0 !important;
	outline: none !important;
	padding: 0 !important;
	transform: none !important;
}

.midacta-ud-auth-notice {
	margin: 0 0 0.6rem;
	padding: 0.55rem 0.7rem;
	border-radius: 10px;
	font-size: 0.86rem;
}

.midacta-ud-auth-notice--error {
	background: #fff1f0;
	border: 1px solid #ffd4cf;
	color: #8f2f25;
}

.midacta-ud-auth-notice--success {
	background: #eef9f1;
	border: 1px solid #cfead6;
	color: #1f5f3c;
}

.midacta-ud-auth-notice--info {
	background: #eef5ff;
	border: 1px solid #d7e6ff;
	color: #1f4b87;
}

.midacta-ud-auth-notice--global {
	grid-column: 1 / -1;
}

.midacta-ud-password-reset-banner {
	margin: 0 0 0.75rem;
	padding: 0.55rem 0.75rem;
	border-radius: 12px;
	background: #eef9f1;
	border: 1px solid #cfead6;
	color: #1f5f3c;
	font-size: 0.9rem;
}

.midacta-ud-auth-wc-reset {
	text-align: left;
	max-width: 100%;
}

.midacta-ud-auth-toggle-note {
	margin-top: 0.95rem;
	font-size: 0.95rem;
	color: #7f8fa2;
}

.midacta-ud-auth-toggle-note button {
	border: 0;
	background: transparent;
	color: var(--midacta-navy);
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	padding: 0;
	transition: padding 0.15s ease, color 0.15s ease;
}

.midacta-ud-auth-toggle-note button:hover,
.midacta-ud-auth-toggle-note button:focus-visible {
	padding: 5px;
	color: #0d2f55;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.midacta-ud-guest .midacta-ud-main {
	min-height: min(70vh, 640px);
	display: flex;
	align-items: center;
	justify-content: center;
}

.midacta-ud-guest-card {
	width: 100%;
	max-width: 900px;
	background: #fff;
	border: 1px solid #e6edf3;
	border-radius: 18px;
	padding: 2rem 2rem 1.8rem;
	text-align: center;
}

.midacta-ud-guest-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	justify-content: center;
}

.midacta-ud-guest-register {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 1.15rem;
	min-height: 40px;
	border-radius: 999px;
	border: 1px solid var(--midacta-tab-border-soft);
	color: var(--midacta-tab-text);
	text-decoration: none;
	font-weight: 600;
}

.midacta-ud-guest-auth .woocommerce {
	max-width: 100%;
	margin: 0 auto;
	text-align: left;
}

.midacta-ud-guest-auth .woocommerce form.login,
.midacta-ud-guest-auth .woocommerce form.register {
	border: none !important;
	box-shadow: none !important;
	background: transparent !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

.midacta-ud-guest-auth .u-column1,
.midacta-ud-guest-auth .u-column2 {
	padding: 0 0.75rem !important;
}

.midacta-ud-guest-auth .woocommerce .u-columns {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
}

.midacta-ud-guest-auth .woocommerce h2 {
	font-size: 2rem;
	font-weight: 600;
	color: var(--midacta-navy);
	margin: 0 0 0.9rem;
}

.midacta-ud-guest-auth .woocommerce .form-row {
	margin: 0 0 0.7rem !important;
}

.midacta-ud-guest-auth .woocommerce input.input-text,
.midacta-ud-guest-auth .woocommerce input[type="text"],
.midacta-ud-guest-auth .woocommerce input[type="email"],
.midacta-ud-guest-auth .woocommerce input[type="password"] {
	border: 1px solid #d9e3ec !important;
	border-radius: 10px !important;
	padding: 0.58rem 0.7rem !important;
	min-height: 40px;
}

.midacta-ud-guest-auth .woocommerce .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.midacta-ud-guest-auth .woocommerce .button {
	background: var(--midacta-navy) !important;
	border-color: var(--midacta-navy) !important;
	color: #fff !important;
	border-radius: 999px !important;
}

@media (max-width: 780px) {
	.midacta-ud-guest-card {
		max-width: 100%;
		padding: 1.4rem 1rem 1.2rem;
	}

	.midacta-ud-guest-auth .woocommerce .u-columns {
		grid-template-columns: 1fr;
		gap: 0.7rem;
	}

	.midacta-ud-guest-auth .u-column1,
	.midacta-ud-guest-auth .u-column2 {
		padding: 0 !important;
	}
}

@media (max-width: 900px) {
	.midacta-ud-grid {
		grid-template-columns: 1fr;
	}

	.midacta-ud-profile-card {
		max-width: 320px;
		margin: 0 auto;
		width: 100%;
	}

	.midacta-ud-topbar__inner {
		flex-wrap: nowrap;
		padding-bottom: 0.5rem;
	}

	.midacta-ud-topbar__nav {
		order: 1;
		flex-basis: auto;
		padding-top: 0;
		border-top: 0;
		column-gap: 0.35rem;
	}

	.midacta-ud-nav__link {
		padding: 0.38rem 0.75rem;
		font-size: 0.72rem;
	}

	.midacta-ud-topbar__logout {
		padding: 0.38rem 0.7rem;
		font-size: 0.72rem;
	}
}

@media (max-width: 600px) {
	.midacta-ud-main {
		padding: 1rem;
	}

	.midacta-ud-content-card {
		padding: 1.35rem 1.25rem;
	}

	.midacta-ud-frame {
		min-height: 52vh;
	}

	.midacta-ud-commission__grid {
		grid-template-columns: repeat(2, minmax(120px, 1fr));
	}

	.midacta-ud-profile-form {
		grid-template-columns: 1fr;
	}

	.midacta-ud-profile-view {
		padding: 1.2rem 1rem 1.25rem;
	}

	.midacta-ud-profile-avatar {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ——— Panel de estado Google Calendar (sobre el embed de Amelia en Mi perfil) ——— */
.midacta-ud-gc-status {
	display: block;
	margin: 1rem 0 1.25rem;
	padding: 0.95rem 1.1rem;
	border-radius: 14px;
	border: 1px solid #d6d6d6;
	background: #fafafa;
	color: #2c2c2c;
	font-size: 0.95rem;
	line-height: 1.45;
}

.midacta-ud-gc-status__head {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 0.6rem;
}

.midacta-ud-gc-status__dot {
	display: inline-block;
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	background: #999;
	flex: 0 0 auto;
}

.midacta-ud-gc-status__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #2c2c2c;
}

.midacta-ud-gc-status__list {
	margin: 0 0 0.7rem;
	padding: 0;
	display: grid;
	gap: 0.35rem;
}

.midacta-ud-gc-status__row {
	display: grid;
	grid-template-columns: minmax(150px, 200px) 1fr;
	gap: 0.75rem;
	align-items: baseline;
}

.midacta-ud-gc-status__row dt {
	font-weight: 600;
	color: #555;
	margin: 0;
}

.midacta-ud-gc-status__row dd {
	margin: 0;
	color: #1a1a1a;
	word-break: break-word;
}

.midacta-ud-gc-status__row code {
	display: inline-block;
	padding: 0.15rem 0.4rem;
	border-radius: 6px;
	background: #fff0f0;
	border: 1px solid #f0abab;
	color: #9c2a2a;
	font-size: 0.85rem;
	white-space: pre-wrap;
	word-break: break-word;
	max-width: 100%;
}

.midacta-ud-gc-status__hint {
	margin: 0;
	color: #444;
	font-size: 0.9rem;
}

/* Estados ——— colores del dot + borde sutil */
.midacta-ud-gc-status--ok {
	background: #effaf2;
	border-color: #8ad4a7;
}
.midacta-ud-gc-status--ok .midacta-ud-gc-status__dot {
	background: #1c8a4a;
}

.midacta-ud-gc-status--pending {
	background: #fff7e6;
	border-color: #e6c87a;
}
.midacta-ud-gc-status--pending .midacta-ud-gc-status__dot {
	background: #c98a14;
}

.midacta-ud-gc-status--error {
	background: #fff0f0;
	border-color: #f0abab;
}
.midacta-ud-gc-status--error .midacta-ud-gc-status__dot {
	background: #c0392b;
}

.midacta-ud-gc-status--disconnected {
	background: #f4f4f4;
	border-color: #cfcfcf;
}
.midacta-ud-gc-status--disconnected .midacta-ud-gc-status__dot {
	background: #888;
}

.midacta-ud-gc-status__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.midacta-ud-gc-status__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0.95rem;
	border-radius: 10px;
	border: 1px solid #c0392b;
	background: #fff;
	color: #c0392b;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.midacta-ud-gc-status__btn:hover {
	background: #c0392b;
	color: #fff;
}

.midacta-ud-gc-status__btn[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.midacta-ud-gc-status__btn--repair {
	border-color: #c98a14;
	color: #c98a14;
}

.midacta-ud-gc-status__btn--repair:hover {
	background: #c98a14;
	color: #fff;
}

.midacta-ud-gc-status__btn--intercept {
	border-color: #5a4fcf;
	color: #5a4fcf;
}

.midacta-ud-gc-status__btn--intercept:hover {
	background: #5a4fcf;
	color: #fff;
}

@media (max-width: 600px) {
	.midacta-ud-gc-status__row {
		grid-template-columns: 1fr;
		gap: 0.1rem;
	}

	.midacta-ud-gc-status__btn {
		width: 100%;
	}
}
