.ccmm-menu {
    --ccmm-text: #111111;
    --ccmm-muted: #4b4b4b;
    --ccmm-line: #d8d8d8;
    --ccmm-bg: #ffffff;
    --ccmm-chip-bg: #f4f4f4;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    color: var(--ccmm-text);
    background: var(--ccmm-bg);
    font-family: inherit;
    line-height: 1.45;
    box-sizing: border-box;
}

.ccmm-menu *, .ccmm-menu *::before, .ccmm-menu *::after {
    box-sizing: border-box;
}

.ccmm-category-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    overflow-x: visible;
    padding: 10px 2px 14px;
    margin: 0 0 22px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
}

.ccmm-category-nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--ccmm-chip-bg);
    color: var(--ccmm-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.ccmm-category-nav a:focus,
.ccmm-category-nav a:hover {
    text-decoration: none;
    outline: 1px solid #999;
    outline-offset: 1px;
}

.ccmm-menu-notice {
    max-width: 820px;
    margin: 2px 0 32px;
    padding: 14px 16px;
    border-left: 3px solid #c6a15b;
    border-radius: 4px;
    background: #faf9f6;
    color: var(--ccmm-muted);
}

.ccmm-menu-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
}

.ccmm-category {
    scroll-margin-top: 84px;
    margin: 0 0 44px;
}

.ccmm-category-header {
    padding: 0 0 20px;
    border-bottom: 1px solid var(--ccmm-line);
}

.ccmm-category-header h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 36px);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ccmm-text);
}

.ccmm-category-header p {
    max-width: 760px;
    margin: 0;
    color: var(--ccmm-text);
    font-size: clamp(16px, 2.3vw, 20px);
    line-height: 1.58;
}

.ccmm-items {
    width: 100%;
}

.ccmm-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    column-gap: 18px;
    row-gap: 8px;
    align-items: start;
    padding: 24px 0;
    border-bottom: 1px solid var(--ccmm-line);
}

.ccmm-item-image-wrap {
    width: 112px;
    height: 112px;
    overflow: hidden;
    border-radius: 2px;
    background: #f2f2f2;
}

.ccmm-item-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ccmm-item-main {
    min-width: 0;
}

.ccmm-item-title {
    display: flex;
    gap: 0.2em;
    flex-wrap: wrap;
    margin: 0;
    color: var(--ccmm-text);
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 1.12;
    font-weight: 500;
    letter-spacing: -0.015em;
}

.ccmm-item-number {
    flex: 0 0 auto;
}

.ccmm-item-description {
    margin: 8px 0 0;
    color: var(--ccmm-muted);
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.52;
}

.ccmm-item-price {
    padding-top: 3px;
    color: #2a2a2a;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.2;
    font-weight: 500;
    white-space: nowrap;
}

.ccmm-admin-warning {
    padding: 12px 14px;
    border: 1px solid #d63638;
    background: #fff5f5;
    color: #7a1f1f;
}

.ccmm-qr-shortcode {
    display: flex;
    justify-content: center;
    width: 100%;
}

.ccmm-qr-shortcode img {
    display: block;
    max-width: 100%;
    height: auto;
}

@media (max-width: 700px) {
    .ccmm-menu {
        padding: 0 18px;
    }

    .ccmm-category-nav {
        position: static;
        flex-wrap: wrap;
        overflow: visible;
        gap: 8px;
        margin: 0 0 24px;
        padding: 8px 0 12px;
        background: transparent;
        backdrop-filter: none;
    }

    .ccmm-category-nav a {
        flex: 0 1 auto;
        max-width: 100%;
        min-height: 36px;
        padding: 7px 12px;
        white-space: normal;
        text-align: center;
        line-height: 1.2;
    }

    .ccmm-menu-notice {
        margin: 0 0 28px;
        padding: 12px 14px;
    }

    .ccmm-menu-notice p {
        font-size: 13px;
        line-height: 1.55;
    }

    .ccmm-category {
        scroll-margin-top: 18px;
    }

    .ccmm-category {
        margin-bottom: 34px;
    }

    .ccmm-category-header {
        padding-bottom: 18px;
    }

    .ccmm-item {
        grid-template-columns: 96px minmax(0, 1fr) auto;
        column-gap: 13px;
        padding: 22px 0;
    }

    .ccmm-item-image-wrap {
        width: 96px;
        height: 96px;
    }
}

@media (max-width: 480px) {
    .ccmm-menu {
        padding: 0 16px;
    }

    .ccmm-category-nav {
        gap: 7px;
        margin-bottom: 22px;
        padding-top: 6px;
        padding-bottom: 10px;
    }

    .ccmm-category-header h2 {
        font-size: 26px;
    }

    .ccmm-category-header p {
        font-size: 16px;
        line-height: 1.5;
    }

    .ccmm-item {
        grid-template-columns: 80px minmax(0, 1fr) auto;
        column-gap: 12px;
        padding: 20px 0;
    }

    .ccmm-item-image-wrap {
        width: 80px;
        height: 80px;
    }

    .ccmm-item-title {
        font-size: 18px;
        line-height: 1.22;
    }

    .ccmm-item-description {
        margin-top: 7px;
        font-size: 15px;
        line-height: 1.45;
    }

    .ccmm-item-price {
        font-size: 16px;
    }

    .ccmm-category-nav a {
        min-height: 34px;
        padding: 7px 11px;
        font-size: 13px;
        line-height: 1.18;
    }
}

@media (max-width: 390px) {
    .ccmm-item {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .ccmm-item-image-wrap {
        width: 72px;
        height: 72px;
    }

    .ccmm-item-price {
        grid-column: 2;
        justify-self: start;
        padding-top: 0;
        margin-top: -2px;
        font-size: 16px;
    }
}

/* Floating back-to-categories button */
.ccmm-top-button {
    position: fixed;
    right: 20px;
    bottom: 92px;
    z-index: 9995;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.92);
    color: #ffffff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    -webkit-tap-highlight-color: transparent;
}

.ccmm-top-button.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.ccmm-top-button:hover,
.ccmm-top-button:focus-visible {
    color: #ffffff;
    text-decoration: none;
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

.ccmm-top-button-icon {
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .ccmm-top-button {
        right: 16px;
        bottom: 96px;
        min-height: 42px;
        padding: 9px 13px;
        font-size: 13px;
    }
}

@media (max-width: 390px) {
    .ccmm-top-button {
        right: 12px;
        bottom: 90px;
        min-height: 40px;
        padding: 8px 11px;
        font-size: 12px;
    }

    .ccmm-top-button-icon {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ccmm-top-button {
        transition: none;
    }
}


/* Click-to-enlarge dish images
 * v1.2.5: aggressively isolate the thumbnail button from theme/Elementor
 * button styles. Some themes apply !important background, padding and img
 * sizing to native <button> elements, which can make the thumbnail appear
 * as a tiny icon inside a coloured square. The reset below keeps the exact
 * same thumbnail dimensions as a non-clickable menu image.
 */
.ccmm-item-image-wrap .ccmm-item-image-button {
    all: unset !important;
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-align: left !important;
    cursor: zoom-in !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-tap-highlight-color: transparent;
}

.ccmm-item-image-wrap .ccmm-item-image-button:hover,
.ccmm-item-image-wrap .ccmm-item-image-button:active,
.ccmm-item-image-wrap .ccmm-item-image-button:focus {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit !important;
}

.ccmm-item-image-wrap .ccmm-item-image-button:focus-visible {
    outline: 3px solid rgba(17, 17, 17, 0.72) !important;
    outline-offset: -3px !important;
}

.ccmm-item-image-wrap .ccmm-item-image-button > img.ccmm-item-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: inherit !important;
    object-fit: cover !important;
    object-position: center !important;
    box-shadow: none !important;
    transition: transform 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .ccmm-item-image-wrap .ccmm-item-image-button:hover > img.ccmm-item-image {
        transform: scale(1.035);
    }
}

body.ccmm-lightbox-open {
    overflow: hidden;
}

.ccmm-image-lightbox,
.ccmm-image-lightbox * {
    box-sizing: border-box;
}

.ccmm-image-lightbox[hidden] {
    display: none !important;
}

.ccmm-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(0, 0, 0, 0.74);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}

.ccmm-image-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.ccmm-image-lightbox-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: min(88vw, 1100px);
    max-height: 86vh;
    outline: none;
}

.ccmm-image-lightbox-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    margin: 0 0 10px;
    padding: 8px 13px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.ccmm-image-lightbox-close:hover,
.ccmm-image-lightbox-close:focus-visible {
    background: #f1f1f1;
    color: #111111;
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.ccmm-image-lightbox-close-icon {
    display: inline-block;
    font-size: 22px;
    font-weight: 400;
    line-height: 0.8;
}

.ccmm-image-lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: calc(86vh - 54px);
}

.ccmm-image-lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(86vh - 54px);
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.42);
}

@media (max-width: 700px) {
    .ccmm-image-lightbox {
        padding: 20px 16px;
    }

    .ccmm-image-lightbox-dialog {
        width: 90vw;
        max-height: 82vh;
    }

    .ccmm-image-lightbox-stage,
    .ccmm-image-lightbox-image {
        max-height: calc(82vh - 52px);
    }

    .ccmm-image-lightbox-close {
        min-height: 40px;
        margin-bottom: 9px;
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 390px) {
    .ccmm-image-lightbox {
        padding: 18px 12px;
    }

    .ccmm-image-lightbox-dialog {
        width: 92vw;
        max-height: 80vh;
    }

    .ccmm-image-lightbox-stage,
    .ccmm-image-lightbox-image {
        max-height: calc(80vh - 50px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ccmm-item-image-wrap .ccmm-item-image-button > img.ccmm-item-image,
    .ccmm-image-lightbox {
        transition: none;
    }
}
