/* TradeCPO FFBC V7.2.20 | read-only physical price drawer. */
.physical-price-trigger{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;min-height:37px;padding:0 11px;border:1px solid #986119;border-radius:9px;background:#171b20;color:#ffb34d;font-size:11px;font-weight:700;line-height:1.2;cursor:pointer}
.physical-price-trigger:hover,.physical-price-trigger[aria-expanded="true"]{border-color:#ff9f28;background:#282113}
.physical-price-backdrop{position:fixed;inset:0;background:rgba(0,7,17,.54);z-index:1098}
.physical-price-backdrop[hidden]{display:none!important}
.physical-price-drawer{position:fixed;right:0;top:0;bottom:0;width:min(510px,100vw);z-index:1099;background:#091522;color:#e9f2fc;border-left:1px solid #2c4057;box-shadow:-18px 0 55px #0008;transform:translateX(105%);transition:transform .23s ease;display:flex;flex-direction:column;font-family:inherit}
.physical-price-drawer.pp-open{transform:translateX(0)}
.physical-price-drawer *{box-sizing:border-box}
.physical-price-drawer .pp-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:20px 18px;border-bottom:1px solid #263c52;background:#0b1728}
.physical-price-drawer h2{font-size:20px;line-height:1.2;margin:4px 0 6px;color:#f7faff}
.physical-price-drawer .pp-head p{font-size:12px;color:#9db4ce;margin:0}
.pp-eyebrow{font:700 10px/1.4 monospace;letter-spacing:1.2px;color:#ffac43}
#physicalPriceClose{border:1px solid #354a61;background:#102137;color:#fff;border-radius:9px;width:35px;height:35px;font-size:24px;cursor:pointer;flex:none}
.physical-price-drawer .pp-scroll{overflow:auto;padding:16px;overscroll-behavior:contain}
.pp-source{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#9eb4ca;margin-bottom:12px}
#ppConnection{font-weight:800;color:#00d98c}#ppConnection.pp-stale{color:#ffba58}
.pp-error{background:#33251a;color:#ffd1a0;border:1px solid #9b5c27;padding:11px;border-radius:8px;font-size:12px;margin-bottom:12px}
.pp-latest,.pp-history,.pp-doctrine{background:#0c1b2b;border:1px solid #274058;border-radius:12px;padding:14px;margin-bottom:14px}
.pp-kicker{display:flex;justify-content:space-between;gap:10px;color:#9fb5cc;font-size:10px;font-weight:700;letter-spacing:.6px}
#ppVerification{color:#00db91}.pp-date{font-size:22px;font-weight:800;margin:9px 0 3px}.pp-muted{font-size:11px;color:#93a9c0;line-height:1.5}
.pp-price-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
.pp-price-grid>div{background:#091726;border:1px solid #294057;padding:11px;border-radius:8px;min-width:0}
.pp-price-grid small{display:block;color:#a5bad0;font-size:10px;line-height:1.4}
.pp-price-grid strong{display:block;font-size:22px;line-height:1.3;margin-top:5px;font-variant-numeric:tabular-nums;white-space:nowrap}
.pp-price-grid .pp-derived{border-color:#ac6c24;background:#211c17}.pp-price-grid .pp-derived strong{color:#ffab42}
.pp-method-strip{display:flex;justify-content:space-between;gap:7px;margin:12px 0;font-size:11px;color:#a3b7cd}.pp-method-strip b{color:#e7f4ff;margin-left:4px}
.pp-provenance{border-top:1px solid #253d54;padding-top:10px}
.pp-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.pp-section-head h3,.pp-doctrine h3{font-size:12px;color:#ffb14b;letter-spacing:.6px;margin:0}.pp-section-head span{font-size:10px;color:#9fb4ca}
.pp-table-scroll{overflow:auto;max-height:310px}.pp-history table{border-collapse:collapse;width:100%;min-width:475px;font-size:11px;font-variant-numeric:tabular-nums}.pp-history th,.pp-history td{padding:9px 7px;text-align:right;border-bottom:1px solid #26394e;white-space:nowrap}.pp-history th:first-child,.pp-history td:first-child{text-align:left}.pp-history th{color:#9cb2cb;position:sticky;top:0;background:#102239}.pp-history td{color:#e8f0fb}
.pp-history-foot{display:flex;align-items:center;justify-content:space-between;margin-top:10px;font-size:11px;color:#a0b3c7}.pp-history-foot button{background:#15283c;color:#e8f0fb;border:1px solid #3b5168;padding:8px 12px;border-radius:7px;cursor:pointer}
.pp-doctrine p{color:#afc1d3;font-size:12px;line-height:1.6;margin:10px 0 0}.pp-doctrine b{color:#00d992}
:root[data-theme="light"] .physical-price-trigger{background:#fff;color:#805012;border-color:#b28a4a}
:root[data-theme="light"] .physical-price-drawer{background:#e9eef5;color:#102039;border-color:#9db0c5}
:root[data-theme="light"] .physical-price-drawer .pp-head,:root[data-theme="light"] .pp-latest,:root[data-theme="light"] .pp-history,:root[data-theme="light"] .pp-doctrine{background:#fff;border-color:#a9b8ca}
:root[data-theme="light"] .physical-price-drawer h2,:root[data-theme="light"] .pp-price-grid strong,:root[data-theme="light"] .pp-method-strip b{color:#102039}
:root[data-theme="light"] .pp-price-grid>div,:root[data-theme="light"] .pp-history th{background:#f0f4f9;border-color:#b8c7d6}
:root[data-theme="light"] .pp-price-grid .pp-derived{background:#fff2e0;border-color:#a96813}
:root[data-theme="light"] .pp-price-grid .pp-derived strong{color:#9b5400}
:root[data-theme="light"] .pp-history td,:root[data-theme="light"] .pp-doctrine p{color:#243c56}
:root[data-theme="light"] .pp-muted,:root[data-theme="light"] .pp-source,:root[data-theme="light"] .pp-kicker,:root[data-theme="light"] .pp-price-grid small{color:#475569}
:root[data-theme="light"] .pp-history-foot button{background:#fff;color:#102039}
@media(max-width:1100px){.physical-price-trigger{padding:0 9px;font-size:11px}}
@media(max-width:700px){.physical-price-trigger span{display:none}.physical-price-trigger{min-width:38px;min-height:38px;font-size:17px}.physical-price-drawer{width:100vw}.physical-price-drawer .pp-head{padding:15px}.physical-price-drawer .pp-scroll{padding:12px}.pp-price-grid strong{font-size:20px}}
@media(prefers-reduced-motion:reduce){.physical-price-drawer{transition:none}}


/* FFBC V7.2.20 — Compact Physical Price Header Control */
#physicalPricesBtn.physical-price-trigger {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border-radius: 11px;
    white-space: nowrap;
}

#physicalPricesBtn .physical-price-rp {
    font-family: "JetBrains Mono", monospace;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.7px;
    line-height: 1;
}

@media (max-width: 600px) {
    #physicalPricesBtn.physical-price-trigger {
        width: 38px;
        min-width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
}

/* FFBC V7.2.20 — Mobile Rp Icon Visibility Repair */
@media (max-width: 768px) {

  #physicalPricesBtn.physical-price-trigger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    flex: 0 0 42px !important;
  }

  #physicalPricesBtn .physical-price-rp {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ff9f2e !important;
    font-family: "JetBrains Mono", monospace !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
  }

}


/* FFBC V7.2.20 — Unified Header Icon Dimensions */

/*
 * Rp icon matches the existing Camera / Theme button
 * footprint without modifying their functionality.
 */

#physicalPricesBtn.physical-price-trigger {
    box-sizing: border-box !important;

    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;

    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 42px !important;

    border-radius: 11px !important;
    line-height: 1 !important;
}

#physicalPricesBtn .physical-price-rp {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    height: auto !important;

    font-family: "JetBrains Mono", monospace !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: -0.6px !important;
    line-height: 1 !important;

    color: #ff9f2e !important;

    visibility: visible !important;
    opacity: 1 !important;
}

/* Mobile: retain identical icon dimensions */
@media (max-width: 768px) {
    #physicalPricesBtn.physical-price-trigger {
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;

        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;

        flex: 0 0 42px !important;
    }
}

/* END FFBC UNIFIED HEADER ICON DIMENSIONS */

/* FFBC V7.2.20 — Rp Button Size Correction */

#physicalPricesBtn.physical-price-trigger {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;

    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;

    flex: 0 0 40px !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 10px !important;
}

#physicalPricesBtn .physical-price-rp {
    display: inline-block !important;
    font-size: 14px !important;
    line-height: 1 !important;
    color: #ff9f2e !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 768px) {
    #physicalPricesBtn.physical-price-trigger {
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;

        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;

        flex: 0 0 40px !important;
    }
}

/* END Rp Button Size Correction */
