/**
 * 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 */
}



/* ------------------------------------------------------------------------- */
/* Agenda (card) schedule layout                                             */
/* ------------------------------------------------------------------------- */
.lb-agenda {
    --lb-agenda-border: rgba(71, 60, 52, .14);
    --lb-agenda-shadow: 0 12px 24px rgba(71, 60, 52, .08);
    --lb-agenda-tag-bg: rgba(71, 60, 52, .06);
    --lb-agenda-ink: #35302c;
    --lb-agenda-muted: rgba(91, 80, 72, .68);
    display: grid;
    gap: 38px;
    margin: 0;
    padding: 0;
    color: var(--lb-agenda-ink);
}

.lb-agenda-day__header {
    margin-bottom: 12px;
}

.lb-agenda-day__label {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    padding: 4px 0;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(63, 54, 47, .82);
}

.lb-agenda-day__date {
    font-size: 14px;
    font-weight: 400;
    color: rgba(95, 84, 74, .68);
}

.lb-agenda-day__list {
    display: grid;
    gap: 18px;
}

.lb-agenda-day__empty,
.lb-agenda-empty {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px dashed var(--lb-agenda-border);
    font-size: 15px;
    color: rgba(17, 24, 39, .7);
    background: rgba(255, 255, 255, .7);
}

.lb-agenda-empty {
    margin: 18px 0;
}

.lb-agenda-class {
    --lb-agenda-accent: #5b6ce2;
    position: relative;
    border-radius: 0 5px 5px 0;
    background: linear-gradient(150deg, rgba(255, 255, 255, .96), rgba(247, 242, 235, .94));
    border: 1px solid var(--lb-agenda-border);
    overflow: hidden;
    box-shadow: var(--lb-agenda-shadow);
}

.lb-agenda-class__accent {
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--lb-agenda-accent);
    opacity: .85;
}

.lb-agenda-class__surface {
    position: absolute;
    inset: 0;
    background: var(--lb-agenda-accent);
    opacity: .16;
}

.lb-agenda-class__content {
    position: relative;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    gap: 18px;
    padding: 16px 20px 26px 20px;
    align-items: start;
}

.lb-agenda-class__time {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 17px;
    font-weight: 700;
    color: var(--lb-agenda-ink);
    text-align: left;
    line-height: 1.1;
    padding-right: 16px;
    align-items: flex-start;
    letter-spacing: .03em;
}

.lb-agenda-class__time span {
    display: block;
}

.lb-agenda-class__time-start {
    font-size: 20px;
}

.lb-agenda-class__time-end {
    font-size: 17px;
    font-weight: 600;
    color: rgba(17, 24, 39, .72);
}

.lb-agenda-class__time::after {
    content: "";
    position: absolute;
    top: -6px;
    bottom: -6px;
    right: -2px;
    width: 1px;
    background: rgba(17, 24, 39, .14);
}

.lb-agenda-class__details {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 130px;
}

.lb-agenda-class__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2b2521;
    line-height: 1.25;
    max-width: 100%;
}

.lb-agenda-class__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 13px;
    color: rgba(17, 24, 39, .72);
}

.lb-agenda-class__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--lb-agenda-tag-bg);
    color: var(--lb-agenda-muted);
}

.lb-agenda-class__tag--spots {
    font-weight: 500;
}

.lb-agenda-class__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 13px;
    color: var(--lb-agenda-muted);
}

.lb-agenda-class__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    font-weight: 500;
    position: relative;
    padding-left: 10px;
}

.lb-agenda-class__meta-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(17, 24, 39, .45);
    transform: translateY(-50%);
}

.lb-agenda-class__cta {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 22px;
    bottom: 18px;
}

.lb-agenda-class__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 999px;
    background: var(--lb-agenda-accent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--lb-agenda-accent) 78%, #ffffff 22%), var(--lb-agenda-accent));
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: .05em;
    transition: transform .08s ease, filter .18s ease, box-shadow .18s ease;
    box-shadow: 0 8px 16px rgba(71, 60, 52, .12);
}

.lb-agenda-class__button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    color: #ffffff;
}

.lb-agenda-class__button:focus {
    color: #ffffff;
}

.lb-agenda-class__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    color: #ffffff;
}

.lb-agenda-class__state {
    display: inline-block;
    margin-left: auto;
    padding: 0;
    border: 0;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: .01em;
    color: rgba(17, 24, 39, .6);
}

.lb-agenda-class__state--past {
    color: rgba(71, 85, 105, .8);
    padding: 0 4px 0px 0;
}

.lb-agenda-class__state--cancelled {
    color: rgba(185, 28, 28, .8);
    padding: 0 4px 0px 0;
}

.lb-agenda-class__state--wait {
    color: rgba(146, 64, 14, .75);
}

.lb-agenda-class--past {
    opacity: .82;
}

.lb-agenda-class--cancelled {
    opacity: .6;
}

.lb-agenda-class--locked .lb-agenda-class__button {
    cursor: not-allowed;
    pointer-events: none;
    background: rgba(17, 24, 39, .16);
    box-shadow: none;
    color: rgba(17, 24, 39, .4);
}

@media (prefers-reduced-motion: reduce) {
    .lb-agenda-class__button {
        transition: none;
    }
}

@media (max-width: 1024px) and (min-width: 721px) {
    .lb-agenda-class__content {
        grid-template-columns: 78px minmax(0, 1fr) auto;
        gap: 16px;
        padding: 16px 21px 16px 32px;
        align-items: center;
    }

    .lb-agenda-class__time {
        gap: 4px;
        padding-right: 12px;
    }

    .lb-agenda-class__details {
        padding-right: 0;
    }

    .lb-agenda-class__cta {
        position: static;
        margin-left: auto;
        justify-content: flex-end;
    }
}

@media (max-width: 720px) {
    .lb-agenda-class__content {
        grid-template-columns: 52px minmax(0, 1fr);
            gap: 10px;
            padding: 14px 12px 30px 21px;
    }

    .lb-agenda-class__time {
        font-size: 15px;
        gap: 1px;
        padding-right: 6px;
        letter-spacing: .02em;
    }

    .lb-agenda-class__time-start {
        font-size: 16px;
    }

    .lb-agenda-class__time-end {
        font-size: 15px;
    }

    .lb-agenda-class__cta {
        justify-content: flex-end;
        right: 10px;
        bottom: 8px;
    }

    .lb-agenda-class__details {
        gap: 8px;
        padding-right: 0;
    }

    .lb-agenda-class__title {
        font-size: 16px;
    }

    .lb-agenda-class__button {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* ------------------------------------------------------------------------- */
/* Calendar board layout                                                     */
/* ------------------------------------------------------------------------- */
.lb-calendar {
    --lb-calendar-border: rgba(71, 60, 52, .12);
    --lb-calendar-header: rgba(63, 54, 47, .66);
    --lb-calendar-row-width: clamp(56px, 7vw, 92px);
    --lb-calendar-min-column: clamp(96px, 12vw, 184px);
    --lb-calendar-gap: clamp(12px, 2vw, 24px);
    padding: clamp(16px, 4vw, 32px) 0;
    color: #322c29;
}

.lb-calendar__grid {
    display: grid;
    gap: var(--lb-calendar-gap);
    overflow: visible;
}

.lb-calendar__header,
.lb-calendar__row {
    display: grid;
    align-items: stretch;
    gap: var(--lb-calendar-gap);
    grid-template-columns: 42px repeat(var(--lb-calendar-columns), minmax(0, 1fr));
    min-width: 0;
}

.lb-calendar__corner {
    position: relative;
}

.lb-calendar__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--lb-calendar-header);
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(17, 24, 39, .14);
}

.lb-calendar__day-date {
    letter-spacing: 0;
    font-size: 15px;
    font-weight: 500;
    color: rgba(79, 69, 60, .72);
}

.lb-calendar__day-badge {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .08);
    color: rgba(17, 24, 39, .72);
}

.lb-calendar__day--today {
    color: #2563eb;
}

.lb-calendar__day--tomorrow {
    color: #059669;
}

.lb-calendar__row-label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(150deg, rgba(255, 255, 255, .78), rgba(245, 238, 229, .86));
    box-shadow: inset 0 0 0 1px rgba(71, 60, 52, .08);
    min-height: 100%;
    padding: 12px 4px;
}

.lb-calendar__row-label span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 12px;
    font-weight: 600;
    color: rgba(63, 54, 47, .7);
}

.lb-calendar__row--morning .lb-calendar__row-label {
    background: linear-gradient(150deg, rgba(255, 246, 234, .74), rgba(247, 235, 214, .82));
}

.lb-calendar__row--afternoon .lb-calendar__row-label {
    background: linear-gradient(150deg, rgba(234, 246, 239, .72), rgba(218, 235, 225, .8));
}

.lb-calendar__row--evening .lb-calendar__row-label {
    background: linear-gradient(150deg, rgba(236, 230, 248, .7), rgba(222, 213, 236, .8));
}

.lb-calendar__cell {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 6px;
}

.lb-calendar__cell-placeholder {
    display: block;
    min-height: 132px;
}

.lb-calendar-class {
    --lb-calendar-accent: #ef4444;
    position: relative;
    border-radius: 14px;
    border: 1.5px solid var(--lb-calendar-accent);
    background: linear-gradient(155deg, rgba(255, 255, 255, .95), rgba(247, 242, 235, .94));
    padding: 16px 18px 18px;
    box-shadow: 0 12px 22px rgba(17, 24, 39, .08);
    overflow: hidden;
}

.lb-calendar-class__accent {
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: var(--lb-calendar-accent);
    opacity: .9;
}

.lb-calendar-class__surface {
    position: absolute;
    inset: 0;
    background: var(--lb-calendar-accent);
    opacity: .12;
}

.lb-calendar-class__body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
}

.lb-calendar-class__time {
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(63, 54, 47, .76);
    margin: 0;
}

.lb-calendar-class__title {
    margin: 0;
    font-size: 16px;
    color: #3a332f;
    line-height: 1.4;
}

.lb-calendar-class__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 12px;
    color: rgba(79, 69, 60, .72);
    justify-content: center;
    text-align: center;
}

.lb-calendar-class__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(59, 50, 42, .08);
    font-weight: 500;
}

.lb-calendar-class__cta {
    margin-top: 4px;
    display: flex;
    justify-content: center;
}

.lb-calendar-class__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--lb-calendar-accent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--lb-calendar-accent) 72%, #ffffff 28%), var(--lb-calendar-accent));
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(17, 24, 39, .12);
    transition: transform .08s ease, filter .18s ease;
}

.lb-calendar-class__button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    color: #ffffff;
}

.lb-calendar-class__button:focus {
    color: #ffffff;
}

.lb-calendar-class__button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    color: #ffffff;
}

.lb-calendar-class__state {
    display: inline-block;
    margin-top: 6px;
    padding: 0;
    border: 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: .01em;
    color: rgba(17, 24, 39, .6);
}

.lb-calendar-class__state--cancelled {
    color: rgba(185, 28, 28, .76);
}

.lb-calendar-class__state--past {
    color: rgba(71, 85, 105, .78);
}

.lb-calendar-class__state--wait {
    color: rgba(146, 64, 14, .76);
}

.lb-calendar-class--past {
    opacity: .8;
}

.lb-calendar-class--cancelled {
    opacity: .55;
}

.lb-calendar-class--locked .lb-calendar-class__button {
    pointer-events: none;
    cursor: not-allowed;
    background: rgba(17, 24, 39, .18);
    color: rgba(17, 24, 39, .5);
    box-shadow: none;
}

.lb-calendar__empty {
    margin: 24px 0;
    padding: 18px 22px;
    border-radius: 18px;
    border: 1px dashed var(--lb-calendar-border);
    background: rgba(255, 255, 255, .75);
    color: rgba(17, 24, 39, .7);
    text-align: center;
}

@media (max-width: 1200px) {
    .lb-calendar {
        --lb-calendar-min-column: clamp(90px, 11vw, 168px);
    }
}

@media (max-width: 1024px) {
    .lb-calendar {
        --lb-calendar-row-width: clamp(48px, 8vw, 72px);
        --lb-calendar-gap: clamp(10px, 2vw, 18px);
        padding: clamp(20px, 5vw, 32px) clamp(14px, 4vw, 32px);
    }
}

@media (max-width: 720px) {
    .lb-calendar {
        --lb-calendar-min-column: clamp(84px, 24vw, 128px);
        --lb-calendar-row-width: clamp(44px, 10vw, 64px);
        --lb-calendar-gap: 14px;
    }

    .lb-calendar-class {
        padding: 16px 18px;
    }

    .lb-calendar-class__body {
        gap: 8px;
    }

    .lb-calendar-class__title {
        font-size: 16px;
    }

    .lb-calendar-class__time {
        letter-spacing: .08em;
    }
}
