.bee-appointment-host {
    font-family: var(--apt-font);
    color: var(--apt-text);
    font-size: var(--apt-text-size);
}
.bee-appointment-shell {
    background: var(--apt-surface);
    border-radius: var(--apt-radius);
    padding: clamp(24px, 4vw, 52px);
    box-shadow: 0 20px 70px rgba(15, 23, 42, 0.08);
}
.bee-appointment-header h2 {
    font-size: var(--apt-heading-desktop);
    line-height: 1.08;
    color: var(--apt-heading);
    margin: 0 0 10px;
}
.bee-appointment-header p {
    margin: 0 0 28px;
}
.bee-appointment-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 28px;
}
.bee-appointment-progress span {
    border-top: 4px solid #e6eaf0;
    padding-top: 10px;
    color: #98a2b3;
}
.bee-appointment-progress span.active {
    border-color: var(--apt-accent);
    color: var(--apt-heading);
}
.bee-appointment-types {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
.bee-appointment-type {
    min-width: 220px;
    padding: 16px 20px;
    border: 1px solid #dfe4ea;
    background: #fff;
    border-radius: 16px;
    text-align: left;
    color: var(--apt-heading);
}
.bee-appointment-type small,
.bee-appointment-type strong {
    display: block;
}
.bee-appointment-type.active {
    border: 2px solid var(--apt-accent);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--apt-accent) 15%, transparent);
}
.bee-appointment-schedule {
    display: grid;
    grid-template-columns: minmax(360px, 1.2fr) minmax(220px, 0.7fr) minmax(220px, 0.65fr);
    gap: 22px;
}
.bee-appointment-calendar,
.bee-appointment-times,
.bee-appointment-summary,
.bee-appointment-form {
    border: 1px solid #e5e9ef;
    border-radius: 18px;
    padding: 22px;
    background: var(--apt-surface);
}
.apt-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.apt-cal-head button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: var(--apt-muted);
    font-size: 24px;
}
.apt-cal-week,
.apt-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}
.apt-cal-week span {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #98a2b3;
}
.apt-cal-days button {
    aspect-ratio: 1;
    border: 0;
    background: transparent;
    border-radius: 50%;
    color: var(--apt-heading);
}
.apt-cal-days button:hover:not(:disabled),
.apt-cal-days button.active {
    background: var(--apt-accent);
    color: #fff;
}
.apt-cal-days button:disabled {
    color: #d0d5dd;
}
.bee-appointment-slots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.bee-appointment-slot {
    border: 1px solid #d9dee7;
    background: #fff;
    border-radius: 12px;
    padding: 13px;
    color: var(--apt-heading);
}
.bee-appointment-slot small {
    display: block;
    color: #98a2b3;
}
.bee-appointment-summary {
    background: var(--apt-muted);
    align-self: start;
}
.bee-appointment-summary > span {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--apt-accent);
}
.bee-appointment-summary p {
    display: flex;
    gap: 10px;
    align-items: center;
}
.bee-appointment-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    max-width: 960px;
    margin: auto;
}
.apt-step-back {
    border: 0;
    background: transparent;
    color: var(--apt-accent);
    font-weight: 700;
    margin: 0 0 18px;
}
.bee-appointment-questions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.bee-appointment-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.bee-appointment-field label {
    font-weight: 700;
    color: var(--apt-heading);
}
.bee-appointment-field input,
.bee-appointment-field select,
.bee-appointment-field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d0d5dd;
    border-radius: 12px;
    padding: 11px 13px;
    background: #fff;
}
.bee-appointment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.bee-appointment-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d9dee7;
    border-radius: 12px;
    padding: 12px;
    font-weight: 500;
}
.bee-appointment-options input {
    width: auto;
    min-height: 0;
}
.bee-appointment-submit {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: var(--apt-accent);
    color: #fff;
    padding: 14px;
    margin-top: 22px;
    font-weight: 800;
}
.bee-appointment-no-questions {
    grid-column: 1/-1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 35px;
    background: var(--apt-muted);
    border-radius: 16px;
}
.bee-appointment-empty-state,
.bee-appointment-empty-slots {
    padding: 24px;
    text-align: center;
    color: #667085;
}
.bee-appointment-empty-state strong,
.bee-appointment-empty-state span,
.bee-appointment-empty-slots strong,
.bee-appointment-empty-slots span {
    display: block;
}
.bee-appointment-builder-preview {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: center;
    pointer-events: none;
}
.bee-appointment-builder-preview .apt-cal-days:after {
    content: 'Preview calendar';
    grid-column: 1/-1;
    padding: 38px;
    text-align: center;
    color: #98a2b3;
}
.layout-split .bee-appointment-shell {
    border-left: 8px solid var(--apt-accent);
}
.layout-cards .bee-appointment-shell {
    background: linear-gradient(145deg, var(--apt-muted), var(--apt-surface));
}
.layout-cards .bee-appointment-type {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
}
.layout-compact .bee-appointment-shell {
    box-shadow: none;
    border: 1px solid #e5e9ef;
    max-width: 960px;
    margin: auto;
}
.layout-compact .bee-appointment-header {
    text-align: center;
}
.layout-compact .bee-appointment-summary {
    display: none;
}
.layout-compact .bee-appointment-schedule {
    grid-template-columns: 1.1fr 0.9fr;
}
.apt-preview-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.apt-preview-options label {
    display: flex;
    gap: 9px;
    align-items: center;
    border: 1px solid #dfe4ea;
    border-radius: 10px;
    padding: 12px;
}
.apt-ajax-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2000;
    background: #101828;
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.2s;
}
.apt-ajax-toast.show {
    opacity: 1;
    transform: none;
}
.apt-ajax-toast.error {
    background: #b42318;
}
@media (max-width: 900px) {
    .bee-appointment-schedule,
    .bee-appointment-detail-layout {
        grid-template-columns: 1fr;
    }
    .bee-appointment-summary {
        order: -1;
    }
    .bee-appointment-header h2 {
        font-size: var(--apt-heading-tablet);
    }
}
@media (max-width: 600px) {
    .bee-appointment-shell {
        padding: 20px;
    }
    .bee-appointment-header h2 {
        font-size: var(--apt-heading-mobile);
    }
    .bee-appointment-progress b {
        display: none;
    }
    .bee-appointment-schedule,
    .bee-appointment-builder-preview {
        grid-template-columns: 1fr;
    }
    .bee-appointment-questions,
    .bee-appointment-options {
        grid-template-columns: 1fr;
    }
    .apt-cal-days,
    .apt-cal-week {
        gap: 2px;
    }
    .bee-appointment-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}
