.mbc-wrap {
    position: relative;
    width: 100%;
}

.mbc-wrap--loading .mbc-input {
    cursor: wait;
}

.mbc-input {
    width: 100%;
    cursor: pointer;
    background-color: #fff;
}

.mbc-input:disabled {
    cursor: wait;
    opacity: 0.75;
}

.mbc-input[aria-busy="true"] {
    opacity: 0.7;
}

.mbc-status {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    line-height: 1.35;
}

.mbc-status--loading {
    color: #5b6472;
}

.mbc-status--error {
    color: #b42318;
}

.mbc-panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: min(100%, 18rem);
    width: 18rem;
    max-width: 100vw;
    padding: 0.75rem;
    border: 1px solid #d7dde5;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.12);
}

[dir="rtl"] .mbc-panel {
    left: auto;
    right: 0;
}

.mbc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.mbc-title {
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    flex: 1;
}

.mbc-nav,
.mbc-retry {
    border: 1px solid #d7dde5;
    background: #fff;
    border-radius: 0.5rem;
    min-width: 2rem;
    height: 2rem;
    line-height: 1;
    cursor: pointer;
}

.mbc-retry {
    width: 100%;
    height: auto;
    padding: 0.45rem 0.75rem;
}

.mbc-weekdays,
.mbc-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.2rem;
}

.mbc-weekdays span {
    text-align: center;
    font-size: 0.75rem;
    color: #667085;
    padding: 0.2rem 0;
}

.mbc-day {
    appearance: none;
    border: 0;
    background: transparent;
    border-radius: 0.45rem;
    height: 2rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.mbc-day--empty {
    visibility: hidden;
    pointer-events: none;
}

.mbc-day:not(.mbc-day--disabled):hover {
    background: #eef2f7;
}

.mbc-day--selected {
    background: #1f4b7a;
    color: #fff;
}

.mbc-day--selected:hover {
    background: #1a3f67;
    color: #fff;
}

.mbc-day--disabled,
.mbc-day--loading {
    color: #98a2b3;
    background: #f2f4f7;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.75;
}

.mbc-day--current:not(.mbc-day--disabled) {
    box-shadow: inset 0 0 0 1px #1f4b7a;
}

.mbc-footer {
    margin-top: 0.65rem;
}
