#mha-wrapper {
    max-width: 520px;
    margin: 0 auto;
    font-family: inherit;
}

#mha-calendar-container {
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

#mha-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a7a4a;
    color: #fff;
    padding: 14px 18px;
}
#mha-nav button {
    background: none;
    border: none;
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
    padding: 0 8px;
    border-radius: 6px;
    transition: background .2s;
}
#mha-nav button:hover { background: rgba(255,255,255,.2); }
#mha-month-label { font-size: 1.1em; font-weight: 600; text-transform: capitalize; }

#mha-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f0f8f4;
    text-align: center;
    padding: 6px 0;
}
#mha-weekdays span {
    font-size: .75em;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
}

#mha-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 10px;
    background: #fff;
}

.mha-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: .9em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .15s;
    user-select: none;
}
.mha-day:hover:not(.mha-day--reserved):not(.mha-day--past):not(.mha-day--empty) {
    border-color: #1a7a4a;
}
.mha-day--empty  { cursor: default; }
.mha-day--past   { color: #ccc; cursor: not-allowed; }
.mha-day--reserved {
    background: #fde8e8;
    color: #c0392b;
    cursor: not-allowed;
    text-decoration: line-through;
}
.mha-day--available { background: #eafaf1; color: #1a7a4a; font-weight: 600; }
.mha-day--today { border-color: #1a7a4a; }

/* ── Seleção por intervalo ── */
.mha-day--start {
    background: #1a7a4a;
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
}

.mha-day--range-edge {
    background: #1a7a4a;
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
}

.mha-day--range-mid {
    background: #c8ead8;
    color: #0f5132;
    font-weight: 600;
    border-radius: 0;
}

#mha-hint {
    font-size: 13px;
    color: #1a7a4a;
    font-style: italic;
    margin: 8px 12px 10px;
    min-height: 18px;
}

#mha-conflict-msg {
    display: none;
    background: #fde8e8;
    color: #c0392b;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin: 0 10px 10px;
}

/* ── Resumo / WhatsApp ── */
#mha-summary {
    margin-top: 18px;
    background: #f0f8f4;
    border: 1px solid #b2dfcc;
    border-radius: 12px;
    padding: 18px 20px;
}
#mha-summary h3 { margin: 0 0 10px; color: #1a7a4a; }
#mha-selected-list { margin: 0 0 10px; padding-left: 18px; }
#mha-selected-list li { margin-bottom: 6px; }
#mha-total { font-weight: 700; color: #1a7a4a; margin: 0 0 14px; }

#mha-whatsapp-btn {
    display: inline-block;
    background: #25d366;
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: .95em;
    transition: background .2s;
    margin-right: 10px;
}
#mha-whatsapp-btn:hover { background: #1ebe5d; }

#mha-clear {
    background: none;
    border: 1px solid #c0392b;
    color: #c0392b;
    padding: 11px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: .9em;
    transition: all .2s;
}
#mha-clear:hover { background: #c0392b; color: #fff; }

/* ── Legenda ── */
#mha-legend {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: .8em;
    flex-wrap: wrap;
}
.mha-leg { display: flex; align-items: center; gap: 4px; }
.mha-available    { color: #1a7a4a; }
.mha-selected-leg { color: #1a7a4a; font-weight: 800; }
.mha-reserved-leg { color: #c0392b; }