.bmap-wrap {
	--bmap-blue: #173d6b;
	--bmap-blue-deep: #0d2848;
	--bmap-aqua: #33b8c8;
	--bmap-green: #15805d;
	--bmap-amber: #b46b12;
	--bmap-red: #a33a43;
	--bmap-ink: #172536;
	--bmap-muted: #657283;
	--bmap-line: #dce5ec;
	--bmap-light: #f3f7fb;
	max-width: 1040px;
}

.bmap-wrap > h2 { margin-bottom: 6px; }
.bmap-section-label,
.bmap-eyebrow { color: var(--bmap-muted); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }

.bmap-passport-switcher { margin: 18px 0 22px; }
.bmap-passport-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.bmap-passport-card { display: grid; grid-template-columns: 1fr auto; gap: 3px 14px; min-width: 230px; padding: 12px 14px; border: 1px solid var(--bmap-line); border-radius: 10px; text-decoration: none; background: #fff; color: var(--bmap-ink); }
.bmap-passport-card:hover { border-color: #9fb3c5; }
.bmap-passport-card.is-selected { border-color: var(--bmap-blue); box-shadow: 0 0 0 2px rgba(23, 61, 107, .12); }
.bmap-passport-card-number { font-weight: 800; }
.bmap-passport-card small { color: var(--bmap-muted); }
.bmap-passport-card .bmap-badge { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

.bmap-dashboard { margin: 20px 0 26px; overflow: hidden; border: 1px solid var(--bmap-line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(19, 46, 75, .08); }
.bmap-dashboard-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; background: linear-gradient(120deg, var(--bmap-blue-deep), var(--bmap-blue) 68%, #146b83); color: #fff; }
.bmap-holder { display: flex; align-items: center; min-width: 0; gap: 15px; }
.bmap-avatar,
.bmap-member-avatar { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 16px; font-weight: 800; letter-spacing: .03em; }
.bmap-holder h3 { margin: 3px 0 2px; color: #fff; font-size: clamp(20px, 3vw, 28px); line-height: 1.15; }
.bmap-holder p { overflow: hidden; margin: 0; color: rgba(255, 255, 255, .75); text-overflow: ellipsis; white-space: nowrap; }
.bmap-dashboard-hero .bmap-eyebrow { color: rgba(255, 255, 255, .68); }
.bmap-hero-status { display: flex; flex: 0 0 auto; align-items: flex-end; flex-direction: column; gap: 7px; }
.bmap-hero-status small { color: rgba(255, 255, 255, .75); }

.bmap-badge { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border-radius: 999px; background: #e8eef4; color: #42556b; font-size: 11px; font-weight: 800; line-height: 1.2; }
.bmap-dashboard-hero .bmap-badge { background: rgba(255, 255, 255, .95); color: var(--bmap-blue-deep); }
.bmap-badge--active,
.bmap-badge--approved { background: #e0f4ec; color: var(--bmap-green); }
.bmap-badge--awaiting_registration,
.bmap-badge--awaiting_acceptance,
.bmap-badge--awaiting_approval,
.bmap-badge--awaiting_payment { background: #fff2dc; color: var(--bmap-amber); }
.bmap-badge--conflict_review,
.bmap-badge--correction_required,
.bmap-badge--revoked,
.bmap-badge--cancelled { background: #fde8e9; color: var(--bmap-red); }

.bmap-progress { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 20px 28px 18px; border-bottom: 1px solid var(--bmap-line); list-style: none; }
.bmap-progress li { position: relative; display: flex; align-items: center; gap: 8px; color: #8a96a3; }
.bmap-progress li::after { position: absolute; z-index: 0; top: 14px; right: 8px; left: 38px; height: 2px; background: #dfe6ec; content: ""; }
.bmap-progress li:last-child::after { display: none; }
.bmap-progress li > span { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 2px solid #d6dfe6; border-radius: 50%; background: #fff; font-size: 12px; font-weight: 800; }
.bmap-progress li > small { position: relative; z-index: 1; padding-right: 9px; background: #fff; font-weight: 700; }
.bmap-progress li.is-complete { color: var(--bmap-green); }
.bmap-progress li.is-complete::after { background: #8ed3bc; }
.bmap-progress li.is-complete > span { border-color: var(--bmap-green); background: var(--bmap-green); color: #fff; }
.bmap-progress li.is-current { color: var(--bmap-blue); }
.bmap-progress li.is-current > span { border-color: var(--bmap-blue); box-shadow: 0 0 0 4px rgba(23, 61, 107, .1); }

.bmap-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 28px; background: #fbfcfd; border-bottom: 1px solid var(--bmap-line); }
.bmap-summary-item { min-width: 0; padding: 18px 18px 18px 0; }
.bmap-summary-item + .bmap-summary-item { padding-left: 18px; border-left: 1px solid var(--bmap-line); }
.bmap-summary-item span,
.bmap-summary-item small { display: block; color: var(--bmap-muted); }
.bmap-summary-item span { margin-bottom: 4px; font-size: 12px; font-weight: 700; }
.bmap-summary-item strong { display: block; overflow: hidden; color: var(--bmap-ink); font-size: 18px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.bmap-summary-item small { margin-top: 3px; font-size: 11px; }

.bmap-dashboard-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .8fr); }
.bmap-members,
.bmap-next-action { padding: 24px 28px; }
.bmap-next-action { border-left: 1px solid var(--bmap-line); background: var(--bmap-light); }
.bmap-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.bmap-section-heading h4,
.bmap-next-action h4 { margin: 3px 0 14px; color: var(--bmap-ink); font-size: 18px; }
.bmap-capacity { padding: 4px 8px; border-radius: 999px; background: var(--bmap-light); color: var(--bmap-muted); font-size: 11px; font-weight: 700; }
.bmap-member-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.bmap-member-list li { display: flex; align-items: center; min-width: 0; gap: 12px; padding: 11px 12px; border: 1px solid #e5ebf0; border-radius: 10px; }
.bmap-member-avatar { width: 36px; height: 36px; background: var(--bmap-blue); font-size: 12px; }
.bmap-member-avatar.is-dependent { background: #daf3f5; color: #176574; }
.bmap-member-info { display: block; min-width: 0; }
.bmap-member-list strong,
.bmap-member-list small { display: block; overflow-wrap: anywhere; white-space: normal; }
.bmap-member-list strong { color: var(--bmap-ink); font-size: 13px; line-height: 1.35; }
.bmap-member-list small { margin-top: 2px; color: var(--bmap-muted); font-size: 11px; line-height: 1.35; }
.bmap-member-empty { border-style: dashed !important; color: var(--bmap-muted); }
.bmap-member-empty .bmap-member-avatar { background: #edf2f6; color: #718093; }
.bmap-next-action p { color: var(--bmap-muted); font-size: 13px; line-height: 1.55; }
.bmap-action-buttons { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.bmap-status { margin: 15px 0; padding: 12px 15px; border-left: 4px solid var(--bmap-blue); background: var(--bmap-light); }
.bmap-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 22px 0; }
.bmap-steps a { padding: 10px 5px; background: #eef2f6; color: #334; text-align: center; text-decoration: none; }
.bmap-steps a.is-current { background: var(--bmap-blue); color: #fff; }
.bmap-panel { padding: 22px; border: 1px solid var(--bmap-line); border-radius: 10px; background: #fff; }
.bmap-details { display: grid; grid-template-columns: minmax(100px, 180px) 1fr; gap: 7px 15px; }
.bmap-details dt { font-weight: 700; }
.bmap-details dd { margin: 0; }
.bmap-help { color: #59636e; }
.bmap-dependent-form fieldset { margin: 0 0 18px; padding: 15px; border: 1px solid var(--bmap-line); border-radius: 6px; }
.bmap-dependent-form legend { padding: 0 7px; color: var(--bmap-blue); font-weight: 700; }
.bmap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.bmap-grid .form-row { margin: 0; }
.bmap-grid label { display: block; }
.bmap-grid input { width: 100%; }
.bmap-table-wrap { overflow: auto; }
.bmap-contract-preview { max-height: 520px; overflow: auto; margin-bottom: 20px; padding: 22px; border: 1px solid #ccd5de; background: #fafafa; }
.bmap-contract-preview h4 { color: var(--bmap-blue); }
.bmap-acceptance { padding-top: 18px; border-top: 2px solid var(--bmap-blue); }
.bmap-optional { color: #59636e; font-size: .85em; font-weight: 400; }
.bmap-slot-empty td { background: #fafbfc; color: #7a838c; }
.bmap-unused { margin: 15px 0; }

.bmap-visit-calendar { --bmap-calendar-blue: #153f70; overflow: hidden; margin: 24px 0; border: 1px solid var(--bmap-line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(19, 46, 75, .08); }
.bmap-calendar-hero { padding: 28px; background: linear-gradient(120deg, #0d2848, var(--bmap-calendar-blue) 68%, #146b83); color: #fff; }
.bmap-calendar-hero .bmap-eyebrow { color: rgba(255, 255, 255, .7); }
.bmap-calendar-hero h2 { margin: 5px 0 8px; color: #fff; font-size: clamp(24px, 4vw, 34px); }
.bmap-calendar-hero p { max-width: 760px; margin: 0; color: rgba(255, 255, 255, .82); }
.bmap-calendar-meta { display: flex; gap: 10px; flex-wrap: wrap; padding: 15px 28px; border-bottom: 1px solid var(--bmap-line); background: #f7fafc; }
.bmap-calendar-meta span { padding: 6px 10px; border-radius: 999px; background: #e8f0f7; color: #36536e; font-size: 12px; font-weight: 700; }
.bmap-passport-picker { padding: 16px 28px 0; }
.bmap-passport-picker select { margin-left: 8px; }
.bmap-visit-calendar > .woocommerce-info,
.bmap-visit-calendar > .woocommerce-error,
.bmap-visit-calendar > .woocommerce-message { margin: 18px 28px; }
.bmap-visit-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 24px 28px 28px; }
.bmap-visit-date { min-width: 0; padding: 18px; border: 1px solid var(--bmap-line); border-radius: 12px; background: #fff; }
.bmap-visit-date.is-booked { border-color: #85cbb5; box-shadow: inset 0 3px 0 #16855b; }
.bmap-date-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.bmap-date-heading strong,
.bmap-date-heading small { display: block; }
.bmap-date-heading strong { color: var(--bmap-ink); font-size: 20px; }
.bmap-date-heading small { margin-top: 2px; color: var(--bmap-muted); text-transform: capitalize; }
.bmap-booked-label { margin: 0 0 6px; color: var(--bmap-green); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.bmap-reserved-people { margin: 0 0 16px; padding-left: 20px; }
.bmap-reserved-people li { margin: 4px 0; overflow-wrap: anywhere; }
.bmap-reserved-people span { color: var(--bmap-green); font-size: 11px; }
.bmap-reservation-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--bmap-line); }
.bmap-reservation-form fieldset { display: grid; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; }
.bmap-reservation-form legend { margin-bottom: 8px; color: var(--bmap-ink); font-weight: 800; }
.bmap-reservation-form fieldset label { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; border: 1px solid #e3eaf0; border-radius: 8px; cursor: pointer; }
.bmap-reservation-form fieldset label:has(input:checked) { border-color: #79b8c2; background: #eef9fa; }
.bmap-reservation-form fieldset input { flex: 0 0 auto; margin-top: 3px; }
.bmap-reservation-form fieldset span,
.bmap-reservation-form fieldset strong,
.bmap-reservation-form fieldset small { display: block; min-width: 0; overflow-wrap: anywhere; }
.bmap-reservation-form fieldset strong { color: var(--bmap-ink); font-size: 13px; line-height: 1.35; }
.bmap-reservation-form fieldset small { margin-top: 2px; color: var(--bmap-muted); font-size: 11px; }
.bmap-cancel-booking { display: inline-block; margin-top: 8px; }

@media (max-width: 760px) {
	.bmap-dashboard-hero { align-items: flex-start; padding: 22px; }
	.bmap-summary-grid { grid-template-columns: 1fr 1fr; padding: 0 22px; }
	.bmap-summary-item:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--bmap-line); }
	.bmap-summary-item:nth-child(4) { border-top: 1px solid var(--bmap-line); }
	.bmap-dashboard-body { grid-template-columns: 1fr; }
	.bmap-visit-dates { grid-template-columns: 1fr; }
	.bmap-next-action { border-top: 1px solid var(--bmap-line); border-left: 0; }
	.bmap-progress { padding-right: 22px; padding-left: 22px; }
	.bmap-progress li { flex-direction: column; align-items: flex-start; gap: 4px; }
	.bmap-progress li::after { top: 14px; right: 8px; left: 32px; }
	.bmap-progress li > small { padding-right: 6px; font-size: 10px; }
}

@media (max-width: 520px) {
	.bmap-dashboard-hero { flex-direction: column; gap: 16px; }
	.bmap-hero-status { align-items: flex-start; }
	.bmap-avatar { width: 42px; height: 42px; }
	.bmap-summary-grid { grid-template-columns: 1fr 1fr; }
	.bmap-summary-item,
	.bmap-summary-item + .bmap-summary-item { padding: 14px 10px 14px 0; border-left: 0; }
	.bmap-summary-item:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--bmap-line); }
	.bmap-member-list { grid-template-columns: 1fr; }
	.bmap-members,
	.bmap-next-action { padding: 20px; }
	.bmap-steps { grid-template-columns: 1fr 1fr; }
	.bmap-grid,
	.bmap-details { grid-template-columns: 1fr; }
	.bmap-details dd { margin-bottom: 8px; }
	.bmap-calendar-hero,
	.bmap-visit-dates { padding: 20px; }
	.bmap-calendar-meta { padding-right: 20px; padding-left: 20px; }
}

/* ── Calendário do ingresso na página do produto ──────────────────────────
   O tema da loja estiliza <button>: padding, min-width e borda próprios. Numa
   grade de sete colunas isso estoura a largura e o sábado sai para fora do
   cartão — foi o que aconteceu. Por isso o botão do dia é zerado aqui, com
   box-sizing e min-width explícitos, em vez de confiar no que o tema faz. */
.bmap-cal { margin: 0 0 22px; max-width: 380px; }
.bmap-cal-title { margin: 0 0 8px; }
.bmap-cal-empty { margin: 0; opacity: .7; }

/* Mesma trava do painel: o hidden do navegador perde para qualquer display que
   a gente declare, e é o JS do calendário que troca de mês escondendo o outro.
   Escopado no calendário para não mexer em nada do tema. */
.bmap-cal [hidden] { display: none !important; }

.bmap-cal-month {
	box-sizing: border-box;
	width: 100%;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 14px;
	padding: 12px;
	background: #fff;
}
.bmap-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.bmap-cal-month-name { font-weight: 700; text-transform: capitalize; font-size: 15px; }

.bmap-cal .bmap-cal-nav {
	box-sizing: border-box;
	min-width: 0;
	width: 36px;
	height: 36px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 8px;
	background: rgba(0, 0, 0, .05);
	color: inherit;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}
.bmap-cal .bmap-cal-nav:hover { background: rgba(0, 0, 0, .10); }
.bmap-cal .bmap-icon { display: block; margin: 0 auto; }

.bmap-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
	width: 100%;
}
.bmap-cal-weekday {
	text-align: center;
	font-size: 11px;
	letter-spacing: .02em;
	text-transform: uppercase;
	opacity: .55;
	padding-bottom: 4px;
	min-width: 0;
	overflow: hidden;
}
.bmap-cal-empty-cell { min-height: 44px; }

.bmap-cal .bmap-cal-day {
	box-sizing: border-box;
	min-width: 0;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 4px 2px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: rgba(0, 0, 0, .05);
	color: inherit;
	font: inherit;
	line-height: 1.1;
	text-align: center;
	cursor: pointer;
	transition: background .12s, color .12s;
}
.bmap-cal .bmap-cal-day:hover:not(:disabled) { background: rgba(0, 0, 0, .11); }
.bmap-cal .bmap-cal-day:disabled { background: transparent; color: inherit; opacity: .3; cursor: not-allowed; }
/* Dia que já passou e dia fechado são os dois indisponíveis, mas não pela mesma
   razão: um o clube decidiu, o outro o calendário só não alcança mais. O
   passado fica mais apagado ainda e com o número riscado, para o cliente não
   procurar motivo onde não há. */
.bmap-cal .bmap-cal-day.is-past { opacity: .22; }
.bmap-cal .bmap-cal-day.is-past .bmap-cal-num { text-decoration: line-through; font-weight: 500; }
.bmap-cal .bmap-cal-day.is-today { border-color: rgba(0, 0, 0, .45); }
.bmap-cal .bmap-cal-day.is-selected,
.bmap-cal .bmap-cal-day.is-selected:hover { background: #0e7c9b; color: #fff; border-color: #0e7c9b; }

.bmap-cal-num { font-size: 14px; font-weight: 600; }
.bmap-cal-left { font-size: 9px; opacity: .8; line-height: 1; }
.bmap-cal-chosen { margin: 10px 0 0; font-size: 13px; }

/* No celular a grade ocupa a largura toda e o alvo cresce: o dedo erra num
   quadrado de 40px, e errar aqui significa escolher o dia errado da visita. */
@media (max-width: 480px) {
	.bmap-cal { max-width: none; }
	.bmap-cal-empty-cell,
	.bmap-cal .bmap-cal-day { min-height: 48px; }
	.bmap-cal-num { font-size: 15px; }
}
