: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: clamp(54px, 9vw, 92px);
    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: 28px 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: clamp(32px, 5vw, 46px);
    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;
}

@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: 10mm;
        margin: 0;
    }

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

    .pgfm-qr-card-inner {
        min-height: 122mm;
        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);
}
