.order {
    display: grid;
    grid-template-columns: 440px 1fr;
    height: var(--safe-area);
}

.orderSidebar {
    border-right: 1px solid #DDD;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.orderSidebarServiceType {
    margin: 24px 32px;
    background-color: #FFF;
}

.orderSidebarContent {
    display: flex;
    flex: 1;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.orderSidebarTop {
    padding: 0 40px 0 40px;
}


.orderSidebarTopTitle {
    margin: 0;
    font-family: "Eames Century Modern", sans-serif;
    font-size: 34px;
    color: var(--color-green);
}

.orderSidebarTopText {
    font-size: 16px;
    color: #666;
    margin: 0 0 20px 0;
}

.orderSidebarTopInput {
    color: #000;
    font-weight: 500;
}

.orderSidebarTopInput .listboxLabelInput {
    border-color: #000;
}

.orderSidebarContentList {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 40px 32px 40px;
    margin: 32px 0 0 0;
    list-style: none;
    overflow-y: auto;
}

.orderSidebarContentListItem {
    border: 1px solid #DDD;
    padding: 20px;
    border-radius: 12px;
    background-color: #FFF;
    transition: border-color 0.3s ease;
}

.orderSidebarContentListItem.open {
    border: 1px solid var(--color-green);
}

.orderSidebarContentListItem:hover {
    border-color: var(--color-green);
}

.orderSidebarContentListItemContent {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.orderSidebarContentListItem.open .orderSidebarContentListItemContent {
    grid-template-rows: 1fr;
}

.orderSidebarContentListItemContentWrapper {
    overflow: hidden;
}

.orderSidebarContentListItemContentInner {
    border-top: 1px solid #DDD;
    margin-top: 16px;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.orderSidebarContentListItemButton {
    appearance: none;
    border: none;
    background: none;
    font-family: "Rebrand", sans-serif;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left;
}

.orderSidebarContentListItemButtonName {
    font-family: "Eames Century Modern", sans-serif;
    color: var(--color-green);
    font-size: 19px;
}

.orderSidebarContentListItemButtonAddress {
    color: #666;
    font-size: 14px;
    margin: 0 0 8px 0;
}

.orderSidebarContentListItemButtonHours {
    font-size: 16px;
    font-weight: 500;
}

.orderSidebarContentListItemContentPhone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
}

.orderSidebarContentListItemContentPhone .material-symbols-outlined {
    font-size: 18px;
    transform: translateY(1px);
    color: #666;
}

.orderSidebarContentListItemContentShortAddress {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    margin: 0 0 16px 0;
}

.orderSidebarContentListItemContentShortAddress .material-symbols-outlined {
    font-size: 18px;
    transform: translateY(1px);
    color: #666;
}

.orderSidebarContentListItemNoResults {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #666;
    font-size: 16px;
}

.orderSidebarContentListItemNoResultsButton {
    appearance: none;
    border: none;
    background: none;
    font-family: "Rebrand", sans-serif;
    cursor: pointer;
    color: var(--color-green);
    text-decoration: underline;
    font-size: 16px;
    display: block;
    text-align: center;
    margin: 16px auto 0 auto;
}


.orderMap {
    position: relative;
    overflow: hidden;
}

.orderMap.hidden {
    display: none;
}

.orderMapButtons {
    display: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 5;
    padding: 12px;
}

.orderMapSearchNearbyButton {
    width: 40px;
    height: 40px;
    border-radius: 100vh;
    padding: 0;
    border: 2px solid var(--color-surface);
}

.orderMapSearchNearbyButton .material-symbols-outlined {
    font-size: 20px;
    transform: translateY(1px);
}

.orderMapGoogleMap {
    height: 100%;
}

.orderMapLocationsSheetBackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.orderMapLocationsSheetBackdrop.active {
    opacity: 1;
    pointer-events: all;
}

.orderMapLocationsSheet {
    display: none;
    position: absolute;
    width: 100%;
    left: 0;
    bottom: 0;
    z-index: 100;
    transform: translateY(calc(100% - 174px));
    height: calc(var(--safe-area) - 10%);
    align-items: end;
}

.orderMapLocationsSheetPaper {
    border-radius: 12px 12px 0 0;
    background-color: #FFF;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2;
}

.orderMapLocationsSheetPaperDragBar {
    display: flex;
    align-items: center;
    height: 40px;
    width: 100%;
    -webkit-tap-highlight-color: transparent; /* Removes blue overlay on touch on Safari/iOS */
}

.orderMapLocationsSheetPaperDragBar::after {
    content: "";
    display: block;
    height: 3px;
    width: 30px;
    background-color: #ccc;
    border-radius: 50px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.orderMapLocationsSheetPaperServiceType {
    margin: 0 20px 16px 20px;
}

.orderMapLocationsSheetPaperServiceType label > span {
    font-size: 15px;
    white-space: nowrap;
    font-weight: 500;
}

.orderMapLocationsSheetPaperInput {
    margin: 0 20px 32px 20px;
}

.orderMapLocationsSheetPaperInput .listboxLabelInput:focus + .listboxLabelVisualLabel, .orderMapLocationsSheetPaperInput .listboxLabelInput:autofill + .listboxLabelVisualLabel, .orderMapLocationsSheetPaperInput .listboxLabelInput:not(:placeholder-shown) + .listboxLabelVisualLabel {
    top: 12px;
}

.orderMapLocationsSheetPaperInput .listboxLabelVisualLabel {
    font-size: 15px;
    font-weight: 500;
    left: 16px;
}

.orderMapLocationsSheetPaperInput .listboxLabelInput {
    font-size: 14px;
    padding: 8px 16px 17px 16px;
    background-color: #EEE;
    border-radius: 8px;
    font-weight: 500;
    border: none;
}

.orderMapLocationsSheetPaperInput .listboxLabelInput:focus {
    border-radius: 8px 8px 0 0;
    padding: 24px 16px 12px 16px;
}

.orderMapLocationsSheetPaperInput .listboxLabelInput:not(:placeholder-shown) {
    padding: 24px 16px 12px 16px;
}

.orderMapLocationsSheetPaperLocationsList {
    display: flex;
    gap: 12px;
    flex-direction: column;
    list-style: none;
    padding: 0 20px 32px 20px;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}

.orderMapLocationsSheetPaperLocationsListItem {
    border: 1px solid #DDD;
    padding: 16px 12px;
    border-radius: 12px;
    background-color: #FFF;
    transition: border-color 0.3s ease;
}

.orderMapLocationsSheetPaperLocationsListItem.open {
    border: 1px solid var(--color-green);
}

.orderMapLocationsSheetPaperLocationsListItem:hover {
    border-color: var(--color-green);
}

.orderMapLocationsSheetPaperLocationsListItemContent {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.orderMapLocationsSheetPaperLocationsListItem.open .orderMapLocationsSheetPaperLocationsListItemContent {
    grid-template-rows: 1fr;
}

.orderMapLocationsSheetPaperLocationsListItemContentWrapper {
    overflow: hidden;
}

.orderMapLocationsSheetPaperLocationsListItemContentInner {
    border-top: 1px solid #DDD;
    margin-top: 16px;
    padding-top: 16px;
    display: flex;
    flex-wrap: wrap;
    column-gap: 8px;
    row-gap: 12px;
}

.orderMapLocationsSheetPaperLocationsListItemButton {
    appearance: none;
    border: none;
    background: none;
    font-family: "Rebrand", sans-serif;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-align: left;
    color: #000;
}

.orderMapLocationsSheetPaperLocationsListItemButtonName {
    font-family: "Eames Century Modern", sans-serif;
    color: var(--color-green);
    font-size: 16px;
}

.orderMapLocationsSheetPaperLocationsListItemButtonAddress {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.orderMapLocationsSheetPaperLocationsListItemButtonHours {
    font-size: 14px;
    font-weight: 500;
}

.orderMapLocationsSheetPaperLocationsListItemContentPhone {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    flex: 1 0 calc(50% - 4px);
    justify-content: center;
    margin: 0 0 8px 0;
}

.orderMapLocationsSheetPaperLocationsListItemContentPhone .material-symbols-outlined {
    font-size: 18px;
    transform: translateY(1px);
    color: #666;
}

.orderMapLocationsSheetPaperLocationsListItemContentShortAddress {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    flex: 1 0 calc(50% - 4px);
    justify-content: center;
    margin: 0 0 8px 0;
}

.orderMapLocationsSheetPaperLocationsListItemContentShortAddress .material-symbols-outlined {
    font-size: 18px;
    transform: translateY(1px);
    color: #666;
}

.orderMapLocationsSheetPaperLocationsListItemContentInner button-component {
    flex: 1 0 calc(50% - 4px);
    white-space: nowrap;
}

.orderMapLocationsSheetPaperLocationsListNoResults {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #666;
    font-size: 16px;
}

.orderMapLocationsSheetPaperLocationsListNoResultsButton {
    appearance: none;
    border: none;
    background: none;
    font-family: "Rebrand", sans-serif;
    cursor: pointer;
    color: var(--color-green);
    text-decoration: underline;
    font-size: 16px;
    display: block;
    text-align: center;
    margin: 16px auto 0 auto;
}

@media (max-width: 767px) {
    .order {
        grid-template-columns: 1fr;
    }

    .orderSidebar {
        display: none;
    }

    .orderMapButtons {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .orderMapLocationsSheet {
        display: flex;
    }
}