/* BeautyBooking premium widget — BookedWell-style */
:root {
    --bw-accent: #e8765e;
    --bw-accent-soft: rgba(232, 118, 94, 0.12);
    --bw-ink: #1a202c;
    --bw-muted: #718096;
    --bw-line: #edf2f7;
    --bw-soft: #f7fafc;
    --bw-radius: 22px;
}

* { box-sizing: border-box; }

.bw-body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--bw-ink);
    -webkit-font-smoothing: antialiased;
    background: #eef2f7;
}

.bw-body--embed {
    background: #fff;
    padding: 0;
}

.bw-body--page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 28px 14px 50px;
}

.bw-shell {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: var(--bw-radius);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    overflow: visible;
    animation: bw-in .35s ease;
}

/* Embed: één vlak, geen box-in-box */
.bw-body--embed .bw-shell {
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    border: 0;
    padding: 0;
    animation: none;
}

@media (min-width: 641px) {
    .bw-body--embed {
        background: #f3f4f6;
        padding: 12px;
    }
    .bw-body--embed .bw-shell {
        border-radius: 16px;
        border: 1px solid #e5e7eb;
        padding: 6px 12px 12px;
    }
}

@keyframes bw-in {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: none; }
}

.bw-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px 16px;
    border-bottom: 1px solid var(--bw-line);
}

.bw-body--embed .bw-top {
    padding: 10px 2px 12px;
    border-bottom: none;
}

.bw-icon-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 0;
    background: transparent;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    cursor: pointer;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.bw-icon-btn:hover { background: var(--bw-soft); color: var(--bw-ink); }
.bw-icon-btn[hidden] { display: none !important; }

.bw-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}
.bw-brand__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bw-accent-soft);
    color: var(--bw-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.bw-brand__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bw-brand div { min-width: 0; flex: 1; }
.bw-brand strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bw-brand span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--bw-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bw-stages { padding: 20px 20px 24px; position: relative; }
.bw-body--embed .bw-stages { padding: 4px 2px 8px; }

.bw-stage {
    display: none;
    opacity: 0;
    transform: translateX(14px);
}
.bw-stage.is-active {
    display: block;
    animation: bw-stage-in .28s ease forwards;
}
.bw-stage.is-back {
    animation: bw-stage-back .28s ease forwards;
}
@keyframes bw-stage-in {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: none; }
}
@keyframes bw-stage-back {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: none; }
}

.bw-kicker {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bw-muted);
}
.bw-title {
    margin: 4px 0 18px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
}
.bw-subtitle {
    margin: 18px 0 12px;
    font-size: 14.5px;
    font-weight: 600;
}
.bw-subtitle strong { font-weight: 800; }
.bw-empty { color: var(--bw-muted); font-size: 14px; }

.bw-services { display: grid; gap: 10px; }
.bw-service {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 16px;
    border-radius: 14px;
    background: var(--bw-soft);
    border: 1px solid transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.bw-service:hover {
    border-color: color-mix(in srgb, var(--bw-accent) 35%, transparent);
}
.bw-service:active { transform: scale(.99); }
.bw-service.is-selected {
    border-color: var(--bw-accent);
    background: #fff;
}
.bw-service__left strong {
    display: block;
    font-size: 15.5px;
    font-weight: 700;
    margin-bottom: 4px;
}
.bw-service__meta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--bw-muted);
    font-size: 13px;
}
.bw-service__right {
    text-align: right;
    flex-shrink: 0;
}
.bw-service__price {
    display: block;
    font-size: 15.5px;
    font-weight: 800;
    margin-bottom: 2px;
}
.bw-service__book {
    color: var(--bw-accent);
    font-size: 13.5px;
    font-weight: 700;
}

.bw-staff-bar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--bw-line);
    background: #fff;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.bw-staff-bar:hover {
    border-color: color-mix(in srgb, var(--bw-accent) 40%, var(--bw-line));
    box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
}
.bw-staff-bar__icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bw-soft);
    color: var(--bw-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.bw-staff-bar__copy { flex: 1; min-width: 0; }
.bw-staff-bar__copy strong { display: block; font-size: 14px; }
.bw-staff-bar__copy small { color: var(--bw-muted); font-size: 12.5px; }
.bw-staff-bar__chev { color: #a0aec0; }

.bw-staff-panel {
    margin-top: 8px;
    border: 1px solid var(--bw-line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    animation: bw-in .2s ease;
}
.bw-staff-option {
    width: 100%;
    display: block;
    text-align: left;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--bw-line);
    background: #fff;
    font: inherit;
    cursor: pointer;
    transition: background .15s ease;
}
.bw-staff-option:last-child { border-bottom: 0; }
.bw-staff-option:hover { background: var(--bw-soft); }
.bw-staff-option.is-active { background: var(--bw-accent-soft); }
.bw-staff-option strong { display: block; font-size: 14px; }
.bw-staff-option small { color: var(--bw-muted); font-size: 12.5px; }

.bw-dates {
    display: grid;
    grid-template-columns: 32px 1fr 32px;
    gap: 4px;
    align-items: center;
    margin-top: 16px;
}
.bw-dates__nav {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #4a5568;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
}
.bw-dates__nav:hover { background: var(--bw-soft); }
.bw-dates__nav:disabled { opacity: .35; cursor: default; }
.bw-dates__track {
    display: flex;
    gap: 6px;
    overflow: visible;
    padding: 2px 0;
}
.bw-date {
    flex: 1 1 0;
    min-width: 0;
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 10px 2px;
    cursor: pointer;
    font: inherit;
    color: var(--bw-ink);
    transition: background .18s ease, color .18s ease;
}
.bw-date span {
    display: block;
    text-align: center;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bw-date__day { font-size: 11px; font-weight: 600; color: var(--bw-muted); }
.bw-date__num { font-size: 15px; font-weight: 800; margin: 2px 0; }
.bw-date__mon { font-size: 10px; color: #a0aec0; text-transform: uppercase; }
.bw-date:hover:not(:disabled):not(.is-selected) { background: var(--bw-soft); }
.bw-date.is-selected {
    background: var(--bw-accent);
    color: #fff;
}
.bw-date.is-selected .bw-date__day,
.bw-date.is-selected .bw-date__mon { color: rgba(255,255,255,.85); }
.bw-date.is-closed,
.bw-date:disabled {
    opacity: .38;
    cursor: default;
}

.bw-slots {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.bw-slot {
    border: 1px solid var(--bw-line);
    background: #fff;
    color: var(--bw-accent);
    border-radius: 999px;
    padding: 12px 4px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.bw-slot:hover {
    border-color: var(--bw-accent);
    background: var(--bw-accent-soft);
}
.bw-slot.is-selected {
    background: var(--bw-accent);
    border-color: var(--bw-accent);
    color: #fff;
}
.bw-hint {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--bw-muted);
    font-size: 14px;
    padding: 18px 8px;
}

.bw-selection {
    margin: 0 0 16px;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.35;
}

.bw-fields { display: grid; gap: 10px; margin-bottom: 14px; }
.bw-field {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--bw-line);
    border-radius: 999px;
    padding: 2px 14px 2px 14px;
    background: #fff;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.bw-field:focus-within {
    border-color: var(--bw-accent);
    box-shadow: 0 0 0 3px var(--bw-accent-soft);
}
.bw-field__icon { color: #a0aec0; display: inline-flex; }
.bw-field input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: 15px;
    padding: 12px 0;
    color: var(--bw-ink);
}
.bw-field input::placeholder { color: #a0aec0; }

.bw-summary {
    background: var(--bw-soft);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 14px;
}
.bw-summary__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    font-size: 14px;
}
.bw-summary__row span:first-child { color: var(--bw-muted); }
.bw-summary__row strong { font-weight: 700; }
.bw-summary__total {
    border-top: 1px solid var(--bw-line);
    margin-top: 6px;
    padding-top: 12px;
    font-weight: 800;
}
.bw-summary__total span:first-child,
.bw-summary__total strong { color: var(--bw-ink); font-weight: 800; }

.bw-error {
    color: #c53030;
    font-size: 13.5px;
    font-weight: 600;
    margin: 0 0 10px;
}

.bw-cta {
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: var(--bw-accent);
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    padding: 15px 18px;
    cursor: pointer;
    transition: filter .18s ease;
}
.bw-cta:hover { filter: brightness(.96); }
.bw-cta:active { filter: brightness(.93); }
.bw-cta:disabled { opacity: .55; cursor: default; }

.bw-done { text-align: center; padding: 28px 8px 10px; }
.bw-done__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #e8f8ef;
    color: #22863a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
}
.bw-done h2 { margin: 0 0 8px; font-size: 22px; }
.bw-done p { color: var(--bw-muted); margin: 0 0 14px; line-height: 1.5; }
.bw-link { color: var(--bw-accent); font-weight: 700; text-decoration: none; }
.bw-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .bw-title { font-size: 18px; margin-bottom: 14px; }
    .bw-brand strong { font-size: 15px; }
    .bw-brand span { font-size: 12px; }
    .bw-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .bw-slot { padding: 11px 2px; font-size: 13.5px; }
    .bw-date { padding: 9px 1px; }
    .bw-date__day { font-size: 10px; }
    .bw-date__num { font-size: 14px; }
    .bw-date__mon { font-size: 9px; }
    .bw-body--page { padding: 12px 8px 32px; }
    .bw-body--page .bw-shell { max-width: none; border-radius: 14px; }
}

@media (max-width: 420px) {
    .bw-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
