.vstrb-admin-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    max-width: 780px
}

.vstrb-admin-cal-h {
    font-weight: 700;
    text-align: center
}

.vstrb-admin-cal-day {
    border: 1px solid #d0d7de;
    border-radius: 12px;
    padding: 10px;
    min-height: 56px
}

.vstrb-admin-cal-day.free {
    background: #fff
}

.vstrb-admin-cal-day.occ {
    background: rgba(0, 0, 0, .04)
}

.vstrb-admin-cal-day .n {
    font-weight: 800
}

.vstrb-admin-cal-day .s {
    font-size: 12px;
    opacity: .7
}

/* Guest Registration grouped table */
.vstrb-gr-summary-row td {
    vertical-align: middle;
}

.vstrb-gr-detail-row > td {
    padding: 0 !important;
    border-top: 2px solid #0073aa;
}

.vstrb-gr-detail-row .widefat {
    border: none;
    box-shadow: none;
    margin: 0;
}

.vstrb-page-wizard-wrap > p {
    max-width: 780px;
    color: #50575e;
}

.vstrb-page-wizard {
    max-width: 920px;
    margin-top: 24px;
    padding: 26px;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.vstrb-page-wizard__progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.vstrb-page-wizard__progress li {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 11px 13px;
    border-radius: 6px;
    background: #f0f0f1;
    color: #646970;
    font-weight: 600;
}

.vstrb-page-wizard__progress span {
    display: inline-grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
}

.vstrb-page-wizard__progress .is-active {
    background: #e7f3ff;
    color: #0a4b78;
}

.vstrb-page-wizard__progress .is-complete {
    background: #edfaef;
    color: #116329;
}

.vstrb-page-wizard section h2 {
    margin-top: 0;
}

.vstrb-page-wizard select,
.vstrb-page-wizard input[type="text"] {
    width: min(100%, 460px);
}

.vstrb-page-wizard__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 20px;
    max-width: 600px;
}

.vstrb-page-layouts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 18px 0 24px;
}

.vstrb-layout-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    margin: 14px 0;
    color: #50575e;
    font-size: 12px;
}

.vstrb-layout-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vstrb-layout-legend span::before {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: #a7aaad;
    content: "";
}

.vstrb-layout-legend .is-gallery::before { background: #72aee6; }
.vstrb-layout-legend .is-calendar::before { background: #68de7c; }
.vstrb-layout-legend .is-text::before { background: #a7aaad; }
.vstrb-layout-legend .is-list::before { background: #c6a7df; }
.vstrb-layout-legend .is-form::before { background: #f0b849; }

.vstrb-page-layouts label {
    display: block;
    position: relative;
    margin: 0;
    cursor: pointer;
}

.vstrb-page-layouts input {
    position: absolute;
    top: 14px;
    left: 14px;
}

.vstrb-page-layouts label > span {
    display: block;
    min-height: 190px;
    padding: 16px 16px 16px 44px;
    border: 2px solid #dcdcde;
    border-radius: 7px;
    background: #fff;
}

.vstrb-page-layouts input:checked + span {
    border-color: #2271b1;
    background: #f0f6fc;
}

.vstrb-page-layouts label > span > strong,
.vstrb-page-layouts label > span > small {
    display: block;
}

.vstrb-page-layouts label > span > small {
    margin-top: 7px;
    color: #646970;
    line-height: 1.4;
}

.vstrb-layout-preview {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, minmax(18px, 1fr));
    gap: 5px;
    min-height: 95px !important;
    margin: 12px 0;
    padding: 7px !important;
    border: 1px solid #c3c4c7 !important;
    border-radius: 4px !important;
    background: #fff !important;
}

.vstrb-layout-preview i {
    display: block;
    min-width: 0;
    border-radius: 3px;
}

.vstrb-layout-preview .is-gallery {
    grid-area: gallery;
    background: repeating-linear-gradient(135deg, #72aee6, #72aee6 7px, #9ecbf1 7px, #9ecbf1 14px);
}

.vstrb-layout-preview .is-calendar {
    grid-area: calendar;
    background: repeating-linear-gradient(90deg, #68de7c, #68de7c 8px, #b8e6bf 8px, #b8e6bf 10px);
}

.vstrb-layout-preview .is-text {
    grid-area: text;
    background: repeating-linear-gradient(0deg, #a7aaad, #a7aaad 3px, #e0e0e0 3px, #e0e0e0 7px);
}

.vstrb-layout-preview .is-list {
    grid-area: list;
    background: repeating-linear-gradient(0deg, #c6a7df, #c6a7df 4px, #eee5f5 4px, #eee5f5 8px);
}

.vstrb-layout-preview .is-form {
    grid-area: form;
    background: repeating-linear-gradient(0deg, #f0b849, #f0b849 6px, #f8dda6 6px, #f8dda6 10px);
}

.vstrb-layout-preview--calendar {
    grid-template-areas: "gallery gallery" "calendar calendar" "text form";
}

.vstrb-layout-preview--description,
.vstrb-layout-preview--columns {
    grid-template-areas: "gallery gallery" "text list" "calendar form";
}

.vstrb-layout-preview--booking {
    grid-template-areas: "gallery gallery" "form form" "text calendar";
}

.vstrb-layout-preview--split {
    grid-template-areas: "gallery form" "gallery form" "text calendar";
}

.vstrb-layout-preview--grid {
    grid-template-rows: repeat(2, minmax(30px, 1fr));
    grid-template-areas: "gallery calendar" "text form";
}

.vstrb-page-wizard__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #dcdcde;
}

.vstrb-page-wizard__actions span {
    flex: 1;
}

@media (max-width: 782px) {
    .vstrb-page-wizard__progress,
    .vstrb-page-layouts,
    .vstrb-page-wizard__fields {
        grid-template-columns: 1fr;
    }
}

.vstrb-admin-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.vstrb-admin-amenity-group {
    border: 1px solid #dcdcde;
    background: #fff;
    padding: 10px 12px;
    margin: 0;
}

.vstrb-admin-amenity-group legend {
    font-weight: 700;
    padding: 0 4px;
}

.vstrb-admin-amenity-group label {
    display: block;
    margin: 7px 0;
}

.vstrb-admin-amenity-group small {
    display: block;
    margin-left: 24px;
    color: #646970;
}

.vstrb-style-preview {
    margin: 16px 0 28px;
    padding: 16px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    background: #fff;
}

.vstrb-style-preview__header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
}

.vstrb-style-preview__header h3,
.vstrb-style-preview__header p {
    margin: 0;
}

.vstrb-style-preview__header p {
    margin-top: 4px;
}

.vstrb-style-preview__sizes {
    display: flex;
    gap: 4px;
}

.vstrb-style-preview__sizes .is-active {
    color: #fff;
    border-color: #2271b1;
    background: #2271b1;
}

.vstrb-style-preview__viewport {
    overflow: auto;
    padding: 18px;
    border: 1px solid #dcdcde;
    background: #f0f0f1;
}

#vstrb-style-preview-frame {
    display: block;
    width: 100%;
    max-width: 900px;
    height: 620px;
    margin: 0 auto;
    border: 1px solid #c3c4c7;
    background: #fff;
    transition: width 0.2s ease;
}

#vstrb-style-preview-frame.is-mobile {
    width: 390px;
    max-width: 100%;
}

@media (max-width: 782px) {
    .vstrb-style-preview__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .vstrb-style-preview__viewport {
        padding: 8px;
    }
}

.vstrb-notification-type {
    margin: 14px 0;
    padding: 14px;
    border: 1px solid #c3c4c7;
    border-left: 5px solid var(--vstrb-task-color, #2271b1);
    border-radius: 6px;
    background: #fff;
}

.vstrb-notification-type__head,
.vstrb-notification-recipient {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 10px;
    align-items: end;
}

.vstrb-notification-type label,
.vstrb-notification-recipient label {
    display: grid;
    gap: 4px;
    font-weight: 600;
}

.vstrb-notification-type input[type="text"],
.vstrb-notification-type input[type="email"],
.vstrb-notification-type input[type="number"],
.vstrb-notification-type select {
    width: 100%;
}

.vstrb-confirm-label {
    display: block !important;
    padding-bottom: 7px;
}

.vstrb-notification-recipient {
    position: relative;
    margin-top: 10px;
    padding: 12px 10px 12px 28px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #f6f7f7;
}

.vstrb-drag-handle {
    position: absolute;
    top: 12px;
    left: 9px;
    color: #646970;
}

.vstrb-drag-handle button {
    display: block;
    min-width: 16px;
    line-height: 1.2;
    text-decoration: none;
}

.vstrb-settings-tabs {
    margin: 12px 0 20px;
}

.vstrb-unit-wizard-launch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 4px 0 18px;
    padding: 16px 18px;
    border: 1px solid #9ec5e5;
    border-left: 4px solid #2271b1;
    border-radius: 6px;
    background: #f0f7fc;
}

.vstrb-unit-wizard-launch[hidden],
.vstrb-unit-wizard[hidden],
.vstrb-unit-wizard-section[hidden],
.vstrb-unit-wizard__actions[hidden],
.vstrb-unit-wizard__actions [hidden] {
    display: none !important;
}

.vstrb-unit-wizard-launch strong {
    font-size: 15px;
}

.vstrb-unit-wizard-launch p {
    margin: 4px 0 0;
    color: #50575e;
}

.vstrb-unit-wizard {
    margin: -6px -12px 22px;
    padding: 22px 24px 20px;
    border-bottom: 1px solid #dcdcde;
    background: linear-gradient(135deg, #f0f7fc, #fff 70%);
}

.vstrb-unit-wizard__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.vstrb-unit-wizard__top h2 {
    margin: 3px 0 5px;
    padding: 0;
    font-size: 22px;
}

.vstrb-unit-wizard__top p {
    max-width: 760px;
    margin: 0;
    color: #50575e;
    font-size: 14px;
}

.vstrb-unit-wizard__eyebrow {
    color: #2271b1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.vstrb-unit-wizard__steps {
    display: grid;
    grid-template-columns: repeat(6, minmax(105px, 1fr));
    gap: 8px;
    margin: 22px 0 16px;
    padding: 0;
    list-style: none;
}

.vstrb-unit-wizard__steps li {
    margin: 0;
}

.vstrb-unit-wizard__steps button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 54px;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #c3c4c7;
    border-radius: 5px;
    color: #50575e;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.vstrb-unit-wizard__steps button span {
    display: grid;
    flex: 0 0 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #50575e;
    background: #f0f0f1;
    font-weight: 700;
}

.vstrb-unit-wizard__steps button.is-active {
    border-color: #2271b1;
    color: #1d2327;
    box-shadow: 0 0 0 1px #2271b1;
}

.vstrb-unit-wizard__steps button.is-active span,
.vstrb-unit-wizard__steps button.is-complete span {
    color: #fff;
    background: #2271b1;
}

.vstrb-unit-wizard__notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 4px;
    color: #3c434a;
    background: #fff;
}

.vstrb-unit-wizard__notice .dashicons {
    color: #2271b1;
}

.vstrb-unit-wizard__notice p {
    margin: 0;
}

.vstrb-unit-wizard__validation {
    display: none;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #d63638;
    border-left-width: 4px;
    border-radius: 4px;
    background: #fff;
}

.vstrb-unit-wizard__validation.is-visible {
    display: block;
}

.vstrb-unit-wizard__validation.is-valid {
    border-color: #00a32a;
    color: #006b1b;
}

.vstrb-unit-wizard__validation ul {
    margin: 7px 0 0 18px;
    list-style: disc;
}

.vstrb-unit-wizard__validation.is-valid ul {
    display: none;
}

.vstrb-unit-wizard__steps button.has-error {
    border-color: #d63638;
    box-shadow: inset 0 0 0 1px #d63638;
}

.vstrb-unit-wizard__steps button.has-error span {
    color: #fff;
    background: #d63638;
}

.vstrb-unit-wizard-section {
    padding: 8px 4px 18px;
}

.vstrb-wizard-only {
    display: none;
}

.vstrb-wizard-active .vstrb-wizard-only {
    display: block;
}

#vstrb-wizard-apartment-name {
    max-width: 620px;
    margin-top: 4px;
    font-size: 16px;
}

.vstrb-wizard-time-grid,
.vstrb-wizard-stay-grid {
    display: grid;
    max-width: 760px;
    gap: 12px;
}

.vstrb-wizard-time-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.vstrb-wizard-stay-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
}

.vstrb-wizard-time-grid p,
.vstrb-wizard-stay-grid p {
    margin: 6px 0;
}

.vstrb-wizard-time-grid input,
.vstrb-wizard-stay-grid input {
    margin-top: 4px;
}

.vstrb-wizard-months {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 9px;
    max-width: 760px;
    margin: 18px 0 24px;
}

.vstrb-wizard-months label {
    position: relative;
    margin: 0;
}

.vstrb-wizard-months input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.vstrb-wizard-months span {
    display: block;
    padding: 11px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 5px;
    background: #fff;
    text-align: center;
    cursor: pointer;
}

.vstrb-wizard-months input:checked + span {
    border-color: #2271b1;
    color: #fff;
    background: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

.vstrb-wizard-months input:focus + span {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.vstrb-wizard-availability-advanced {
    max-width: 760px;
    margin-top: 10px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    background: #fff;
}

.vstrb-wizard-availability-advanced summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    cursor: pointer;
}

.vstrb-wizard-availability-advanced summary span {
    color: #646970;
    font-size: 12px;
    font-weight: 400;
}

.vstrb-wizard-availability-advanced__content {
    padding: 4px 16px 14px;
    border-top: 1px solid #dcdcde;
}

.vstrb-wizard-inline-add,
.vstrb-wizard-catalog-add {
    margin: 14px 0 20px;
    padding: 14px;
    border: 1px dashed #8c8f94;
    border-radius: 6px;
    background: #f6f7f7;
}

.vstrb-wizard-inline-add {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 18px;
}

.vstrb-wizard-inline-add > div:first-child span,
.vstrb-wizard-catalog-add > .description {
    display: block;
    margin: 3px 0 0;
    color: #646970;
}

.vstrb-wizard-inline-add__controls,
.vstrb-wizard-catalog-add__fields {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 8px;
}

.vstrb-wizard-inline-add__controls input {
    width: 76px;
    text-transform: uppercase;
}

.vstrb-wizard-inline-add .dashicons,
.vstrb-wizard-catalog-add .dashicons {
    width: 16px;
    height: 16px;
    margin-top: 4px;
    font-size: 16px;
}

.vstrb-wizard-catalog-add__fields label {
    display: grid;
    min-width: 150px;
    gap: 4px;
    font-weight: 600;
}

.vstrb-wizard-inline-error {
    flex-basis: 100%;
    margin: 0;
    color: #b32d2e;
}

.vstrb-wizard-new-items {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.vstrb-wizard-new-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px 5px 10px;
    border-radius: 999px;
    color: #0a4b78;
    background: #dff0fa;
}

.vstrb-wizard-new-item .button-link {
    color: #b32d2e;
    font-size: 18px;
    line-height: 1;
}

.vstrb-currency-pricing [data-vstrb-price-field][hidden] {
    display: none !important;
}

.vstrb-currency-pricing [data-vstrb-price-field]:not([hidden]) {
    grid-column: 1 / -1;
    max-width: 480px;
}

.vstrb-price-advanced {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid #dcdcde;
}

.vstrb-price-advanced summary {
    color: #50575e;
    cursor: pointer;
}

.vstrb-price-advanced p {
    max-width: 480px;
    margin-bottom: 4px;
}

.vstrb-basic-discount,
.vstrb-advanced-pricing-link {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px 24px;
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    background: #fff;
}

.vstrb-basic-discount > div:first-child,
.vstrb-advanced-pricing-link > div {
    flex: 1 1 300px;
}

.vstrb-basic-discount p,
.vstrb-advanced-pricing-link p {
    margin: 4px 0 0;
    color: #646970;
}

.vstrb-basic-discount__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 170px));
    gap: 10px;
}

.vstrb-basic-discount__fields label {
    display: grid;
    gap: 4px;
    font-weight: 600;
}

.vstrb-basic-discount__fields input {
    width: 100%;
}

.vstrb-advanced-pricing-link {
    border-color: #9ec5e5;
    background: #f0f7fc;
}

.vstrb-unit-wizard-section > h3:first-child {
    margin-bottom: 4px;
    font-size: 18px;
}

.vstrb-unit-wizard-section > .description {
    max-width: 760px;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 14px;
}

.vstrb-unit-wizard__actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px -12px -12px;
    padding: 14px 16px;
    border-top: 1px solid #c3c4c7;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -3px 12px rgba(0, 0, 0, .06);
}

.vstrb-unit-wizard__spacer {
    flex: 1;
}

.vstrb-wizard-active > .postbox-header .handle-actions {
    visibility: hidden;
}

.vstrb-wizard-advanced-active {
    border-color: #9ec5e5;
    box-shadow: 0 0 0 1px #9ec5e5;
}

.vstrb-wizard-advanced-active > .postbox-header {
    background: #f0f7fc;
}

@media (max-width: 960px) {
    .vstrb-unit-wizard__steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .vstrb-unit-wizard-launch,
    .vstrb-unit-wizard__top {
        align-items: stretch;
        flex-direction: column;
    }

    .vstrb-unit-wizard__steps {
        grid-template-columns: 1fr;
    }

    .vstrb-wizard-months {
        grid-template-columns: repeat(2, minmax(110px, 1fr));
    }

    .vstrb-wizard-availability-advanced summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .vstrb-basic-discount__fields {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .vstrb-wizard-time-grid,
    .vstrb-wizard-stay-grid {
        grid-template-columns: 1fr;
    }
}
