/* 客户预约独立样式 v2.2.0 */
html,
body {
    max-width: 100%;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.page-appointment {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    background: #f4f7f5;
}

body.page-appointment * {
    box-sizing: border-box;
}

body.page-appointment .site-header,
body.page-appointment .site-footer,
body.page-appointment .mobile-nav {
    display: none !important;
}

body.page-appointment .site-main {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 760px !important;
    margin: 0 auto !important;
    padding: 0 10px 36px !important;
    overflow: visible !important;
}

body.page-appointment [hidden] {
    display: none !important;
}

.ap-page,
.ap-form,
.ap-step,
.ap-card,
.ap-field,
.ap-map,
.ap-contact,
.ap-optional-grid,
.ap-actions {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.ap-page {
    color: #17211c;
}

.ap-topbar {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    min-height: 52px;
    margin: 0 0 10px;
    padding: 6px 10px;
    border-bottom: 1px solid #e0e8e3;
    background: rgba(255, 255, 255, .96);
}

.ap-topbar h1 {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 21px;
    line-height: 1.25;
}

.ap-topbar__back {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #185f42;
    background: #edf7f2;
    font-size: 29px;
    line-height: 1;
}

.ap-topbar__spacer {
    width: 34px;
}

.ap-card {
    padding: 14px;
    border: 1px solid #dfe7e2;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(24, 58, 43, .06);
}

.ap-card--fields {
    display: grid;
    gap: 14px;
}

.ap-title {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.3;
}

.ap-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.ap-category {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 58px;
    cursor: pointer;
    align-items: center;
    gap: 7px;
    padding: 8px 9px;
    overflow: hidden;
    border: 1px solid #dce6e0;
    border-radius: 11px;
    background: #fbfdfc;
}

.ap-category input {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    inset: auto;
    opacity: 0;
    pointer-events: none;
}

.ap-category__icon {
    flex: 0 0 auto;
    font-size: 21px;
    line-height: 1;
}

.ap-category strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.ap-category.is-selected {
    border-color: #168b5a;
    color: #0d6842;
    background: #eaf7f1;
    box-shadow: inset 0 0 0 1px rgba(22, 139, 90, .12);
}

.ap-category.is-selected::after {
    content: "✓";
    position: absolute;
    top: 3px;
    right: 5px;
    color: #168b5a;
    font-size: 11px;
    font-weight: 900;
}

.ap-error {
    margin: 9px 0 0;
    color: #b93838;
    font-size: 13px;
    font-weight: 700;
}

.ap-selected {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.ap-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(105px, 145px) 28px;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 7px 8px;
    border-radius: 10px;
    background: #f6f9f7;
}

.ap-item__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.ap-item__quantity {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px;
    min-width: 0;
    margin: 0;
}

.ap-item__quantity input {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 5px 7px;
    border: 1px solid #d8e3dd;
    border-radius: 8px;
}

.ap-item__quantity em {
    color: #66736d;
    font-size: 12px;
    font-style: normal;
    white-space: nowrap;
}

.ap-item__remove {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #a23232;
    background: transparent;
    font-size: 22px;
    line-height: 1;
}

.ap-upload {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 10px;
    padding: 7px 12px;
    border: 1px dashed #9fc7b4;
    border-radius: 10px;
    color: #0d6842;
    background: #f5fbf8;
    font-size: 13px;
    font-weight: 750;
}

.ap-upload input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ap-upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.ap-upload-preview:empty {
    display: none;
}

.ap-upload-preview img {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
}

.ap-field {
    display: grid;
    gap: 6px;
    min-width: 0;
    margin: 0;
}

.ap-label {
    color: #25352d;
    font-size: 14px;
    font-weight: 750;
}

.ap-field input,
.ap-field select,
.ap-field textarea {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid #d8e3dd;
    border-radius: 10px;
    color: #17211c;
    background: #fff;
    box-shadow: none;
    font-size: 15px;
    line-height: 1.4;
}

.ap-field input,
.ap-field select {
    height: 42px;
}

.ap-field textarea {
    min-height: 66px;
    resize: vertical;
}

.ap-map {
    min-width: 0;
}

.ap-map__empty {
    display: flex;
    min-width: 0;
}

.ap-map__choose {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid #87bda3;
    border-radius: 10px;
    color: #0d6842;
    background: #edf8f3;
    font-weight: 800;
}

.ap-map__selected {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #a7cdbb;
    border-radius: 11px;
    background: #edf8f3;
}

.ap-map__check {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #168b5a;
    font-size: 13px;
    font-weight: 900;
}

.ap-map__result {
    min-width: 0;
}

.ap-map__result strong,
.ap-map__result small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ap-map__result strong {
    font-size: 14px;
}

.ap-map__result small {
    margin-top: 2px;
    color: #607069;
    font-size: 12px;
}

.ap-map__reselect {
    padding: 5px 6px;
    border: 0;
    color: #0d6842;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.ap-map__status {
    margin: 6px 0 0;
    color: #66736d;
    font-size: 12px;
    line-height: 1.4;
}

.ap-map__status[data-state="success"] {
    color: #0d6842;
}

.ap-map__status[data-state="warning"] {
    color: #8a5a00;
}

.ap-map__status[data-state="error"] {
    color: #a23232;
}

.ap-date-row,
.ap-slot-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    min-width: 0;
}

.ap-choice-button,
.ap-date-input,
.ap-slot-row span {
    min-width: 0;
    min-height: 40px;
    border: 1px solid #d8e3dd;
    border-radius: 10px;
    background: #fff;
}

.ap-choice-button {
    padding: 7px 5px;
    color: #25352d;
}

.ap-choice-button.is-selected {
    border-color: #168b5a;
    color: #0d6842;
    background: #eaf7f1;
    font-weight: 800;
}

.ap-date-input {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #25352d;
    font-size: 14px;
}

.ap-date-input input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

.ap-slot-row {
    margin-top: 7px;
}

.ap-slot-row label {
    min-width: 0;
    cursor: pointer;
}

.ap-slot-row input {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    inset: auto;
    opacity: 0;
    pointer-events: none;
}

.ap-slot-row span {
    display: grid;
    place-items: center;
    padding: 7px 4px;
    font-size: 14px;
}

.ap-slot-row input:checked + span {
    border-color: #168b5a;
    color: #0d6842;
    background: #eaf7f1;
    font-weight: 800;
}

.ap-contact {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 9px;
    min-width: 0;
}

.ap-more {
    min-width: 0;
    border: 1px solid #dfe7e2;
    border-radius: 11px;
    background: #fbfdfc;
}

.ap-more summary {
    cursor: pointer;
    padding: 10px 11px;
    font-size: 14px;
    font-weight: 750;
}

.ap-more__body {
    display: grid;
    gap: 11px;
    padding: 0 11px 11px;
}

.ap-customer-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.ap-customer-type label {
    cursor: pointer;
}

.ap-customer-type input {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    inset: auto;
    opacity: 0;
    pointer-events: none;
}

.ap-customer-type span {
    display: grid;
    min-height: 38px;
    place-items: center;
    border: 1px solid #d8e3dd;
    border-radius: 9px;
    background: #fff;
    font-size: 13px;
}

.ap-customer-type input:checked + span {
    border-color: #168b5a;
    color: #0d6842;
    background: #eaf7f1;
    font-weight: 800;
}

.ap-optional-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    min-width: 0;
}

.ap-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: #46564e;
    font-size: 13px;
    line-height: 1.4;
}

.ap-consent input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.ap-price-note {
    color: #78837d;
    font-size: 11px;
    text-align: center;
}

.ap-actions {
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    gap: 9px;
    margin-top: 11px;
}

.ap-actions--single {
    grid-template-columns: minmax(0, 1fr);
}

.ap-button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 850;
}

.ap-button--primary {
    color: #fff;
    background: #168b5a;
}

.ap-button--light {
    color: #185f42;
    border-color: #cbded4;
    background: #fff;
}

.ap-button:disabled,
.ap-map__choose:disabled {
    cursor: wait;
    opacity: .65;
}

.ap-map-modal {
    position: fixed;
    z-index: 5000;
    inset: 0;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 8px;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
    background: rgba(7, 22, 16, .72);
}

.ap-map-modal[hidden] {
    display: none !important;
}

.ap-map-dialog {
    width: 100%;
    min-width: 0;
    max-width: 760px;
    height: calc(100dvh - 16px);
    max-height: 760px;
    display: grid;
    grid-template-rows: 48px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
}

.ap-map-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 7px 9px;
    border-bottom: 1px solid #e0e8e3;
}

.ap-map-dialog__header strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
}

.ap-map-dialog__header > div {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.ap-map-dialog__header button {
    min-height: 32px;
    padding: 4px 9px;
    border: 0;
    border-radius: 8px;
    color: #185f42;
    background: #edf7f2;
    font-size: 13px;
    font-weight: 750;
}

.ap-map-dialog iframe {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    touch-action: auto;
}

html.ap-modal-open,
body.ap-modal-open {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    overscroll-behavior: none;
}

body.ap-modal-open {
    position: fixed;
    right: 0;
    left: 0;
}

.ap-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

@media (max-width: 420px) {
    body.page-appointment .site-main {
        padding-right: 7px !important;
        padding-left: 7px !important;
    }

    .ap-topbar {
        padding-right: 7px;
        padding-left: 7px;
    }

    .ap-card {
        padding: 12px;
    }

    .ap-category-grid {
        gap: 6px;
    }

    .ap-category {
        min-height: 54px;
        gap: 5px;
        padding: 7px;
    }

    .ap-category__icon {
        font-size: 19px;
    }

    .ap-category strong {
        font-size: 13px;
    }

    .ap-item {
        grid-template-columns: minmax(0, 1fr) minmax(92px, 120px) 26px;
        gap: 6px;
    }

    .ap-contact {
        grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
        gap: 7px;
    }
}

@media (max-width: 340px) {
    .ap-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ap-contact,
    .ap-optional-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ap-map__selected {
        grid-template-columns: 26px minmax(0, 1fr);
    }

    .ap-map__reselect {
        grid-column: 1 / -1;
        justify-self: end;
    }
}

/* v2.4.0 隐私复选框与表单尾部间距修复 */
.ap-consent {
    min-height: 22px;
    align-items: flex-start;
    gap: 8px;
}

.ap-consent input[type="checkbox"] {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    flex: 0 0 18px;
    border-radius: 4px;
    accent-color: #168b5a;
}

.ap-consent span {
    display: block;
    min-width: 0;
    margin: 0;
    line-height: 1.45;
}

.ap-price-note {
    display: block;
    margin: -5px 0 0;
    line-height: 1.35;
}

.ap-card--fields {
    padding-bottom: 13px;
}

.ap-actions {
    margin-bottom: 0;
}

/* v2.4.3 地图选点：桌面大弹窗，手机近全屏底部地图页 */
.ap-map-modal {
    padding: 16px;
    place-items: center;
    overflow: hidden;
    overscroll-behavior: contain;
    touch-action: auto !important;
    background: rgba(8, 35, 26, .58);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.ap-map-dialog {
    width: min(860px, 100%);
    max-width: 860px;
    height: min(720px, calc(100dvh - 32px));
    max-height: none;
    grid-template-rows: 52px minmax(0, 1fr);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(5, 24, 17, .30);
}

.ap-map-dialog__header {
    min-height: 52px;
    padding: 7px 9px 7px 16px;
}

.ap-map-dialog__header strong {
    font-size: 17px;
}

.ap-map-dialog__header > div {
    display: none;
}

.ap-map-dialog__close {
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    margin: 0;
    padding: 0 !important;
    border: 0;
    border-radius: 50% !important;
    color: #165d42 !important;
    background: #edf7f2 !important;
    font-size: 27px !important;
    font-weight: 500 !important;
    line-height: 1;
}

.ap-map-dialog__close span {
    display: block;
    transform: translateY(-1px);
}

.ap-map-dialog__close:active {
    transform: scale(.96);
}

.ap-map-dialog iframe {
    width: 100%;
    height: 100%;
    min-height: 0;
    touch-action: auto !important;
}

html.ap-modal-open,
body.ap-modal-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

@media (max-width: 700px) {
    .ap-map-modal {
        align-items: end;
        justify-items: stretch;
        padding:
            max(8px, env(safe-area-inset-top))
            0
            0;
        background: rgba(8, 35, 26, .52);
    }

    .ap-map-dialog {
        width: 100%;
        max-width: none;
        height: min(92dvh, calc(100dvh - 8px));
        max-height: none;
        margin: 0 0 env(safe-area-inset-bottom);
        grid-template-rows: 54px minmax(0, 1fr);
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -18px 54px rgba(5, 24, 17, .28);
    }

    .ap-map-dialog__header {
        min-height: 54px;
        padding: 8px 10px 8px 18px;
    }

    .ap-map-dialog__header strong {
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .ap-map-dialog {
        height: min(94dvh, calc(100dvh - 6px));
        border-radius: 18px 18px 0 0;
    }

    .ap-map-dialog__header {
        padding-left: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ap-map-dialog__close:active {
        transform: none;
    }
}

/* v2.4.4 手机真实可视窗口兼容 */
.ap-map-modal {
    -webkit-backdrop-filter: blur(1px);
    backdrop-filter: blur(1px);
}

@media (max-width: 700px) {
    .ap-map-modal {
        inset: auto 0 auto 0;
        top: var(--ap-map-viewport-top, 0px);
        width: 100%;
        height: 100vh;
        height: var(--ap-map-viewport-height, 100vh);
        min-height: 0;
        max-height: none;
    }

    .ap-map-dialog {
        height: 100%;
        max-height: 100%;
    }

    @supports (height: 100dvh) {
        .ap-map-modal {
            height: var(
                --ap-map-viewport-height,
                100dvh
            );
        }
    }
}

@media (max-width: 360px) {
    .ap-map-dialog {
        height: 100%;
        max-height: 100%;
    }
}

/* v2.4.5 自动确认上门范围 */
.ap-region-status {
    margin: -4px 0 2px;
    padding: 8px 10px;
    border: 1px solid #dce9e3;
    border-radius: 10px;
    color: #50645b;
    background: #f5f9f7;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

.ap-region-status[hidden] {
    display: none !important;
}

.ap-region-status[data-state="loading"] {
    color: #42685a;
    border-color: #d7ebe2;
    background: #eff8f4;
}

.ap-region-status[data-state="error"] {
    color: #a13c34;
    border-color: #f0cbc7;
    background: #fff3f1;
}

/* v2.6.0 客户可视固定范围与业务员动态服务圈 */
.ap-service-map-shell {
    position: relative;
    min-height: 0;
    display: grid;
    grid-template-rows:
        auto minmax(0, 1fr) auto auto;
    overflow: hidden;
    background: #eef4f1;
}

.ap-service-map-search {
    position: relative;
    z-index: 6;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    padding: 10px;
    border-bottom: 1px solid #dce6e0;
    background: rgba(255, 255, 255, .97);
}

.ap-service-map-search input {
    min-width: 0;
    height: 40px;
    padding: 8px 11px;
    border: 1px solid #cedbd4;
    border-radius: 10px;
}

.ap-service-map-search button,
.ap-service-map-confirm,
.ap-service-map-locate {
    min-height: 40px;
    padding: 8px 13px;
    border: 0;
    border-radius: 10px;
    font-weight: 800;
}

.ap-service-map-search button,
.ap-service-map-confirm {
    color: #fff;
    background: #168b5a;
}

.ap-service-map-confirm:disabled {
    cursor: not-allowed;
    opacity: .46;
}

.ap-service-map-locate {
    color: #145f41;
    border: 1px solid #b7d4c6;
    background: #edf8f3;
}

.ap-service-map-results {
    position: absolute;
    z-index: 12;
    top: 60px;
    right: 10px;
    left: 10px;
    max-height: min(42vh, 360px);
    overflow: auto;
    border: 1px solid #d9e4de;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(15, 52, 36, .18);
}

.ap-service-map-results button {
    width: 100%;
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid #edf1ef;
    text-align: left;
    background: #fff;
}

.ap-service-map-results strong,
.ap-service-map-results small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ap-service-map-results small {
    color: #69776f;
}

.ap-service-map-canvas {
    position: relative;
    min-height: 320px;
}

.ap-service-map-loading {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    place-items: center;
    color: #567067;
    background: #edf4f0;
    font-weight: 750;
}

.ap-service-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 7px 12px;
    border-top: 1px solid #dce6e0;
    background: rgba(255, 255, 255, .96);
    font-size: 11px;
    font-weight: 750;
}

.ap-service-map-legend span::before {
    content: "";
    width: 9px;
    height: 9px;
    display: inline-block;
    margin-right: 5px;
    border-radius: 3px;
    background: #168b5a;
}

.ap-service-map-legend [data-legend="administrative"]::before {
    background: #d09a27;
}

.ap-service-map-legend [data-legend="worker"]::before {
    border-radius: 50%;
    background: #e17825;
}

.ap-service-map-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding:
        10px
        12px
        calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid #dce6e0;
    background: #fff;
}

.ap-service-map-result {
    min-width: 0;
    display: grid;
}

.ap-service-map-result strong,
.ap-service-map-result small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ap-service-map-result small {
    color: #68766f;
    font-size: 12px;
}

.ap-service-map-result[data-state="success"] strong {
    color: #0d6842;
}

.ap-service-map-result[data-state="error"] strong {
    color: #a23232;
}

.ap-service-map-actions {
    display: flex;
    gap: 7px;
}

@media (max-width: 700px) {
    .ap-map-dialog {
        grid-template-rows: 54px minmax(0, 1fr);
    }

    .ap-service-map-canvas {
        min-height: 0;
    }

    .ap-service-map-footer {
        grid-template-columns: 1fr;
    }

    .ap-service-map-actions {
        display: grid;
        grid-template-columns: .7fr 1.3fr;
    }
}

@media (max-width: 360px) {
    .ap-service-map-search {
        grid-template-columns: minmax(0, 1fr) 58px;
    }

    .ap-service-map-search button {
        padding-right: 8px;
        padding-left: 8px;
    }
}

