/* Presta Omnibus v1.0 — Front Styles */

/* ── Price Info Block ─────────────────────────────── */
.pob-info {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    margin: 10px 0;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    border-width: 1px;
    border-style: solid;
    position: relative;
}

.pob-info__text {
    font-weight: 400;
}

.pob-info__value {
    font-weight: 700;
    font-size: 14px;
}

.pob-info__pct {
    font-weight: 600;
    font-size: 12px;
    opacity: 0.8;
}

.pob-info__when {
    font-size: 11px;
    opacity: 0.65;
    font-style: italic;
}

.pob-info__eu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0,0,0,0.07);
    flex-shrink: 0;
    cursor: help;
    vertical-align: middle;
    margin-right: 2px;
}
.pob-info__eu svg { width: 10px; height: 10px; }

/* ── Chart Trigger ────────────────────────────────── */
.pob-chart-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 4px;
    background: rgba(0,0,0,0.05);
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    transition: background .2s, transform .15s;
    vertical-align: middle;
}
.pob-chart-trigger:hover {
    background: rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

/* ── Listing (Category page) ──────────────────────── */
.pob-listing {
    font-size: 11px;
    margin-top: 4px;
    line-height: 1.3;
}
.pob-listing__val { font-weight: 700; }

/* ── Popup Overlay ────────────────────────────────── */
.pob-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}
.pob-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.pob-overlay__bg {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* ── Popup Panel ──────────────────────────────────── */
.pob-panel {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    max-width: 680px;
    width: 92%;
    max-height: 88vh;
    overflow: auto;
    transform: translateY(16px) scale(.97);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.pob-overlay.is-open .pob-panel {
    transform: translateY(0) scale(1);
}
.pob-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #f1f5f9;
}
.pob-panel__head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}
.pob-panel__x {
    border: none;
    background: #f1f5f9;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, color .15s;
    line-height: 1;
}
.pob-panel__x:hover { background: #e2e8f0; color: #334155; }
.pob-panel__canvas { padding: 16px 22px 22px; }
.pob-panel__canvas canvas { width: 100% !important; height: auto !important; }
.pob-panel__legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 10px 22px 18px;
    font-size: 12px;
    color: #64748b;
}
.pob-panel__legend span::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 5px;
    vertical-align: -1px;
}
.pob-legend--regular::before { background: #3b82f6; }
.pob-legend--promo::before { background: #f59e0b; }

@media (max-width: 640px) {
    .pob-info { font-size: 12px; padding: 8px 10px; }
    .pob-panel { width: 96%; border-radius: 10px; }
    .pob-panel__head { padding: 14px 16px; }
    .pob-panel__canvas { padding: 12px 14px 16px; }
}
