:root {
    --scheduler-blue: #5d7ce9;
    --scheduler-blue-dark: #4a63c9;
    --scheduler-ink: #102341;
    --scheduler-muted: #68758b;
    --scheduler-line: #dce3ed;
    --scheduler-page: #f7f8fa;
    --scheduler-soft: #f1f4fc;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body.scheduling-standalone {
    margin: 0;
    color: var(--scheduler-ink);
    background: var(--scheduler-page);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
a {
    font: inherit;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(93, 124, 233, .3);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.scheduling-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 20;
    padding: 10px 14px;
    border-radius: 6px;
    color: #fff;
    background: var(--scheduler-blue-dark);
    transform: translateY(-150%);
}

.scheduling-skip-link:focus {
    transform: translateY(0);
}

.scheduling-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px 32px;
}

.scheduler-card {
    display: grid;
    width: min(800px, calc(100vw - 48px));
    min-height: 700px;
    grid-template-columns: 400px minmax(0, 400px);
    overflow: hidden;
    border: 1px solid #ced8e6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(20, 42, 75, .1);
    transition: width .25s ease, grid-template-columns .25s ease;
}

.scheduler-card.has-time-panel {
    width: min(1060px, calc(100vw - 48px));
    grid-template-columns: 400px minmax(0, 660px);
}

.scheduling-details {
    display: grid;
    min-width: 0;
    grid-template-rows: 174px 1fr auto;
    border-right: 1px solid var(--scheduler-line);
}

.scheduling-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--scheduler-line);
}

.scheduling-brand__link {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--scheduler-ink);
    text-decoration: none;
}

.scheduling-brand__icon {
    width: 58px;
    height: 62px;
    object-fit: contain;
}

.scheduling-brand__wordmark {
    display: flex;
    flex-direction: column;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: .075em;
    line-height: 1.05;
}

.scheduling-brand__wordmark strong {
    color: var(--scheduler-blue);
    font-weight: 800;
}

.scheduling-meeting {
    padding: 33px 30px;
}

.scheduling-host-icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 15px;
    place-items: center;
    border-radius: 50%;
    background: #eef1ff;
}

.scheduling-host-icon img {
    width: 34px;
    height: 36px;
    object-fit: contain;
}

.scheduling-host {
    margin: 0 0 8px;
    color: #55657c;
    font-size: 14px;
    font-weight: 700;
}

.scheduling-meeting h1 {
    margin: 0;
    color: var(--scheduler-ink);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.18;
}

.scheduling-facts {
    display: grid;
    gap: 18px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.scheduling-facts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--scheduler-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.scheduling-facts svg {
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.scheduling-description {
    max-width: 300px;
    margin: 28px 0 0;
    color: var(--scheduler-muted);
    font-size: 13px;
    line-height: 1.6;
}

.scheduling-legal {
    display: flex;
    gap: 28px;
    padding: 22px 30px 27px;
}

.scheduling-legal a {
    color: var(--scheduler-blue-dark);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.scheduling-legal a:hover {
    text-decoration: underline;
}

.scheduler-pane {
    min-width: 0;
    padding: 32px 32px 24px;
}

.scheduler-pane__heading {
    margin-bottom: 27px;
}

.scheduler-pane__eyebrow {
    display: none;
}

.scheduler-pane h2 {
    margin: 0;
    color: var(--scheduler-ink);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.015em;
}

.scheduler-alert {
    display: flex;
    min-height: 500px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 30px;
    color: var(--scheduler-muted);
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
}

.scheduler-alert--error {
    color: #824753;
}

.scheduler-alert a {
    color: var(--scheduler-blue-dark);
    font-weight: 700;
}

.scheduler-spinner {
    width: 19px;
    height: 19px;
    border: 2px solid #dfe5ef;
    border-top-color: var(--scheduler-blue);
    border-radius: 50%;
    animation: scheduler-spin .75s linear infinite;
}

@keyframes scheduler-spin {
    to { transform: rotate(360deg); }
}

.scheduler-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 565px;
}

.scheduler-card.has-time-panel .scheduler-grid {
    grid-template-columns: minmax(330px, 1fr) 250px;
}

.scheduler-calendar {
    min-width: 0;
}

.scheduler-calendar__nav {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    margin-bottom: 24px;
}

.scheduler-calendar__nav h3 {
    margin: 0;
    color: var(--scheduler-ink);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.scheduler-nav-btn {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #2267b5;
    background: transparent;
    cursor: pointer;
}

.scheduler-nav-btn:hover:not(:disabled) {
    background: var(--scheduler-soft);
}

.scheduler-nav-btn:disabled {
    opacity: .28;
    cursor: default;
}

.scheduler-nav-btn svg,
.scheduler-times__back svg,
.scheduler-continue svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.scheduler-weekdays,
.scheduler-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    column-gap: 3px;
}

.scheduler-weekdays {
    margin-bottom: 10px;
    color: #35587d;
    font-size: 11px;
    text-align: center;
}

.scheduler-days {
    row-gap: 3px;
}

.scheduler-day {
    position: relative;
    display: grid;
    min-width: 0;
    aspect-ratio: 1;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #35587d;
    background: transparent;
    font-size: 14px;
}

button.scheduler-day {
    color: #0757cb;
    background: #f1f4fb;
    cursor: pointer;
    font-weight: 700;
}

button.scheduler-day::after {
    position: absolute;
    bottom: 5px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #0757cb;
    content: '';
}

button.scheduler-day:hover {
    background: #e5ebfb;
}

button.scheduler-day.is-selected {
    color: #fff;
    background: var(--scheduler-blue);
}

button.scheduler-day.is-selected::after {
    background: #fff;
}

.scheduler-day.is-outside {
    visibility: hidden;
}

.scheduler-timezone-wrap {
    margin-top: 24px;
}

.scheduler-timezone-label {
    display: block;
    margin-bottom: 9px;
    color: var(--scheduler-ink);
    font-size: 13px;
    font-weight: 700;
}

.scheduler-timezone {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--scheduler-ink);
    font-size: 13px;
}

.scheduler-timezone svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.scheduler-times {
    min-width: 0;
    margin: -58px -32px -24px 28px;
    padding: 58px 22px 24px;
    border-left: 1px solid var(--scheduler-line);
    background: #fff;
    text-align: center;
}

.scheduler-times__back {
    display: none;
    align-items: center;
    gap: 5px;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    color: var(--scheduler-blue-dark);
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}

.scheduler-times__heading > span,
.scheduler-selection__label {
    color: var(--scheduler-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.scheduler-times__heading h3 {
    margin: 6px 0 16px;
    color: var(--scheduler-ink);
    font-size: 14px;
    line-height: 1.35;
}

.scheduler-times__list {
    display: grid;
    max-height: clamp(310px, calc(100vh - 245px), 440px);
    gap: 8px;
    padding-right: 3px;
    overflow-y: auto;
}

.scheduler-time-btn {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--scheduler-blue);
    border-radius: 4px;
    color: var(--scheduler-blue-dark);
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.scheduler-time-btn:hover,
.scheduler-time-btn.is-selected {
    color: #fff;
    background: var(--scheduler-blue);
}

.scheduler-selection {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--scheduler-line);
}

.scheduler-selection strong {
    color: var(--scheduler-ink);
    font-size: 12px;
    line-height: 1.45;
}

.scheduler-continue {
    display: inline-flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 3px;
    border-radius: 4px;
    color: #fff;
    background: var(--scheduler-blue-dark);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.scheduler-continue:hover {
    background: #394fae;
}

.scheduler-continue svg {
    width: 17px;
    height: 17px;
}

.scheduling-disclaimer {
    margin: 18px 0 0;
    color: #7d8898;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 900px) {
    .scheduling-page {
        justify-content: flex-start;
        padding: 24px 14px;
    }

    .scheduler-card,
    .scheduler-card.has-time-panel {
        width: min(800px, calc(100vw - 28px));
        grid-template-columns: minmax(290px, 40%) minmax(0, 60%);
    }

    .scheduler-card.has-time-panel .scheduler-grid {
        grid-template-columns: 1fr;
    }

    .scheduler-times {
        margin: 22px 0 0;
        padding: 22px 0 0;
        border-top: 1px solid var(--scheduler-line);
        border-left: 0;
    }
}

@media (max-width: 640px) {
    .scheduling-page {
        padding: 0;
    }

    .scheduler-card,
    .scheduler-card.has-time-panel {
        width: 100%;
        min-height: 100vh;
        grid-template-columns: 1fr;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .scheduling-details {
        grid-template-rows: 112px auto;
        border-right: 0;
        border-bottom: 1px solid var(--scheduler-line);
    }

    .scheduling-brand {
        justify-content: flex-start;
        padding: 0 24px;
    }

    .scheduling-brand__icon {
        width: 45px;
        height: 49px;
    }

    .scheduling-brand__wordmark {
        font-size: 18px;
    }

    .scheduling-meeting {
        padding: 25px 24px 28px;
    }

    .scheduling-host-icon,
    .scheduling-description,
    .scheduling-legal {
        display: none;
    }

    .scheduling-meeting h1 {
        font-size: 23px;
    }

    .scheduling-facts {
        gap: 12px;
        margin-top: 18px;
    }

    .scheduler-pane {
        padding: 28px 24px 34px;
    }

    .scheduler-pane__heading {
        margin-bottom: 25px;
    }

    .scheduler-weekdays,
    .scheduler-days {
        column-gap: 5px;
    }

    .scheduler-times {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }

    .scheduler-card.has-time-panel .scheduler-calendar {
        display: none;
    }

    .scheduler-times__back {
        display: inline-flex;
    }

    .scheduler-times__list {
        max-height: none;
    }

    .scheduling-disclaimer {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scheduler-card {
        transition: none;
    }

    .scheduler-spinner {
        animation: none;
    }
}
