.bpgb-rc{max-width:760px;margin:0 auto;padding-bottom:90px;font-size:15px;color:#1f2430;}.bpgb-rc-step{margin-bottom:26px;}.bpgb-rc-step-head{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:800;margin-bottom:12px;color:#11161f;}.bpgb-rc-num{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:6px;background:#1d4ed8;color:#fff;font-size:14px;font-weight:700;}.bpgb-rc-subtitle{font-weight:700;color:#555;margin:20px 0 10px;}.bpgb-rc-card{background:#f7faff;border:1px solid #d6e2fb;border-radius:12px;padding:18px;overflow:visible;}.bpgb-rc-lbl{display:block;font-weight:600;font-size:14px;margin:10px 0 6px;}.bpgb-rc-lbl:first-child{margin-top:0;}.bpgb-rc-idrow{display:flex;gap:6px;align-items:center;flex-wrap:nowrap;}.bpgb-rc .bpgb-player-input{flex:1;min-width:0;padding:11px 12px;border:1px solid #cfd6e0;border-radius:8px;font-size:14px;background:#fff;}.bpgb-rc-input{flex:1;min-width:0;padding:11px 12px;border:1px solid #cfd6e0;border-radius:8px;font-size:14px;background:#fff;}.bpgb-rc .bpgb-player-input:focus,.bpgb-rc-input:focus{outline:none;border-color:#1d4ed8;box-shadow:0 0 0 3px rgba(29,78,216,.12);}.bpgb-rc .bpgb-verify-btn{flex-shrink:0;background:#1d4ed8;color:#fff;border:none;padding:11px 10px;border-radius:8px;cursor:pointer;font-size:10px;font-weight:700;letter-spacing:.3px;text-transform:uppercase;white-space:nowrap;line-height:1;}.bpgb-rc .bpgb-verify-btn:hover{background:#1746c0;}.bpgb-rc .bpgb-remove-btn{flex-shrink:0;background:#fff;color:#c62828;border:1px solid #f0c4c4;padding:10px 11px;border-radius:8px;cursor:pointer;font-size:15px;line-height:1;}.bpgb-verify-result{margin-top:8px;font-size:14px;font-weight:600;min-height:18px;}.bpgb-histbtn-wrap{position:relative;display:inline-flex;align-items:center;flex-shrink:0;}.bpgb-hist-btn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;background:#f0f4ff;border:1.5px solid #c7d6f7;border-radius:8px;cursor:pointer;color:#1d4ed8;transition:background .15s,border-color .15s;flex-shrink:0;padding:0;}.bpgb-hist-btn:hover{background:#dde8ff;border-color:#1d4ed8;}.bpgb-hist-popover{position:fixed;z-index:99999;width:calc(100vw - 32px);max-width:360px;background:#fff;border:1px solid #d6e2fb;border-radius:14px;box-shadow:0 10px 36px rgba(29,78,216,.16);overflow:hidden;}.bpgb-histpop-head{background:#1e2433;color:#e8ecf4;font-weight:700;font-size:13px;padding:10px 14px;letter-spacing:.2px;display:flex;align-items:center;justify-content:space-between;}.bpgb-histpop-close{background:none;border:none;color:#a0aab8;font-size:18px;line-height:1;cursor:pointer;padding:0 2px;opacity:.9;}.bpgb-histpop-close:hover{opacity:1;color:#fff;}.bpgb-histpop-loading,.bpgb-histpop-empty{padding:18px 14px;font-size:13px;color:#777;text-align:center;}.bpgb-histpop-list{list-style:none;margin:0;padding:0;}.bpgb-histpop-item{padding:10px 14px;border-bottom:1px solid #eef1f5;}.bpgb-histpop-item:last-child{border-bottom:none;}.bpgb-histpop-top{display:flex;align-items:center;gap:8px;margin-bottom:4px;}.bpgb-histpop-id{font-weight:700;font-size:13px;color:#1b2330;flex:1;word-break:break-all;}.bpgb-histpop-pname{display:block;font-size:11px;color:#888;font-weight:500;margin-top:1px;}.bpgb-histpop-use{background:#2d3748;color:#e8ecf4;border:none;padding:5px 11px;border-radius:6px;font-size:11px;font-weight:700;cursor:pointer;white-space:nowrap;flex-shrink:0;transition:background .12s;}.bpgb-histpop-use:hover{background:#1a202c;}.bpgb-histpop-bot{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}.bpgb-histpop-prod{font-size:12px;color:#555;flex:1;min-width:0;}.bpgb-histpop-date{font-size:11px;color:#aaa;white-space:nowrap;}.bpgb-histpop-status{font-size:10px;font-weight:700;padding:2px 7px;border-radius:10px;background:#eef0f4;color:#555;white-space:nowrap;}.bpgb-histpop-status--completed{background:#e6f7ed;color:#1b7a3d;}.bpgb-histpop-status--processing{background:#fff4e0;color:#b26a00;}.bpgb-histpop-status--pending,.bpgb-histpop-status--on-hold{background:#fff8e1;color:#8a6d00;}.bpgb-histpop-status--failed,.bpgb-histpop-status--cancelled{background:#fdeaea;color:#c62828;}.bpgb-rc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;}.bpgb-rc-grid--offers{grid-template-columns:repeat(2,1fr);}@media (max-width:600px){.bpgb-rc-grid{grid-template-columns:repeat(2,1fr);}.bpgb-rc-grid--offers{grid-template-columns:repeat(2,1fr);}}.bpgb-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:#fff;border:2px solid #e4e8ef;border-radius:12px;padding:16px 12px;cursor:pointer;text-align:center;transition:border-color .15s,box-shadow .15s,transform .05s;min-height:92px;}.bpgb-tile:hover{border-color:#b9c8ee;}.bpgb-tile:active{transform:scale(.98);}.bpgb-tile.selected{border-color:#1d4ed8;background:#f3f7ff;box-shadow:0 0 0 3px rgba(29,78,216,.12);}.bpgb-tile-ico{font-size:22px;}.bpgb-tile-name{font-weight:700;font-size:14px;line-height:1.2;color:#1b2330;}.bpgb-tile-price{font-size:13px;font-weight:700;color:#1d4ed8;}.bpgb-tile--offer{padding:12px;}.bpgb-tile-img img{width:100%;height:auto;border-radius:8px;display:block;}.bpgb-rc-bar{position:sticky;bottom:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border-top:1px solid #e4e8ef;padding:12px 14px;margin-top:18px;box-shadow:0 -6px 18px rgba(0,0,0,.06);border-radius:12px 12px 0 0;}.bpgb-rc-bar-info{display:flex;flex-direction:column;line-height:1.3;}.bpgb-rc-bar-name{font-weight:700;font-size:15px;}.bpgb-rc-bar-total{font-size:14px;color:#1d4ed8;font-weight:700;}.bpgb-rc-buy{background:#1d4ed8;color:#fff;border:none;padding:14px 22px;border-radius:10px;cursor:pointer;font-size:16px;font-weight:800;white-space:nowrap;}.bpgb-rc-buy:hover:not(:disabled){background:#1746c0;}.bpgb-rc-buy:disabled{opacity:.55;cursor:not-allowed;}.bpgb-rc-msg{margin-top:10px;padding:12px 14px;border-radius:8px;background:#fff3e0;border-left:4px solid #ff9800;color:#e65100;font-weight:600;font-size:14px;}.bpgb-rc-msg[hidden]{display:none;}.bpgb-rc-title{font-size:26px;font-weight:800;margin:0 0 18px;color:#11161f;}@keyframes bpgbPulse{0%{box-shadow:0 0 0 0 rgba(29,78,216,.55);}70%{box-shadow:0 0 0 12px rgba(29,78,216,0);}100%{box-shadow:0 0 0 0 rgba(29,78,216,0);}}.bpgb-rc-buy.bpgb-rc-pulse{animation:bpgbPulse 1.2s ease-out 1;}.bpgb-hist{max-width:760px;margin:24px auto;font-size:14px;color:#1f2430;}.bpgb-hist-title{font-size:20px;font-weight:800;margin:0 0 14px;color:#11161f;}.bpgb-hist-empty{color:#777;padding:16px;background:#f7faff;border:1px solid #d6e2fb;border-radius:10px;}.bpgb-hist-wrap{overflow-x:auto;border:1px solid #e4e8ef;border-radius:12px;}.bpgb-hist-table{width:100%;border-collapse:collapse;background:#fff;}.bpgb-hist-table th,.bpgb-hist-table td{padding:12px 14px;text-align:left;border-bottom:1px solid #eef1f5;}.bpgb-hist-table th{background:#f7faff;font-weight:700;font-size:13px;color:#44506a;}.bpgb-hist-table tr:last-child td{border-bottom:none;}.bpgb-hist-name{display:block;color:#777;font-size:12px;}.bpgb-hist-badge{display:inline-block;padding:3px 10px;border-radius:12px;font-size:11px;font-weight:700;background:#eef0f4;color:#555;}.bpgb-hist-badge--completed{background:#e6f7ed;color:#1b7a3d;}.bpgb-hist-badge--processing{background:#fff4e0;color:#b26a00;}.bpgb-hist-badge--pending,.bpgb-hist-badge--on-hold{background:#fff8e1;color:#8a6d00;}.bpgb-hist-badge--failed,.bpgb-hist-badge--cancelled{background:#fdeaea;color:#c62828;}@media (max-width:600px){.bpgb-hist{padding:0 2px;}.bpgb-hist-wrap{border:none;border-radius:0;overflow:visible;background:transparent;}.bpgb-hist-table{background:transparent;border-collapse:separate;}.bpgb-hist-table thead{display:none;}.bpgb-hist-table,.bpgb-hist-table tbody,.bpgb-hist-table tr,.bpgb-hist-table td{display:block;width:100%;box-sizing:border-box;}.bpgb-hist-table tr{background:#fff;border:1px solid #e4e8ef;border-radius:14px;margin-bottom:12px;padding:4px 0;box-shadow:0 1px 4px rgba(15,23,42,.05);}.bpgb-hist-table tr:last-child{margin-bottom:0;}.bpgb-hist-table td{border:none;border-bottom:1px solid #f2f4f8;padding:10px 16px;display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:13px;}.bpgb-hist-table tr td:last-child{border-bottom:none;}.bpgb-hist-table td::before{content:attr(data-lbl);font-weight:700;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#8a94a8;flex-shrink:0;}.bpgb-hist-table td[data-lbl]{text-align:right;}.bpgb-hist-table td strong{font-size:13px;word-break:break-all;}.bpgb-hist-table td[data-lbl="Montan"]{font-weight:600;color:#1b2330;}.bpgb-hist-name{font-size:11px;}.bpgb-hist-badge{font-size:11px;padding:4px 12px;}}.bpgb-idsheet-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:99990;animation:bpgbFadeIn .2s ease;}.bpgb-idsheet-overlay[hidden]{display:none;}.bpgb-idsheet{position:fixed;bottom:0;left:0;right:0;z-index:99995;background:#fff;border-radius:20px 20px 0 0;box-shadow:0 -8px 40px rgba(0,0,0,.18);animation:bpgbSlideUp .25s cubic-bezier(.32,1,.48,1);max-height:90vh;overflow-y:auto;}.bpgb-idsheet[hidden]{display:none;}@keyframes bpgbSlideUp{from{transform:translateY(100%);}to{transform:translateY(0);}}@keyframes bpgbFadeIn{from{opacity:0;}to{opacity:1;}}.bpgb-idsheet-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 12px;border-bottom:1px solid #eef1f5;}.bpgb-idsheet-title{display:flex;align-items:center;gap:8px;font-weight:800;font-size:16px;color:#11161f;}.bpgb-idsheet-close{background:#f0f2f5;border:none;border-radius:50%;width:32px;height:32px;font-size:16px;cursor:pointer;color:#555;display:flex;align-items:center;justify-content:center;transition:background .12s;}.bpgb-idsheet-close:hover{background:#e0e4ea;}.bpgb-idsheet-body{padding:16px 18px 24px;}.bpgb-idsheet-lbl{display:block;font-weight:600;font-size:13px;color:#44506a;margin-bottom:6px;}.bpgb-idsheet-row{display:flex;gap:8px;align-items:center;}.bpgb-idsheet-input{flex:1;padding:12px 14px;border:1.5px solid #cfd6e0;border-radius:10px;font-size:15px;background:#f7faff;outline:none;transition:border-color .15s,box-shadow .15s;}.bpgb-idsheet-input:focus{border-color:#1d4ed8;box-shadow:0 0 0 3px rgba(29,78,216,.1);background:#fff;}.bpgb-idsheet-verifybtn{flex-shrink:0;background:#1d4ed8;color:#fff;border:none;padding:12px 14px;border-radius:10px;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap;transition:background .12s;}.bpgb-idsheet-verifybtn:hover{background:#1746c0;}.bpgb-idsheet-verifybtn:disabled{opacity:.55;cursor:not-allowed;}.bpgb-idsheet-result{margin-top:10px;font-size:14px;font-weight:600;min-height:20px;color:#1b7a3d;}.bpgb-idsheet-result.error{color:#c62828;}.bpgb-idsheet-buybtn{display:block;width:100%;margin-top:16px;background:#1d4ed8;color:#fff;border:none;padding:15px;border-radius:12px;font-size:16px;font-weight:800;cursor:pointer;transition:background .12s;}.bpgb-idsheet-buybtn:hover:not(:disabled){background:#1746c0;}.bpgb-idsheet-buybtn:disabled{opacity:.45;cursor:not-allowed;}/* ✅ FIX #2: Prevent page scroll when modal is open - IMPROVED */
html.bpgb-modal-open,
body.bpgb-modal-open {
    overflow: hidden !important;
    height: 100vh !important;
    position: fixed !important;
    width: 100% !important;
}

html.bpgb-modal-open body,
body.bpgb-modal-open {
    overflow: hidden !important;
}

@media (max-width: 768px) {
    html.bpgb-modal-open,
    body.bpgb-modal-open {
        overflow: hidden !important;
        height: 100vh !important;
    }
}

/* ============================================================
   THEME PROTECTION FIX (v1) — Anpeche tèm WordPress (egzanp
   BuddyX) ranplase koulè bouton/tile plugin an ak koulè aksan
   tèm lan. Tout règ sa yo gen !important paske se sèl jan pou
   bat règ global tèm yo (egzanp: "button:not([class*=wp-])...").
   ============================================================ */

.bpgb-tile {
    background-color: #ffffff !important;
    border-color: #e4e8ef !important;
    color: #1b2330 !important;
}
.bpgb-tile:hover {
    border-color: #b9c8ee !important;
}
.bpgb-tile.selected {
    background-color: #f3f7ff !important;
    border-color: #1d4ed8 !important;
}
.bpgb-tile-name { color: #1b2330 !important; }
.bpgb-tile-price { color: #1d4ed8 !important; }

.bpgb-verify-btn,
.bpgb-rc .bpgb-verify-btn,
.bpgb-idsheet-verifybtn {
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
    border-color: #1d4ed8 !important;
}
.bpgb-verify-btn:hover,
.bpgb-idsheet-verifybtn:hover {
    background-color: #1746c0 !important;
}

.bpgb-remove-btn {
    background-color: #ffffff !important;
    color: #c62828 !important;
    border-color: #f0c4c4 !important;
}

.bpgb-rc-buy,
.bpgb-idsheet-buybtn {
    background-color: #1d4ed8 !important;
    color: #ffffff !important;
    border: none !important;
    opacity: 1 !important;
}
.bpgb-rc-buy:hover:not(:disabled),
.bpgb-idsheet-buybtn:hover:not(:disabled) {
    background-color: #1746c0 !important;
}
.bpgb-rc-buy:disabled,
.bpgb-idsheet-buybtn:disabled {
    opacity: .55 !important;
}

.bpgb-hist-btn {
    background-color: #f0f4ff !important;
    color: #1d4ed8 !important;
    border-color: #c7d6f7 !important;
}
.bpgb-hist-btn:hover {
    background-color: #dde8ff !important;
    border-color: #1d4ed8 !important;
}

.bpgb-histpop-use {
    background-color: #2d3748 !important;
    color: #e8ecf4 !important;
}
.bpgb-histpop-use:hover {
    background-color: #1a202c !important;
}

.bpgb-idsheet-close,
.bpgb-histpop-close {
    background-color: #f0f2f5 !important;
    color: #555 !important;
}

/* ═══════════════════════════════════════════════
   PROMO TILE — Badge rabè + pri barye
   ═══════════════════════════════════════════════ */

/* Tile an promo — kontou lejèman kolore */
.bpgb-tile--promo {
    position: relative;
    overflow: visible;
}
/* Tile promo chwazi — kontou wouj */
.bpgb-tile--promo.selected {
    border-color: #ef4444 !important;
    background: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,.13) !important;
}

/* Badge % rabè — kwen anwo adwat */
.bpgb-tile-badge {
    position: absolute;
    top: -9px;
    right: -9px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    padding: 4px 7px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(220,38,38,.35);
    letter-spacing: .02em;
    z-index: 2;
    pointer-events: none;
}

/* Konteyè pri (promo: anpile vètikal) */
.bpgb-tile-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

/* Pri orijinal — barre */
.bpgb-tile-price-old {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-decoration: line-through;
    line-height: 1.2;
}

/* Pri an vant — ble pa defo, wouj lè tile la chwazi */
.bpgb-tile-price--sale {
    color: #1d4ed8 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}
.bpgb-tile--promo.selected .bpgb-tile-price--sale {
    color: #dc2626 !important;
}

/* LIVREZON IMEDYA badge */
.bpgb-livrezon-badge {
    margin: 6px 0 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    color: #15803d;
    text-transform: uppercase;
}
