.pilates-booking {
    border: 1px solid #d9d7d2;
    border-radius: 8px;
    color: #242424;
    font-family: inherit;
    padding: 20px;
}

.pilates-booking [hidden] {
    display: none !important;
}

.pilates-booking__header {
    align-items: baseline;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.pilates-booking__header h2 {
    font-size: 24px;
    line-height: 1.2;
    margin: 0;
}

.pilates-booking__header p {
    color: #5f5f5f;
    margin: 0;
}

.pilates-booking__empty {
    background: #f7f6f3;
    border-radius: 6px;
    padding: 16px;
}

.pilates-booking__month-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.pilates-booking__month-nav a {
    border: 1px solid #242424;
    border-radius: 4px;
    color: #242424;
    display: inline-flex;
    min-height: 34px;
    padding: 6px 10px;
    text-decoration: none;
}

.pilates-booking__notice {
    background: #edf7ed;
    border: 1px solid #b7dfb9;
    border-radius: 6px;
    color: #1e4620;
    margin-bottom: 14px;
    padding: 12px 14px;
}

.pilates-booking__notice--error {
    background: #fcf0f1;
    border-color: #e5a3a9;
    color: #691c23;
}

.pilates-booking__grid {
    display: grid;
    gap: 10px;
}

.pilates-booking__overview {
    display: grid;
    gap: 16px;
}

.pilates-booking__month-summary {
    background: #f7f6f3;
    border: 1px solid #e5e2dd;
    border-radius: 6px;
    font-size: 16px;
    padding: 12px 14px;
}

.pilates-booking__month-count {
    color: #e53935;
    font-size: 22px;
    margin-left: 6px;
}

.pilates-booking__month-makeups {
    display: inline-block;
    margin-left: 16px;
}

.pilates-booking__makeup-count {
    color: #7c3aed;
    font-size: 22px;
    margin-left: 6px;
}

.pilates-booking__calendar {
    border: 2px solid #1f1f1f;
    border-radius: 6px;
    overflow: hidden;
}

.pilates-booking__calendar-weekdays,
.pilates-booking__calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.pilates-booking__calendar-weekdays span {
    background: #f3f3f3;
    border-bottom: 2px solid #1f1f1f;
    color: #242424;
    font-weight: 700;
    padding: 10px 6px;
    text-align: center;
}

.pilates-booking__calendar-empty,
.pilates-booking__calendar-day {
    align-items: center;
    aspect-ratio: 1.35 / 1;
    border: 0;
    border-bottom: 2px solid #1f1f1f;
    border-right: 2px solid #1f1f1f;
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    min-height: 64px;
}

.pilates-booking__calendar-day {
    background: #fff;
    color: #242424;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.pilates-booking__calendar-day span {
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    border-radius: 999px;
    display: inline-flex;
    font-size: 20px;
    font-weight: 700;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.pilates-booking__calendar-day--available {
    background: #18a84f;
}

.pilates-booking__calendar-day--available span {
    color: #18a84f;
}

.pilates-booking__calendar-day--booked {
    background: #e53935;
}

.pilates-booking__calendar-day--booked span {
    color: #e53935;
}

.pilates-booking__calendar-day--makeup {
    background: #7c3aed;
}

.pilates-booking__calendar-day--makeup span {
    color: #7c3aed;
}

.pilates-booking__calendar-day--empty {
    background: #fff;
    color: #777;
    cursor: default;
}

.pilates-booking__calendar-day:disabled {
    cursor: default;
}

.pilates-booking__day-view {
    display: grid;
    gap: 14px;
}

.pilates-booking__back {
    background: #242424;
    border: 0;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    justify-self: start;
    min-height: 38px;
    padding: 0 14px;
}

.pilates-booking__day-title {
    font-size: 20px;
    line-height: 1.3;
    margin: 0;
}

.pilates-booking__mine {
    border-bottom: 1px solid #e5e2dd;
    margin-bottom: 18px;
    padding-bottom: 18px;
}

.pilates-booking__mine h3 {
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 10px;
}

.pilates-booking__mine p {
    color: #666;
    margin: 0;
}

.pilates-booking__mine-list {
    display: grid;
    gap: 10px;
}

.pilates-booking__mine-item {
    align-items: center;
    background: #f7f6f3;
    border-radius: 6px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px;
}

.pilates-booking__mine-item span {
    color: #666;
    display: block;
    font-size: 14px;
}

.pilates-booking__mine-item form {
    margin: 0;
}

.pilates-booking__cancel {
    background: transparent;
    border: 1px solid #b42318;
    border-radius: 4px;
    color: #b42318;
    cursor: pointer;
    min-height: 36px;
    padding: 0 12px;
}

.pilates-booking__session {
    align-items: center;
    border: 1px solid #e5e2dd;
    border-radius: 6px;
    display: grid;
    gap: 12px;
    grid-template-columns: 1.2fr 1fr 1.5fr;
    padding: 12px;
}

.pilates-booking__session strong,
.pilates-booking__session span {
    display: block;
}

.pilates-booking__session span {
    color: #666;
    font-size: 14px;
}

.pilates-booking__beds {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.pilates-booking__beds form {
    margin: 0;
}

.pilates-booking__form--loading {
    opacity: 0.65;
}

.pilates-booking__form--loading button {
    cursor: wait;
}

.pilates-booking__bed {
    background: #242424;
    border: 0;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    min-height: 38px;
    padding: 0 14px;
}

.pilates-booking__bed--booked {
    background: #d8d8d8;
    color: #666;
    cursor: not-allowed;
}

.pilates-booking__bed--mine {
    align-items: center;
    background: #edf7ed;
    border: 1px solid #7fbe84;
    color: #1e4620;
    display: inline-flex;
}

.pilates-booking__bed--makeup {
    background: #f1e8ff;
    border-color: #7c3aed;
    color: #3b136f;
}

.pilates-booking__tag {
    background: #f1f1f1;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    color: #444;
    display: inline-flex;
    font-size: 12px;
    line-height: 1.2;
    padding: 4px 6px;
}

.pilates-booking__own-bed {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}

.pilates-booking__no-beds {
    color: #666;
    font-size: 14px;
}

.pilates-booking-toast {
    align-items: center;
    background: #1e4620;
    border-radius: 6px;
    bottom: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    color: #fff;
    display: flex;
    gap: 14px;
    max-width: min(420px, calc(100vw - 32px));
    opacity: 0;
    padding: 14px 16px;
    pointer-events: none;
    position: fixed;
    right: 24px;
    transform: translateY(14px);
    transition: opacity 160ms ease, transform 160ms ease;
    z-index: 99999;
}

.pilates-booking-toast--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.pilates-booking-toast--error {
    background: #691c23;
}

.pilates-booking-toast__message {
    flex: 1;
    font-size: 15px;
    line-height: 1.35;
}

.pilates-booking-toast__close {
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border: 0;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 20px;
    height: 30px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 30px;
}

@media (max-width: 720px) {
    .pilates-booking__header,
    .pilates-booking__session {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .pilates-booking__header {
        display: block;
    }

    .pilates-booking__beds {
        justify-content: flex-start;
    }

    .pilates-booking__own-bed {
        align-items: flex-start;
        flex-direction: column;
    }

    .pilates-booking__mine-item {
        align-items: stretch;
        flex-direction: column;
    }

    .pilates-booking__calendar-weekdays span {
        padding: 8px 2px;
    }

    .pilates-booking__calendar-empty,
    .pilates-booking__calendar-day {
        aspect-ratio: 1 / 1;
        min-height: 42px;
    }

    .pilates-booking__calendar-day span {
        font-size: 15px;
        height: 30px;
        width: 30px;
    }

    .pilates-booking-toast {
        bottom: 12px;
        left: 12px;
        max-width: none;
        right: 12px;
    }
}
