/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

:root {
    --pm-white: #fff;
    --pm-white-rgb: 255, 255, 255;
    --pm-muted: #8f8f8f;
    --pm-border: #c9dde6;
    --pm-accent: #5096c3;
    --pm-accent-border: #afd5e6;
    --pm-morning: #F9EABE;
    --pm-afternoon: #BBE0D3;
    --pm-evening: #c9dde6;
}

/* Default popup theme */
.mfp-content .mfp-iframe-scaler iframe {
    background-color: var(--pm-white);
}

.mfp-content .mfp-iframe-scaler .mfp-close:hover {
    background-color: transparent !important;
}

.mfp-iframe-holder .mfp-content {
    min-height: 550px;
    /* Minimal height for popup */
}



/* Calendar schedule specific theme */
.lb-schedule-calendar-wrapper {
    width: 100%;
    max-width: 1250px;
    margin: 25px auto;
    /*float: left;
    padding-left: 30px;*/
    min-width: 800px;
}

.lb-schedule-calendar-wrapper .lb-schedule-days-wrapper {
    width: 100%;
    border-bottom: 1px solid var(--pm-border);
    float: left;
}

.lb-schedule-calendar-wrapper .lb-schedule-days-wrapper .lb-schedule-single-day {
    float: left;
    width: 14.27%;
    padding: 0 7px;
}

.lb-schedule-calendar-wrapper .lb-schedule-days-wrapper .lb-schedule-single-day.active {
    background-color: #f7fafd;
}

.lb-schedule-calendar-wrapper .lb-schedule-days-wrapper .lb-schedule-single-day p {
    color: var(--pm-muted);
    text-transform: uppercase;
    font-weight: normal;
    text-align: center;
    font-size: 10px;
    padding: 7px 0;
    margin-bottom: 0;
}

.lb-schedule-calendar-wrapper .lb-schedule {
    float: left;
    width: 100%;
}

.lb-schedule-calendar-wrapper .lb-schedule .lb-schedule-morning-wrapper,
.lb-schedule-calendar-wrapper .lb-schedule .lb-schedule-afternoon-wrapper,
.lb-schedule-calendar-wrapper .lb-schedule .lb-schedule-evening-wrapper {
    float: left;
    width: 100%;
    position: relative;
    margin: 7px 0;
}

.lb-schedule-calendar-wrapper .lb-schedule .lb-schedule-single-day {
    float: left;
    padding: 7px;
    width: 14.27%;
    min-width: 14.27%;
    text-align: center;
}

.lb-schedule-calendar-wrapper .lb-schedule .lb-schedule-day-part-name {
    float: left;
    position: absolute;
    height: 100%;
    left: -15px;
    top: 0;
    /*width: 10px;*/
    border-left: 10px solid;
}

.lb-schedule-calendar-wrapper .lb-schedule .lb-schedule-morning-wrapper .lb-schedule-day-part-name {
    border-color: var(--pm-morning);
}

.lb-schedule-calendar-wrapper .lb-schedule .lb-schedule-afternoon-wrapper .lb-schedule-day-part-name {
    border-color: var(--pm-afternoon);
}

.lb-schedule-calendar-wrapper .lb-schedule .lb-schedule-evening-wrapper .lb-schedule-day-part-name {
    border-color: var(--pm-evening);
}

.lb-schedule-calendar-wrapper .lb-schedule .lb-schedule-day-part-name span {
    display: block;
    transform: rotate(270deg);
    text-transform: uppercase;
    left: -62px;
    position: absolute;
    top: 50%;
    margin-top: -10px;
    font-size: 10px;
    width: 78px;
    text-align: center;
    color: var(--pm-muted);
    font-weight: normal;
}

.lb-schedule-calendar-wrapper .lb-schedule .lb-schedule-single-day .lb-schedule-single-class {
    width: 100%;
    height: auto;
    text-align: center;
    border: 1px solid var(--pm-border);
    padding: 10px 5px;
    float: left;
    position: relative;
    font-size: 12px;
}

.lb-schedule-calendar-wrapper .lb-schedule .lb-schedule-single-day .lb-schedule-single-class>* {
    z-index: 50;
    position: relative;
}

.lb-schedule-calendar-wrapper .lb-schedule .lb-schedule-single-day .lb-schedule-single-class .lb-schedule-single-class-highlight {
    position: absolute;
    border-left: 4px solid;
    height: 100%;
    width: 4px;
    top: 0;
    left: -1px;
    z-index: 2;
}

.lb-schedule-calendar-wrapper .lb-schedule .lb-schedule-single-day .lb-schedule-single-class .lb-schedule-single-class-highlight-background {
    position: absolute;
    border: 1px solid;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    opacity: .1;
    z-index: 2;
}

.lb-schedule-calendar-wrapper .lb-schedule .lb-schedule-single-day .lb-schedule-single-class .lb-schedule-single-class-highlight,
.lb-schedule-calendar-wrapper .lb-schedule .lb-schedule-single-day .lb-schedule-single-class .lb-schedule-single-class-highlight-background {
    display: none;
}

.lb-schedule-calendar-wrapper .lb-schedule .lb-schedule-single-day .lb-schedule-single-class.lb-schedule-single-class-highlighted .lb-schedule-single-class-highlight,
.lb-schedule-calendar-wrapper .lb-schedule .lb-schedule-single-day .lb-schedule-single-class.lb-schedule-single-class-highlighted .lb-schedule-single-class-highlight-background {
    display: block;
}

.lb-schedule-calendar-wrapper .lb-schedule .lb-schedule-single-day .lb-schedule-single-class .lb-schedule-table-body-class {
    font-weight: bold;
    text-align: center;
}

.lb-schedule-calendar-wrapper .lb-schedule .lb-schedule-single-day .lb-schedule-single-class .lb-schedule-table-body-booking-cancelled {
    font-style: italic;
}

.lb-schedule-calendar-wrapper .lb-schedule .lb-schedule-single-day .lb-schedule-single-class .lb-schedule-table-body-booking a {
    box-shadow: none;
}

.lb-schedule-calendar-wrapper .lb-schedule .lb-schedule-single-day .lb-schedule-single-class p {
    margin-bottom: 10px;
}

.lb-schedule-calendar-wrapper .lb-schedule .lb-schedule-single-day .lb-schedule-single-class p.lb-schedule-table-body-booking-past {
    font-style: italic;
}

.lb-schedule-calendar-wrapper .lb-schedule .lb-schedule-single-day .lb-schedule-single-class:not(:last-of-type) {
    margin-bottom: 15px;
}




/* ===== Agenda (list) view: pill rows, styled similar to calendar cards ===== */
.lb-schedule-wrapper table.lb-schedule {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    /* vertical gaps between pills */
}

/* rounded "pill" row */
.lb-schedule-wrapper .lb-schedule .lb-schedule-single-class {
    overflow: hidden;
}

/* show highlight stripe + soft background tint for agenda rows (same system as calendar) */
.lb-schedule-wrapper .lb-schedule .lb-schedule-single-class .lb-schedule-single-class-highlight,
.lb-schedule-wrapper .lb-schedule .lb-schedule-single-class .lb-schedule-single-class-highlight-background {
    display: block;
    position: absolute;
}

.lb-schedule-wrapper .lb-schedule .lb-schedule-single-class .lb-schedule-single-class-highlight {

    width: 6px;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
}

.lb-schedule-wrapper .lb-schedule .lb-schedule-single-class .lb-schedule-single-class-highlight-background {
    opacity: .1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* ensure content sits above highlight layers */
.lb-schedule-wrapper .lb-schedule .lb-schedule-single-class>* {
    position: relative;
    z-index: 5;

}

.lb-schedule-wrapper .lb-schedule .lb-schedule-single-class td {
    padding: 5px 7px;
    vertical-align: middle;
    border: none;
    font-size: 12px;
}

/* key cells: time, class, booking button area */
.lb-schedule-wrapper .lb-schedule td.lb-schedule-table-body-time {
    border-left: 4px solid;
    border-top: 1px solid;
    border-bottom: 1px solid;
    text-align: left;
    width: 15%;
}

.lb-schedule-wrapper .lb-schedule td.lb-schedule-table-body-class {
    font-weight: bold;
    border-top: 1px solid;
    border-bottom: 1px solid;
    text-align: left;
    width: 65%;
}

.lb-schedule-wrapper .lb-schedule td.lb-schedule-table-body-booking {
    text-align: center;
    width: 20%;
    white-space: nowrap;
    border-top: 1px solid;
    border-bottom: 1px solid;
    border-right: 1px solid;
}

.lb-schedule-wrapper .lb-schedule td.lb-schedule-table-body-booking-past,
.lb-schedule-wrapper .lb-schedule td.lb-schedule-table-body-booking-cancelled,
.lb-schedule-wrapper .lb-schedule td.lb-schedule-table-body-booking-not-available-yet {
    text-align: center;
    width: 160px;
    white-space: nowrap;
    font-style: italic;
    border-top: 1px solid;
    border-bottom: 1px solid;
    border-right: 1px solid;
}

/* row becomes positioning context */
.lb-schedule-wrapper .lb-schedule .lb-schedule-single-class,
tr.lb-schedule-single-class.lb-schedule-single-class-highlight-background {
    position: relative;
}

/* the overlay cell becomes a full-row glass layer */
.lb-schedule-wrapper .lb-schedule .lb-schedule-single-class .lb-row-overlay {
    position: absolute;
    inset: 0;
    /* cover whole row */
    opacity: 0.2;
    /* półprzezroczyste białe tło */
    backdrop-filter: saturate(140%) blur(6px);
    z-index: 1;
    padding: 0;
    border: 0;
}

/* all real cells appear above the overlay */
.lb-schedule-wrapper .lb-schedule .lb-schedule-single-class>td {
    position: relative;
    z-index: 2;
}

/* jeśli row ma kolor z inline background-color (rgb(...)), overlay wciąż go „zmiękcza” */



/* szkło na kafelkach z inline background-color (agenda + kalendarz) */
.lb-schedule-single-class[style*="background-color"] {
    position: relative;
    overflow: hidden;
}

.lb-schedule-single-class[style*="background-color"]::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .18);
    /* siła „szkła” */
    backdrop-filter: saturate(140%) blur(6px);
    pointer-events: none;
    z-index: 1;
}

/* treść ponad taflą */
.lb-schedule-single-class[style*="background-color"]>* {
    position: relative;
    z-index: 2;
}



/* hide optional columns to keep clean pills */
.lb-schedule-wrapper .lb-schedule td.lb-schedule-table-body-member,
.lb-schedule-wrapper .lb-schedule td.lb-schedule-table-body-level,
.lb-schedule-wrapper .lb-schedule td.lb-schedule-table-body-location,
.lb-schedule-wrapper .lb-schedule th.lb-schedule-table-head-member,
.lb-schedule-wrapper .lb-schedule th.lb-schedule-table-head-level,
.lb-schedule-wrapper .lb-schedule th.lb-schedule-table-head-location {
    display: none;
}

/* ensure readable contrast on colored rows coming from inline background-color */
.lb-schedule-wrapper .lb-schedule .lb-schedule-single-class[style*="background-color"] {
    color: var(--pm-white);
}

.lb-schedule-wrapper .lb-schedule .lb-schedule-single-class[style*="background-color"] a {
    color: var(--pm-white);
}






/* upgrade lightenbody — keep user's custom tweaks, scoped */
.lb-schedule-wrapper .lb-schedule-day {
    color: var(--pm-muted);
    text-transform: uppercase;
    font-weight: normal;
    text-align: center;
    font-size: 10px;
    padding: 7px 0;
    margin-bottom: 0;
}

.lb-schedule-wrapper .lb-schedule thead.lb-schedule-table-head {
    display: none;
}

.lb-schedule-wrapper .lb-schedule .lb-schedule-table-body {
    background: #cfcfcf38;
}

.lb-schedule-wrapper .lb-schedule .lb-schedule-table-body td {
    border-color: var(--pm-white);
}

.lb-schedule-wrapper .lb-schedule td:first-child {
    /*border-radius: 2px 0 0 2px;*/
}

.lb-schedule-wrapper .lb-schedule td:last-child {
    border-radius: 0 2px 2px 0;
}

@media screen and (min-width: 992px) {
    .lb-schedule-wrapper .lb-schedule {
        width: 50%;
        margin: 0 auto;
    }

    .lb-schedule-calendar-wrapper .lb-schedule-days-wrapper .lb-schedule-single-day p {
        font-weight: bold;
        font-size: 12px;
    }
}

/* === Unified booking button style for Calendar & Agenda === */
.lb-schedule-calendar-wrapper .lb-schedule-body-booking-button,
.lb-schedule-wrapper .lb-schedule-body-booking-button {
    display: inline;
    border: 1px solid var(--pm-white);
    border-radius: 3px;
    color: var(--pm-white);
    padding: 5px 7px;
    box-shadow: none;
    background: transparent;
}