.tsam-gm-public-table-wrap,
.tsam-gm-price-summary{
    --tsam-border:#dedede;
    --tsam-muted:#666;
    --tsam-soft:#faf8f3;
    --tsam-accent:#8a5a12;
    --tsam-green:#22a06b;
    width:100%;
    max-width:860px;
    margin:1.25rem auto;
    font-family:inherit;
    color:inherit;
}
.tsam-gm-public-table{
    width:100%;
    border-collapse:separate;
    border-spacing:0;
    table-layout:auto;
    border:1px solid var(--tsam-border);
    border-radius:10px;
    overflow:hidden;
    background:#fff;
}
.tsam-gm-public-table caption{
    caption-side:top;
    padding:0 0 .75rem;
    font-size:1.25em;
    line-height:1.35;
    font-weight:700;
    text-align:center;
}
.tsam-gm-public-table th,
.tsam-gm-public-table td{
    padding:13px 14px;
    border:0;
    border-bottom:1px solid var(--tsam-border);
    vertical-align:middle;
    word-break:normal!important;
    overflow-wrap:normal!important;
    hyphens:none;
}
.tsam-gm-public-table tr:last-child th,
.tsam-gm-public-table tr:last-child td{border-bottom:0}
.tsam-gm-public-table thead th{
    background:var(--tsam-soft);
    font-weight:700;
    text-align:left;
    white-space:nowrap;
}
.tsam-gm-public-table tbody th{
    width:28%;
    min-width:110px;
    font-weight:700;
    text-align:left;
    white-space:nowrap!important;
}
.tsam-gm-public-table tbody td{
    width:36%;
    text-align:right;
    white-space:nowrap;
    font-variant-numeric:tabular-nums;
}
.tsam-gm-public-table .tsam-gm-pending{
    text-align:center;
    color:var(--tsam-muted);
    font-style:italic;
    white-space:normal;
}
.tsam-gm-public-table .is-pending{background:#fcfcfc}
.tsam-gm-table-meta{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    gap:8px 16px;
    padding-top:10px;
    font-size:.92em;
    color:var(--tsam-muted);
}
.tsam-gm-updated-at{
    display:inline-flex;
    align-items:center;
    gap:7px;
}
.tsam-gm-status-dot{
    width:8px;
    height:8px;
    border-radius:999px;
    background:var(--tsam-green);
    box-shadow:0 0 0 3px rgba(34,160,107,.12);
    flex:0 0 auto;
}
.tsam-gm-price-summary{
    border:1px solid var(--tsam-border);
    border-radius:12px;
    background:#fff;
    padding:16px;
}
.tsam-gm-price-summary__title{
    font-size:1.18em;
    font-weight:700;
    margin-bottom:12px;
}
.tsam-gm-price-summary__grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-bottom:12px;
}
.tsam-gm-price-summary__item{
    display:flex;
    flex-direction:column;
    gap:4px;
    background:var(--tsam-soft);
    border-radius:8px;
    padding:11px 12px;
}
.tsam-gm-price-summary__item span{color:var(--tsam-muted);font-size:.92em}
.tsam-gm-price-summary__item strong{font-size:1.05em;white-space:nowrap;font-variant-numeric:tabular-nums}
.tsam-gm-unit-stack{display:grid;gap:5px;white-space:normal}
.tsam-gm-unit-stack.is-compact{gap:4px}
.tsam-gm-unit-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.tsam-gm-unit-label{color:var(--tsam-muted);font-size:.82em;font-weight:600;letter-spacing:.01em;text-transform:none}
.tsam-gm-unit-value{font-size:.98em;line-height:1.25;font-variant-numeric:tabular-nums;white-space:nowrap}
.tsam-gm-summary-row{display:grid;gap:6px;padding:8px 0;border-top:1px dashed rgba(0,0,0,.08)}
.tsam-gm-summary-row:first-of-type{border-top:0;padding-top:2px}
.tsam-gm-price-summary__item--silver>span{font-weight:700;color:inherit;font-size:1em}
.tsam-gm-price-summary__item--silver small{margin-top:4px}
.tsam-gm-public-table tbody td .tsam-gm-unit-stack{min-width:185px;margin-left:auto}
@media (max-width:600px){
    .tsam-gm-public-table{display:block;border:0;background:transparent;overflow:visible}
    .tsam-gm-public-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
    .tsam-gm-public-table tbody{display:block}
    .tsam-gm-public-table tr{
        display:grid;
        grid-template-columns:minmax(100px,1fr) minmax(0,1.35fr);
        background:#fff;
        border:1px solid var(--tsam-border);
        border-radius:10px;
        overflow:hidden;
        margin-bottom:10px;
    }
    .tsam-gm-public-table tbody th,
    .tsam-gm-public-table tbody td{
        display:flex;
        width:auto;
        min-width:0;
        padding:10px 12px;
        border:0;
        border-bottom:1px solid var(--tsam-border);
        text-align:right;
        white-space:nowrap!important;
    }
    .tsam-gm-public-table tbody th{
        grid-row:1 / span 2;
        align-items:center;
        justify-content:flex-start;
        background:var(--tsam-soft);
        border-right:1px solid var(--tsam-border);
        border-bottom:0;
        font-size:1.02em;
    }
    .tsam-gm-public-table tbody td::before{
        content:attr(data-label);
        margin-right:auto;
        padding-right:12px;
        color:var(--tsam-muted);
        font-size:.9em;
        font-weight:600;
    }
    .tsam-gm-public-table tbody td:last-child{border-bottom:0}
    .tsam-gm-public-table tbody td .tsam-gm-unit-stack{min-width:0;width:100%;margin-left:0}
    .tsam-gm-public-table tbody td .tsam-gm-unit-row{gap:8px}
    .tsam-gm-public-table .tsam-gm-pending{
        grid-row:1 / span 2;
        align-items:center;
        justify-content:center;
        text-align:center;
        white-space:normal!important;
        border-bottom:0;
    }
    .tsam-gm-public-table .tsam-gm-pending::before{display:none}
    .tsam-gm-table-meta{display:block;text-align:left}
    .tsam-gm-table-meta>span{display:flex;margin-top:7px}
    .tsam-gm-price-summary__grid{grid-template-columns:1fr}
}
.tsam-gm-chart-card{width:100%;max-width:860px;margin:1.25rem auto;padding:16px;background:#fff;border:1px solid #dedede;border-radius:12px;box-sizing:border-box}.tsam-gm-chart-title{font-size:1.18em;font-weight:700;margin-bottom:12px}.tsam-gm-chart-canvas{display:block;width:100%;max-width:100%;border:1px solid #ececec;border-radius:8px;background:#fff}.tsam-gm-chart-legend{display:flex;gap:18px;margin-top:12px;font-size:.92em;font-weight:600}.tsam-gm-chart-legend span:before{content:"";display:inline-block;width:18px;height:3px;margin-right:7px;vertical-align:middle;border-radius:3px}.tsam-gm-chart-legend .buy:before{background:#2563eb}.tsam-gm-chart-legend .sell:before{background:#dc2626}.tsam-gm-chart-empty{max-width:860px;margin:1.25rem auto;padding:16px;border:1px dashed #c9c9c9;border-radius:10px;color:#666;background:#fafafa}

/* V3.2.1: price movement columns and selector chart */
.tsam-gm-public-table-wrap.has-change-columns{max-width:1100px}
.tsam-gm-public-table-wrap.has-change-columns .tsam-gm-public-table tbody th{width:22%}
.tsam-gm-public-table-wrap.has-change-columns .tsam-gm-public-table tbody td{width:auto}
.tsam-gm-change-cell{text-align:center!important}
.tsam-gm-change{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:4px 8px;border-radius:999px;font-weight:700;font-size:.88em;white-space:nowrap}
.tsam-gm-change.is-up{color:#137a45;background:#eaf8f0}
.tsam-gm-change.is-down{color:#c52b2b;background:#fff0f0}
.tsam-gm-change.is-flat{color:#667085;background:#f2f4f7}
.tsam-gm-no-change-data{color:#777;font-size:.82em;white-space:normal}
.tsam-gm-comparison-meta{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:5px 8px;margin-top:8px;color:#666;font-size:.88em}
.tsam-gm-comparison-meta strong{color:#333}
.tsam-gm-price-summary__item small{margin-top:2px}
.tsam-gm-chart-stage{position:relative;min-height:240px}
.tsam-gm-chart-message{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;text-align:center;color:#666;background:rgba(255,255,255,.88);border:1px solid #ececec;border-radius:8px;z-index:2}
.tsam-gm-chart-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.tsam-gm-chart-toolbar label{font-weight:700}
.tsam-gm-chart-select{min-width:210px;max-width:100%;padding:8px 34px 8px 10px;border:1px solid #cfcfcf;border-radius:7px;background:#fff;color:inherit;font:inherit}
.tsam-gm-chart-period{margin-left:auto;color:#666;font-size:.9em}
@media(max-width:760px){
  .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-public-table tr{grid-template-columns:minmax(105px,.9fr) minmax(0,1.5fr)}
  .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-public-table tbody th{grid-row:1 / span 4}
  .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-public-table tbody td{font-size:.94em}
  .tsam-gm-change{padding:3px 7px;font-size:.82em}
  .tsam-gm-comparison-meta{justify-content:flex-start;line-height:1.55}
  .tsam-gm-chart-toolbar{align-items:stretch;flex-direction:column}
  .tsam-gm-chart-select{width:100%}
  .tsam-gm-chart-period{margin-left:0}
}

/* V3.2.2: compact responsive price table and market overview */
.tsam-gm-market-overview{
    margin:0 0 14px;
    padding:14px;
    border:1px solid var(--tsam-border);
    border-radius:12px;
    background:linear-gradient(135deg,#fffdf8 0%,#fff 100%);
}
.tsam-gm-market-overview__heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:10px;
}
.tsam-gm-market-overview__heading strong{font-size:1.02em}
.tsam-gm-market-overview__heading .tsam-gm-updated-at{font-size:.85em;color:var(--tsam-muted)}
.tsam-gm-market-overview__grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:8px;
}
.tsam-gm-market-overview__item{
    min-width:0;
    padding:9px 10px;
    border:1px solid #ece6da;
    border-radius:9px;
    background:#fff;
}
.tsam-gm-market-overview__item>span{
    display:block;
    margin-bottom:6px;
    color:var(--tsam-muted);
    font-size:.84em;
    font-weight:600;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.tsam-gm-overview-empty{color:#98a2b3}
.tsam-gm-material-name{display:inline-block;max-width:100%}

@media(max-width:760px){
    .tsam-gm-market-overview{padding:12px}
    .tsam-gm-market-overview__heading{align-items:flex-start;flex-direction:column;gap:5px}
    .tsam-gm-market-overview__grid{grid-template-columns:repeat(2,minmax(0,1fr))}

    .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-public-table tr{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:0;
        padding:0;
        border-radius:11px;
    }
    .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-public-table tbody th{
        grid-column:1 / -1;
        grid-row:auto;
        min-height:auto;
        padding:10px 12px;
        border:0;
        border-bottom:1px solid var(--tsam-border);
        background:var(--tsam-soft);
        font-size:1em;
        line-height:1.25;
        white-space:normal!important;
    }
    .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-public-table tbody td{
        display:block;
        padding:9px 10px;
        border:0;
        border-bottom:1px solid #eee;
        text-align:left;
        white-space:normal!important;
        min-width:0;
    }
    .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-public-table tbody td:nth-of-type(odd){border-right:1px solid #eee}
    .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-public-table tbody td::before{
        display:block;
        margin:0 0 4px;
        padding:0;
        font-size:.76em;
        line-height:1.2;
    }
    .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-public-table tbody td:nth-last-child(-n+2){border-bottom:0}
    .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-change-cell{text-align:left!important}
    .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-change{
        max-width:100%;
        padding:3px 7px;
        font-size:.8em;
        overflow:hidden;
        text-overflow:ellipsis;
    }
    .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-pending{
        grid-column:1 / -1;
        grid-row:auto;
        padding:13px;
        border:0;
    }
}

@media(max-width:420px){
    .tsam-gm-public-table-wrap,
    .tsam-gm-price-summary,
    .tsam-gm-chart-card{margin-left:0;margin-right:0}
    .tsam-gm-market-overview__grid{grid-template-columns:1fr 1fr}
    .tsam-gm-market-overview__item{padding:8px}
    .tsam-gm-change{font-size:.76em}
}

/* V3.2.2 Final: polished compact mobile presentation */
.tsam-gm-public-table caption{
    display:block;
    width:100%;
    max-width:100%;
    white-space:nowrap!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    text-align:left;
    font-size:clamp(1.35rem,4.8vw,1.75rem);
    line-height:1.2;
    padding:0 0 14px;
}
.tsam-gm-market-overview__item>span,
.tsam-gm-material-name{
    overflow:visible;
    text-overflow:clip;
}
@media(max-width:760px){
    .tsam-gm-public-table-wrap{margin-top:1rem;margin-bottom:1rem}
    .tsam-gm-market-overview{margin-bottom:18px;border-radius:14px}
    .tsam-gm-market-overview__heading strong{font-size:1.08rem}
    .tsam-gm-market-overview__grid{gap:10px}
    .tsam-gm-market-overview__item{padding:10px 11px;min-height:82px}
    .tsam-gm-market-overview__item>span{
        white-space:normal;
        line-height:1.25;
        min-height:2.5em;
        font-size:.9em;
    }
    .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-public-table tr{
        margin-bottom:12px;
        box-shadow:0 2px 10px rgba(17,24,39,.045);
    }
    .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-public-table tbody th{
        padding:9px 11px;
        font-size:1.03rem;
        line-height:1.2;
    }
    .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-public-table tbody td{
        padding:7px 10px 8px;
        font-size:.98rem;
        line-height:1.25;
        font-variant-numeric:tabular-nums;
    }
    .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-public-table tbody td::before{
        margin-bottom:3px;
        font-size:.72rem;
        letter-spacing:.01em;
    }
    .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-public-table tbody td .tsam-gm-unit-label{font-size:.72rem}
    .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-public-table tbody td .tsam-gm-unit-value{font-size:.9rem}
    .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-change{
        width:auto;
        max-width:100%;
        padding:3px 7px;
        font-size:.78rem;
        line-height:1.25;
    }
    .tsam-gm-table-meta{font-size:.86rem}
    .tsam-gm-comparison-meta{font-size:.82rem}
}
@media(max-width:380px){
    .tsam-gm-public-table caption{font-size:1.3rem}
    .tsam-gm-market-overview__grid{grid-template-columns:1fr 1fr}
    .tsam-gm-market-overview__item{padding:9px;min-height:78px}
    .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-public-table tbody td{font-size:.91rem}
}


/* V3.2.3: fixed-height, theme-safe chart rendering */
.tsam-gm-chart-card{overflow:hidden}
.tsam-gm-chart-stage{
    position:relative!important;
    width:100%!important;
    height:var(--tsam-chart-height,340px)!important;
    min-height:var(--tsam-chart-height,340px)!important;
    max-height:var(--tsam-chart-height,340px)!important;
    overflow:hidden!important;
    border:1px solid #ececec;
    border-radius:8px;
    background:#fff;
    box-sizing:border-box;
}
.tsam-gm-chart-stage .tsam-gm-chart-canvas{
    position:absolute!important;
    inset:0!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    min-height:0!important;
    max-height:100%!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    object-fit:fill!important;
    aspect-ratio:auto!important;
}
.tsam-gm-chart-stage .tsam-gm-chart-message{inset:0!important}
@media(max-width:600px){
    .tsam-gm-chart-stage{
        height:min(var(--tsam-chart-height,300px),300px)!important;
        min-height:min(var(--tsam-chart-height,300px),300px)!important;
        max-height:min(var(--tsam-chart-height,300px),300px)!important;
    }
    .tsam-gm-chart-card{padding:12px}
    .tsam-gm-chart-title{font-size:1.08em;line-height:1.3}
}

/* TSAM Manager 4.0: chart periods, clearer axes and mobile-friendly interaction */
.tsam-gm-chart-card{overflow:hidden}
.tsam-gm-chart-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.tsam-gm-chart-field{display:grid;gap:6px;min-width:220px;flex:1 1 240px}
.tsam-gm-chart-field label{font-weight:700}
.tsam-gm-chart-heading-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.tsam-gm-chart-heading-row .tsam-gm-chart-title{margin:0}
.tsam-gm-chart-period{color:#667085;font-size:.9em;line-height:1.4}
.tsam-gm-chart-periods{display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid #e4e7ec;border-radius:10px;background:#f8fafc;max-width:100%;overflow-x:auto;scrollbar-width:thin}
.tsam-gm-chart-period-button{appearance:none;border:0;border-radius:7px;background:transparent;color:#475467;cursor:pointer;font:600 .88em/1.2 inherit;padding:8px 10px;white-space:nowrap}
.tsam-gm-chart-period-button:hover,.tsam-gm-chart-period-button:focus{background:#eef2f6;color:#1d2939;outline:none}
.tsam-gm-chart-period-button.is-active{background:#fff;color:#7a4b08;box-shadow:0 1px 4px rgba(16,24,40,.12)}
.tsam-gm-chart-stage{position:relative;min-height:240px;overflow:hidden;border:1px solid #ececec;border-radius:10px;background:#fff}
.tsam-gm-chart-canvas{border:0!important;border-radius:0!important}
.tsam-gm-chart-tooltip{position:absolute;z-index:4;min-width:132px;padding:8px 10px;border:1px solid rgba(0,0,0,.12);border-radius:8px;background:rgba(17,24,39,.92);box-shadow:0 6px 18px rgba(0,0,0,.18);color:#fff;font-size:12px;line-height:1.5;white-space:pre-line;pointer-events:none}
.tsam-gm-chart-axis-note{margin:10px 0 0;color:#667085;font-size:.82em;line-height:1.5}
@media(max-width:760px){
  .tsam-gm-chart-card{padding:12px}
  .tsam-gm-chart-toolbar{align-items:stretch;flex-direction:column}
  .tsam-gm-chart-field{min-width:0;width:100%}
  .tsam-gm-chart-select{width:100%;min-width:0}
  .tsam-gm-chart-periods{display:grid;grid-template-columns:repeat(4,minmax(max-content,1fr));width:100%;box-sizing:border-box}
  .tsam-gm-chart-period-button{padding:8px 7px;font-size:.82em}
  .tsam-gm-chart-heading-row{display:block}
  .tsam-gm-chart-heading-row .tsam-gm-chart-period{display:block;margin-top:5px}
  .tsam-gm-chart-axis-note{font-size:.78em}
}

/* TSAM Manager 4.0.1: compact price columns inside the narrow homepage card.
 * The regular table remains unchanged on article pages. Inside the homepage
 * price panel every material becomes a two-column card, so no column can force
 * horizontal overflow on phones or in the desktop sidebar. */
.tsam-v2-price-panel{
    overflow-x:hidden!important;
    overflow-y:auto!important;
}
.tsam-v2-price-panel .tsam-gm-public-table-wrap,
.tsam-v2-price-panel .tsam-gm-public-table-wrap.has-change-columns{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:10px 0!important;
    overflow:hidden!important;
}
.tsam-v2-price-panel .tsam-gm-market-overview{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:10px!important;
    margin:0 0 12px!important;
}
.tsam-v2-price-panel .tsam-gm-market-overview__heading{
    gap:5px!important;
    margin-bottom:8px!important;
    align-items:flex-start!important;
    flex-direction:column!important;
}
.tsam-v2-price-panel .tsam-gm-market-overview__grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
}
.tsam-v2-price-panel .tsam-gm-market-overview__item{
    min-width:0!important;
    min-height:0!important;
    padding:8px!important;
}
.tsam-v2-price-panel .tsam-gm-market-overview__item>span{
    min-height:0!important;
    margin-bottom:5px!important;
    font-size:.82rem!important;
    line-height:1.25!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
}
.tsam-v2-price-panel .tsam-gm-public-table{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
    border:0!important;
    background:transparent!important;
    overflow:visible!important;
}
.tsam-v2-price-panel .tsam-gm-public-table caption{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    padding:2px 0 10px!important;
    margin:0!important;
    color:#2f2925!important;
    font-size:1.12rem!important;
    line-height:1.3!important;
    text-align:left!important;
    white-space:normal!important;
    overflow:visible!important;
}
.tsam-v2-price-panel .tsam-gm-public-table thead{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
}
.tsam-v2-price-panel .tsam-gm-public-table tbody{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
}
.tsam-v2-price-panel .tsam-gm-public-table tbody tr{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0 0 9px!important;
    padding:0!important;
    border:1px solid #e8e2dc!important;
    border-radius:10px!important;
    background:#fff!important;
    overflow:hidden!important;
    box-shadow:0 2px 8px rgba(17,24,39,.035)!important;
}
.tsam-v2-price-panel .tsam-gm-public-table tbody th{
    grid-column:1/-1!important;
    grid-row:auto!important;
    display:block!important;
    width:auto!important;
    min-width:0!important;
    padding:8px 10px!important;
    border:0!important;
    border-bottom:1px solid #ece7e1!important;
    background:#faf8f4!important;
    color:#39322d!important;
    font-size:.92rem!important;
    line-height:1.25!important;
    text-align:left!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
}
.tsam-v2-price-panel .tsam-gm-public-table tbody td{
    display:block!important;
    width:auto!important;
    max-width:100%!important;
    min-width:0!important;
    padding:7px 8px!important;
    border:0!important;
    border-bottom:1px solid #eee!important;
    background:#fff!important;
    color:#333!important;
    font-size:.85rem!important;
    line-height:1.25!important;
    text-align:left!important;
    white-space:normal!important;
    overflow:hidden!important;
    overflow-wrap:anywhere!important;
    font-variant-numeric:tabular-nums!important;
}
.tsam-v2-price-panel .tsam-gm-public-table tbody td:nth-of-type(odd){
    border-right:1px solid #eee!important;
}
.tsam-v2-price-panel .tsam-gm-public-table tbody td:nth-last-child(-n+2){
    border-bottom:0!important;
}
.tsam-v2-price-panel .tsam-gm-public-table tbody td::before{
    display:block!important;
    content:attr(data-label)!important;
    margin:0 0 3px!important;
    padding:0!important;
    color:#77706a!important;
    font-size:.68rem!important;
    font-weight:700!important;
    line-height:1.2!important;
    text-transform:none!important;
    white-space:normal!important;
}
.tsam-v2-price-panel .tsam-gm-public-table tbody td[data-multi-unit="1"]{
    grid-column:1/-1!important;
    border-right:0!important;
}
.tsam-v2-price-panel .tsam-gm-public-table tbody td[data-multi-unit="1"]:not(:last-child){
    border-bottom:1px solid #eee!important;
}
.tsam-v2-price-panel .tsam-gm-public-table tbody td .tsam-gm-unit-stack{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    gap:4px!important;
}
.tsam-v2-price-panel .tsam-gm-public-table tbody td .tsam-gm-unit-row{
    display:flex!important;
    width:100%!important;
    min-width:0!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
}
.tsam-v2-price-panel .tsam-gm-unit-label{
    flex:0 0 auto!important;
    font-size:.7rem!important;
}
.tsam-v2-price-panel .tsam-gm-unit-value{
    min-width:0!important;
    font-size:.82rem!important;
    text-align:right!important;
    white-space:nowrap!important;
}
.tsam-v2-price-panel .tsam-gm-change-cell{
    text-align:left!important;
}
.tsam-v2-price-panel .tsam-gm-change{
    display:inline-flex!important;
    width:auto!important;
    max-width:100%!important;
    padding:3px 6px!important;
    gap:3px!important;
    font-size:.72rem!important;
    line-height:1.2!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
}
.tsam-v2-price-panel .tsam-gm-pending{
    grid-column:1/-1!important;
    padding:11px!important;
    border-right:0!important;
    text-align:center!important;
}
.tsam-v2-price-panel .tsam-gm-pending::before{display:none!important}
.tsam-v2-price-panel .tsam-gm-table-meta,
.tsam-v2-price-panel .tsam-gm-comparison-meta{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    font-size:.74rem!important;
    line-height:1.5!important;
    text-align:left!important;
    overflow-wrap:break-word!important;
}
.tsam-v2-price-panel .tsam-gm-table-meta>span{
    display:flex!important;
    margin-top:6px!important;
}
@media(max-width:390px){
    .tsam-v2-price-panel .tsam-gm-public-table tbody td{
        padding:6px 7px!important;
        font-size:.8rem!important;
    }
    .tsam-v2-price-panel .tsam-gm-public-table tbody th{
        font-size:.88rem!important;
    }
    .tsam-v2-price-panel .tsam-gm-change{
        font-size:.68rem!important;
    }
}

/* TSAM Manager 4.0.2: force the detailed gold/silver price tables into
 * compact two-column cards on phones. These selectors intentionally use
 * high specificity and !important because some WordPress themes apply
 * table display/min-width rules after plugin styles. */
@media (max-width:782px){
    body .tsam-gm-public-table-wrap.has-change-columns{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        margin-left:0!important;
        margin-right:0!important;
        overflow:visible!important;
        box-sizing:border-box!important;
    }
    body .tsam-gm-public-table-wrap.has-change-columns table.tsam-gm-public-table{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        table-layout:fixed!important;
        border:0!important;
        background:transparent!important;
        overflow:visible!important;
        box-sizing:border-box!important;
    }
    body .tsam-gm-public-table-wrap.has-change-columns table.tsam-gm-public-table caption{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        padding:0 0 12px!important;
        margin:0!important;
        white-space:normal!important;
        overflow:visible!important;
        box-sizing:border-box!important;
    }
    body .tsam-gm-public-table-wrap.has-change-columns table.tsam-gm-public-table thead{
        position:absolute!important;
        width:1px!important;
        height:1px!important;
        padding:0!important;
        margin:-1px!important;
        overflow:hidden!important;
        clip:rect(0,0,0,0)!important;
        clip-path:inset(50%)!important;
        white-space:nowrap!important;
        border:0!important;
    }
    body .tsam-gm-public-table-wrap.has-change-columns table.tsam-gm-public-table tbody{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        box-sizing:border-box!important;
    }
    body .tsam-gm-public-table-wrap.has-change-columns table.tsam-gm-public-table tbody tr{
        display:grid!important;
        grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        margin:0 0 12px!important;
        padding:0!important;
        border:1px solid var(--tsam-border,#dedede)!important;
        border-radius:11px!important;
        background:#fff!important;
        overflow:hidden!important;
        box-sizing:border-box!important;
        box-shadow:0 2px 10px rgba(17,24,39,.045)!important;
    }
    body .tsam-gm-public-table-wrap.has-change-columns table.tsam-gm-public-table tbody th{
        grid-column:1/-1!important;
        grid-row:auto!important;
        display:block!important;
        width:auto!important;
        max-width:100%!important;
        min-width:0!important;
        padding:9px 11px!important;
        margin:0!important;
        border:0!important;
        border-bottom:1px solid var(--tsam-border,#dedede)!important;
        background:var(--tsam-soft,#faf8f3)!important;
        font-size:1rem!important;
        line-height:1.25!important;
        text-align:left!important;
        white-space:normal!important;
        word-break:normal!important;
        overflow-wrap:break-word!important;
        box-sizing:border-box!important;
    }
    body .tsam-gm-public-table-wrap.has-change-columns table.tsam-gm-public-table tbody td{
        display:block!important;
        width:auto!important;
        max-width:100%!important;
        min-width:0!important;
        padding:8px 9px!important;
        margin:0!important;
        border:0!important;
        border-bottom:1px solid #eee!important;
        background:#fff!important;
        font-size:.9rem!important;
        line-height:1.3!important;
        text-align:left!important;
        white-space:normal!important;
        word-break:normal!important;
        overflow-wrap:anywhere!important;
        overflow:hidden!important;
        box-sizing:border-box!important;
        font-variant-numeric:tabular-nums!important;
    }
    body .tsam-gm-public-table-wrap.has-change-columns table.tsam-gm-public-table tbody td:nth-of-type(odd){
        border-right:1px solid #eee!important;
    }
    body .tsam-gm-public-table-wrap.has-change-columns table.tsam-gm-public-table tbody td:nth-last-child(-n+2){
        border-bottom:0!important;
    }
    body .tsam-gm-public-table-wrap.has-change-columns table.tsam-gm-public-table tbody td::before{
        display:block!important;
        content:attr(data-label)!important;
        margin:0 0 3px!important;
        padding:0!important;
        color:#6b7280!important;
        font-size:.7rem!important;
        font-weight:700!important;
        line-height:1.2!important;
        white-space:normal!important;
    }
    body .tsam-gm-public-table-wrap.has-change-columns table.tsam-gm-public-table tbody td[data-price-side] .tsam-gm-unit-value,
    body .tsam-gm-public-table-wrap.has-change-columns table.tsam-gm-public-table tbody td[data-price-side="buy"],
    body .tsam-gm-public-table-wrap.has-change-columns table.tsam-gm-public-table tbody td[data-price-side="sell"]{
        font-size:.88rem!important;
    }
    body .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-change-cell{
        text-align:left!important;
    }
    body .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-change{
        display:inline-flex!important;
        width:auto!important;
        max-width:100%!important;
        padding:3px 6px!important;
        font-size:.74rem!important;
        line-height:1.25!important;
        white-space:normal!important;
        overflow-wrap:anywhere!important;
    }
    body .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-pending{
        grid-column:1/-1!important;
        padding:12px!important;
        border-right:0!important;
        text-align:center!important;
    }
    body .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-pending::before{display:none!important}
    body .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-table-meta,
    body .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-comparison-meta{
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        text-align:left!important;
        overflow-wrap:anywhere!important;
        box-sizing:border-box!important;
    }
}
@media (max-width:390px){
    body .tsam-gm-public-table-wrap.has-change-columns table.tsam-gm-public-table tbody td{
        padding:7px!important;
        font-size:.84rem!important;
    }
    body .tsam-gm-public-table-wrap.has-change-columns .tsam-gm-change{
        font-size:.69rem!important;
        padding:3px 5px!important;
    }
}
