/* Shared create/edit form: retain field order, grid spans and native controls. */
.crm-page-add-booking .booking-form .booking-guest-fields > .field-stack.full { grid-column: 1 / -1; }
.crm-page-add-booking .booking-guest-remove-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #efc7cc;
    border-radius: 7px;
    background: #fff;
    color: #a1323e;
    cursor: pointer;
}
.crm-page-add-booking .booking-guest-remove-icon:hover { border-color: #e5aeb5; background: #fff1f2; color: #be123c; }
.crm-page-add-booking .booking-guest-remove-icon:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.crm-page-add-booking .booking-guest-remove-icon svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.crm-page-add-booking .page-header > div:first-child { min-width: 0; }
.crm-page-add-booking .page-header h2 { margin: 0; overflow-wrap: anywhere; }
.crm-page-add-booking .page-header .page-subtitle { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--ui-color-text-muted); }
.crm-page-add-booking .booking-form .booking-guest-tabs { min-width: 0; max-width: 100%; flex-wrap: wrap; }
.crm-page-add-booking .booking-form .field-stack > small { line-height: 1.5; overflow-wrap: anywhere; }
.crm-page-add-booking .page-header {
    padding: 20px 24px;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: none;
    border-radius: var(--ui-radius-md);
}
.crm-page-add-booking .page-header h2 { font-size: 26px; line-height: 1.3; }
.crm-page-add-booking .form-card {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.crm-page-add-booking .booking-form { gap: 20px; min-width: 0; }
.crm-page-add-booking .booking-form > .form-section {
    padding: 20px;
    border: 1px solid var(--ui-color-border);
    border-radius: var(--ui-radius-md);
    background: var(--ui-color-surface);
    box-shadow: none;
}
.crm-page-add-booking .booking-form .section-kicker {
    margin: 0 0 16px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    color: var(--ui-color-text);
}
.crm-page-add-booking .booking-form > .form-section > .section-kicker {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ui-color-border);
}
.crm-page-add-booking .booking-guest-section-head {
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--ui-color-border);
}
.crm-page-add-booking .booking-form .form-grid { gap: 14px; }
.crm-page-add-booking .booking-form .field-stack { min-width: 0; gap: 7px; }
.crm-page-add-booking .booking-form .field-stack > span { color: var(--ui-color-text-muted); font-size: 13px; }
.crm-page-add-booking .booking-field-error {
    color: var(--ui-color-danger, #b42318);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}
.crm-page-add-booking .booking-field-error[hidden] { display: none !important; }
.crm-page-add-booking .booking-stay-datetime-pair {
    grid-column: span 6;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    min-width: 0;
}
.crm-page-add-booking .booking-arrival-lock-note {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--ui-color-text-muted);
    font-size: clamp(11px, 3vw, 13px);
    line-height: 1.4;
    white-space: nowrap;
}
.crm-page-add-booking .booking-guest-payment-pair {
    grid-column: span 6;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}
:is(.crm-page-add-booking, .crm-page-group-booking) .booking-composition-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}
:is(.crm-page-add-booking, .crm-page-group-booking) .booking-composition-grid > .booking-field-error {
    grid-column: 1 / -1;
}
:is(.crm-page-add-booking, .crm-page-group-booking) .booking-composition-heading {
    grid-column: 1 / -1;
    color: var(--ui-color-text-muted);
    font-size: 14px;
    font-weight: 600;
}
:is(.crm-page-add-booking, .crm-page-group-booking) .booking-composition-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
:is(.crm-page-add-booking, .crm-page-group-booking) .booking-composition-label > .booking-composition-summary-icon {
    font-size: 18px;
}
@media (max-width: 430px) {
    :is(.crm-page-add-booking, .crm-page-group-booking) .booking-composition-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }
    :is(.crm-page-add-booking, .crm-page-group-booking) :is(.booking-form, .group-booking-form) .booking-composition-grid label.field-stack {
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr);
        align-items: center;
        gap: 4px;
        min-width: 0;
        min-height: 44px;
    }
    :is(.crm-page-add-booking, .crm-page-group-booking) :is(.booking-form, .group-booking-form) .booking-composition-grid label.field-stack > .booking-composition-label {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        font-size: 20px;
    }
    :is(.crm-page-add-booking, .crm-page-group-booking) :is(.booking-form, .group-booking-form) .booking-composition-grid label.field-stack .ui-select {
        min-width: 0;
        padding: 0 2px;
        text-align: center;
        background-image: none;
    }
    :is(.crm-page-add-booking, .crm-page-group-booking) .booking-composition-grid .booking-composition-label-text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        white-space: nowrap;
        clip-path: inset(50%);
    }
}
.crm-page-add-booking .booking-adjacent-day-option {
    grid-column: 1 / -1;
    order: 3;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 32px;
    color: var(--ui-color-text);
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}
.crm-page-add-booking .booking-adjacent-day-option[hidden] { display: none !important; }
.crm-page-add-booking .booking-adjacent-day-option input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    box-shadow: none;
    accent-color: var(--ui-color-primary);
}
.crm-page-add-booking .booking-adjacent-day-option input[type="checkbox"]:focus { box-shadow: none; }
.crm-page-add-booking .booking-adjacent-day-option input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--ui-color-primary);
    outline-offset: 2px;
}
.crm-page-add-booking .booking-form .toggle-pill {
    padding: 12px;
    min-height: 48px;
    border: 1px solid var(--ui-color-border);
    background: var(--ui-color-surface-subtle);
    border-radius: var(--ui-radius-sm);
}
.crm-page-add-booking .booking-header-actions { gap: 10px; flex-wrap: wrap; }
.crm-page-add-booking .booking-automation-switch {
    flex: 0 1 auto;
    padding: 0 4px;
    white-space: normal;
}
.crm-page-add-booking .booking-header-actions > .action-button,
.crm-page-add-booking .booking-header-actions > .send-button {
    min-height: 46px;
    border-radius: var(--ui-radius-sm);
    box-shadow: none;
}
@media (max-width: 760px) {
    .crm-page-add-booking .page-header,
    .crm-page-add-booking .booking-form > .form-section { padding: 16px; }
    .crm-page-add-booking .page-header h2 { font-size: 22px; }
    .crm-page-add-booking .booking-header-actions { width: 100%; }
    .crm-page-add-booking .booking-header-actions > .action-button,
    .crm-page-add-booking .booking-header-actions > .send-button { flex: 1 1 130px; white-space: normal; }
}

/* The booking drawer uses the same form behavior with the compact detail-panel visual language. */
body.booking-drawer-embedded .crm-page-add-booking .booking-editor-view-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    gap: 19px;
    min-width: 0;
    padding: 0 22px;
    overflow-x: auto;
    border-bottom: 1px solid var(--ui-color-border);
    background: var(--ui-color-surface);
    scrollbar-width: none;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-view-tabs::-webkit-scrollbar { display: none; }

body.booking-drawer-embedded .booking-drawer-inline-editor .booking-editor-header .booking-header-actions {
    display: none;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-view-tabs a {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0;
    color: #607089;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-view-tabs a[aria-current="page"] { color: #2457d6; }
body.booking-drawer-embedded .crm-page-add-booking .booking-editor-view-tabs a[aria-current="page"]::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: #2457d6;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-summary {
    display: grid;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--ui-color-border);
    background: var(--ui-color-surface);
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-summary-stay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-summary-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-summary-identity > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-summary-identity strong {
    font-size: 19px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-summary-identity div > span,
body.booking-drawer-embedded .crm-page-add-booking .booking-editor-summary-stay > span {
    color: var(--ui-color-text-muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

body.booking-drawer-embedded .crm-page-add-booking [data-booking-editor-summary-nights]:not(:empty)::before {
    content: ' · ';
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-summary-stay > strong {
    color: #9a5700;
    font-size: 18px;
    white-space: nowrap;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #eef3ff;
    color: #2457d6;
    font-size: 14px;
    font-weight: 600;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-view-tabs button {
    position: relative;
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #607089;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-view-tabs button[aria-selected="true"] {
    color: #2457d6;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-view-tabs button[aria-selected="true"]::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: #2457d6;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-view-tabs button[aria-disabled="true"] {
    color: #9aa8ba;
    cursor: not-allowed;
}

body.booking-drawer-embedded .crm-page-add-booking [data-booking-editor-panel][hidden] {
    display: none !important;
}

body.booking-drawer-embedded .crm-page-add-booking [data-booking-editor-mode="create"] .booking-editor-header > div:first-child {
    display: none;
}

body.booking-drawer-embedded .crm-page-add-booking [data-booking-editor-mode="create"] .booking-editor-header {
    justify-content: flex-end;
    padding-block: 10px;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 12px 20px;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid var(--ui-color-border);
    border-radius: 0;
    background: var(--ui-color-surface);
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-header h2 {
    font-size: 17px;
    line-height: 1.35;
    white-space: nowrap;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-header > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-header .page-title-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-header .page-subtitle {
    display: none;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-header-actions {
    width: auto;
    margin-left: auto;
    gap: 8px;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-header-actions > .action-button,
body.booking-drawer-embedded .crm-page-add-booking .booking-header-actions > .send-button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 7px;
    font-size: 14px;
    white-space: nowrap;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-form-card {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--ui-color-surface);
}

body.booking-drawer-embedded .crm-page-add-booking .booking-form {
    gap: 0;
    background: var(--ui-color-surface);
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-main-section,
body.booking-drawer-embedded .crm-page-add-booking .booking-editor-guest-section,
body.booking-drawer-embedded .crm-page-add-booking .booking-form > .form-section {
    margin: 0;
    padding: 18px 20px;
    border: 0;
    border-bottom: 1px solid var(--ui-color-border);
    border-radius: 0;
    background: var(--ui-color-surface);
}

body.booking-drawer-embedded .crm-page-add-booking .booking-form .section-kicker {
    margin: 0 0 12px;
    padding: 0 0 10px;
    border-bottom: 1px solid var(--ui-color-border);
    font-size: 15px;
    line-height: 1.35;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-form .primary-booking-grid,
body.booking-drawer-embedded .crm-page-add-booking .booking-form .booking-guest-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-form .primary-booking-grid > .field-stack,
body.booking-drawer-embedded .crm-page-add-booking .booking-form .primary-booking-grid > .field-stack:nth-child(n) {
    grid-column: auto;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-form .primary-booking-grid > .booking-stay-datetime-pair {
    grid-column: 1 / -1;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-form .primary-booking-grid > .booking-guest-payment-pair {
    grid-column: 1 / -1;
}

/* Nested booking groups own their columns; legacy positional field spans belong
   only to the outer form grid, never to date/time, occupancy or amount pairs. */
body.booking-drawer-embedded .crm-page-add-booking .booking-form .primary-booking-grid :is(.booking-stay-datetime-pair, .booking-composition-grid, .booking-guest-payment-pair) > .field-stack:nth-child(n) {
    grid-column: auto;
    order: 0;
}

@media (min-width: 900px) {
    body.booking-drawer-embedded .crm-page-add-booking .booking-form > .form-section {
        width: 100%;
        max-width: 1140px;
        box-sizing: border-box;
        margin-inline: auto;
    }

    body.booking-drawer-embedded .crm-page-add-booking .booking-form .primary-booking-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    body.booking-drawer-embedded .crm-page-add-booking .booking-form .primary-booking-grid > :is(.booking-stay-datetime-pair, .booking-guest-payment-pair, .field-stack):nth-child(n) {
        grid-column: span 2 !important;
        order: 0;
    }
}

body.booking-drawer-embedded .crm-page-add-booking .booking-form .field-stack {
    gap: 5px;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-form .field-stack > span,
body.booking-drawer-embedded .crm-page-add-booking .booking-guest-count,
body.booking-drawer-embedded .crm-page-add-booking .booking-form .field-stack > small {
    font-size: 13px;
    line-height: 1.4;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-form .ui-input,
body.booking-drawer-embedded .crm-page-add-booking .booking-form .ui-select,
body.booking-drawer-embedded .crm-page-add-booking .booking-form .ui-textarea {
    width: 100%;
    min-height: 40px;
    padding: 8px 11px;
    border-radius: 7px;
    font-size: 16px;
    line-height: 1.35;
    box-shadow: none;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-form .ui-textarea {
    min-height: 80px;
}

@media (min-width: 431px) {
    body.booking-drawer-embedded .crm-page-add-booking .booking-form .ui-input,
    body.booking-drawer-embedded .crm-page-add-booking .booking-form .ui-select,
    body.booking-drawer-embedded .crm-page-add-booking .booking-form .ui-textarea { font-size: 16px !important; }
}

body.booking-drawer-embedded .crm-page-add-booking .booking-form .ui-input[readonly],
body.booking-drawer-embedded .crm-page-add-booking .booking-form .ui-input:disabled,
body.booking-drawer-embedded .crm-page-add-booking .booking-form .ui-select:disabled {
    background: var(--ui-color-surface-subtle);
}

body.booking-drawer-embedded .crm-page-add-booking .booking-guest-section-head {
    padding: 0;
    margin: 0;
    border: 0;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-guest-section-head .section-kicker {
    margin: 0;
    font-size: 16px;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-guest-count {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-guest-tab-row {
    padding: 0 0 8px;
    gap: 6px;
    border-bottom: 1px solid #d7e1ec;
    scrollbar-width: none;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-guest-tab-row::-webkit-scrollbar { display: none; }

body.booking-drawer-embedded .crm-page-add-booking .booking-form .booking-guest-tabs {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    width: auto;
    max-width: none;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-guest-tab-item,
body.booking-drawer-embedded .crm-page-add-booking .booking-guest-tab,
body.booking-drawer-embedded .crm-page-add-booking .action-button.booking-guest-add {
    border-radius: 7px;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-guest-tab-item {
    overflow: visible;
    border: 0;
    background: transparent;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-guest-tab,
body.booking-drawer-embedded .crm-page-add-booking .action-button.booking-guest-add {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 13px;
    box-shadow: none;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-guest-tab {
    border: 1px solid #d7e1ec;
    background: #fff;
    color: #526987;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-guest-tab.is-active {
    border-color: #315eff;
    background: #f1f5ff;
    color: #2457d6;
}

body.booking-drawer-embedded .crm-page-add-booking .action-button.booking-guest-add {
    flex: 0 0 auto;
    width: auto;
    min-width: max-content;
    border: 1px dashed #d7e1ec;
    background: #fff;
    color: #2457d6;
}

body.booking-drawer-embedded .crm-page-add-booking .action-button.booking-guest-add::before {
    content: none;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-guest-panel {
    min-width: 0;
    margin: 14px 0 0;
    padding: 12px;
    border: 1px solid #d7e1ec;
    border-radius: 8px;
    background: #f8fafc;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-guest-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-guest-panel-head h4 {
    margin: 0;
    font-size: 14px;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-guest-section .field-stack > span {
    font-size: 14px;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-guest-messengers {
    min-width: 0;
    margin: 16px 0 0;
    padding: 0;
    border: 0;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-guest-messengers legend {
    margin: 0 0 8px;
    padding: 0;
    color: var(--ui-color-text);
    font-size: 14px;
    font-weight: 600;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-guest-messenger-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-guest-messenger-options label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    color: var(--ui-color-text);
    font-size: 14px;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-guest-messenger-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 3px;
    box-shadow: none;
    accent-color: var(--ui-color-primary);
    cursor: pointer;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-guest-messenger-options input[type="checkbox"]:focus {
    border: 0;
    outline: none;
    box-shadow: none;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-guest-messenger-options input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--ui-color-primary);
    outline-offset: 2px;
}

body.booking-drawer-embedded .crm-page-add-booking [data-booking-editor-mode="create"] {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-create-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: flex;
    justify-content: flex-end;
    min-height: 64px;
    box-sizing: border-box;
    padding: 10px 22px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--ui-color-border);
    background: var(--ui-color-surface);
    gap: 16px;
    align-items: center;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-create-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(260px, 100%);
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 7px;
    background: var(--ui-color-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
}

body.booking-drawer-embedded .crm-page-add-booking .booking-editor-create-submit:hover {
    background: var(--ui-color-primary-hover);
}

@media (max-width: 430px) {
    .crm-page-add-booking .booking-guest-remove-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    body.booking-drawer-embedded .crm-page-add-booking .booking-editor-summary {
        padding: 16px;
    }

    body.booking-drawer-embedded .crm-page-add-booking .booking-editor-create-footer {
        align-items: stretch;
        flex-direction: column;
        min-height: 64px;
        padding-right: 16px;
        padding-left: 16px;
    }

    body.booking-drawer-embedded .crm-page-add-booking [data-booking-editor-mode="create"] {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    body.booking-drawer-embedded .crm-page-add-booking .booking-automation-switch {
        justify-content: space-between;
        min-height: 36px;
    }

    body.booking-drawer-embedded .crm-page-add-booking .booking-editor-create-submit {
        width: 100%;
    }

    body.booking-drawer-embedded .crm-page-add-booking .booking-editor-summary-stay {
        align-items: flex-start;
        flex-direction: column;
    }

    body.booking-drawer-embedded .crm-page-add-booking .booking-editor-view-tabs button {
        min-height: 44px;
    }

    body.booking-drawer-embedded .crm-page-add-booking .booking-editor-header {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 14px 16px 12px;
    }

    body.booking-drawer-embedded .crm-page-add-booking .booking-header-actions {
        width: 100%;
        margin-left: 0;
    }

    body.booking-drawer-embedded .crm-page-add-booking .booking-header-actions > .action-button,
    body.booking-drawer-embedded .crm-page-add-booking .booking-header-actions > .send-button {
        flex: 1 1 0;
    }

    body.booking-drawer-embedded .crm-page-add-booking .booking-editor-main-section,
    body.booking-drawer-embedded .crm-page-add-booking .booking-editor-guest-section,
    body.booking-drawer-embedded .crm-page-add-booking .booking-form > .form-section {
        padding: 16px;
    }

    body.booking-drawer-embedded .crm-page-add-booking .booking-form .primary-booking-grid,
    body.booking-drawer-embedded .crm-page-add-booking .booking-form .booking-guest-fields {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.booking-drawer-embedded .crm-page-add-booking .booking-form .booking-stay-datetime-pair {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.booking-drawer-embedded .crm-page-add-booking .booking-form .booking-guest-fields > .field-stack.full {
        grid-column: auto;
    }

    body.booking-drawer-embedded .crm-page-add-booking .booking-form .ui-input,
    body.booking-drawer-embedded .crm-page-add-booking .booking-form .ui-select,
    body.booking-drawer-embedded .crm-page-add-booking .booking-form .ui-textarea { font-size: 17px !important; }

    body.booking-drawer-embedded :is(.ui-input, .ui-select, .ui-textarea):is(:focus, :focus-visible):not([aria-invalid="true"]) {
        outline: none;
        outline-offset: 0;
        border-color: var(--ui-color-border-strong);
        box-shadow: none;
    }
}
/* Night prices use shared controls; these rules own only the editor row layout. */
.booking-nightly-editor-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, 140px); gap: 12px; align-items: center; padding-block: 8px; }
.booking-nightly-editor-row > :last-child { text-align: right; }
.booking-nightly-editor-row small { display: block; }
.booking-nightly-editor-rows { min-width: 0; }
.crm-page-add-booking .booking-payment-label-line { display: inline-flex; align-items: center; gap: var(--ui-space-2); }

.booking-nightly-editor-row + .booking-nightly-editor-row { border-top: 1px solid var(--ui-color-border); }

.crm-page-add-booking .booking-form .primary-booking-grid > .booking-nightly-editor { grid-column: 1 / -1; min-width: 0; }

.crm-page-add-booking .booking-form .booking-nightly-editor-row > label { gap: 2px; margin: 0; font-weight: 400; line-height: 1.35; }
.crm-page-add-booking .booking-form .booking-nightly-editor-row > label > small { margin: 0; font-weight: inherit; line-height: inherit; }
