﻿body:has(.resthome-page),
body:has(.empty-page) {
    margin: 0;
    background: #f3f7f6;
}

.empty-page h1,
.empty-page p {
    font-size: 17px;
}

.resthome-page {
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: 88px;
    background:
        radial-gradient(ellipse 80% 50% at 8% -5%, rgba(15, 118, 110, 0.14), transparent 55%),
        radial-gradient(ellipse 70% 45% at 100% 0%, rgba(194, 65, 12, 0.10), transparent 50%),
        linear-gradient(180deg, #f3f7f6 0%, #eef1f5 100%);
    font-family: 'Microsoft JhengHei', Arial, sans-serif;
    font-size: 17px;
    color: #243447;
    min-height: 100vh;
}

.resthome-hero {
    position: relative;
    width: min(476px, 100%);
    margin-inline: auto;
    height: auto;
    overflow: hidden;
    background: linear-gradient(135deg, #134e4a 0%, #0f766e 55%, #5eead4 100%);
}

.resthome-slides {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.resthome-slides picture {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 7 / 5;
    overflow: hidden;
    scroll-snap-align: start;
}

.resthome-slides img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #f4f6f8;
}

.resthome-nav,
.rh-copy,
.rh-item i,
.rh-contact i,
.rh-contact-box summary i,
.resthome-act i {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resthome-nav .rh-ico {
    width: 20px;
    height: 20px;
}

.resthome-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.88);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

.resthome-thumbs {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 10px 14px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.resthome-thumbs::-webkit-scrollbar {
    display: none;
}

.resthome-thumb {
    position: relative;
    flex: 0 0 70px;
    width: 70px;
    height: auto;
    aspect-ratio: 7 / 5;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
}

.resthome-thumb img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.resthome-thumb.is-on {
    border-color: #0f766e;
}

.resthome-title {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.resthome-title-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.resthome-title h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    color: #0f766e;
}

.resthome-web,
.resthome-open,
.resthome-share-pill {
    flex-shrink: 0;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.resthome-web {
    background: #0f766e;
    color: #fff;
    text-decoration: none;
}

.resthome-open.is-on {
    background: #dcfce7;
    color: #15803d;
}

.resthome-open.is-off {
    background: #fee2e2;
    color: #b91c1c;
}

.resthome-title-acts {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    margin-left: auto;
}

.resthome-title-acts .resthome-act {
    min-width: 52px;
    font-size: 13px;
}

.resthome-title-acts .is-web i {
    color: #1d4ed8;
    background: #dbeafe;
}

.resthome-title-acts .resthome-share i {
    color: #1d4ed8;
    background: #dbeafe;
}

.resthome-body {
    padding: 16px 14px 8px;
}

.resthome-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin-bottom: 14px;
}

.resthome-tags span {
    flex: 1 1 0;
    min-width: 0;
    padding: 4px 2px;
    border-radius: 999px;
    background: #ffedd5;
    color: #c2410c;
    font-size: clamp(13px, 3.5vw, 17px);
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.rh-block {
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 14px;
    border: 1px solid transparent;
}

.rh-teal {
    background: #e6f4f2;
    border-color: #b7e0da;
}

.rh-teal i {
    color: #0f766e;
    background: #ffffff;
}

.rh-contact-box {
    margin-bottom: 10px;
}

.rh-contact-box summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    list-style: none;
    cursor: pointer;
    background: #fff4ed;
    border: 1px solid #fdd6c0;
    border-radius: 14px;
    color: #9a3412;
    font-size: 17px;
    font-weight: 800;
}

.rh-contact-box summary::-webkit-details-marker {
    display: none;
}

.rh-contact-box summary i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #c2410c;
    background: #ffffff;
}

.rh-ico {
    display: block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    -webkit-mask: var(--ico) center / contain no-repeat;
    mask: var(--ico) center / contain no-repeat;
}

.rh-ico-back { --ico: url("../img/resthome/back.png"); }
.rh-ico-next { --ico: url("../img/resthome/next.png"); }
.rh-ico-nav { --ico: url("../img/resthome/nav.png"); }
.rh-ico-share { --ico: url("../img/resthome/share.png"); }
.rh-ico-phone { --ico: url("../img/resthome/phone.png"); }
.rh-ico-mobile { --ico: url("../img/resthome/mobile.png"); }
.rh-ico-line { --ico: url("../img/resthome/line.png"); }
.rh-ico-web { --ico: url("../img/resthome/web.png"); }
.rh-ico-clock { --ico: url("../img/resthome/clock.png"); }
.rh-ico-park { --ico: url("../img/resthome/park.png"); }
.rh-ico-note { --ico: url("../img/resthome/note.png"); }
.rh-ico-copy { --ico: url("../img/resthome/copy.png"); }
.rh-ico-ok { --ico: url("../img/resthome/ok.png"); }
.rh-ico-home { --ico: url("../img/resthome/home.png"); }
.rh-ico-cart { --ico: url("../img/resthome/cart.png"); }
.rh-ico-order { --ico: url("../img/resthome/order.png"); }
.rh-ico-set { --ico: url("../img/resthome/set.png"); }

.app-tab .rh-ico {
    width: 22px;
    height: 22px;
}

.rh-contact-box summary span {
    flex: 1;
}

.rh-contact-box summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #c2410c;
    border-bottom: 2px solid #c2410c;
    transform: rotate(45deg);
    flex-shrink: 0;
}

.rh-contact-box[open] summary::after {
    transform: rotate(225deg);
    margin-top: 4px;
}

.rh-contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0 0;
}

.rh-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    border-radius: 18px;
    color: inherit;
    text-decoration: none;
}

.rh-contact i {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
}

.rh-contact .rh-ico {
    width: 22px;
    height: 22px;
}

.rh-contact > a,
.rh-contact > .rh-contact-text {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.rh-contact span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.rh-copy {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #ffffff;
    color: inherit;
    cursor: pointer;
}

.rh-copy .rh-copy-ok {
    display: none;
}

.rh-copy.is-ok .rh-copy-icon {
    display: none;
}

.rh-copy.is-ok .rh-copy-ok {
    display: block;
}

.rh-contact small {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.rh-contact strong {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    word-break: break-all;
}

.rh-contact-m { background: #ffe4cc; color: #9a3412; }
.rh-contact-m i { color: #ea580c; }
.rh-contact-t { background: #d9f1ff; color: #075985; }
.rh-contact-t i { color: #0284c7; }
.rh-contact-l { background: #d8f8e4; color: #166534; }
.rh-contact-l i { color: #16a34a; }

.rh-slate {
    background: #eef2f7;
    border-color: #d5dde8;
}

.rh-slate i {
    color: #334155;
    background: #ffffff;
}

.rh-cream {
    padding-top: 2px;
    padding-bottom: 2px;
    background: #fffbeb;
    border-color: #fde68a;
}

.rh-cream .rh-item {
    align-items: center;
    padding-top: 6px;
    padding-bottom: 6px;
}

.rh-cream .rh-item p {
    line-height: 1.3;
}

.rh-cream i {
    color: #b45309;
    background: #ffffff;
}

.rh-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
}

.rh-item + .rh-item {
    border-top: 1px solid rgba(255, 255, 255, 0.7);
}

.rh-item i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.rh-item small {
    display: block;
    margin-bottom: 2px;
    color: #6b7280;
    font-size: 17px;
}

.rh-item p {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    word-break: break-word;
}

.rh-item a {
    color: inherit;
    text-decoration: none;
}

.rh-addr {
    align-items: center;
}

.rh-addr p {
    flex: 1;
    min-width: 0;
    text-align: left;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.rh-map {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 12px;
    background: #ffffff;
    color: #0f766e;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.rh-teal .rh-copy {
    color: #0f766e;
}

.rh-note {
    font-weight: 500 !important;
    white-space: pre-wrap;
}

.rh-slate > .rh-item {
    align-items: center;
}

.rh-slate > .rh-item > div {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    min-width: 0;
}

.rh-slate > .rh-item small {
    margin-bottom: 0;
    font-size: 22px;
    font-weight: 800;
}

.rh-slate .rh-note {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 3px;
    border-radius: 6px;
    background: #fee2e2;
    color: #b91c1c;
    font-size: 17px;
    font-weight: 700 !important;
    line-height: 1.45;
}

.rh-week {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #e2e8f0;
    font-size: 17px;
}

.rh-week em {
    flex: 0 0 3.4em;
    font-style: normal;
    font-weight: 700;
    color: inherit;
}

.rh-week div {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    min-width: 0;
}

.rh-week b {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.rh-week[data-week="每天"] { background: #ccfbf1; }
.rh-week[data-week="星期一"] { background: #bae6fd; }
.rh-week[data-week="星期二"] { background: #ddd6fe; }
.rh-week[data-week="星期三"] { background: #bbf7d0; }
.rh-week[data-week="星期四"] { background: #fed7aa; }
.rh-week[data-week="星期五"] { background: #fbcfe8; }
.rh-week[data-week="星期六"] { background: #c7d2fe; }
.rh-week[data-week="星期日"] { background: #fecaca; }

.rh-week.is-today[data-week="每天"] { background: #5eead4; }
.rh-week.is-today[data-week="星期一"] { background: #7dd3fc; }
.rh-week.is-today[data-week="星期二"] { background: #c4b5fd; }
.rh-week.is-today[data-week="星期三"] { background: #86efac; }
.rh-week.is-today[data-week="星期四"] { background: #fdba74; }
.rh-week.is-today[data-week="星期五"] { background: #f9a8d4; }
.rh-week.is-today[data-week="星期六"] { background: #a5b4fc; }
.rh-week.is-today[data-week="星期日"] { background: #fca5a5; }

.resthome-profile,
.resthome-profile-main {
    display: contents;
}

.resthome-split {
    display: contents;
}

.resthome-pay {
    display: none;
}

.resthome-actions {
    display: none;
}

.resthome-act {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 64px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #3d4654;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.resthome-act i {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #0f766e;
    background: #ccfbf1;
}

.resthome-actions .resthome-share i {
    color: #1d4ed8;
    background: #dbeafe;
}

.resthome-act .rh-ico {
    width: 22px;
    height: 22px;
}

.resthome-nav,
.resthome-mark,
.resthome-contacts,
.resthome-addrline,
.resthome-act-desk {
    display: none;
}

@media (min-width: 700px) {
    body:has(.resthome-page),
    body:has(.empty-page) {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: 100vh;
        margin: 0;
        background: #f4f8fb;
    }

    .empty-page {
        width: min(720px, calc(100% - 48px));
        max-width: none;
        margin: 48px auto;
        padding: 72px 32px;
    }

    .resthome-page {
        width: min(1180px, calc(100% - 48px));
        max-width: none;
        margin: 22px auto 48px;
        padding: 0;
        min-height: 0;
        display: block;
        background: transparent;
    }

    .resthome-hero {
        width: 100%;
        height: auto;
        overflow: visible;
        background: transparent;
    }

    .resthome-hero:not(:has(.resthome-slides)) {
        display: none;
    }

    .resthome-page:has(.resthome-slides > picture:only-child) .resthome-hero {
        width: min(476px, 100%);
    }

    .resthome-page:has(.resthome-slides > picture:only-child) .resthome-slides picture {
        --slide: 100%;
    }

    .resthome-count,
    .resthome-web,
    .resthome-share-pill,
    .resthome-title-acts,
    .rh-teal,
    .rh-contact-box {
        display: none;
    }

    .resthome-slides {
        height: auto;
        gap: 16px;
        background: transparent;
        scrollbar-width: none;
    }

    .resthome-slides::-webkit-scrollbar {
        display: none;
    }

    .resthome-slides picture {
        --slide: calc((100% - 32px) / 3);
        flex: 0 0 var(--slide);
        width: var(--slide);
        min-width: var(--slide);
        max-width: var(--slide);
        height: auto;
        aspect-ratio: 7 / 5;
        border-radius: 14px;
    }

    .resthome-slides img {
        border-radius: 14px;
        object-fit: cover;
    }

    .resthome-slides:has(picture:nth-child(2):last-child) picture {
        --slide: calc((100% - 16px) / 2);
    }

    .resthome-nav {
        position: absolute;
        top: 50%;
        z-index: 2;
        display: flex;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #fff;
        color: #0f766e;
        box-shadow: 0 2px 10px rgba(20, 30, 50, 0.16);
        cursor: pointer;
        transform: translateY(-50%);
    }

    .resthome-prev {
        left: 12px;
    }

    .resthome-next {
        right: 12px;
    }

    .resthome-nav:hover {
        background: #0f766e;
        color: #fff;
    }

    .resthome-thumbs {
        gap: 12px;
        padding: 14px 0 0;
    }

    .resthome-thumb {
        flex-basis: 98px;
        width: 98px;
        height: auto;
        aspect-ratio: 7 / 5;
        border-radius: 10px;
    }

    .resthome-thumb.is-on {
        box-shadow: 0 0 0 3px #99f6e4;
    }

    .resthome-body {
        padding: 8px 0 0;
        background: transparent;
    }

    .resthome-profile {
        display: grid;
        grid-template-columns: 84px minmax(0, 1fr) auto;
        column-gap: 18px;
        align-items: center;
        margin-top: 22px;
        padding-bottom: 18px;
        border-bottom: 1px solid #eceff3;
    }

    .resthome-profile:not(:has(.resthome-mark)) {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .resthome-page:has(.resthome-slides > picture:only-child) .resthome-profile {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .resthome-mark {
        display: block;
        width: 84px;
        height: auto;
        aspect-ratio: 7 / 5;
        object-fit: cover;
        border-radius: 12px;
        background: #ccfbf1;
        box-shadow: 0 0 0 3px #99f6e4;
    }

    .resthome-profile-main {
        display: flex;
        flex-direction: column;
        gap: 8px;
        min-width: 0;
    }

    .resthome-title {
        margin: 0;
        gap: 10px;
    }

    .resthome-title h1 {
        font-size: 32px;
    }

    .resthome-open {
        padding: 3px 12px;
        font-size: 15px;
    }

    .resthome-tags {
        flex-wrap: wrap;
        gap: 8px;
        margin: 0;
    }

    .resthome-tags span {
        flex: 0 1 auto;
        padding: 3px 10px;
        background: #ffedd5;
        color: #c2410c;
        font-size: 16px;
    }

    .resthome-actions {
        display: flex;
    }

    .resthome-contacts {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px 22px;
        margin: 0;
        font-size: 17px;
    }

    .resthome-contacts a,
    .resthome-contacts > span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #1c2430;
        text-decoration: none;
    }

    .resthome-contacts i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
    }

    .resthome-contacts .rh-ico {
        width: 22px;
        height: 22px;
    }

    .resthome-contacts .is-mobile i { color: #c2410c; }
    .resthome-contacts .is-tel i { color: #0369a1; }

    .resthome-contacts a:hover strong {
        text-decoration: underline;
    }

    .resthome-addrline {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        max-width: 100%;
    }

    .resthome-addrline > a:first-child {
        min-width: 0;
        overflow: hidden;
        color: #0f766e;
        font-size: 17px;
        font-weight: 600;
        line-height: 1.5;
        text-overflow: ellipsis;
        text-decoration: none;
        white-space: nowrap;
    }

    .resthome-addrline > a:first-child:hover {
        color: #2b7fff;
    }

    .resthome-mapbtn {
        flex-shrink: 0;
        padding: 3px 12px;
        border-radius: 999px;
        background: #dbeafe;
        color: #1d4ed8;
        font-size: 15px;
        font-weight: 800;
        line-height: 1.5;
        text-decoration: none;
    }

    .resthome-mapbtn:hover {
        background: #bfdbfe;
    }

    .resthome-actions {
        display: flex;
        align-items: flex-start;
        gap: 6px;
    }

    .resthome-act {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        min-width: 72px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #3d4654;
        font-family: inherit;
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
    }

    .resthome-act i {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        color: #0f766e;
        background: #ccfbf1;
    }

    .resthome-actions .is-web i,
    .resthome-actions .resthome-share i {
        color: #1d4ed8;
        background: #dbeafe;
    }

    .resthome-act .rh-ico {
        width: 26px;
        height: 26px;
    }

    .resthome-act:hover {
        color: #2b7fff;
    }

    .resthome-act:hover i {
        filter: brightness(0.96);
    }

    .rh-slate > .rh-item i {
        color: #0f766e;
    background: #ccfbf1;
}

    .rh-slate {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin-top: 18px;
        padding: 8px 16px 12px;
        background: #fff;
        border: 1px solid #e5eef6;
        border-radius: 16px;
    }

    .rh-slate > .rh-item {
        padding: 8px 4px 10px;
        border-bottom: 1px solid #e8f0f6;
    }

    .rh-item small {
        color: #0f766e;
        font-size: 22px;
        font-weight: 800;
    }

    .rh-slate .rh-week {
        gap: 16px;
        margin: 0;
        padding: 8px 4px;
        border: 0;
        border-radius: 10px;
        background: transparent;
    }

    .rh-slate .rh-week:nth-child(even) {
        background: #f7fbff;
    }

    .rh-slate .rh-week.is-today {
        background: #d6e9f8;
    }

    .rh-week em {
        flex: 0 0 88px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 36px;
        border-radius: 8px;
        background: #ccfbf1;
        color: #0f766e;
        font-size: 17px;
    }

    .rh-slate .rh-week[data-week="星期一"] em { background: #e0f2fe; color: #0369a1; }
    .rh-slate .rh-week[data-week="星期二"] em { background: #ede9fe; color: #6d28d9; }
    .rh-slate .rh-week[data-week="星期三"] em { background: #dcfce7; color: #15803d; }
    .rh-slate .rh-week[data-week="星期四"] em { background: #ffedd5; color: #c2410c; }
    .rh-slate .rh-week[data-week="星期五"] em { background: #fce7f3; color: #be185d; }
    .rh-slate .rh-week[data-week="星期六"] em { background: #e0e7ff; color: #4338ca; }
    .rh-slate .rh-week[data-week="星期日"] em { background: #fee2e2; color: #b91c1c; }

    .rh-week div {
        align-items: center;
        justify-content: flex-start;
        column-gap: 28px;
        row-gap: 8px;
        overflow: hidden;
    }

    .rh-week b {
        position: relative;
        padding: 0;
        border-radius: 0;
        background: transparent;
        font-size: 17px;
    }

    .rh-week b + b::before {
        content: "";
        position: absolute;
        top: 50%;
        left: -15px;
        width: 1px;
        height: 14px;
        margin: 0;
        background: #cbd5e1;
        transform: translateY(-50%);
    }

    .rh-cream {
        margin-top: 18px;
        padding: 4px 16px;
        background: #fff7ed;
        border: 1px solid #fed7aa;
        border-radius: 14px;
    }

    .rh-cream i {
        color: #c2410c;
        background: #ffedd5;
    }

    .rh-cream .rh-item {
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .rh-item p,
    .rh-note {
        font-size: 18px;
    }

    .resthome-split {
        display: grid;
        grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.7fr);
        gap: 16px;
        align-items: stretch;
        margin-top: 18px;
    }

    .resthome-split .rh-slate {
        margin-top: 0;
    }

    .resthome-pay {
        display: flex;
        flex-direction: column;
        padding: 6px 8px 10px;
        background: #fff;
        border: 1px solid #e5eef6;
        border-radius: 16px;
    }

    .resthome-pay section {
        padding: 14px 12px 12px;
    }

    .resthome-pay h2 {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 0 0 10px;
        color: #0f766e;
        font-size: 20px;
        font-weight: 800;
    }

    .resthome-pay h2 em {
        padding: 2px 8px;
        border-radius: 999px;
        background: #dcfce7;
        color: #15803d;
        font-size: 14px;
        font-style: normal;
        font-weight: 800;
    }

    .resthome-pay ol {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin: 0;
        padding: 0;
        list-style: none;
        counter-reset: pay;
    }

    .resthome-pay li {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 10px;
        border-radius: 10px;
        background: #f7fbff;
        color: #243447;
        font-size: 17px;
        font-weight: 700;
        counter-increment: pay;
    }

    .resthome-pay li::before {
        content: counter(pay) ".";
        width: 1.4em;
        color: #0f766e;
        font-weight: 800;
        flex-shrink: 0;
    }
}

@media (min-width: 1040px) {
    .resthome-page:has(.resthome-slides > picture:only-child) {
        display: grid;
        grid-template-columns: minmax(320px, 476px) minmax(0, 1fr);
        column-gap: 28px;
        align-items: center;
    }

    .resthome-page:has(.resthome-slides > picture:only-child) .resthome-hero {
        width: 100%;
    }

    .resthome-page:has(.resthome-slides > picture:only-child) .resthome-body {
        display: contents;
    }

    .resthome-page:has(.resthome-slides > picture:only-child) .resthome-profile {
        align-items: flex-start;
        margin-top: 0;
        padding-bottom: 0;
        border-bottom: 0;
    }

    .resthome-page:has(.resthome-slides > picture:only-child) .resthome-profile-main {
        width: 100%;
        min-width: 0;
    }

    .resthome-page:has(.resthome-slides > picture:only-child) .resthome-addrline > a:first-child {
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
    }

    .resthome-page:has(.resthome-slides > picture:only-child) .resthome-body > :not(.resthome-profile) {
        grid-column: 1 / -1;
    }
}
