.booknetic-public-schedule {
    --bps-ink: #23130e;
    --bps-ink-soft: rgba(35, 19, 14, .62);
    --bps-paper: #edeae5;
    --bps-paper-deep: #e5e2db;
    --bps-gold: #ffcc00;
    --bps-line: rgba(35, 19, 14, .22);
    --bps-line-strong: rgba(35, 19, 14, .36);
    --bps-shadow: 0 22px 54px rgba(35, 19, 14, .08);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(34px, 5vw, 58px) clamp(18px, 5vw, 78px);
    background: var(--bps-paper);
    color: var(--bps-ink);
    font-family: Manrope, Arial, sans-serif;
}

.booknetic-public-schedule *,
.booknetic-public-schedule *::before,
.booknetic-public-schedule *::after {
    box-sizing: border-box;
}

.bps-toolbar,
.bps-filters,
.bps-state,
.bps-grid {
    max-width: 1120px;
    margin-right: auto;
    margin-left: auto;
}

.bps-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: end;
    margin-bottom: 18px;
}

.bps-heading h2 {
    margin: 0;
    color: var(--bps-ink);
    font-size: clamp(34px, 4.2vw, 48px);
    line-height: 1.02;
    font-weight: 600;
    letter-spacing: 0;
}

.bps-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--bps-ink-soft);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
}

.bps-week-range {
    margin: 10px 0 0;
    color: var(--bps-ink-soft);
    font-size: 16px;
    font-weight: 500;
}

.bps-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bps-icon-button,
.bps-text-button,
.bps-book-button {
    border: 1px solid var(--bps-line);
    border-radius: 0;
    background: transparent;
    color: var(--bps-ink);
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.bps-icon-button {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 27px;
    line-height: 1;
}

.bps-text-button {
    min-height: 38px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.bps-icon-button:hover,
.bps-text-button:hover,
.bps-book-button:hover {
    border-color: var(--bps-gold);
    background: var(--bps-gold);
    color: var(--bps-ink);
}

.bps-icon-button:focus-visible,
.bps-text-button:focus-visible,
.bps-book-button:focus-visible,
.bps-service-filter select:focus-visible,
.bps-staff-filter select:focus-visible {
    outline: 2px solid var(--bps-gold);
    outline-offset: 3px;
}

.bps-icon-button:disabled,
.bps-text-button:disabled {
    opacity: .36;
    cursor: not-allowed;
}

.bps-icon-button:disabled:hover,
.bps-text-button:disabled:hover {
    border-color: var(--bps-line);
    background: transparent;
}

.bps-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 18px;
    align-items: end;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--bps-line);
}

.bps-filter-label {
    display: block;
    margin-bottom: 8px;
    color: var(--bps-ink-soft);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bps-service-filter select,
.bps-staff-filter select {
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--bps-line);
    border-radius: 0;
    background: rgba(237, 234, 229, .60);
    color: var(--bps-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
}

.bps-state {
    display: none;
    margin-top: 0;
    margin-bottom: 16px;
    padding: 13px 15px;
    border: 1px solid var(--bps-line);
    background: rgba(229, 226, 219, .62);
    color: var(--bps-ink-soft);
    font-size: 14px;
    font-weight: 500;
}

.bps-state[data-visible="1"] {
    display: block;
}

.bps-grid {
    display: grid;
    border-top: 1px solid var(--bps-line-strong);
    border-left: 1px solid var(--bps-line);
    background: rgba(237, 234, 229, .72);
    box-shadow: var(--bps-shadow);
}

.bps-grid[aria-busy="true"] {
    opacity: .62;
}

.bps-day {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    min-width: 0;
    border-right: 1px solid var(--bps-line);
    border-bottom: 1px solid var(--bps-line);
    background: rgba(237, 234, 229, .50);
}

.bps-day.is-today {
    background: rgba(255, 204, 0, .07);
}

.bps-day-head {
    display: grid;
    align-content: start;
    gap: 4px;
    min-height: 76px;
    padding: 14px 15px;
    border-right: 1px solid var(--bps-line);
    background: rgba(229, 226, 219, .55);
}

.bps-day-head span {
    color: var(--bps-ink-soft);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
}

.bps-day-head strong {
    color: var(--bps-ink);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.08;
    text-align: left;
}

.bps-day-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
    gap: 8px;
    min-height: 74px;
    padding: 10px;
    align-content: start;
}

.bps-closed {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--bps-line);
    color: var(--bps-ink-soft);
    font-size: 13px;
    font-weight: 600;
}

.bps-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto auto;
    gap: 3px 10px;
    align-items: center;
    min-width: 0;
    min-height: 66px;
    padding: 10px 11px;
    border: 1px solid var(--bps-line);
    border-top: 2px solid var(--bps-gold);
    background: rgba(236, 234, 228, .92);
}

.bps-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 36px;
    height: 2px;
    background: var(--bps-accent, var(--bps-gold));
}

.bps-card-top {
    display: contents;
}

.bps-card h3 {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin: 0;
    color: var(--bps-ink);
    font-size: 15px;
    line-height: 1.18;
    font-weight: 600;
    letter-spacing: 0;
    overflow-wrap: normal;
    word-break: normal;
}

.bps-badge {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    max-width: 150px;
    padding: 3px 6px;
    border: 1px solid rgba(35, 19, 14, .18);
    background: rgba(255, 204, 0, .20);
    color: var(--bps-ink);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.18;
    white-space: nowrap;
}

.bps-time,
.bps-staff {
    grid-column: 1 / 3;
    margin: 0;
    color: var(--bps-ink-soft);
    font-size: 12px;
    line-height: 1.28;
}

.bps-time {
    grid-row: 2;
    color: var(--bps-ink);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.bps-staff {
    grid-row: 3;
}

.bps-book-button {
    grid-column: 3;
    grid-row: 1 / 4;
    align-self: center;
    min-width: 84px;
    min-height: 34px;
    padding: 0 11px;
    border-color: var(--bps-ink);
    background: var(--bps-ink);
    color: var(--bps-paper);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.bps-book-button:hover {
    border-color: var(--bps-gold);
    background: var(--bps-gold);
    color: var(--bps-ink);
    transform: translateY(-1px);
}

.bps-booking-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(35, 19, 14, .68);
}

.bps-booking-modal[data-open="1"] {
    display: flex;
}

.bps-booking-modal__panel {
    position: relative;
    width: min(1040px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 1px solid var(--bps-line);
    border-radius: 0;
    background: var(--bps-paper);
    box-shadow: 0 30px 90px rgba(35, 19, 14, .30);
}

.bps-booking-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--bps-line);
    border-radius: 50%;
    background: var(--bps-paper);
    color: var(--bps-ink);
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

.bps-booking-modal__close:hover {
    border-color: var(--bps-gold);
    background: var(--bps-gold);
}

.bps-booking-modal__close span {
    display: block;
    width: 100%;
    text-align: center;
    transform: translateY(-1px);
}

.bps-booking-modal__body {
    min-height: 280px;
}

.bps-modal-loader,
.bps-modal-error {
    padding: 64px 24px;
    color: var(--bps-ink-soft);
    text-align: center;
    font-weight: 600;
}

@media (max-width: 980px) {
    .booknetic-public-schedule {
        padding-right: clamp(16px, 4vw, 44px);
        padding-left: clamp(16px, 4vw, 44px);
    }

    .bps-toolbar,
    .bps-filters {
        grid-template-columns: 1fr;
    }

    .bps-nav {
        justify-content: flex-start;
    }

    .bps-day {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .bps-day-body {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
    }
}

@media (max-width: 760px) {
    .bps-card {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .bps-card h3 {
        grid-column: 1;
        grid-row: 1;
    }

    .bps-badge {
        grid-column: 2;
        grid-row: 1;
    }

    .bps-time {
        grid-column: 1;
        grid-row: 2;
        white-space: normal;
    }

    .bps-staff {
        grid-column: 1;
        grid-row: 3;
    }

    .bps-book-button {
        grid-column: 2;
        grid-row: 2 / 4;
    }
}

@media (max-width: 680px) {
    .booknetic-public-schedule {
        padding-top: 30px;
        padding-bottom: 42px;
    }

    .bps-heading h2 {
        font-size: clamp(30px, 9vw, 40px);
    }

    .bps-nav {
        justify-content: space-between;
    }

    .bps-text-button {
        flex: 1 1 auto;
    }

    .bps-day {
        grid-template-columns: 1fr;
    }

    .bps-day-head {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--bps-line);
    }

    .bps-day-body {
        grid-template-columns: 1fr;
    }

    .bps-card {
        grid-template-columns: minmax(0, 1fr);
        min-height: auto;
    }

    .bps-card-top,
    .bps-card h3,
    .bps-badge,
    .bps-time,
    .bps-staff,
    .bps-book-button {
        grid-column: 1;
    }

    .bps-badge {
        grid-row: auto;
        justify-self: start;
    }

    .bps-book-button {
        grid-row: auto;
        width: 100%;
        margin-top: 6px;
    }

    .bps-booking-modal {
        padding: 10px;
    }

    .bps-booking-modal__panel {
        max-height: calc(100vh - 20px);
    }
}
