@keyframes load-spin { to { transform: rotate(360deg); } }

.load-spin {
    display: inline-block;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    vertical-align: -3px;
    margin-right: 8px;
    border: 2px solid rgba(23, 52, 4, .18);
    border-top-color: var(--odp-accent, var(--forest, #173404));
    border-radius: 50%;
    animation: load-spin .75s linear infinite;
}

.odp {
    --odp-accent-c: var(--odp-accent, var(--forest, #173404));
    --odp-line-c: var(--odp-line, var(--line, #d9ddd2));
    --odp-ink-c: var(--odp-ink, var(--ink, #1f352a));
    position: relative;
    display: block;
    max-width: 100%;
}

.odp .odp-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid var(--odp-line-c);
    border-radius: var(--odp-radius, 10px);
    background: #fff;
    color: var(--odp-ink-c);
    font: inherit;
    font-size: var(--odp-size, 16px);
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
    box-shadow: none;
}
.odp .odp-field:hover { border-color: var(--odp-accent-c); background: #fff; }
.odp .odp-field:focus-visible { outline: 2px solid var(--odp-accent-c); outline-offset: 2px; }
.odp .odp-field[aria-expanded="true"] { border-color: var(--odp-accent-c); }
.odp .odp-icon { flex: 0 0 auto; color: var(--odp-accent-c); opacity: .75; }
.odp.is-loading .odp-icon { display: none; }
.odp.is-loading .odp-field::after {
    content: "";
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    border: 2px solid rgba(23, 52, 4, .18);
    border-top-color: var(--odp-accent-c);
    border-radius: 50%;
    animation: load-spin .75s linear infinite;
}

.odp .odp-pop {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 40;
    width: 300px;
    max-width: calc(100vw - 32px);
    margin: 0;
    padding: 12px;
    border: 1px solid var(--odp-line-c);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px -14px rgba(20, 40, 10, .35);
    color: var(--odp-ink-c);
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    cursor: default;
}
.odp .odp-pop[hidden] { display: none; }

.odp .odp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.odp .odp-month { font-weight: 600; font-size: 14px; }
.odp .odp-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--odp-accent-c);
    cursor: pointer;
}
.odp .odp-nav:hover { background: rgba(23, 52, 4, .07); }
.odp .odp-nav:disabled { opacity: .3; cursor: default; background: transparent; }

.odp .odp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.odp .odp-dow {
    padding: 4px 0;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted, #6d7367);
}
.odp .odp-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--odp-accent-c);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.odp .odp-day:hover { background: rgba(23, 52, 4, .09); }
.odp .odp-day:focus-visible { outline: 2px solid var(--odp-accent-c); outline-offset: 1px; }
.odp .odp-day.is-today { box-shadow: inset 0 0 0 1px rgba(23, 52, 4, .35); }
.odp .odp-day.is-selected { background: var(--odp-accent-c); color: #fff; }
.odp .odp-day:disabled {
    background: transparent;
    color: #bdb9ae;
    font-weight: 400;
    text-decoration: line-through;
    text-decoration-color: rgba(0, 0, 0, .18);
    cursor: default;
}
.odp .odp-day.is-selected:disabled { background: #e7e4dc; color: #8f8b80; }
.odp .odp-day.is-closed {
    color: #b3afa4;
    font-weight: 400;
    text-decoration: line-through;
    text-decoration-color: rgba(0, 0, 0, .18);
}
.odp .odp-day.is-closed:hover { background: rgba(0, 0, 0, .05); }
.odp .odp-day.is-closed.is-selected { background: #8f8b80; color: #fff; text-decoration: none; }
.odp.is-soft .odp-wait { pointer-events: none; background: transparent; }

.odp .odp-wait {
    position: absolute;
    inset: 52px 12px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .55);
}
.odp .odp-wait .load-spin { width: 24px; height: 24px; margin: 0; border-width: 3px; }
.odp .odp-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.is-loading-times { position: relative; min-height: 72px; }
.is-loading-times > * { opacity: .3; pointer-events: none; transition: opacity .15s ease; }
.is-loading-times::after {
    content: "";
    position: absolute;
    top: min(50%, 60px);
    left: 50%;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border: 3px solid rgba(23, 52, 4, .18);
    border-top-color: var(--forest, #173404);
    border-radius: 50%;
    animation: load-spin .75s linear infinite;
}
