:root {
    --pgfm-red: #9b3528;
    --pgfm-dark: #2d2b2c;
    --pgfm-muted: #6b6260;
    --pgfm-paper: #f8f6f3;
    --pgfm-border: rgba(155, 53, 40, .22);
    --pgfm-gold: #c9a35d;
}

.pgfm-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 22px;
    justify-content: center;
}

.pgfm-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 10px 16px;
    border: 1px solid var(--pgfm-border);
    border-radius: 999px;
    text-decoration: none !important;
    color: var(--pgfm-red);
    background: #fff;
    font-weight: 700;
    letter-spacing: .04em;
}

.pgfm-tab:hover,
.pgfm-tab-active {
    color: #fff;
    background: var(--pgfm-red);
}

.pgfm-display-wrap,
.pgfm-front-editor {
    max-width: 980px;
    margin: 0 auto;
}

.pgfm-menu-card {
    position: relative;
    overflow: hidden;
    max-width: 760px;
    min-height: 980px;
    margin: 24px auto;
    padding: 74px 62px 54px;
    color: var(--pgfm-dark);
    background: var(--pgfm-paper);
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 18px 45px rgba(0,0,0,.12);
    text-align: center;
    isolation: isolate;
}

.pgfm-paper-texture {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .72;
    background:
        radial-gradient(circle at 20% 20%, rgba(0,0,0,.035) 0 1px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(155,53,40,.04) 0 1px, transparent 3px),
        linear-gradient(135deg, rgba(255,255,255,.8), rgba(225,218,211,.35));
    background-size: 13px 13px, 21px 21px, auto;
}

.pgfm-room-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border: 1px solid var(--pgfm-border);
    border-radius: 999px;
    color: var(--pgfm-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.pgfm-title {
    margin: 0 0 18px;
    color: var(--pgfm-red);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 36px;
    font-weight: 400;
    line-height: .9;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.pgfm-room-note {
    margin: -4px auto 26px;
    color: var(--pgfm-muted);
    font-size: 16px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.pgfm-section {
    margin: 24px auto 0;
    max-width: 500px;
}

.pgfm-section h2 {
    margin: 0 0 12px;
    color: var(--pgfm-red);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pgfm-section h3 {
    margin: 0 0 4px;
    color: var(--pgfm-dark);
    font-size: clamp(17px, 2.4vw, 23px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: .08em;
}

.pgfm-section p {
    margin: 0;
    color: var(--pgfm-dark);
    font-size: clamp(16px, 2.2vw, 22px);
    line-height: 1.35;
    letter-spacing: .09em;
}

.pgfm-empty {
    opacity: .52;
    font-style: italic;
}

.pgfm-mark {
    width: 84px;
    height: 84px;
    margin: 44px auto 16px;
    position: relative;
    border: 3px solid var(--pgfm-red);
    border-radius: 50%;
}

.pgfm-mark:before,
.pgfm-mark:after,
.pgfm-mark span:before,
.pgfm-mark span:after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    background: var(--pgfm-red);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.pgfm-mark:before { top: -28px; left: 27px; }
.pgfm-mark:after { bottom: -28px; left: 27px; transform: rotate(180deg); }
.pgfm-mark span:before { left: -28px; top: 27px; transform: rotate(-90deg); }
.pgfm-mark span:after { right: -28px; top: 27px; transform: rotate(90deg); }

.pgfm-footer {
    color: var(--pgfm-red);
}

.pgfm-logo-text {
    font-family: 'Brush Script MT', 'Segoe Script', cursive;
    font-size: clamp(44px, 8vw, 72px);
    line-height: .95;
}

.pgfm-logo-subtext {
    margin-left: 180px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 14px;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.pgfm-editor-form {
    max-width: 920px;
    margin: 18px auto 34px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.pgfm-editor-grid,
.pgfm-table-count-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.pgfm-editor-section {
    padding: 16px 0;
    border-top: 1px solid #eee;
}

.pgfm-editor-section h2 {
    margin-bottom: 10px;
    color: var(--pgfm-red);
    font-family: Georgia, 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.pgfm-editor-form input[type="text"],
.pgfm-editor-form textarea,
.pgfm-qr-settings-form input[type="url"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}


.pgfm-rich-editor-wrap {
    margin-top: 10px;
}

.pgfm-rich-editor-wrap .wp-editor-wrap {
    max-width: 100%;
}

.pgfm-description p,
.pgfm-description ul,
.pgfm-description ol {
    margin: 0 0 8px;
}

.pgfm-description ul,
.pgfm-description ol {
    display: inline-block;
    text-align: left;
    padding-left: 22px;
}

.pgfm-description strong,
.pgfm-description b {
    font-weight: 800;
}

.pgfm-description em,
.pgfm-description i {
    font-style: italic;
}

.pgfm-message {
    max-width: 720px;
    margin: 20px auto;
    padding: 16px 18px;
    border-left: 4px solid var(--pgfm-red);
    background: #fff8f6;
}

.pgfm-print-toolbar {
    margin: 18px 0 26px;
}

.pgfm-qr-print-area {
    max-width: 1200px;
}

.pgfm-qr-print-head {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 0 0 24px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #fff, #f8f1ec);
    border: 0;
    border-radius: 18px;
}

.pgfm-qr-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pgfm-qr-brand-mark,
.pgfm-qr-card-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #c15a4b, var(--pgfm-red));
    color: #fff;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: .06em;
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.22);
}

.pgfm-qr-brand-text,
.pgfm-qr-card-brand-text {
    display: flex;
    flex-direction: column;
}

.pgfm-qr-brand-text strong,
.pgfm-qr-card-brand-text span {
    color: var(--pgfm-red);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px;
    line-height: 1;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pgfm-qr-brand-text span,
.pgfm-qr-card-brand-text small {
    margin-top: 4px;
    color: var(--pgfm-muted);
    letter-spacing: .12em;
    text-transform: uppercase;
    font-size: 12px;
}

.pgfm-qr-print-note {
    max-width: none;
    color: var(--pgfm-muted);
    text-align: center;
    font-size: 14px;
    line-height: 1.45;
}

.pgfm-qr-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 22px;
    margin: 24px 0;
}

.pgfm-qr-grid-print {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.pgfm-qr-card {
    break-inside: avoid;
    page-break-inside: avoid;
}

.pgfm-qr-card-inner {
    position: relative;
    height: 100%;
    padding: 22px 20px 18px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,243,239,.98)),
        linear-gradient(135deg, rgba(201,163,93,.08), rgba(155,53,40,.05));
    border: 0;
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    overflow: hidden;
}

.pgfm-qr-card-inner:before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--pgfm-red), var(--pgfm-gold));
}

.pgfm-qr-card-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.pgfm-qr-card-brand-mark {
    width: 42px;
    height: 42px;
    font-size: 18px;
}

.pgfm-qr-card-brand-text span {
    font-size: 16px;
}

.pgfm-qr-room-pill {
    display: inline-block;
    margin-bottom: 8px;
    padding: 6px 12px;
    border: 1px solid #e7d5ce;
    border-radius: 999px;
    color: var(--pgfm-red);
    background: rgba(255,255,255,.75);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.pgfm-qr-card h2 {
    margin: 0 0 16px;
    padding: 0 10px;
    color: var(--pgfm-red);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 26px;
    line-height: .92;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-wrap: balance;
}

.pgfm-qr-image-wrap {
    padding: 14px;
    margin: 0 auto 10px;
    max-width: 236px;
    background: #fff;
    border-radius: 20px;
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}

.pgfm-qr-card img {
    width: 100%;
    max-width: 208px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.pgfm-qr-card p {
    margin: 6px 0 8px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pgfm-dark);
}

.pgfm-qr-card small {
    display: block;
    overflow-wrap: anywhere;
    color: #666;
    font-size: 11px;
    line-height: 1.35;
}

@page {
    size: Letter;
    margin: 0.35in;
}

@media print {
    .pgfm-tabs,
    .pgfm-front-editor > h2,
    .pgfm-front-editor > h3,
    .pgfm-editor-form,
    
.pgfm-rich-editor-wrap {
    margin-top: 10px;
}

.pgfm-rich-editor-wrap .wp-editor-wrap {
    max-width: 100%;
}

.pgfm-description p,
.pgfm-description ul,
.pgfm-description ol {
    margin: 0 0 8px;
}

.pgfm-description ul,
.pgfm-description ol {
    display: inline-block;
    text-align: left;
    padding-left: 22px;
}

.pgfm-description strong,
.pgfm-description b {
    font-weight: 800;
}

.pgfm-description em,
.pgfm-description i {
    font-style: italic;
}

.pgfm-message {
        display: none !important;
    }

    .pgfm-menu-card {
        box-shadow: none;
        border: 0;
        margin: 0 auto;
        min-height: 100vh;
    }

    #wpadminbar,
    #adminmenumain,
    #screen-meta,
    #screen-meta-links,
    .notice,
    .update-nag,
    .wrap > h1,
    .wrap > p,
    .wrap > form,
    .wrap > hr,
    .pgfm-print-toolbar {
        display: none !important;
    }

    html,
    body {
        background: #fff !important;
    }

    #wpcontent,
    #wpbody-content {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    .pgfm-qr-print-area {
        max-width: none;
        margin: 0;
    }

    .pgfm-qr-print-head {
        margin: 0 0 10mm;
        padding: 0 0 6mm;
        border: 0;
        border-bottom: 0;
        border-radius: 0;
        background: none;
    }

    .pgfm-qr-grid,
    .pgfm-qr-grid-print {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25in;
        margin: 0;
    }

    .pgfm-qr-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .pgfm-qr-card-inner {
        min-height: 4.65in;
        box-shadow: none;
        border: 0;
    }

    .pgfm-qr-image-wrap {
    }

    .pgfm-qr-card img {
        max-width: 175px;
    }
}

@media (max-width: 760px) {
    .pgfm-menu-card {
        min-height: auto;
        padding: 48px 24px 42px;
    }

    .pgfm-editor-grid,
    .pgfm-table-count-grid,
    .pgfm-qr-grid,
    .pgfm-qr-grid-print {
        grid-template-columns: 1fr;
    }

    .pgfm-logo-subtext {
        margin-left: 0;
    }

    .pgfm-qr-print-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .pgfm-qr-print-note {
        text-align: left;
        max-width: none;
    }
}


.pgfm-extra-dessert {
    margin-top: 18px;
}

.pgfm-optional-dessert {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed #ddd;
}

.pgfm-optional-dessert h3 {
    margin: 0 0 12px;
    color: var(--pgfm-red);
}


.pgfm-real-logo-footer {
    margin-top: 34px;
}

.pgfm-real-logo {
    display: block;
    width: min(420px, 88%);
    height: auto;
    margin: 0 auto;
}


.pgfm-qr-logo {
    display: block;
    width: 150px;
    max-width: 72%;
    height: auto;
    margin: 4px auto 12px;
}


/* PG Food Menu v1.4.0 - public menu polish */
.pgfm-display-wrap {
    max-width: 1040px;
    padding: 18px;
}

.pgfm-menu-card {
    max-width: 720px;
    min-height: auto;
    margin: 20px auto 34px;
    padding: 54px 54px 44px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top center, rgba(155, 53, 40, .055), transparent 34%),
        linear-gradient(180deg, #fffdfb 0%, #f7f1ec 100%);
    border: 1px solid rgba(155, 53, 40, .12);
    box-shadow: 0 22px 60px rgba(45, 43, 44, .16);
}

.pgfm-menu-card:before {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(155, 53, 40, .16);
    border-radius: 22px;
    pointer-events: none;
}

.pgfm-menu-card:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 220px;
    height: 6px;
    transform: translateX(-50%);
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, rgba(155, 53, 40, .95), rgba(201, 163, 93, .95));
}

.pgfm-paper-texture {
    opacity: .48;
}

.pgfm-room-badge {
    margin-bottom: 18px;
    padding: 7px 18px;
    background: rgba(255,255,255,.72);
    font-size: 11px;
    letter-spacing: .22em;
}

.pgfm-title {
    font-size: 36px;
    margin-bottom: 30px;
    letter-spacing: .18em;
    line-height: 1;
}

.pgfm-room-note {
    margin: -18px auto 30px;
    font-size: 12px;
    letter-spacing: .18em;
}

.pgfm-section {
    position: relative;
    margin: 20px auto 0;
    max-width: 520px;
    padding-top: 8px;
}

.pgfm-section + .pgfm-section {
    margin-top: 24px;
}

.pgfm-section h2 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    font-size: 24px;
    letter-spacing: .12em;
}

.pgfm-section h2:before,
.pgfm-section h2:after {
    content: '';
    display: block;
    width: 34px;
    height: 1px;
    background: rgba(155, 53, 40, .35);
}

.pgfm-section h3 {
    margin: 2px 0 6px;
    font-size: clamp(16px, 2.2vw, 21px);
    letter-spacing: .06em;
}

.pgfm-description,
.pgfm-section p {
    color: var(--pgfm-dark);
    font-size: clamp(15px, 2vw, 19px);
    line-height: 1.45;
    letter-spacing: .055em;
}

.pgfm-description p {
    margin: 0 0 8px;
}

.pgfm-description p:last-child {
    margin-bottom: 0;
}

.pgfm-extra-dessert {
    margin-top: 16px;
    padding-top: 14px;
}

.pgfm-real-logo-footer {
    margin-top: 34px;
    padding-top: 12px;
}

.pgfm-real-logo {
    width: min(360px, 78%);
    filter: drop-shadow(0 10px 14px rgba(0,0,0,.08));
}

@media (max-width: 680px) {
    .pgfm-display-wrap {
        padding: 4px;
    }

    .pgfm-menu-card {
        padding: 42px 22px 34px;
        border-radius: 22px;
    }

    .pgfm-menu-card:before {
        inset: 9px;
        border-radius: 17px;
    }

    .pgfm-title {
        font-size: 34px;
        letter-spacing: .14em;
    }

    .pgfm-section h2 {
        font-size: 22px;
        gap: 8px;
    }

    .pgfm-section h2:before,
    .pgfm-section h2:after {
        width: 20px;
    }

    .pgfm-real-logo {
        width: min(310px, 88%);
    }
}


/* PG Food Menu v1.4.1 - compact responsive public menu */
.pgfm-display-wrap {
    max-width: 980px;
    padding: 12px;
}

.pgfm-menu-card {
    max-width: 760px;
    margin: 14px auto 22px;
    padding: 42px 42px 32px;
}

.pgfm-menu-card:before {
    inset: 10px;
}

.pgfm-menu-card:after {
    width: 180px;
    height: 5px;
}

.pgfm-room-badge {
    margin-bottom: 12px;
    padding: 6px 14px;
}

.pgfm-title {
    margin-bottom: 20px;
}

.pgfm-room-note {
    margin: -10px auto 18px;
}

.pgfm-section {
    margin: 12px auto 0;
    max-width: 560px;
    padding-top: 2px;
}

.pgfm-section + .pgfm-section {
    margin-top: 14px;
}

.pgfm-section h2 {
    margin: 0 0 7px;
    gap: 10px;
}

.pgfm-section h2:before,
.pgfm-section h2:after {
    width: 24px;
}

.pgfm-section h3 {
    margin: 0 0 4px;
    font-weight: 700;
}

.pgfm-description,
.pgfm-section p {
    font-size: clamp(14px, 1.4vw, 17px);
    line-height: 1.32;
    letter-spacing: .04em;
}

.pgfm-description p {
    margin: 0 0 5px;
}

.pgfm-extra-dessert {
    margin-top: 10px;
    padding-top: 8px;
}

.pgfm-real-logo-footer {
    margin-top: 18px;
    padding-top: 6px;
}

.pgfm-real-logo {
    width: min(320px, 74%);
}

@media (max-width: 900px) {
    .pgfm-menu-card {
        max-width: 720px;
        padding: 38px 28px 28px;
    }

    .pgfm-title {
        font-size: 34px;
    }

    .pgfm-section h2 {
        font-size: 23px;
    }
}

@media (max-width: 680px) {
    .pgfm-display-wrap {
        padding: 6px;
    }

    .pgfm-menu-card {
        max-width: 100%;
        margin: 8px auto 18px;
        padding: 30px 16px 24px;
        border-radius: 18px;
    }

    .pgfm-menu-card:before {
        inset: 7px;
        border-radius: 13px;
    }

    .pgfm-menu-card:after {
        width: 132px;
        height: 4px;
    }

    .pgfm-room-badge {
        margin-bottom: 10px;
        font-size: 10px;
        letter-spacing: .18em;
    }

    .pgfm-title {
        font-size: 30px;
        margin-bottom: 16px;
        letter-spacing: .12em;
    }

    .pgfm-room-note {
        margin: -6px auto 14px;
        font-size: 11px;
    }

    .pgfm-section {
        max-width: 100%;
        margin-top: 10px;
    }

    .pgfm-section + .pgfm-section {
        margin-top: 12px;
    }

    .pgfm-section h2 {
        font-size: 21px;
        gap: 6px;
        margin-bottom: 6px;
    }

    .pgfm-section h2:before,
    .pgfm-section h2:after {
        width: 14px;
    }

    .pgfm-section h3 {
        font-size: 16px;
    }

    .pgfm-description,
    .pgfm-section p {
        font-size: 14px;
        line-height: 1.28;
        letter-spacing: .03em;
    }

    .pgfm-real-logo-footer {
        margin-top: 14px;
    }

    .pgfm-real-logo {
        width: min(250px, 78%);
    }
}


/* PG Food Menu v1.4.2 - exact front menu heading sizes */
.pgfm-menu-card .pgfm-title {
    font-size: 36px !important;
    line-height: 1.05;
}

.pgfm-menu-card .pgfm-section h2 {
    font-size: 24px !important;
    line-height: 1.05;
}


/* PG Food Menu v1.4.3 - hide empty menu title cleanly */
.pgfm-menu-card .pgfm-room-badge + .pgfm-section {
    margin-top: 8px;
}


/* PG Food Menu v1.4.7 - QR/PDF polish */
.pgfm-qr-grid-print {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 18px;
}

.pgfm-qr-card-inner {
    min-height: 100%;
    padding: 18px 18px 16px;
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,243,239,.98)),
        linear-gradient(135deg, rgba(201,163,93,.06), rgba(155,53,40,.03));
}

.pgfm-qr-logo {
    width: 118px;
    max-width: 62%;
    margin: 2px auto 10px;
}

.pgfm-qr-room-pill {
    margin-bottom: 7px;
    padding: 5px 11px;
    font-size: 11px;
    letter-spacing: .16em;
}

.pgfm-qr-card h2 {
    margin: 0 0 12px;
    padding: 0 8px;
    font-size: 22px;
    line-height: 1;
    letter-spacing: .06em;
}

.pgfm-qr-image-wrap {
    padding: 12px;
    margin: 0 auto 10px;
    max-width: 208px;
    border-radius: 18px;
}

.pgfm-qr-card img {
    max-width: 184px;
}

.pgfm-qr-copy {
    margin-top: 8px;
}

.pgfm-qr-scan-text {
    margin: 0 0 8px;
    color: var(--pgfm-red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.25;
    text-transform: uppercase;
}

.pgfm-qr-url {
    display: block;
    overflow-wrap: anywhere;
    color: #666;
    font-size: 10px;
    line-height: 1.35;
}

@media print {
    .pgfm-qr-grid-print {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.2in;
    }

    .pgfm-qr-card-inner {
        min-height: 4.72in;
        padding: 16px 16px 14px;
    }

    .pgfm-qr-logo {
        width: 110px;
        margin-bottom: 8px;
    }

    .pgfm-qr-card h2 {
        font-size: 21px;
        margin-bottom: 10px;
    }

    .pgfm-qr-image-wrap {
        max-width: 196px;
        margin-bottom: 8px;
    }

    .pgfm-qr-card img {
        max-width: 172px;
    }

    .pgfm-qr-scan-text {
        font-size: 12px;
        letter-spacing: .12em;
    }
}

@media (max-width: 900px) {
    .pgfm-qr-grid-print {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 680px) {
    .pgfm-qr-grid-print {
        grid-template-columns: 1fr;
    }
}


/* PG Food Menu v1.4.8 - logo centered inside QR code */
.pgfm-qr-image-wrap {
    position: relative;
}

.pgfm-qr-center-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    background: rgba(255,255,255,.96);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.pgfm-qr-center-logo img {
    width: 100%;
    height: auto;
    display: block;
}

@media print {
    .pgfm-qr-center-logo {
        width: 30px;
        height: 30px;
        padding: 4px;
    }
}


/* PG Food Menu v1.5.0 - saved menu templates */
.pgfm-template-box,
.pgfm-save-template-box,
.pgfm-template-delete-box,
.pgfm-template-save-form {
    max-width: 920px;
    margin: 16px auto;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e5ddd8;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

.pgfm-template-box h2,
.pgfm-save-template-box h2,
.pgfm-template-delete-box h2 {
    margin-top: 0;
    color: var(--pgfm-red);
}

.pgfm-template-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

.pgfm-template-row select,
.pgfm-template-delete-box select {
    min-width: 260px;
}


/* PG Food Menu v1.5.4 - multiple menu items per section */
.pgfm-extra-menu-item {
    margin-top: 18px;
}

.pgfm-extra-menu-item h3 {
    color: var(--pgfm-red);
    font-size: 18px;
}

.pgfm-menu-item + .pgfm-menu-item {
    margin-top: 14px;
}


/* PG Food Menu v1.5.5 - collapsible optional menu items */
.pgfm-collapsible-item {
    margin-top: 16px;
    padding: 0;
    border: 1px solid #e5ddd8;
    border-radius: 12px;
    background: #fffaf7;
    overflow: hidden;
}

.pgfm-collapsible-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    color: var(--pgfm-red);
    font-weight: 700;
    user-select: none;
}

.pgfm-collapsible-item summary::-webkit-details-marker {
    display: none;
}

.pgfm-collapsible-item summary:after {
    content: '+';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(155, 53, 40, .1);
    color: var(--pgfm-red);
    font-size: 18px;
    line-height: 1;
}

.pgfm-collapsible-item[open] summary:after {
    content: '−';
}

.pgfm-collapsible-content {
    padding: 0 14px 14px;
}

.pgfm-collapsible-item .pgfm-rich-editor-wrap {
    margin-top: 8px;
}

.pgfm-extra-menu-item h3,
.pgfm-extra-menu-item .pgfm-extra-item-title {
    margin: 0;
    color: var(--pgfm-red);
    font-size: 16px;
}


/* PG Food Menu v1.5.6 - Hacienda Puerta Grande theme alignment */
.pgfm-display-wrap {
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: 10px;
    box-sizing: border-box;
}

.pgfm-display-wrap .pgfm-tabs {
    max-width: 800px;
    margin-inline: auto;
}

.pgfm-menu-card {
    max-width: 800px;
    width: 100%;
    margin: 24px auto 40px;
    box-sizing: border-box;
}

.pgfm-menu-card,
.pgfm-qr-card-inner,
.pgfm-editor-form,
.pgfm-template-box,
.pgfm-save-template-box,
.pgfm-template-delete-box,
.pgfm-template-save-form {
    font-family: inherit;
}

.pgfm-menu-card a,
.pgfm-display-wrap a {
    text-decoration: underline;
}

.pgfm-menu-card .pgfm-title,
.pgfm-menu-card .pgfm-section h2,
.pgfm-room-badge,
.pgfm-room-note {
    text-wrap: balance;
}

.pgfm-menu-card .pgfm-description,
.pgfm-menu-card .pgfm-section p {
    overflow-wrap: anywhere;
}

.pgfm-menu-card img,
.pgfm-real-logo,
.pgfm-qr-logo,
.pgfm-qr-center-logo img {
    max-width: 100%;
    height: auto;
}

/* Follow the same common container breakpoints as the theme */
@media (min-width: 576px) {
    .pgfm-display-wrap {
        max-width: 500px;
    }
}

@media (min-width: 768px) {
    .pgfm-display-wrap {
        max-width: 600px;
    }
}

@media (min-width: 992px) {
    .pgfm-display-wrap {
        max-width: 800px;
    }
}

@media (min-width: 1200px) {
    .pgfm-display-wrap {
        max-width: 1140px;
    }

    .pgfm-menu-card {
        max-width: 800px;
    }
}

@media (max-width: 575px) {
    .pgfm-display-wrap {
        padding-inline: 10px;
    }

    .pgfm-menu-card {
        margin-block: 14px 28px;
    }
}

/* Theme-safe WordPress alignment helpers for plugin content */
.pgfm-display-wrap .alignright {
    float: right;
    margin-left: 1rem;
}

.pgfm-display-wrap .alignleft {
    float: left;
    margin-right: 1rem;
}

.pgfm-display-wrap .aligncenter {
    clear: both;
    display: block;
    margin-inline: auto;
}

.pgfm-display-wrap .screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    height: 1px;
    overflow: hidden;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}


/* PG Food Menu v1.5.7 - QR color settings */
.pgfm-qr-color-settings {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
    max-width: 920px;
    padding: 14px;
    margin: 8px 0 18px;
    background: #fff;
    border: 1px solid #e5ddd8;
    border-radius: 14px;
}

.pgfm-qr-color-settings input[type="color"] {
    width: 64px;
    height: 38px;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    vertical-align: middle;
}

@media (max-width: 760px) {
    .pgfm-qr-color-settings {
        grid-template-columns: 1fr;
    }
}


/* PG Food Menu v1.5.8 - Worker Notes / To-Do */
.pgfm-note-add-box,
.pgfm-notes-list {
    max-width: 920px;
}

.pgfm-note-add-box {
    margin: 18px 0;
    padding: 18px;
    background: #fff;
    border: 1px solid #e5ddd8;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

.pgfm-notes-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.pgfm-note-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: #fff;
    border-left: 5px solid var(--pgfm-red);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

.pgfm-note-done {
    opacity: .65;
    border-left-color: #7a8b68;
}

.pgfm-note-done .pgfm-note-text {
    text-decoration: line-through;
}

.pgfm-note-text {
    font-size: 15px;
    line-height: 1.45;
}

.pgfm-note-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    color: #666;
    font-size: 12px;
}

.pgfm-note-meta span {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f7f1ec;
}

.pgfm-note-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.pgfm-note-actions form {
    margin: 0;
}

@media (max-width: 760px) {
    .pgfm-note-item {
        grid-template-columns: 1fr;
    }

    .pgfm-note-actions {
        justify-content: flex-start;
    }
}


/* PG Food Menu v1.5.9 - green completed notes */
.pgfm-note-done {
    opacity: 1;
    border-left-color: #2e8b57;
    background: #f0fff6;
}

.pgfm-note-done .pgfm-note-text {
    color: #236b43;
    text-decoration: line-through;
}

.pgfm-note-done .pgfm-note-meta span {
    background: #dff5e8;
    color: #236b43;
}


/* PG Food Menu v1.6.0 - fixed note actions and stronger completed color */
.pgfm-note-item.pgfm-note-done {
    opacity: 1 !important;
    border-left-color: #1f9d55 !important;
    background: #ecfff4 !important;
}

.pgfm-note-item.pgfm-note-done .pgfm-note-text {
    color: #166534 !important;
    text-decoration: line-through;
}

.pgfm-note-item.pgfm-note-done .pgfm-note-meta span {
    background: #d1fae5 !important;
    color: #166534 !important;
}

.pgfm-note-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff1f0;
    color: var(--pgfm-red);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pgfm-note-done .pgfm-note-status {
    background: #d1fae5 !important;
    color: #166534 !important;
}

.pgfm-note-actions a.button {
    text-decoration: none;
}

.pgfm-note-toggle-button {
    border-color: #1f9d55 !important;
}

.pgfm-note-done .pgfm-note-toggle-button {
    border-color: #999 !important;
}


/* PG Food Menu v1.6.3 - print button for notes */
.pgfm-notes-print-toolbar {
    margin: 14px 0 18px;
}

@media print {
    #wpadminbar,
    #adminmenumain,
    #screen-meta,
    #screen-meta-links,
    .notice,
    .update-nag,
    .pgfm-note-add-box,
    .pgfm-notes-print-toolbar,
    .pgfm-note-actions {
        display: none !important;
    }

    html,
    body {
        background: #fff !important;
    }

    #wpcontent,
    #wpbody-content {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    .pgfm-notes-wrap {
        margin: 0 !important;
        padding: 0 !important;
        max-width: none !important;
    }

    .pgfm-notes-wrap h1 {
        margin-top: 0;
        color: #000;
    }

    .pgfm-notes-list {
        max-width: none;
        gap: 8px;
    }

    .pgfm-note-item {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        border-left: 5px solid var(--pgfm-red);
        background: #fff !important;
        grid-template-columns: 1fr;
    }

    .pgfm-note-item.pgfm-note-done {
        border-left-color: #1f9d55 !important;
        background: #f7fff9 !important;
    }

    .pgfm-note-status {
        border: 1px solid #ddd;
    }
}


/* PG Food Menu v1.6.12 - dashboard notes/version */
.pgfm-dashboard-notes-list {
    margin: 0 0 12px 0;
}

.pgfm-dashboard-notes-list li {
    margin: 0 0 8px;
    padding: 8px 10px;
    background: #fff8f2;
    border-left: 4px solid var(--pgfm-red);
    border-radius: 6px;
}

.pgfm-dashboard-note-room {
    display: inline-flex;
    margin-right: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f7e7df;
    color: var(--pgfm-red);
    font-size: 11px;
    font-weight: 700;
}


/* PG Food Menu v1.6.13 - template search and preview */
.pgfm-template-search-row {
    margin: 12px 0 14px;
}

.pgfm-template-preview {
    margin-top: 14px;
    padding: 14px;
    background: #fffaf7;
    border: 1px solid #e5ddd8;
    border-radius: 12px;
}

.pgfm-template-preview h3 {
    margin: 0 0 12px;
    color: var(--pgfm-red);
}

.pgfm-template-preview-section {
    margin: 12px 0;
}

.pgfm-template-preview-section strong {
    display: block;
    margin-bottom: 6px;
    color: var(--pgfm-red);
}

.pgfm-template-preview-section ul {
    margin: 0;
    padding-left: 18px;
}

.pgfm-template-preview-section li {
    margin-bottom: 8px;
}

.pgfm-template-preview-dish {
    display: block;
    font-weight: 700;
}

.pgfm-template-preview small {
    display: block;
    color: #666;
    line-height: 1.35;
}


/* PG Food Menu v1.6.14 - template search includes dishes */
.pgfm-template-search::placeholder {
    opacity: .8;
}


/* PG Food Menu v1.6.15 - visible template search results */
.pgfm-template-search-results {
    margin: 8px 0 14px;
}

.pgfm-template-result-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 10px;
    background: #fffaf7;
    border: 1px solid #e5ddd8;
    border-radius: 10px;
}

.pgfm-template-result-list strong {
    flex-basis: 100%;
    color: var(--pgfm-red);
}

.pgfm-template-result-button {
    white-space: normal;
    text-align: left;
}

.pgfm-template-no-results {
    padding: 8px 10px;
    background: #fff8f2;
    border-left: 4px solid var(--pgfm-red);
}


/* PG Food Menu v1.6.16 - template delete links */
.pgfm-template-delete-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.pgfm-template-delete-link {
    white-space: normal;
    text-align: left;
}


/* PG Food Menu v1.6.17 - compact dropdown template delete */
.pgfm-template-delete-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.pgfm-template-delete-select {
    min-width: 280px;
    max-width: 100%;
}


/* PG Food Menu v1.6.19 - Help / Tools page */
.pgfm-help-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.pgfm-help-card {
    padding: 18px;
    background: #fff;
    border: 1px solid #e5ddd8;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

.pgfm-help-card h2 {
    margin-top: 0;
    color: var(--pgfm-red);
}

.pgfm-help-table code {
    font-size: 13px;
}

.pgfm-help-emoji {
    font-size: 22px;
}

@media (max-width: 900px) {
    .pgfm-help-grid {
        grid-template-columns: 1fr;
    }
}


/* PG Food Menu v1.6.20 - Help / Tools visible for workers */
.pgfm-help-grid-worker {
    grid-template-columns: minmax(0, 720px);
}

.pgfm-help-grid-worker .pgfm-help-card {
    max-width: 720px;
}


/* PG Food Menu v1.6.21 - design settings / paper layouts */
.pgfm-paper-hacienda_cream {
    background:
        radial-gradient(circle at top center, rgba(155, 53, 40, .055), transparent 34%),
        linear-gradient(180deg, #fffdfb 0%, #f7f1ec 100%) !important;
}

.pgfm-paper-clean_white {
    background:
        linear-gradient(180deg, #ffffff 0%, #ffffff 100%) !important;
    border-color: rgba(0,0,0,.10) !important;
}

.pgfm-paper-warm_paper {
    background:
        radial-gradient(circle at 20% 10%, rgba(201,163,93,.10), transparent 28%),
        linear-gradient(180deg, #fff8ee 0%, #f0dfca 100%) !important;
}

.pgfm-paper-soft_gold {
    background:
        radial-gradient(circle at top center, rgba(201,163,93,.16), transparent 36%),
        linear-gradient(180deg, #fffaf0 0%, #f6e7bd 100%) !important;
}

.pgfm-paper-rustic_red {
    background:
        radial-gradient(circle at top center, rgba(155,53,40,.12), transparent 32%),
        linear-gradient(180deg, #fff9f5 0%, #f2ded7 100%) !important;
    border-color: rgba(155,53,40,.25) !important;
}

.pgfm-design-form,
.pgfm-design-preview {
    max-width: 920px;
}

.pgfm-design-card {
    margin: 16px 0;
    padding: 18px;
    background: #fff;
    border: 1px solid #e5ddd8;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.04);
}

.pgfm-design-card h2,
.pgfm-design-preview h2 {
    margin-top: 0;
    color: var(--pgfm-red);
}

.pgfm-design-card select {
    min-width: 280px;
}

.pgfm-design-preview .pgfm-menu-card {
    margin-left: 0;
    max-width: 520px;
    min-height: auto;
    padding: 34px;
}


/* PG Food Menu Free v1.0.2 hotfix */
.pgfm-menu-card .pgfm-section h3,
.pgfm-menu-card .pgfm-menu-item h3 {
    font-size: 18px !important;
}

.pgfm-free-credit {
    margin-top: 12px;
    color: #777;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pgfm-free-upgrade-box {
    max-width: 920px;
    margin: 16px auto;
    padding: 16px 18px;
    background: #fff8f2;
    border: 1px solid #e5ddd8;
    border-left: 5px solid var(--pgfm-red);
    border-radius: 14px;
}


/* PG Food Menu license client 1.1.0 */
.pgfm-license-wrap .notice p {
    margin: 6px 0;
}


/* PG Food Menu Free v1.1.1 - scope Free limitations so they do not hide Pro template tools */
.toplevel_page_pg-food-menu .pgfm-template-box,
.toplevel_page_pg-food-menu .pgfm-save-template-box,
.toplevel_page_pg-food-menu .pgfm-template-save-form,
.toplevel_page_pg-food-menu .pgfm-template-delete-box,
.pg-food-menu_page_pg-food-menu .pgfm-template-box,
.pg-food-menu_page_pg-food-menu .pgfm-save-template-box,
.pg-food-menu_page_pg-food-menu .pgfm-template-save-form,
.pg-food-menu_page_pg-food-menu .pgfm-template-delete-box {
    display: none !important;
}
