/* onebidpopup — homepage center popup.
   Pixel clone of the "Aukcja na Onebid" modal (Antykwariat Historicon client
   site), with the 11/06 spec changes:
     1. frame ~2 mm wider on the left/right (.obp-box.wide: the original
        min(760px,100%) becomes min(760px + 4mm,100%) with 2mm side padding —
        the image therefore keeps its exact 760px size/position on desktop
        and scales fluidly on mobile like the original);
     2. dark-brown accent #3a2418 -> #5a3c0f (the site nav-strip brown);
     6. footer text = the new two lines.
   The close behavior mirrors the original: 600 ms delayed open, close via
   the round × (top right), the Zamknij button, a click on the dimmed
   background or Esc; the dimming (background rgba(20,15,8,.55)) lives on
   the modal element itself and lifts together with the popup.
   ALL resources are local (self-hosted fonts below — the same Google Fonts
   the original page used). Every rule is scoped under .obp-* so nothing
   about the site theme is touched. */

/* --- self-hosted fonts (latin + latin-ext, the exact original subsets) --- */
@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Merriweather-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/Merriweather-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Merriweather-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Merriweather';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Merriweather-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Libre Baskerville';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/LibreBaskerville-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Libre Baskerville';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/LibreBaskerville-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Libre Baskerville';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/LibreBaskerville-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Libre Baskerville';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/LibreBaskerville-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/Inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/Inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/Inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/Inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- the modal (background dimming) — exact clone --- */
/* z-index: the original used 120, but THIS theme's #header is z 5003 (sticky)
   and #cookieNotice z 9999 — at 120 they render OVER the dim (search border,
   login icon, logo visible through the popup). The popup must be topmost and
   dim everything underneath indiscriminately -> max int. */
.obp-modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 15, 8, .55);
    display: none;
    place-items: center;
    z-index: 2147483647;
    padding: 16px;
    font: 16px/1.6 'Merriweather', Georgia, 'Times New Roman', serif;
    color: #2b1a11;
}
.obp-modal.open {
    display: grid;
}

/* --- v1.0.4 close animation (BO toggle data-obp-anim="1") ---
   Scale Down + Fade: the box shrinks (1 -> 0.95) while fading out and the
   dimming fades to transparent - the popup recedes into the background.
   .closing is added by the JS on close; the JS hides the modal when the
   animation ends (or after a 400 ms safety timeout). */
@keyframes obp-box-out {
    to {
        transform: scale(0.95);
        opacity: 0;
    }
}
@keyframes obp-dim-out {
    to {
        background-color: rgba(20, 15, 8, 0);
    }
}
.obp-modal.closing {
    animation: obp-dim-out 0.25s ease forwards;
}
.obp-modal.closing .obp-box {
    animation: obp-box-out 0.25s ease forwards;
}

/* --- the box — the frame is ~2 mm wider left/right (spec 1) --- */
.obp-box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 26px;
    width: min(480px, 100%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.obp-box.wide {
    width: min(calc(760px + 4mm), 100%);
    padding: 0 2mm;
    overflow: hidden;
}

/* the round × (top right) — exact clone (the button element takes Inter,
   like in the original page) */
.obp-box .obp-x {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: none;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 28.8px;
    cursor: pointer;
    color: #6d675d;
}
.obp-box.wide .obp-x {
    background: rgba(255, 255, 255, .9);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    line-height: 34px;
    padding: 0;
    top: 10px;
    right: 10px;
    z-index: 2;
    font-size: 24px;
}

/* --- the image: fluid like the original; with the 2mm side padding it stays
   at its original 760px width on desktop and scales down on mobile --- */
.obp-img {
    width: 100%;
    display: block;
    background: #fff;
}

/* --- the text part (px, NOT rem: this theme sets html { font-size: 10px },
      which would shrink every rem-based size to ~38%) --- */
.obp-body {
    padding: 22px 28px 26px;
}
.obp-body .obp-eyebrow {
    letter-spacing: .2em;
    text-transform: uppercase;
    font-size: 12px;
    color: #8a8374;
    font-weight: 700;
}
.obp-body h3 {
    font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.01em;
    font-variant-numeric: lining-nums;
    font-size: 28.8px;
    color: #2b1a11;
    margin: 4px 0 8px;
}
.obp-body p {
    margin: 0 0 16px;
}

/* --- the buttons — accent #3a2418 replaced by #5a3c0f (spec 2);
   the hover tints keep the original lightening step (20/22/16) --- */
.obp-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.obp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
    text-transform: none;
    border-radius: 8px;
    box-shadow: none;
    position: relative;
    background: #5a3c0f;
    color: #fff;
    border: 1.5px solid #5a3c0f;
    padding: 11px 24px;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .1s;
}
.obp-btn:hover {
    background: #7a521f;
    border-color: #7a521f;
    transform: none;
}
.obp-btn:active {
    transform: translateY(1px);
}
.obp-btn.obp-ghost {
    background: #fff;
    color: #5a3c0f;
    border-color: #5a3c0f;
}
.obp-btn.obp-ghost:hover {
    background: #5a3c0f;
    color: #fff;
    border-color: #5a3c0f;
}

/* --- mobile (the original's own media query, same values) --- */
@media (max-width: 600px) {
    .obp-body {
        padding: 16px 18px 20px;
    }
    .obp-body h3 {
        font-size: 22.4px;
    }
}
