.stbu-booking-canvas {
    --stbu-black: #0a0a0a;
    --stbu-charcoal: #131313;
    --stbu-text: #1c1b1b;
    --stbu-muted: #6f6f6f;
    --stbu-border: #e5e5e5;
    --stbu-soft: #fafaf9;
    --stbu-success: #2ecc71;
    box-sizing: border-box;
    width: min(100%, 1040px);
    max-width: 1040px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    color: var(--stbu-text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.45;
    text-align: left;
}

.stbu-booking-canvas *,
.stbu-booking-canvas *::before,
.stbu-booking-canvas *::after {
    box-sizing: border-box;
}

.stbu-booking-canvas form,
.stbu-booking-canvas fieldset,
.stbu-booking-canvas label,
.stbu-booking-canvas input,
.stbu-booking-canvas select,
.stbu-booking-canvas textarea,
.stbu-booking-canvas button,
.stbu-booking-canvas p,
.stbu-booking-canvas h2,
.stbu-booking-canvas h3,
.stbu-booking-canvas span,
.stbu-booking-canvas strong,
.stbu-booking-canvas small {
    text-align: inherit;
}

.stbu-booking-canvas form,
.stbu-booking-canvas p,
.stbu-booking-canvas h2,
.stbu-booking-canvas h3 {
    margin-top: 0;
}

.stbu-booking-wrapper {
    width: 100%;
    margin: 28px auto;
    padding: 56px 48px;
    border: 1px solid var(--stbu-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
    text-align: left;
}

.stbu-surface-header {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--stbu-border);
}

.stbu-surface-header h2,
.stbu-section-heading h3 {
    font-family: "Barlow Condensed", Inter, sans-serif;
    color: #000;
    text-transform: uppercase;
}

.stbu-surface-header h2 {
    margin: 0;
    font-size: 40px;
    line-height: 1.12;
    font-weight: 700;
}

.stbu-surface-header span {
    display: block;
    margin-top: 8px;
    color: var(--stbu-muted);
    font-size: 16px;
    line-height: 1.5;
}

.stbu-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    margin-bottom: 40px;
    border: 1px solid var(--stbu-border);
    border-radius: 12px;
    background: var(--stbu-soft);
    text-align: center;
}

.stbu-tab {
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #333;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
}

.stbu-tab.is-active {
    border-color: #000;
    background: #000;
    color: #fff;
}

.stbu-section,
.stbu-tab-panel {
    padding: 0;
    background: transparent;
    color: var(--stbu-text);
    text-align: left;
}

.stbu-tab-panel[hidden] {
    display: none;
}

.stbu-form-section {
    margin: 0 0 44px;
}

.stbu-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.stbu-section-heading span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #000;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.stbu-section-heading h3 {
    margin: 0;
    font-size: 26px;
    line-height: 1.15;
    font-weight: 700;
}

.stbu-row {
    margin-bottom: 18px;
}

.stbu-row:last-child {
    margin-bottom: 0;
}

.stbu-row label,
.stbu-payment-choice strong {
    display: block;
    margin-bottom: 8px;
    color: var(--stbu-muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
    text-transform: uppercase;
}

.stbu-row input[type="text"],
.stbu-row input[type="email"],
.stbu-row select,
.stbu-row textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid var(--stbu-border);
    border-radius: 8px;
    background: #fff;
    color: var(--stbu-text);
    font-family: Inter, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    text-align: left;
    appearance: auto;
}

.stbu-row textarea {
    min-height: 104px;
    resize: vertical;
}

.stbu-row input:focus,
.stbu-row select:focus,
.stbu-row textarea:focus {
    border-color: #000;
    outline: none;
}

.stbu-customer-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 0;
}

.stbu-customer-fields .stbu-row {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.stbu-choice-grid,
.stbu-options {
    display: grid;
    gap: 14px;
}

.stbu-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stbu-choice-card,
.stbu-options label {
    display: block;
    min-height: 96px;
    padding: 18px;
    border: 1px solid var(--stbu-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease;
    text-align: left;
}

.stbu-choice-card:hover,
.stbu-options label:hover {
    background: var(--stbu-soft);
}

.stbu-choice-card input,
.stbu-hour-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.stbu-choice-card span {
    display: grid;
    gap: 8px;
}

.stbu-choice-card strong {
    display: block;
    color: #000;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
}

.stbu-choice-card small {
    display: block;
    color: var(--stbu-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}

.stbu-choice-card small:first-of-type {
    justify-self: start;
    padding: 5px 8px;
    border-radius: 6px;
    background: #000;
    color: #fff;
}

.stbu-choice-card:has(input:checked),
.stbu-options label:has(input:checked) {
    border-color: #000;
    border-width: 2px;
    background: var(--stbu-soft);
}

.stbu-choice-card-compact {
    min-height: 92px;
}

.stbu-choice-card-compact span {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.stbu-choice-card-compact small:last-child {
    grid-column: 1 / -1;
}

.stbu-fixed-services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stbu-fixed-services-grid .stbu-choice-card-compact {
    min-height: 154px;
}

.stbu-fixed-services-grid .stbu-choice-card-compact span {
    grid-template-columns: 1fr;
    align-items: start;
}

.stbu-fixed-services-grid .stbu-choice-card-compact strong {
    overflow-wrap: anywhere;
}

.stbu-fixed-services-grid .stbu-choice-card-compact small:first-of-type {
    justify-self: start;
}

.stbu-booking-pickers {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.25fr);
    gap: 18px;
    align-items: start;
}

.stbu-booking-pickers .stbu-time-row {
    grid-column: 1 / -1;
}

.stbu-hour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: 8px;
}

.stbu-duration-grid {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
}

.stbu-time-grid {
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    min-height: 52px;
}

.stbu-hour-chip {
    display: block;
    cursor: pointer;
}

.stbu-hour-chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px;
    border: 1px solid var(--stbu-border);
    border-radius: 8px;
    background: #fff;
    color: #000;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
}

.stbu-hour-chip:hover span {
    border-color: #000;
}

.stbu-hour-chip input:checked + span {
    border-color: #000;
    background: #000;
    color: #fff;
}

.stbu-empty-state {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px dashed #cfcfcf;
    border-radius: 8px;
    color: var(--stbu-muted);
    font-size: 14px;
    grid-column: 1 / -1;
    text-align: left;
}

.stbu-summary-section {
    padding: 28px;
    border-radius: 12px;
    background: var(--stbu-soft);
}

.stbu-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    margin: 0;
    border-top: 1px solid var(--stbu-border);
    border-bottom: 1px solid var(--stbu-border);
    color: #000;
}

.stbu-total span {
    color: var(--stbu-muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.stbu-total strong {
    color: #000;
    font-family: "Barlow Condensed", Inter, sans-serif;
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
}

.stbu-payment-choice {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 18px 0;
    border: 0;
    background: transparent;
}

.stbu-payment-choice p {
    margin: 0;
    color: var(--stbu-muted);
    font-size: 14px;
}

.stbu-payment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.stbu-payment-options[hidden] {
    display: none !important;
}

.stbu-payment-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px;
    border: 1px solid var(--stbu-border);
    border-radius: 8px;
    background: #fff;
    color: #000;
    font-size: 14px;
    font-weight: 800;
    text-align: left;
}

.stbu-help {
    margin: 12px 0;
    color: var(--stbu-muted);
    font-size: 13px;
    text-align: left;
}

.stbu-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
    width: 100%;
    min-height: 54px;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    background: #000;
    color: #fff;
    font-family: Inter, sans-serif;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.stbu-button:hover {
    opacity: 0.9;
}

.stbu-button:active {
    transform: translateY(1px);
}

.stbu-button:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    pointer-events: none;
}

.stbu-button.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

.stbu-button.is-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-top-color: #fff;
    border-radius: 999px;
    animation: stbu-spin 0.8s linear infinite;
}

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

.stbu-message {
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    text-align: left;
}

.stbu-error {
    background: #fff1f1;
    color: #8a2424;
    border: 1px solid #ffd1d1;
}

.stbu-success {
    background: rgba(46, 204, 113, 0.12);
    color: #087331;
    border: 1px solid rgba(46, 204, 113, 0.45);
}

.stbu-confirmation-summary {
    display: grid;
    gap: 18px;
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 44px;
    border: 1px solid rgba(46, 204, 113, 0.42);
    border-radius: 16px;
    background: #fff;
    color: var(--stbu-text);
    text-align: left;
}

.stbu-confirmation-summary h3 {
    margin: 0;
    color: #000;
    font-family: "Barlow Condensed", Inter, sans-serif;
    font-size: 36px;
    line-height: 1.15;
    text-transform: uppercase;
}

.stbu-confirmation-summary p {
    margin: 0;
    color: #087331;
    font-size: 16px;
    font-weight: 700;
}

.stbu-confirmation-summary dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.stbu-confirmation-summary div,
.stbu-confirmation-summary dt,
.stbu-confirmation-summary dd {
    margin: 0;
}

.stbu-confirmation-summary dt {
    color: var(--stbu-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.stbu-confirmation-summary dd {
    color: #000;
    font-weight: 800;
}

.stbu-booking-canvas .flatpickr-calendar {
    border: 1px solid var(--stbu-border);
    border-radius: 12px;
    box-shadow: none;
    font-family: Inter, sans-serif;
}

.stbu-booking-canvas .flatpickr-day.selected,
.stbu-booking-canvas .flatpickr-day.startRange,
.stbu-booking-canvas .flatpickr-day.endRange {
    border-color: #000;
    background: #000;
    color: #fff;
}

.stbu-booking-canvas .flatpickr-day.today {
    border-color: #000;
}

@media (max-width: 760px) {
    .stbu-booking-canvas {
        padding: 0;
    }

    .stbu-booking-wrapper {
        padding: 32px 20px;
        border-radius: 14px;
    }

    .stbu-surface-header h2 {
        font-size: 32px;
    }

    .stbu-tabs,
    .stbu-customer-fields,
    .stbu-choice-grid,
    .stbu-fixed-services-grid,
    .stbu-booking-pickers,
    .stbu-payment-options,
    .stbu-confirmation-summary dl {
        grid-template-columns: 1fr;
    }

    .stbu-choice-card-compact span {
        grid-template-columns: 1fr;
    }

    .stbu-duration-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stbu-summary-section,
    .stbu-confirmation-summary {
        padding: 22px;
    }
}

@media (min-width: 761px) and (max-width: 900px) {
    .stbu-booking-wrapper {
        padding-right: 36px;
        padding-left: 36px;
    }

    .stbu-fixed-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
