/* v1.0.4: one review module per page; the oversized duplicate is removed. */
#nbgr-footer-card, #nbgr-footer-card * { box-sizing:border-box; font-family:inherit; }
#nbgr-footer-card .nbgr-google-g { width:24px; height:24px; flex:none; }
#nbgr-footer-card .nbgr-stars { font-size:18px; letter-spacing:1px; line-height:1; color:#e8a619; white-space:nowrap; }
#nbgr-footer-card .nbgr-qr { display:inline-block; background:#fff; border-radius:9px; }
#nbgr-footer-card a:focus-visible { outline:3px solid #c78410; outline-offset:3px; }
/* Niepołomicki Bartnik: Google review CTA. Scope every rule to nbgr classes. */
#nbgr-footer-card { display:flex; flex-wrap:wrap; align-items:center; gap:10px; max-width:1150px; width:calc(100% - 36px); margin:5px auto; padding:7px 14px; border:1px solid #e9d4a9; border-radius:16px; background:#fff9ef; box-shadow: 0 4px 12px rgba(0,0,0,.045); color:#3e2b13; text-align:left; }
#nbgr-footer-card .nbgr-footer-brand { display:flex; align-items:center; gap:8px; flex:none; }
#nbgr-footer-card p { color:#4a3922; font-size:13px; line-height:1.4; font-weight:600; margin:0; flex:1 1 235px; }
#nbgr-footer-card .nbgr-footer-link { display:inline-flex; align-items:center; justify-content:center; gap:5px; font-size:13px; font-weight:750; color:#6d4409!important; text-decoration:underline; text-underline-offset:3px; white-space:nowrap; padding:5px 8px; }
#nbgr-footer-card .nbgr-footer-link:hover, #nbgr-footer-card .nbgr-footer-link:focus-visible { color:#a6670f!important; }
#nbgr-footer-card .nbgr-footer-qr { flex:none; }
#nbgr-footer-card .nbgr-footer-qr img { display:block; width:72px; height:72px; object-fit:contain; }
@media (max-width: 780px) {
 #nbgr-footer-card { width:calc(100% - 24px); gap:8px; padding:7px 11px; margin:5px auto; }
 #nbgr-footer-card .nbgr-footer-qr img { width:72px; height:72px; }
}
@media (max-width: 490px) {
 #nbgr-footer-card { display:grid; grid-template-columns:1fr auto; gap:7px 12px; }
 #nbgr-footer-card .nbgr-footer-brand, #nbgr-footer-card p, #nbgr-footer-card .nbgr-footer-link { grid-column:1; }
 #nbgr-footer-card .nbgr-footer-qr { grid-column:2; grid-row:1 / span 3; align-self:center; }
 #nbgr-footer-card .nbgr-footer-qr img { width:72px; height:72px; }
 #nbgr-footer-card .nbgr-footer-link { justify-content:flex-start; padding:5px 0; }
 #nbgr-footer-card p { font-size:13px; }
}


/* /o-nas/: typographic rhythm of the existing editorial text.
   Scoped to a body class added only on this page; no site-wide heading resets. */
body.nbgr-about-compact main :is(p, .wp-block-paragraph),
body.nbgr-about-compact #primary :is(p, .wp-block-paragraph) {
    margin-block-start: 0;
    margin-block-end: 10px;
    line-height: 1.56;
}
body.nbgr-about-compact main :is(h2, h3),
body.nbgr-about-compact #primary :is(h2, h3) {
    margin-block-start: 20px;
    margin-block-end: 9px;
    line-height: 1.26;
}
body.nbgr-about-compact main :is(h2, h3):first-child,
body.nbgr-about-compact #primary :is(h2, h3):first-child { margin-block-start: 0; }
body.nbgr-about-compact main :is(h2, h3) + p,
body.nbgr-about-compact #primary :is(h2, h3) + p { margin-block-start: 0; }
body.nbgr-about-compact main p:last-child,
body.nbgr-about-compact #primary p:last-child { margin-block-end: 0; }
@media (max-width: 780px) {
    body.nbgr-about-compact main :is(h2, h3),
    body.nbgr-about-compact #primary :is(h2, h3) { margin-block-start: 16px; margin-block-end: 7px; }
    body.nbgr-about-compact main p,
    body.nbgr-about-compact #primary p { margin-block-end: 9px; line-height:1.52; }
}

/* v1.0.3 — Keep the Google CTA full width of the help section and ABOVE it. */
#nbgr-footer-card.nbgr-before-help {
    width: min(100%, var(--nbgr-match-width, 100%));
    max-width: none;
    margin: 0 auto 14px !important;
    padding: 10px clamp(12px, 1.8vw, 22px);
    gap: 12px;
    align-self: center;
}
#nbgr-footer-card.nbgr-before-help + .nbgr-following-help {
    margin-top: 0 !important;
}
#nbgr-footer-card.nbgr-before-footer {
    width: min(calc(100% - 32px), 1350px);
    max-width: 1350px;
    margin: 16px auto 18px !important;
}
#nbgr-footer-card.nbgr-before-help .nbgr-footer-qr img {
    width: 76px;
    height: 76px;
}
#nbgr-footer-card.nbgr-before-help p {
    font-size: 14px;
    line-height: 1.45;
}

/* v1.0.3 — About: remove the duplicate oversized title, not the breadcrumb. */
body.nbgr-about-compact .nbgr-hide-about-title,
body.nbgr-about-compact .nbgr-title-only-wrap {
    display: none !important;
}
body.nbgr-about-compact .nbgr-about-crumb {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
}
body.nbgr-about-compact main,
body.nbgr-about-compact main#primary {
    margin-top: 0 !important;
    padding-top: 12px !important;
}
body.nbgr-about-compact :is(.entry-header, .page-header, .page-title-area, .page-title-wrap, .page-hero) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0;
}
body.nbgr-about-compact .nbgr-about-lead-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
body.nbgr-about-compact h2.nbgr-about-lead {
    margin-top: 8px !important;
    margin-bottom: 12px !important;
    line-height: 1.2 !important;
}
@media (max-width: 780px) {
    #nbgr-footer-card.nbgr-before-help {
        margin-bottom: 12px !important;
        padding: 10px 12px;
    }
    #nbgr-footer-card.nbgr-before-help p { font-size: 13px; }
    body.nbgr-about-compact main,
    body.nbgr-about-compact main#primary { padding-top: 8px !important; }
    body.nbgr-about-compact h2.nbgr-about-lead { margin-top: 6px !important; margin-bottom: 10px !important; }
}
@media (max-width: 490px) {
    #nbgr-footer-card.nbgr-before-help .nbgr-footer-qr img {
        width: 72px;
        height: 72px;
    }
}

/* Homepage: three locally hosted SVG pictograms replace the old checkmarks. */
.nbgr-benefit {
    display:inline-flex !important;
    align-items:center !important;
    gap:7px !important;
    vertical-align:middle;
    line-height:1.35;
    white-space:nowrap;
}
.nbgr-benefit .nbgr-benefit-icon {
    width:24px !important;
    height:24px !important;
    display:inline-block !important;
    flex:0 0 24px;
    object-fit:contain;
    vertical-align:middle;
}
@media (max-width: 560px) {
    .nbgr-benefit { gap:6px !important; white-space:normal; }
    .nbgr-benefit .nbgr-benefit-icon { width:21px !important; height:21px !important; flex-basis:21px; }
}
