.op-calendar-panel {
    max-width: 960px;
    margin: 0 auto;
    padding-bottom: 120px;
}

.op-cal--busy {
    opacity: 0.72;
    pointer-events: none;
}

.op-cal-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 16px;
    margin-bottom: 20px;
}

.op-cal-back {
    flex: 0 0 auto;
    padding: 0;
    border: none;
    background: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-800);
    cursor: pointer;
}

.op-cal-back:hover {
    color: var(--brand-accent);
}

.op-cal-header__main {
    flex: 1 1 200px;
    min-width: 0;
}

.op-cal-header__title {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--brand-900);
    line-height: 1.2;
}

.op-cal-header__sub {
    margin: 4px 0 0;
    font-size: 0.875rem;
    color: var(--brand-800);
}

.op-cal-status {
    flex: 0 0 auto;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(122, 140, 102, 0.12);
    color: var(--brand-900);
    border: 1px solid rgba(122, 140, 102, 0.25);
}

.op-cal-pricing,
.op-cal-quick {
    margin-bottom: 16px;
    border: 1px solid var(--brand-200);
    border-radius: 12px;
    background: var(--brand-50);
}

.op-cal-pricing summary,
.op-cal-quick summary {
    padding: 12px 14px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--brand-900);
    list-style: none;
}

.op-cal-pricing summary::-webkit-details-marker,
.op-cal-quick summary::-webkit-details-marker {
    display: none;
}

.op-cal-pricing__hint {
    margin: 0 14px 10px;
    font-size: 0.8125rem;
    color: var(--brand-800);
    line-height: 1.45;
}

.op-cal-pricing__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: flex-end;
    padding: 0 14px 14px;
}

.op-cal-pricing__row label {
    flex: 1 1 120px;
    min-width: 100px;
}

.op-cal-pricing__row label span {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-800);
    margin-bottom: 4px;
}

.op-cal-pricing__row input {
    width: 100%;
    border: 1px solid var(--brand-200);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.9375rem;
    background: #fff;
}

.op-cal-quick__row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 14px 14px;
}

.op-cal-month {
    border: 1px solid var(--brand-200);
    border-radius: 16px;
    background: #fff;
    padding: 16px 12px 12px;
    box-shadow: 0 1px 3px rgba(52, 56, 54, 0.06);
}

.op-cal-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.op-cal-nav__btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--brand-200);
    border-radius: 50%;
    background: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    color: var(--brand-900);
}

.op-cal-nav__btn:hover {
    border-color: var(--brand-900);
}

.op-cal-nav__title {
    flex: 1;
    text-align: center;
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--brand-900);
}

.op-cal-nav__today {
    border: none;
    background: none;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: underline;
    color: var(--brand-800);
    cursor: pointer;
    padding: 4px 6px;
}

.op-cal-hint {
    margin: 0 4px 12px;
    font-size: 0.8125rem;
    color: var(--brand-800);
    line-height: 1.4;
}

.op-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
    user-select: none;
    -webkit-user-select: none;
}

.op-cal-dow {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brand-800);
    text-align: center;
    padding: 6px 0;
}

.op-cal-day {
    position: relative;
    min-height: 72px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 6px 4px 4px;
    background: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    font-family: inherit;
    transition: background 0.1s, border-color 0.1s, box-shadow 0.1s;
}

.op-cal-day:hover {
    border-color: var(--brand-200);
    box-shadow: inset 0 0 0 1px var(--brand-200);
}

.op-cal-day--pad {
    pointer-events: none;
    background: transparent;
}

.op-cal-day__num {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-800);
    line-height: 1;
}

.op-cal-day__price {
    margin-top: auto;
    padding-top: 8px;
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--brand-900);
    line-height: 1.15;
    word-break: break-word;
}

.op-cal-day__blocked {
    margin-top: auto;
    padding-top: 8px;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.op-cal-day--blocked {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.op-cal-day--blocked .op-cal-day__num {
    color: #9ca3af;
}

.op-cal-day--custom .op-cal-day__price::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 3px;
    border-radius: 50%;
    background: var(--brand-accent);
    vertical-align: super;
}

.op-cal-day--selected {
    background: #222;
    border-color: #222;
    box-shadow: 0 0 0 2px #222;
    z-index: 1;
}

.op-cal-day--selected .op-cal-day__num,
.op-cal-day--selected .op-cal-day__price {
    color: #fff;
}

.op-cal-day--selected.op-cal-day--blocked {
    background: #374151;
    border-color: #374151;
}

.op-cal-day--selected .op-cal-day__blocked {
    color: rgba(255, 255, 255, 0.75);
}

.op-cal-toolbar {
    position: sticky;
    bottom: 12px;
    z-index: 20;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--brand-200);
    box-shadow: 0 12px 40px rgba(52, 56, 54, 0.18);
}

.op-cal-toolbar__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.op-cal-toolbar__summary {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--brand-900);
}

.op-cal-toolbar__clear {
    border: none;
    background: none;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: underline;
    color: var(--brand-800);
    cursor: pointer;
    padding: 0;
}

.op-cal-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.op-cal-action {
    border: 1px solid var(--brand-200);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
    color: var(--brand-900);
}

.op-cal-action--open {
    background: var(--brand-900);
    border-color: var(--brand-900);
    color: #fff;
}

.op-cal-action--block {
    background: #fff;
}

.op-cal-action--price {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
}

.op-cal-action--ghost {
    background: transparent;
    text-decoration: underline;
    border-color: transparent;
    color: var(--brand-800);
}

.op-cal-toolbar__price {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    flex: 1 1 220px;
}

.op-cal-toolbar__price input {
    width: 110px;
    border: 1px solid var(--brand-200);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.8125rem;
}

@media (max-width: 640px) {
    .op-calendar-panel {
        padding-bottom: 140px;
    }

    .op-cal-day {
        min-height: 58px;
        padding: 4px 2px 2px;
    }

    .op-cal-day__price {
        font-size: 0.6875rem;
        padding-top: 4px;
    }

    .op-cal-toolbar__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .op-cal-toolbar__price {
        width: 100%;
    }

    .op-cal-toolbar__price input {
        flex: 1;
        width: auto;
        min-width: 0;
    }
}
