/* Unicenter — Calendário mensal (v1.1.0). Tudo encapsulado em .uc-mensal / .ucm-*.
   Os botões e links redefinem estados explicitamente para não herdar o reset do Hello Elementor. */
.uc-mensal {
	--ucm-navy: #2D4178;
	--ucm-navy-d: #223260;
	--ucm-magenta: #BA104C;
	--ucm-surface: #FFFFFF;
	--ucm-soft: #F4F6FA;
	--ucm-line: #E2E6EF;
	--ucm-line-2: #EEF1F6;
	--ucm-ink: #1B2340;
	--ucm-muted: #626A88;
	--ucm-faint: #A9AFC2;
	--ucm-today: #FBEAF0;
	--ucm-font: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;

	box-sizing: border-box;
	font-family: var(--ucm-font);
	font-size: 14px;
	line-height: 1.45;
	color: var(--ucm-ink);
	background: var(--ucm-surface);
	border-radius: 16px;
	padding: 26px 26px 20px;
	max-width: 1240px;
	margin: 0 auto;
	box-shadow: 0 1px 2px rgba(27, 35, 64, .05), 0 8px 30px rgba(27, 35, 64, .06);
}
.uc-mensal *, .uc-mensal *::before, .uc-mensal *::after { box-sizing: border-box; }
.uc-mensal .ucm-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.uc-mensal [hidden] { display: none !important; }

/* Cabeçalho */
.uc-mensal .ucm-eyebrow { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ucm-magenta); font-weight: 600; }
.uc-mensal .ucm-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 18px; }
.uc-mensal .ucm-title { font-family: var(--ucm-font); font-size: 28px; line-height: 1.2; font-weight: 800; margin: 0 auto 0 0; padding: 0; color: var(--ucm-navy); letter-spacing: -.01em; }
.uc-mensal .ucm-title small { font-weight: 500; color: var(--ucm-muted); font-size: .62em; margin-left: 6px; }
.uc-mensal .ucm-nav { display: flex; gap: 8px; align-items: center; }
.uc-mensal button.ucm-arrow,
.uc-mensal button.ucm-arrow:hover,
.uc-mensal button.ucm-arrow:focus {
	width: 42px; height: 42px; min-height: 0; padding: 0; margin: 0;
	border: 0; border-radius: 50%;
	background: var(--ucm-navy); color: #fff;
	display: grid; place-items: center; cursor: pointer; box-shadow: none;
}
.uc-mensal button.ucm-arrow:hover { background: var(--ucm-navy-d); }
.uc-mensal .ucm-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.uc-mensal button.ucm-hoje,
.uc-mensal button.ucm-hoje:hover,
.uc-mensal button.ucm-hoje:focus {
	height: 42px; min-height: 0; padding: 0 18px; margin: 0;
	border: 1.5px solid var(--ucm-line); border-radius: 21px;
	background: #fff; color: var(--ucm-navy);
	font: 600 13px/1 var(--ucm-font); cursor: pointer; box-shadow: none; text-transform: none;
}
.uc-mensal button.ucm-hoje:hover { border-color: var(--ucm-navy); }
.uc-mensal button:focus-visible,
.uc-mensal a:focus-visible,
.uc-mensal select:focus-visible,
.uc-mensal input:focus-visible,
.uc-mensal .ucm-ev:focus-visible { outline: 2px solid var(--ucm-magenta); outline-offset: 2px; }

/* Filtros */
.uc-mensal .ucm-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 14px 0 16px; border-top: 1px solid var(--ucm-line-2); margin-bottom: 6px; }
.uc-mensal .ucm-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.uc-mensal button.ucm-chip,
.uc-mensal button.ucm-chip:hover,
.uc-mensal button.ucm-chip:focus {
	border: 1.5px solid var(--ucm-line); background: #fff; border-radius: 999px;
	padding: 6px 12px 6px 10px; margin: 0; min-height: 0;
	font: 500 12.5px/1.3 var(--ucm-font); color: var(--ucm-ink); text-transform: none;
	cursor: pointer; display: inline-flex; align-items: center; gap: 7px; box-shadow: none;
}
.uc-mensal .ucm-chip i { width: 9px; height: 9px; border-radius: 3px; background: var(--ucm-c); flex: none; }
.uc-mensal button.ucm-chip:hover { border-color: var(--ucm-c); }
.uc-mensal button.ucm-chip[aria-pressed="true"] { border-color: var(--ucm-c); background: color-mix(in srgb, var(--ucm-c) 10%, #fff); }
.uc-mensal .ucm-sel { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.uc-mensal .ucm-sel select {
	font: 500 12.5px/1.3 var(--ucm-font); color: var(--ucm-ink);
	border: 1.5px solid var(--ucm-line); border-radius: 10px; padding: 7px 30px 7px 11px; margin: 0; height: auto; width: auto;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%232D4178' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 11px center;
	-webkit-appearance: none; appearance: none; cursor: pointer;
}
.uc-mensal .ucm-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--ucm-ink); cursor: pointer; margin: 0; }
.uc-mensal .ucm-toggle input { accent-color: var(--ucm-magenta); width: 16px; height: 16px; margin: 0; }

/* Grelha */
.uc-mensal .ucm-body { transition: opacity .15s; }
.uc-mensal .ucm-body[aria-busy="true"] { opacity: .45; }
.uc-mensal .ucm-scroll { overflow-x: auto; }
.uc-mensal .ucm-dow,
.uc-mensal .ucm-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 760px; }
.uc-mensal .ucm-dow { border-bottom: 1px solid var(--ucm-line); }
.uc-mensal .ucm-dow div { padding: 10px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ucm-muted); }
.uc-mensal .ucm-dow div.is-we { color: var(--ucm-faint); }
.uc-mensal .ucm-week { position: relative; border-bottom: 1px solid var(--ucm-line-2); min-height: 150px; }
.uc-mensal .ucm-day { grid-row: 1 / -1; border-right: 1px solid var(--ucm-line-2); }
.uc-mensal .ucm-day.is-last { border-right: 0; }
.uc-mensal .ucm-day.is-out { background: repeating-linear-gradient(135deg, transparent 0 7px, var(--ucm-line-2) 7px 8px); }
.uc-mensal .ucm-day.is-today { background: var(--ucm-today); }
.uc-mensal button.ucm-num,
.uc-mensal button.ucm-num:hover,
.uc-mensal button.ucm-num:focus {
	grid-row: 1; align-self: center; justify-self: start; margin: 4px 0 4px 8px; z-index: 1;
	border: 0; background: none; box-shadow: none; padding: 0; min-height: 0;
	font: 600 14px/1 var(--ucm-font); color: var(--ucm-ink);
	width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-variant-numeric: tabular-nums;
}
.uc-mensal button.ucm-num:hover { background: var(--ucm-line-2); }
.uc-mensal button.ucm-num.is-out { color: var(--ucm-faint); }
.uc-mensal button.ucm-num.is-today { background: var(--ucm-magenta); color: #fff; }

.uc-mensal .ucm-ev,
.uc-mensal a.ucm-ev:hover,
.uc-mensal a.ucm-ev:focus,
.uc-mensal a.ucm-ev:visited {
	z-index: 1; margin: 2px 5px; height: 23px; display: flex; align-items: center; gap: 6px; min-width: 0;
	text-decoration: none; color: var(--ucm-ink); font-size: 12.5px; font-weight: 500; line-height: 1;
	border-radius: 6px; padding: 0 7px 0 9px; position: relative; cursor: pointer;
}
.uc-mensal .ucm-ev.is-nolink { cursor: default; }
.uc-mensal .ucm-ev::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--ucm-c); }
.uc-mensal .ucm-ev .ucm-tx { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; }
.uc-mensal a.ucm-ev:hover { background: color-mix(in srgb, var(--ucm-c) 9%, #fff); }
.uc-mensal .ucm-ev.is-bar { background: color-mix(in srgb, var(--ucm-c) 12%, #fff); }
.uc-mensal .ucm-ev.is-bar::before { top: 0; bottom: 0; width: 4px; border-radius: 6px 0 0 6px; }
.uc-mensal a.ucm-ev.is-bar:hover { background: color-mix(in srgb, var(--ucm-c) 20%, #fff); }
.uc-mensal .ucm-ev.is-cl { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.uc-mensal .ucm-ev.is-cl::before { display: none; }
.uc-mensal .ucm-ev.is-cr { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.uc-mensal .ucm-ev.is-soldout .ucm-tx { color: var(--ucm-muted); }
.uc-mensal .ucm-ev.is-soldout::before { background: var(--ucm-faint); }
.uc-mensal .ucm-ev.is-bar.is-soldout { background: var(--ucm-line-2); }
.uc-mensal .ucm-cont { color: var(--ucm-muted); flex: none; }

.ucm-pill { flex: none; font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-radius: 4px; padding: 2px 5px; line-height: 1.3; }
.ucm-pill.is-esgotado { background: #E9EBF1; color: #4F5775; }
.ucm-pill.is-ultimas { background: #FBEBDD; color: #8A450F; }
.ucm-pill.is-brevemente { background: #E3F2F7; color: #1F6478; }

.uc-mensal button.ucm-more,
.uc-mensal button.ucm-more:hover,
.uc-mensal button.ucm-more:focus {
	align-self: start; justify-self: end; margin: 2px 8px 6px; z-index: 1;
	border: 0; background: none; box-shadow: none; min-height: 0;
	font: 600 12px/1.2 var(--ucm-font); color: var(--ucm-navy); cursor: pointer; padding: 3px 6px; border-radius: 6px; text-transform: none;
}
.uc-mensal button.ucm-more:hover { background: var(--ucm-line-2); }

.uc-mensal .ucm-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 12px; color: var(--ucm-muted); }
.uc-mensal .ucm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.uc-mensal .ucm-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--ucm-c); }

/* Lista (telemóvel e painel do dia) */
.uc-mensal .ucm-list { display: none; }
.ucm-lday { padding: 14px 0 6px; border-top: 1px solid #EEF1F6; }
.ucm-lday:first-child { border-top: 0; }
.ucm-lday h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #626A88; display: flex; align-items: center; gap: 8px; }
.ucm-lday h3 b { font-size: 22px; font-weight: 800; color: #2D4178; font-variant-numeric: tabular-nums; }
.ucm-lday.is-today h3 b { color: #BA104C; }
.ucm-lcard,
a.ucm-lcard:hover, a.ucm-lcard:focus, a.ucm-lcard:visited {
	display: grid; grid-template-columns: 4px 1fr auto; gap: 0 12px; align-items: center;
	padding: 11px 12px 11px 0; margin: 0 0 8px; border-radius: 10px;
	background: #F4F6FA; text-decoration: none; color: #1B2340; font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
}
a.ucm-lcard:hover { background: #EBEEF5; }
.ucm-lcard .ucm-s { align-self: stretch; background: var(--ucm-c); border-radius: 10px 0 0 10px; }
.ucm-lcard.is-soldout .ucm-s { background: #A9AFC2; }
.ucm-lcard strong { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.ucm-lcard.is-soldout strong { color: #626A88; }
.ucm-lcard small { display: block; color: #626A88; font-size: 12px; margin-top: 3px; line-height: 1.4; }
.ucm-lcard .ucm-go { color: #2D4178; font-weight: 600; font-size: 18px; }
.ucm-lcard .ucm-pill { margin-top: 5px; display: inline-block; }
.uc-mensal .ucm-empty, .ucm-dpanel .ucm-empty { padding: 30px 0; color: #626A88; text-align: center; margin: 0; }
.uc-mensal .ucm-fallback { margin: 0; padding: 0 0 0 18px; }
.uc-mensal .ucm-fallback li { margin: 0 0 6px; }

@media (max-width: 760px) {
	.uc-mensal { padding: 18px 14px; border-radius: 12px; }
	.uc-mensal .ucm-grid, .uc-mensal .ucm-legend { display: none; }
	.uc-mensal .ucm-list { display: block; }
	.uc-mensal .ucm-title { font-size: 22px; }
	.uc-mensal .ucm-sel { margin-left: 0; width: 100%; }
	.uc-mensal .ucm-sel select { flex: 1 1 140px; }
	.uc-mensal .ucm-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; width: 100%; }
	.uc-mensal button.ucm-chip { flex: none; }
}

/* Tooltip e painel do dia (anexados ao <body>) */
.ucm-tip {
	position: fixed; z-index: 100000; width: 290px; max-width: calc(100vw - 24px);
	background: #fff; border: 1px solid #E2E6EF; border-radius: 12px;
	box-shadow: 0 12px 34px rgba(27, 35, 64, .16); padding: 13px 15px; pointer-events: none;
	font: 400 12.5px/1.45 "Poppins", "Segoe UI", system-ui, sans-serif; color: #1B2340;
}
.ucm-tip[hidden] { display: none !important; }
.ucm-tip .ucm-tb { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ucm-c); }
.ucm-tip .ucm-tt { margin: 3px 0 8px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.ucm-tip dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; }
.ucm-tip dt { color: #626A88; margin: 0; }
.ucm-tip dd { margin: 0; font-weight: 500; }
.ucm-tip .ucm-cta { margin-top: 10px; color: #2D4178; font-weight: 600; }
.ucm-overlay { position: fixed; inset: 0; background: rgba(27, 35, 64, .38); z-index: 100001; display: grid; place-items: center; padding: 16px; }
.ucm-overlay[hidden] { display: none !important; }
.ucm-dpanel { background: #fff; border-radius: 16px; width: min(460px, 100%); max-height: 80vh; overflow: auto; padding: 20px 20px 12px; font-family: "Poppins", "Segoe UI", system-ui, sans-serif; color: #1B2340; }
.ucm-dpanel header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ucm-dpanel .ucm-eb { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #BA104C; font-weight: 600; }
.ucm-dpanel h3 { margin: 0; font-size: 18px; color: #2D4178; font-weight: 800; }
.ucm-dpanel button.ucm-x, .ucm-dpanel button.ucm-x:hover, .ucm-dpanel button.ucm-x:focus {
	border: 0; background: #EEF1F6; color: #1B2340; width: 32px; height: 32px; min-height: 0; padding: 0; margin: 0;
	border-radius: 50%; cursor: pointer; font: 400 16px/1 system-ui, sans-serif; box-shadow: none;
}
.ucm-dpanel button.ucm-x:focus-visible { outline: 2px solid #BA104C; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { .uc-mensal .ucm-body { transition: none; } }
