/* Стили для корзины бронирования */
.cart-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

#btn-booking-selected:disabled {
    background: #c7c7c7;
    border-color: #c7c7c7;
    color: #ffffff;
    cursor: not-allowed;
}

/* Модальное окно выбора дат */
.booking-date-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    overflow-y: scroll; /* скролл всегда виден на чёрном экране, контент не дёргается при смене вкладок */
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
}
.booking-date-modal-overlay {
    display: none;
}
.booking-date-modal-content {
    position: relative;
    background: #FFF;
    width: 90%;
    max-width: 760px;
    z-index: 1;
}
/* Модалка выбора дат (периоды по объекту) */
.booking-dates-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
}
.booking-dates-edit-modal-overlay {
    display: none;
}
.booking-dates-edit-modal-content {
    position: relative;
    background: #FFF;
    width: 90%;
    max-width: 850px;
    z-index: 1;
}
.booking-dates-edit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}
.booking-dates-edit-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
}
.booking-dates-edit-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.booking-dates-edit-modal-close:hover {
    background: #f3f4f6;
    color: #111;
}
.booking-dates-edit-modal-body {
    padding: 1.5rem;
}

/* Модалка «Проверьте заявку» перед оплатой (выше основной корзины и выбора дат) */
.booking-review-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10002;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
}
.booking-review-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 720px;
    z-index: 1;
}
.booking-review-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}
.booking-review-modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
}
.booking-review-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.booking-review-modal-close:hover {
    background: #f3f4f6;
    color: #111;
}
.booking-review-modal-body {
    padding: 1.25rem 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}
.booking-review-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.booking-review-fieldset {
    margin: 0;
    min-width: 0;
    border: 1px dashed #e5e7eb;
    padding: 0.5rem 1rem 1rem;
    background: transparent;
}
.booking-review-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.35rem;
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4b5563;
}
.booking-review-legend-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.375rem;
    height: 1.375rem;
    padding: 0 0.25rem;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #374151;
    line-height: 1;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
}
.booking-review-legend-text {
    color: #1f2937;
}
.booking-review-fieldset-body {
    color: #111;
    padding-top: 0.15rem;
}
.booking-review-lead {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}
.booking-review-muted {
    margin: 0;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
}
.booking-review-meta-list {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
}
.booking-review-meta-item {
    font-size: 0.8125rem;
    color: #374151;
    padding: 0.2rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.booking-review-meta-item:last-child {
    border-bottom: none;
}
.booking-review-structures {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.booking-review-structure {
    border: 1px solid #e5e7eb;
    overflow: hidden;
    background: #fafafa;
}
.booking-review-structure-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    padding: 0.65rem 0.75rem;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}
.booking-review-structure-name {
    font-weight: 600;
    font-size: 0.9375rem;
}
.booking-review-structure-code {
    font-size: 0.8125rem;
    color: #6b7280;
    font-family: ui-monospace, monospace;
}
.booking-review-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
    background: #fff;
}
.booking-review-table th,
.booking-review-table td {
    padding: 0.45rem 0.65rem;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}
.booking-review-table thead th {
    font-weight: 600;
    color: #374151;
    background: #f9fafb;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.booking-review-table-num {
    text-align: right;
    white-space: nowrap;
}
.booking-review-table tfoot td {
    border-bottom: none;
    font-weight: 600;
}
.booking-review-table-foot-label {
    text-align: right;
    color: #4b5563;
}
.booking-review-table-foot-sum {
    font-variant-numeric: tabular-nums;
}
.booking-review-amounts {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}
.booking-review-amounts th,
.booking-review-amounts td {
    padding: 0.4rem 0;
    text-align: left;
    vertical-align: top;
}
.booking-review-amounts th {
    font-weight: 500;
    color: #4b5563;
    padding-right: 1rem;
}
.booking-review-amounts td {
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.booking-review-amounts tbody tr {
    border-bottom: 1px solid #f3f4f6;
}
.booking-review-amounts-total th,
.booking-review-amounts-total td {
    padding-top: 0.65rem;
    font-size: 1rem;
    border-bottom: none;
}
.booking-review-amounts-total th {
    color: #111;
}
.booking-review-modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 16px 16px;
    border-top: 1px solid #e5e7eb;
}

a.booking-dates-edit-object-name {
    display: block;
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 16px;
    color: #111;
    text-decoration: none;
}
a.booking-dates-edit-object-name:hover {
    text-decoration: underline;
}
/* Side tabs */
.booking-dates-edit-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.25rem;
}
.booking-dates-edit-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    text-transform: uppercase;
}
.booking-dates-edit-tab:hover {
    color: #374151;
}
.booking-dates-edit-tab.active {
    color: #111;
    font-weight: 600;
    border-bottom-color: #111;
}
/* Side panels — only active is visible */
.booking-dates-edit-sides {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.booking-dates-edit-side {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
}
.booking-dates-edit-side.active {
    display: flex;
}
.booking-dates-edit-side.booking-dates-edit-side--conflict {
    outline: 2px solid #c0392b;
    outline-offset: 4px;
    border-radius: 8px;
}
/* Warning for invalid/past dates */
.booking-dates-edit-warning {
    padding: 10px 14px;
    margin-bottom: 12px;
    background: #fef3c7;
    border: 1px dashed #fcd34d;
    font-size: 0.8125rem;
    color: #92400e;
    display: none;
}
.booking-dates-edit-warning.visible {
    display: block;
}
/* Proposed date fields */
.booking-dates-edit-dates-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 12px;
}
.booking-dates-edit-date-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}
.booking-dates-edit-date-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
}
.booking-dates-edit-date-field .date-calendar-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.booking-dates-edit-date-field input {
    padding: 0.625rem 0.75rem;
    border: 1px solid #d1d5db;
    font-size: 0.875rem;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    cursor: pointer;
}
.booking-dates-edit-date-field input:focus {
    outline: none;
    border-color: #333;
}
.booking-dates-edit-date-field input:hover {
    border-color: #9ca3af;
}
.booking-dates-edit-date-field .date-picker-dropdown {
    z-index: 10001;
}
.cart-calendar-container .calendar-month-price {
    position: relative;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    height: 30px;
    line-height: 30px;
    vertical-align: middle;
    white-space: nowrap;
    background: transparent;
    padding: 0 10px 0 25px;
    margin: -2px 0;
    border: 1px dashed #CCC;
}
.cart-calendar-container .calendar-month-price::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    background: transparent;
    border: #CCC solid 1px;
    border-radius: 50%;
}

/* Calendar grid in date modal */
.booking-dates-edit-modal .booking-dates-edit-calendar-year-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 0;
    flex: 1;
    min-height: 0;
}
.booking-dates-edit-modal .calendar-container {
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.booking-dates-edit-modal .booking-dates-edit-add-month-container {
    padding: 12px 0;
    margin-top: 8px;
    display: flex;
}
.booking-dates-edit-modal .booking-dates-edit-add-month-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
}
.booking-dates-edit-modal .booking-dates-edit-add-month-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}
.booking-dates-edit-modal .booking-dates-edit-add-month-btn svg {
    flex-shrink: 0;
}
.booking-dates-edit-save-error {
    display: none;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: #fee2e2;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: #991b1b;
}
.booking-dates-edit-loader {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}
.booking-dates-edit-empty {
    padding: 2rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}
.booking-dates-edit-tab.in-cart {
    font-weight: 600;
}
.booking-dates-edit-modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.booking-date-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
}

.booking-date-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.booking-date-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #777;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.booking-date-modal-close:hover {
    background: #f5f5f5;
    color: #000;
}

.booking-date-modal-error {
    display: none;
    padding: 0.75rem 1.5rem;
    background: #fee2e2;
    border-top: 1px solid #fecaca;
    border-bottom: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.875rem;
    width: 100%;
    box-sizing: border-box;
    margin: -1px 0 0 0;
}

/* Степпер: шевроны (стрелки), свои цвета */
.booking-modal-stepper {
    background: #fafafa;
}

.booking-stepper-steps {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    gap: 0;
    flex-wrap: nowrap;
    width: 100%;
    overflow: hidden;
}

.booking-stepper-step {
    position: relative;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    min-width: 0;
    padding: 0 1.5rem 0 1.35rem;
    margin-left: -12px;
    background: #e5e7eb;
    border: none;
    font-size: 12px;
    font-weight: 400;
    color: #374151;
    cursor: pointer;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-sizing: border-box;
}
.booking-stepper-step:first-child,
.booking-stepper-step--first {
    margin-left: 0;
}
.booking-stepper-step:first-child:before {
    content: '';
    position: absolute;
    right: -34px;
    border: 24px solid transparent; border-left: 24px solid #FFF;
    z-index: 100;
}
.booking-stepper-step:first-child:after {
    content: '';
    position: absolute;
    right: -26px;
    border: 20px solid transparent;
    border-left: 20px solid #d1d5db;
    z-index: 100;
}
.booking-stepper-step.active.verified:first-child:after {
    border-left: 20px solid #5e9c1c;
}
.booking-stepper-step:nth-child(2):before {
    content: '';
    position: absolute;
    right: -34px;
    border: 24px solid transparent;
    border-left: 24px solid #FFF;
    z-index: 100;
}
.booking-stepper-step:nth-child(2):after {
    content: '';
    position: absolute;
    right: -26px;
    border: 20px solid transparent;
    border-left: 20px solid #e5e7eb;
    z-index: 100;
}
.booking-stepper-step.active:nth-child(2):after {
    content: '';
    position: absolute;
    right: -26px;
    border: 20px solid transparent; border-left: 20px solid #d1d5db;
    z-index: 100;
}
.booking-stepper-step.active.verified:nth-child(2):after {
    content: '';
    position: absolute;
    right: -26px;
    border: 20px solid transparent; border-left: 20px solid #5e9c1c;
    z-index: 100;
}
.booking-stepper-step:nth-child(3):before {
    content: '';
    position: absolute;
    right: -34px;
    border: 24px solid transparent;
    border-left: 24px solid #FFF;
    z-index: 100;
}
.booking-stepper-step:nth-child(3):after {
    content: '';
    position: absolute;
    right: -26px;
    border: 20px solid transparent;
    border-left: 20px solid #e5e7eb;
    z-index: 100;
}
.booking-stepper-step.active:nth-child(3):after {
    content: '';
    position: absolute;
    right: -26px;
    border: 20px solid transparent;
    border-left: 20px solid #d1d5db;
    z-index: 100;
}
.booking-stepper-step.active.verified:nth-child(3):after {
    content: '';
    position: absolute;
    right: -26px;
    border: 20px solid transparent;
    border-left: 20px solid #5e9c1c;
    z-index: 100;
}

/* Выемка слева (2-й и 3-й шаг) */
.booking-stepper-step:not(.booking-stepper-step--first) {
    padding-left: 1.5rem;
}

/*.booking-stepper-step:not(.booking-stepper-step--first)::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    left: 0;*/
/*    top: 0;*/
/*    bottom: 0;*/
/*    width: 0;*/
/*    height: 0;*/
/*    margin: auto 0;*/
/*    border-top: 20px solid transparent;*/
/*    border-bottom: 20px solid transparent;*/
/*    border-right: 12px solid #e5e7eb;*/
/*    z-index: 0;*/
/*}*/

/* Hover: фон и правый шеврон (::after) одного цвета (иначе «меняется только стрелка» или наоборот) */
.booking-stepper-step:hover {
    background: #d1d5db !important;
    color: #111;
}
.booking-stepper-step:hover::after {
    border-left-color: #d1d5db;
}

/* Подтверждённый шаг: при наведении остаётся зелёный фон и шеврон */
.booking-stepper-step.active.verified:hover {
    background: #5e9c1c !important;
    color: #fff;
}
.booking-stepper-step.active.verified:hover::after {
    border-left-color: #5e9c1c;
}

/* Активный: бирюзовый */
.booking-stepper-step.active {
    background: #d1d5db;
    color: #111;
}
.booking-stepper-step.active.verified {
    background: #5e9c1c;
    color: #FFF;
}

/* Пройденный: серый потемнее */
.booking-stepper-step.completed {
    background: #e5e7eb;
    color: #374151;
}

.booking-stepper-step.completed::after {
    border-left-color: #e5e7eb;
}

/* Иначе у .completed::after и :hover::after одинаковая специфичность — позднее правило ломало hover */
.booking-stepper-step.completed:hover::after {
    border-left-color: #d1d5db;
}

/*.booking-stepper-step.completed::before {*/
/*    border-right-color: #d1d5db;*/
/*}*/

/* Следующий за активным — выемка того же цвета, что активный */
/*.booking-stepper-step.active + .booking-stepper-step::before {*/
/*    border-right-color: #5e9c1c;*/
/*}*/

/* У пройденного остриё того же цвета, что следующий активный */
/*.booking-stepper-step.completed:has(+ .booking-stepper-step.active)::after {*/
/*    border-left-color: #5e9c1c;*/
/*}*/

.booking-stepper-step-title {
    position: relative;
    z-index: 2;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.booking-stepper-step-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.booking-stepper-step-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}
.booking-stepper-step-icon img {
    width: 14px;
    height: 14px;
    display: block;
}
/* Локальная корректировка только для степпера корзины:
   иконка "Расписания" в исходнике слишком светлая, делаем читаемой (черной). */
.booking-stepper-steps .booking-stepper-step[data-step="1"] .booking-stepper-step-icon img {
    filter: grayscale(1) brightness(0);
}
.booking-stepper-steps .booking-stepper-step[data-step="3"] .booking-stepper-step-icon img,
.booking-stepper-steps .booking-stepper-step[data-step="4"] .booking-stepper-step-icon img {
    filter: grayscale(1) brightness(0);
}
/* Подтверждённый активный шаг: иконка белая (как текст). */
.booking-stepper-steps .booking-stepper-step.active.verified .booking-stepper-step-icon img {
    filter: grayscale(1) brightness(0) invert(1);
}

.booking-stepper-step-label {
    display: inline-block;
}

/* Панели шагов */
.booking-modal-panel {
    display: none;
}

@media (max-width: 860px) {
    .booking-stepper-step {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }
    .booking-stepper-step-label {
        display: none;
    }
    .booking-stepper-step-title {
        gap: 0;
    }
    .booking-stepper-step-icon,
    .booking-stepper-step-icon svg,
    .booking-stepper-step-icon img {
        width: 16px;
        height: 16px;
    }
}

.booking-modal-panel.active {
    display: block;
}

.booking-panel-title {
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 1rem 0;
}
/* Сервисный сбор: блок «Примечание» — разметка .platform-docs__info-box--note + handbook.css */
.booking-service-fee-note {
    margin: 0 0 1rem 0;
}
.booking-service-fee-note.platform-docs__info-box p strong {
    font-weight: 600;
    color: #000;
}
.booking-service-fee-breakdown-title {
    margin: 0.75rem 0 0.375rem 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.booking-service-fee-breakdown {
    border-top: 1px dashed #888;
    border-bottom: 1px dashed #888;
    margin: 0 0 0.5rem 0;
}
.booking-service-fee-breakdown-empty {
    padding: 0.75rem 0;
    font-size: 0.875rem;
    color: #6b7280;
}
.booking-service-fee-row--structure {
    border-bottom: none;
    padding: 0.4rem 0;
    font-size: 0.875rem;
}
.booking-service-fee-row--structure + .booking-service-fee-row--structure {
    border-top: 1px dashed #e5e7eb;
}
.booking-service-fee-structure-label {
    flex: 1;
    min-width: 0;
    padding-right: 0.75rem;
    line-height: 1.35;
}
.booking-service-fee-structure-value {
    flex-shrink: 0;
    font-weight: 600;
}
.booking-service-fee-card {
    padding: 1rem;
    background: transparent;
}
.booking-service-fee-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}
.booking-service-fee-row--tariff strong {
    font-weight: 600;
}

.booking-service-fee-row--muted {
    color: #666;
    font-size: 0.9rem;
}

.booking-service-fee-muted-hint {
    font-weight: 400;
    color: #888;
}

.booking-review-muted-cell {
    color: #555;
}

.booking-review-muted-hint {
    font-size: 0.85rem;
    color: #888;
}

.booking-service-fee-row--total {
    border-bottom: none;
    padding-top: 0.75rem;
    font-weight: 700;
    font-size: 1rem;
}
.booking-service-fee-hint {
    margin: 0.5rem 0 0.75rem;
    font-size: 0.8125rem;
    color: #6b7280;
}
.booking-service-fee-confirm {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #111;
}
.booking-service-fee-confirm .form_group.checkbox {
    margin: 0;
    flex-shrink: 0;
}
.booking-service-fee-confirm-text {
    line-height: 1.4;
    flex: 1;
    min-width: 0;
}

.booking-service-fee-confirm-text label {
    cursor: pointer;
}

.booking-service-fee-refund-link {
    color: #111827;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.booking-service-fee-refund-link:hover {
    color: #000;
}

#confirm-booking:disabled {
    opacity: 0.6;
    background: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
}

.booking-organizations-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.booking-org-card {
    display: block;
    cursor: pointer;
}

.booking-org-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.booking-org-card-inner {
    display: block;
    padding: 1rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: border-color 0.2s, background 0.2s;
}

.booking-org-card:hover .booking-org-card-inner {
    border-color: #ccc;
    background: #f9f9f9;
}

.booking-org-card .booking-org-radio:checked + .booking-org-card-inner {
    border-color: #000;
    background: #f5f5f5;
}

.booking-org-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.booking-org-type {
    display: block;
    font-size: 0.875rem;
    color: #777;
    margin-bottom: 0.25rem;
}

.booking-org-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
    font-size: 0.8125rem;
    color: #777;
}

.booking-org-detail {
    white-space: nowrap;
}

/* Одна строка: «Основное» + ЭДО (как бейджи) */
.booking-org-badges-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.booking-org-edo-combo {
    display: inline-flex;
    align-items: stretch;
    vertical-align: middle;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #c8c8c8;
    background: #e8e8e8;
    max-width: 100%;
}

.booking-org-edo-tag {
    flex-shrink: 0;
    padding: 0.2rem 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #444;
    background: #dcdcdc;
    border-right: 1px solid #c0c0c0;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.booking-org-edo-select {
    flex: 1;
    min-width: 0;
    max-width: 12rem;
    margin: 0;
    padding: 0.2rem 1.35rem 0.2rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1.2;
    border: none;
    background: #e8e8e8;
    color: #222;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.35rem center;
}

.booking-org-edo-select:focus {
    outline: none;
    background-color: #efefef;
}

.booking-org-badge--edo-muted {
    color: #64748b;
    background: #eef2f6;
    border: 1px solid #e2e8f0;
}

.booking-org-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    background: #e0e0e0;
    border-radius: 4px;
}

.booking-no-orgs {
    color: #777;
    font-size: 0.875rem;
}

.booking-no-orgs a {
    color: #0066cc;
}

.booking-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.booking-payment-card {
    display: block;
    cursor: pointer;
}

.booking-payment-card .booking-payment-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.booking-payment-card-inner {
    display: block;
    padding: 1rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s;
}

.booking-payment-card:hover .booking-payment-card-inner {
    border-color: #ccc;
    background: #f9f9f9;
}

.booking-payment-card .booking-payment-radio:checked + .booking-payment-card-inner {
    border-color: #000;
    background: #f5f5f5;
}

.booking-payment-card--disabled {
    cursor: not-allowed;
}

.booking-payment-card--disabled .booking-payment-card-inner {
    opacity: 0.6;
    border-style: dashed;
    background: #fafafa;
}

.booking-payment-card--disabled:hover .booking-payment-card-inner {
    border-color: #e0e0e0;
    background: #fafafa;
}


.booking-payment-name {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.booking-payment-desc {
    font-size: 0.875rem;
    color: #777;
}

.booking-footer-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.booking-date-modal-body {
    padding: 1.5rem;
}

/* Шаг 1: блок выбранных объектов */
.booking-conflict-warning {
    background: #fef2f2;
    border: 1px dashed #fca5a5;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #991b1b;
    font-size: 14px;
}
.booking-conflict-warning strong {
    display: block;
    margin-bottom: 6px;
}
.booking-conflict-warning-hint {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #7f1d1d;
    font-weight: 500;
}
.booking-conflict-warning ul {
    margin: 0;
    padding-left: 18px;
}
.booking-conflict-warning li {
    margin-bottom: 4px;
}
.booking-conflict-warning .conflict-status {
    color: #b91c1c;
    font-weight: 500;
}

/* Ссылки на карточку брони в предупреждениях — чёрные, не «синий браузерный» */
.booking-conflict-warning a.booking-conflict-booking-link {
    color: #111827;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.booking-conflict-warning a.booking-conflict-booking-link:hover {
    color: #000000;
}
.booking-conflict-warning a.booking-conflict-booking-link:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 2px;
}

.account-content .alert-error a.booking-conflict-booking-link,
.account-content .alert-warning a.booking-conflict-booking-link {
    color: #111827;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.account-content .alert-error a.booking-conflict-booking-link:hover,
.account-content .alert-warning a.booking-conflict-booking-link:hover {
    color: #000000;
}
.account-content .alert-error a.booking-conflict-booking-link:focus-visible,
.account-content .alert-warning a.booking-conflict-booking-link:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 2px;
}

.booking-step1-block {
    margin-top: 0;
}

.booking-step1-title {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111;
}

.booking-cards-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.booking-card {
    overflow: hidden;
    background: #F0F0F0;
    padding: 10px;
    border: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.booking-card.deleted {
    background: #b14b4b;
    color: #FFF;
}
.booking-card.deleted .booking-card__header {
    background: #b14b4b;
    color: #FFF;
}
.booking-card.deleted .booking-card__name {
    color: #FFF;
}
.booking-card.deleted .booking-card__code {
    color: #EEE;
}
.booking-card.deleted .booking-card__price-month {
    color: #EEE;
}
.booking-card.deleted .booking-card__footer-label {
    color: #EEE;
}
.booking-card.deleted .booking-card__footer-sum {
    color: #FFF;
}
.booking-card.deleted .booking-card__sides-header {
    color: #EEE;
}
.booking-card.deleted .booking-card__remove > img {
    filter: invert(1);
}
.booking-card.deleted .booking-card__remove:hover{
    background: #000;
}
.booking-card--no-dates {
    border-color: #fecaca;
    background: #fef2f2;
}
/* Конфликт дат (шаг 1 модалки брони): подсветка карточки объекта */
.booking-card.booking-card--date-conflict {
    border: 1px dashed #c0392b;
    background: rgba(255, 245, 245, 0.98);
}
.booking-card.booking-card--date-conflict .booking-card__header {
    background: rgba(255, 245, 245, 0.98);
}
.booking-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 5px;
    background: #F0F0F0;
    position: relative;
}
.booking-card__remove {
    flex-shrink: 0;
    position: absolute;
    top: 5px;
    right: 5px;
    margin-left: auto;
    padding: 0.35rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #6b7280;
}

.booking-card__remove:hover {
    color: #dc2626;
    background: #FFF;
}

.booking-card__remove img {
    display: block;
}

.booking-card--no-dates .booking-card__header {
    background: #fef2f2;
    border-bottom-color: #fecaca;
}

.booking-card__thumb-wrap {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    background: #e5e7eb;
}

.booking-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.booking-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #9ca3af;
}

.booking-card__info {
    flex: 1;
    min-width: 0;
}

.booking-card__name {
    font-weight: 600;
    font-size: 1rem;
    color: #111;
    margin-bottom: 0.2rem;
}

.booking-card__code {
    font-size: 0.8125rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.booking-card__price-month {
    font-size: 0.8125rem;
    color: #6b7280;
}
.booking-card__body {

}
/* Блок сторон без таблицы — grid */
.booking-card__sides {
    font-size: 0.8125rem;
}
.booking-card__sides-header,
.booking-card__sides-row {
    display: grid;
    grid-template-columns: 1fr 2fr 0.6fr 1fr;
    gap: 0 1rem;
    padding: 0.4rem 0;
    align-items: center;
    width: 100%;
}
.booking-card__sides-header {
    font-weight: 600;
    color: #6b7280;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.5rem;
    margin-bottom: 0.25rem;
}
.booking-card__sides-row {
    border-bottom: 1px solid #f3f4f6;
}
.booking-card__sides-row:last-child {
    border-bottom: none;
}
.booking-card__sides-cell {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.booking-card__sides-cell--sum {
    text-align: right;
    white-space: nowrap;
    overflow: visible;
}
.booking-card__period-trigger {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    color: #0d9488;
}
.booking-card__period-trigger:hover {
    color: #0f766e;
}
.booking-card__footer {
    padding-top: 0.75rem;
    margin-top: 5px;
    border-top: 1px dashed #888;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9375rem;
}
.booking-card__footer-label {
    font-weight: 500;
    color: #374151;
}
.booking-card__footer-sum {
    font-weight: 700;
    color: #111;
}
.booking-card__warning {
    padding: 0.75rem;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #991b1b;
}
.booking-card__no-dates-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
}
.booking-card__warning-text {
    font-size: 0.875rem;
    color: #991b1b;
}
.booking-card__select-dates-trigger {
    flex-shrink: 0;
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #0d9488;
    background: #fff;
    border: 1px solid #0d9488;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.booking-card__select-dates-trigger:hover {
    background: #0d9488;
    color: #fff;
}
.booking-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}
.booking-date-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.remove-from-cart-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    padding: 0.25rem;
}

.remove-from-cart-btn:hover {
    opacity: 1;
}

/* Стили для модального окна добавления в корзину */
.error-message {
    display: block;
    padding: 12px 1.5rem;
    background: #fee;
    border-bottom: 1px solid #fcc;
    color: #dc3545;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

/* Стили для checkbox сторон */
.side-item {
    position: relative;
}

.side-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

.side-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px dashed #ddd;
    background: #fff;
    color: #333;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-width 0.2s ease, border-color 0.2s ease, border-style 0.2s ease;
    user-select: none;
    border-radius: 4px;
}

.side-label:hover {
    border-color: #333;
    border-style: solid;
}

.side-checkbox:checked + .side-label {
    border-color: #333;
    border-width: 2px;
    border-style: solid;
    color: #000;
}

.side-checkbox:focus + .side-label {
    outline: 2px solid #333;
    outline-offset: 2px;
}

/* Стили для полей дат */
.add-to-cart-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.add-to-cart-form .form-row label,
.add-to-cart-form .form-row .add-to-cart-date-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.add-to-cart-form .form-row label span,
.add-to-cart-form .form-row .add-to-cart-date-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
}

.add-to-cart-form .form-row input[type="date"],
.add-to-cart-form .form-row .add-to-cart-date-input {
    padding: 0.625rem 0.75rem;
    border: 1px solid #d1d5db;
    font-size: 0.875rem;
    color: #333;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}
.add-to-cart-form .form-row input[type="date"]:focus,
.add-to-cart-form .form-row .add-to-cart-date-input:focus {
    outline: none;
    border-color: #333;
}
.add-to-cart-form .form-row input[type="date"]:hover,
.add-to-cart-form .form-row .add-to-cart-date-input:hover {
    border-color: #9ca3af;
}
.period-settings-wrapper {
    margin-top: 12px;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 0.75rem;
}
.period-settings-wrapper .add-to-cart-proposed-dates-row {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}
.period-settings-actions {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

/* Визуальное состояние кнопки "Добавить расписание" рядом с полями дат */
.period-settings-actions .account-primary-btn--muted {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.period-settings-actions .account-primary-btn--muted:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.period-settings-actions .account-primary-btn--muted:not(:disabled) {
    background: #fc5808;
    color: #fff;
    border-color: #fc5808;
}

.period-settings-actions .account-primary-btn--muted:not(:disabled):hover {
    background: #e04a07;
    border-color: #e04a07;
}


/* Стили для блоков выбора дат по сторонам */
.sides-dates-container {
    margin-top: 1.5rem;
}
.side-date-block {
    margin-bottom: 1.25rem;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.side-date-block-active {
    border-color: #fc5808;
}
.side-date-block-error {
    border-color: #dc3545;
    background: #fee2e2;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}
.side-date-block-header {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

/* Стили для таблицы расписания */

.booking-schedule-table {
    width: 100%;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    overflow: hidden;
}

.schedule-table thead {
    background: #f5f5f5;
}

.schedule-table th {
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: #333;
    /*border-bottom: 2px solid #e0e0e0;*/
}

.schedule-table td {
    padding: 10px 10px;
    border-bottom: 1px dashed #e0e0e0;
    font-size: 13px;
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.schedule-side-cell {
    width: 120px;
    vertical-align: top;
    font-weight: 400;
    color: #777;
}

.schedule-periods-cell {
    vertical-align: top;
}

.schedule-available-date {
    display: inline-block;
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

/* Модальное окно истории цен и расписаний (упрощённая разметка) */
.price-history-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 16px;
    background: rgba(0, 0, 0, 0.5);
    /*backdrop-filter: blur(2px);*/
    overflow-y: auto; /* общий скролл модального слоя, полоса справа */
}

.price-history-modal-content {
    position: relative;
    background: #FFF;
    width: 100%;
    max-width: 550px;
    z-index: 10002;
}

.price-history-modal-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
}

.price-history-modal-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0 20px;
}

.price-history-modal-header-text {
    display: flex;
    flex-direction: column;
}

.price-history-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    padding-right: 60px;
    color: #333;
}

.price-history-modal-range {
    font-size: 0.875rem;
    color: #777;
    margin-top: 0.15rem;
}
.price-history-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #777;
    cursor: pointer;
    padding: 0;
    width: 48px;
    height: 48px;
    display: flex;
    position: absolute;
    right: 10px;
    top: 10px;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}
.price-history-modal-close:hover {
    background: #f5f5f5;
    color: #000;
}
.price-history-modal-body {
    padding: 1.5rem;
}
.price-history-section {
    margin-bottom: 2rem;
}
.price-history-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
}
.price-history-range {
    font-size: 0.875rem;
    color: #777;
    margin-bottom: 1.25rem;
}
.price-history-chart-container {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 0.5rem;
}
.price-history-chart-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}
.price-history-chart-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.875rem;
    background: #fff;
    z-index: 1;
}
.price-history-chart-tooltip {
    position: absolute;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 10;
    line-height: 1.5;
}
.price-history-chart-tooltip strong {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}
.price-history-disclaimer {
    font-size: 0.75rem;
    color: #bbb;
    font-style: normal;
    margin-top: 0.75rem;
}
.price-history-schedule-section {
    margin-bottom: 1rem;
}
.price-history-schedule-content {
    padding: 1rem 0;
}

/* Табы сторон в шапке модалки истории цен */
.price-history-modal-tabs {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: auto;
    padding-top: 1rem;
    border-bottom: 2px solid var(--border-color, #e5e7eb);
}
.price-history-modal-tabs.is-visible {
    display: flex;
}
.price-history-modal-tabs .schedule-tabs__tabs {
    display: inline-flex;
    align-items: flex-end;
    gap: 0;
}
.price-history-modal-tabs .schedule-tab-btn {
    background: none;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
    padding: 0 15px;
    cursor: pointer;
    color: rgba(130, 140, 150, 1);
    border: none;
    font-weight: 400;
    position: relative;
    transition: color 0.2s;
}
.price-history-modal-tabs .schedule-tab-btn:hover {
    color: rgba(50, 60, 71, 0.8);
}
.price-history-modal-tabs .schedule-tab-btn.active {
    color: rgba(50, 60, 71, 1);
    font-weight: 600;
    border-bottom: 2px solid rgba(50, 60, 71, 1);
    margin-bottom: -2px;
}
.price-history-modal-tabs .schedule-tab-btn:first-child{
    margin-left: 15px;
}
.price-history-schedule-side {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}
.price-history-schedule-side:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}
/* Сообщение «когда освободится» — на первом месте для быстрого понимания */
.price-history-schedule-free-msg {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 0.5rem 0;
}
.price-history-schedule-free-msg--date {
    color: #0d9488;
}
/* Кнопка «Освободится с …» — открывает модалку корзины с перемоткой календаря */
.price-history-schedule-free-btn {
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #0d9488;
    margin: 0 0 0.5rem 0;
    padding: 0.25rem 0;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    border-radius: 4px;
}
.price-history-schedule-free-btn:hover {
    color: #0f766e;
    background: rgba(13, 148, 136, 0.08);
}
.price-history-schedule-free-btn:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

.price-history-schedule-free-btn--status-free {
    color: #5c9b78;
}
.price-history-schedule-free-btn--status-free:hover {
    color: #4d8668;
    background: rgba(92, 155, 120, 0.2);
}
.price-history-schedule-free-btn--status-free:focus-visible {
    outline-color: #5c9b78;
}

.price-history-schedule-free-btn--status-reserved {
    color: #b59b3e;
}
.price-history-schedule-free-btn--status-reserved:hover {
    color: #9e852e;
    background: rgba(181, 155, 62, 0.2);
}
.price-history-schedule-free-btn--status-reserved:focus-visible {
    outline-color: #b59b3e;
}

.price-history-schedule-free-btn--status-releasing {
    color: #a77fcb;
}
.price-history-schedule-free-btn--status-releasing:hover {
    color: #9569bf;
    background: rgba(167, 127, 203, 0.22);
}
.price-history-schedule-free-btn--status-releasing:focus-visible {
    outline-color: #a77fcb;
}

.price-history-schedule-free-btn--status-occupied {
    color: #ef4444;
}
.price-history-schedule-free-btn--status-occupied:hover {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.12);
}
.price-history-schedule-free-btn--status-occupied:focus-visible {
    outline-color: #ef4444;
}

.price-history-schedule-free-btn--status-maintenance {
    color: #969ca3;
}
.price-history-schedule-free-btn--status-maintenance:hover {
    color: #7f8690;
    background: rgba(150, 156, 163, 0.22);
}
.price-history-schedule-free-btn--status-maintenance:focus-visible {
    outline-color: #969ca3;
}
.price-history-schedule-summary {
    font-size: 0.875rem;
    color: #555;
    margin: 0 0 0.35rem 0;
}
.price-history-schedule-hint {
    font-size: 0.8125rem;
    color: #777;
    margin: 0.5rem 0 0.35rem 0;
}
/* Блок года: серая линия, по центру год, ниже — расписания */
.price-history-schedule-year-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0 0.5rem 0;
}
.price-history-schedule-year-block:first-of-type {
    margin-top: 0.75rem;
}
.price-history-schedule-year-line {
    flex: 1;
    height: 1px;
    border-top: #E5E5E5 dashed 1px;
    min-width: 0;
}
.price-history-schedule-year-label {
    font-size: 13px;
    font-weight: 400;
    color: #222;
    white-space: nowrap;
    padding: 0 0.25rem;
}
/* Разделительная линия между блоками лет */
.price-history-schedule-year-divider {
    border: none;
    height: 1px;
    background: #c0c0c0;
    margin: 1rem 0 0 0;
}
.price-history-schedule-load-more {
    display: block;
    width: 100%;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #0d9488;
    background: #f0fdfa;
    border: 1px solid #0d9488;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.price-history-schedule-load-more:hover {
    background: #0d9488;
    color: #fff;
}
.price-history-schedule-side-title {
    font-weight: 600;
    color: #000;
    font-size: 14px;
}
.price-history-schedule-list {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0 0;
}
.price-history-schedule-item {
    padding: 0.4rem 0;
    font-size: 0.875rem;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}
.price-history-schedule-item-days {
    color: #888;
    font-size: 0.8125rem;
}

.price-history-schedule-item:last-child {
    border-bottom: none;
}

.price-history-schedule-empty {
    color: #999;
    font-size: 0.875rem;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.price-history-loading {
    text-align: center;
    padding: 2rem;
    color: #999;
}

.price-history-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Стили для статусов броней в корзине */
.cart-status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}
.cart-status-reserved {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}
.cart-status-active {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}
.cart-status-expired {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}
.cart-status-pending_approval {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}
.cart-status-pending_payment {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}
.cart-status-cancelled {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}
/* Выделение просроченных броней */
.cart-item-expired {
    background-color: #fef2f2;
    opacity: 0.8;
}
.cart-item-expired:hover {
    background-color: #fee2e2;
    opacity: 1;
}.cart-item-expired .cart-item-name,
.cart-item-expired .cart-item-code {
    color: #991b1b;
}.cart-item-expired .cart-item-clickable {
    color: #991b1b;
}

/* Текст предупреждения с вложенной ссылкой: без inline-flex у общего .alert > span переносы читаются ровнее */
.account-content .alert-warning > span {
    display: block;
    line-height: 1.55;
}

.account-content .alert-error > span {
    display: block;
    line-height: 1.55;
}

.account-content .alert-error > span a.alert-edo-link {
    display: inline;
}
