/* HP Gold — scoped to plugin classes, Flatsome-safe */
.hp-gold-widget{--hpg-accent:#bf8d2e;--hpg-text:var(--wp--preset--color--contrast,#222936);--hpg-muted:#7a8595;--hpg-border:#e9eaf0;--hpg-surface:#fff;--hpg-bg:#f7f8fb;color:var(--hpg-text);font:inherit;box-sizing:border-box;max-width:100%;}
.hp-gold-widget *{box-sizing:border-box}
.hp-gold-widget button,.hp-gold-widget select{font:inherit;letter-spacing:normal;text-transform:none}
.hp-gold-price-widget,.hp-gold-chart-widget,.hp-gold-dashboard{background:var(--hpg-surface);border:1px solid var(--hpg-border);border-radius:18px;padding:clamp(15px,3vw,28px);box-shadow:0 8px 32px rgba(16,25,40,.045);margin:16px 0 24px}
.hp-gold-dashboard{padding:clamp(16px,3vw,32px)}
.hp-gold-heading,.hp-gold-chart-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:22px}
.hp-gold-heading h2,.hp-gold-heading h3,.hp-gold-chart-head h3{margin:0;color:inherit;line-height:1.35;font-weight:750;letter-spacing:-.035em}
.hp-gold-heading h2{font-size:clamp(23px,3vw,32px)}.hp-gold-heading h3{font-size:23px}
.hp-gold-eyebrow{font-size:11px;letter-spacing:.16em;font-weight:800;color:var(--hpg-accent);display:block;margin-bottom:6px}
.hp-gold-live{display:inline-flex;align-items:center;gap:8px;color:#738092;font-size:12px;white-space:nowrap;line-height:20px;margin-top:4px}
.hp-gold-live span{width:7px;height:7px;background:#20b27d;border-radius:50%;box-shadow:0 0 0 4px rgba(32,178,125,.12)}
.hp-gold-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.hp-gold-table{width:100%;min-width:580px;border-collapse:collapse!important;border:0!important;background:transparent!important;margin:0!important;font-size:14px;white-space:normal}
.hp-gold-table tr{border-bottom:1px solid var(--hpg-border)!important;background:transparent!important}
.hp-gold-table tbody tr:last-child{border-bottom:0!important}
.hp-gold-table th{font-size:12px;font-weight:650!important;color:var(--hpg-muted);text-transform:none;white-space:nowrap;background:var(--hpg-bg)!important;padding:13px 14px!important;border:0!important}
.hp-gold-table th:first-child{border-radius:8px 0 0 8px}.hp-gold-table th:last-child{border-radius:0 8px 8px 0}
.hp-gold-table td{padding:17px 14px!important;border:0!important;color:var(--hpg-text);vertical-align:middle}
.hp-gold-table th:first-child,.hp-gold-table td:first-child{padding-left:13px!important;text-align:left}
.hp-gold-table td:nth-child(2),.hp-gold-table td:nth-child(3),.hp-gold-table th:nth-child(2),.hp-gold-table th:nth-child(3){text-align:right}
.hp-gold-table td:last-child,.hp-gold-table th:last-child{text-align:right}
.hp-gold-coin{font-weight:680;display:block}.hp-gold-table td small{display:block;margin-top:3px;color:var(--hpg-muted);font-size:11px;line-height:1.4}
.hp-gold-money{font-weight:750;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:15px}
.hp-gold-table td:nth-child(3){color:var(--hpg-accent)}
.hp-gold-update{color:var(--hpg-muted)!important;font-size:11px;white-space:nowrap}.hp-gold-update em{display:block;font-style:normal;color:#b77914}
.hp-gold-footnote{font-size:11px;line-height:1.65;color:var(--hpg-muted);margin-top:16px}
.hp-gold-footnote a{color:var(--hpg-accent)!important;text-decoration:underline;text-underline-offset:3px}
.hp-gold-chart-head{align-items:center;margin-bottom:17px}
.hp-gold-chart-head h3{font-size:clamp(17px,2vw,23px)}
.hp-gold-chart-value{color:var(--hpg-accent);font-size:clamp(19px,2.4vw,27px);font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.hp-gold-chart-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.hp-gold-range{display:flex;gap:4px;align-items:center;background:var(--hpg-bg);padding:4px;border-radius:9px}
.hp-gold-range button{background:transparent!important;border:0!important;border-radius:7px!important;box-shadow:none!important;min-height:31px!important;padding:5px 11px!important;font-size:12px!important;font-weight:700;color:#768292!important;cursor:pointer;line-height:1.2!important}
.hp-gold-range button.is-active{background:var(--hpg-accent)!important;color:white!important;box-shadow:0 2px 7px rgba(0,0,0,.12)!important}
.hp-gold-legend{display:flex;gap:14px}.hp-gold-legend button{border:0!important;background:transparent!important;box-shadow:none!important;min-height:20px!important;padding:4px 0!important;color:#6a7686!important;font-size:12px!important;font-weight:550;display:flex;align-items:center;gap:6px;cursor:pointer;line-height:1.4!important}.hp-gold-legend button.is-muted{opacity:.38}
.hp-gold-legend button[hidden]{display:none!important}
.hp-gold-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--hpg-accent)}.hp-gold-dot.buy{background:#3e96b7}
.hp-gold-plot{position:relative;max-width:100%;width:100%;background:linear-gradient(180deg,rgba(180,151,90,.025),transparent);border-radius:9px}
.hp-gold-plot svg{display:block;width:100%;height:100%;overflow:visible;touch-action:pan-y;user-select:none}
.hp-gold-grid line{stroke:var(--hpg-border);stroke-width:1;stroke-dasharray:3 5}.hp-gold-grid text{fill:#8993a0;font-size:11px;font-weight:500;dominant-baseline:auto}
.hp-gold-area{fill:var(--hpg-accent);fill-opacity:.10;stroke:none}.hp-gold-sell-line{fill:none;stroke:var(--hpg-accent);stroke-width:2.6}.hp-gold-buy-line{fill:none;stroke:#3e96b7;stroke-width:2.2}
.hp-gold-sell-line-dot{fill:var(--hpg-accent)}.hp-gold-buy-line-dot{fill:#3e96b7}.hp-gold-crosshair{stroke:#7a8595;stroke-width:1;stroke-dasharray:4 3}.hp-gold-pointer-dot{fill:var(--hpg-accent);stroke:#fff;stroke-width:2}.hp-gold-hitbox{cursor:crosshair}
.hp-gold-tooltip{position:absolute;z-index:3;pointer-events:none;white-space:nowrap;border:1px solid var(--hpg-border);background:#fff;padding:10px 12px;border-radius:10px;box-shadow:0 7px 25px rgba(0,0,0,.15);font-size:12px;line-height:1.55;color:#293345}
.hp-gold-tooltip strong,.hp-gold-tooltip span{display:block}.hp-gold-tooltip strong{margin-bottom:3px}
.hp-gold-empty{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;text-align:center;padding:25px;font-size:13px;color:var(--hpg-muted);line-height:1.65}.hp-gold-empty[hidden]{display:none!important}
.hp-gold-chart-hint{margin-top:11px;color:#939daa;font-size:11px;line-height:1.6}
.hp-gold-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:25px}
.hp-gold-stat{background:var(--hpg-bg);border:1px solid var(--hpg-border);border-radius:13px;padding:17px 19px;min-width:0}
.hp-gold-stat>span{font-size:13px;display:block;color:#6b7787;font-weight:600;margin-bottom:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.hp-gold-stat strong{display:block;font-size:clamp(16px,2.1vw,24px);white-space:nowrap;letter-spacing:-.02em;font-weight:800;color:var(--hpg-accent);font-variant-numeric:tabular-nums}
.hp-gold-stat small{display:block;font-size:11px;color:#8893a0;margin-top:7px}
.hp-gold-picker{display:flex;gap:15px;align-items:center;justify-content:space-between;margin:12px 0 18px}
.hp-gold-picker label{font-size:13px;font-weight:700}.hp-gold-picker select{border:1px solid var(--hpg-border)!important;box-shadow:none!important;border-radius:9px!important;font-weight:600;min-height:38px;min-width:220px;max-width:100%;padding:5px 15px!important;background:white;color:inherit}
.hp-gold-table-title{font-size:17px;font-weight:750;margin:23px 0 7px}
.hp-gold-dashboard .hp-gold-chart{border:1px solid var(--hpg-border);padding:18px;border-radius:13px}
.hp-gold-ticker{display:flex;align-items:center;flex-wrap:wrap;gap:2px;background:#232831;color:white!important;padding:12px 14px;border-radius:10px;margin:10px 0;overflow:hidden}
.hp-gold-ticker>span{display:inline-flex;align-items:center;gap:9px;padding:8px 15px;border-right:1px solid rgba(255,255,255,.16);font-size:13px;white-space:nowrap}
.hp-gold-ticker>span:last-child{border-right:0}.hp-gold-ticker b{font-weight:600;color:#d4d7de}.hp-gold-ticker em{font-style:normal;font-weight:800;color:#e9c27b;font-variant-numeric:tabular-nums}
@media(max-width:720px){.hp-gold-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hp-gold-stat:last-child:nth-child(odd){grid-column:1/-1}.hp-gold-live{display:none}.hp-gold-dashboard .hp-gold-chart{padding:11px}.hp-gold-plot{min-height:220px}.hp-gold-picker{align-items:stretch;flex-direction:column;gap:7px}.hp-gold-picker select{width:100%;min-width:0}}
@media(max-width:440px){.hp-gold-price-widget,.hp-gold-chart-widget,.hp-gold-dashboard{border-radius:13px;padding:14px}.hp-gold-stat{padding:13px 12px}.hp-gold-stat strong{font-size:17px}.hp-gold-chart-head{gap:9px}.hp-gold-range button{padding:5px 7px!important}.hp-gold-legend{gap:9px}.hp-gold-chart-toolbar{gap:4px}.hp-gold-ticker{gap:4px}.hp-gold-ticker>span{border:0}}

/* 1.1.0 — brand lettermarks, bold selector buttons and purchase-price color */
.hp-gold-widget{--hpg-buy:#3e96b7}
.hp-gold-brand-logo{width:38px;height:38px;flex:0 0 38px;object-fit:contain;vertical-align:middle;border-radius:9px;box-shadow:0 1px 4px rgba(27,33,44,.09)}
.hp-gold-brand-cell{display:flex;align-items:center;gap:11px;min-width:170px}
.hp-gold-brand-cell>span{display:block;min-width:0}
.hp-gold-table td.hp-gold-money:nth-child(2){color:var(--hpg-buy)!important}
.hp-gold-stat-name{display:flex!important;gap:8px;align-items:center}
.hp-gold-stat-name .hp-gold-brand-logo{width:27px;height:27px;flex-basis:27px;border-radius:7px}
.hp-gold-ticker .hp-gold-brand-logo{width:25px;height:25px;flex-basis:25px;border-radius:6px}
.hp-gold-price-pair{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:16px}
.hp-gold-price-pair>span{display:flex;flex-direction:column;gap:2px;text-align:right;line-height:1.2}
.hp-gold-price-pair small{font-size:11px;color:var(--hpg-muted);font-weight:600}
.hp-gold-chart-buy strong{color:var(--hpg-buy);font-size:clamp(18px,2.5vw,26px);font-weight:800;font-variant-numeric:tabular-nums}
.hp-gold-chart-value strong{color:var(--hpg-accent);font-size:clamp(18px,2.5vw,26px);font-weight:800;font-variant-numeric:tabular-nums}
.hp-gold-chart-buy[hidden]{display:none!important}
.hp-gold-chart-name{margin:0}
.hp-gold-picker{display:block;margin:10px 0 18px}
.hp-gold-picker-title{font-size:14px;font-weight:800;color:var(--hpg-text);display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}
.hp-gold-picker-title small{font-size:11px;font-weight:500;color:var(--hpg-buy)}
.hp-gold-choice-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:9px;max-width:100%}
.hp-gold-widget button.hp-gold-choice{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px;min-width:0;min-height:63px!important;padding:10px 11px!important;text-align:left!important;border:1.5px solid var(--hpg-border)!important;border-radius:11px!important;background:#fff!important;box-shadow:none!important;color:var(--hpg-text)!important;font-weight:500;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s,transform .15s;line-height:1.2!important;text-transform:none!important}
.hp-gold-widget button.hp-gold-choice:hover{background:#f4fafc!important;border-color:var(--hpg-buy)!important;transform:translateY(-1px)}
.hp-gold-widget button.hp-gold-choice.is-active{background:#eff8fc!important;border-color:var(--hpg-buy)!important;box-shadow:0 0 0 1px var(--hpg-buy)!important}
.hp-gold-widget button.hp-gold-choice:focus-visible{outline:3px solid rgba(62,150,183,.32)!important;outline-offset:2px!important}
.hp-gold-choice .hp-gold-brand-logo{width:36px;height:36px;flex-basis:36px}
.hp-gold-choice-body{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.hp-gold-choice-body>strong{font-size:12px;color:var(--hpg-text);font-weight:750;line-height:1.25;white-space:normal}
.hp-gold-choice-meta{font-size:10px;color:var(--hpg-muted);white-space:nowrap}
.hp-gold-choice-meta b{font-weight:800;color:var(--hpg-buy);font-size:12px;font-variant-numeric:tabular-nums;margin-left:3px}
.hp-gold-widget button.hp-gold-choice[data-hp-gold-choice="XAUUSD"] .hp-gold-choice-meta b{color:var(--hpg-accent)}
.hp-gold-chart-value{white-space:nowrap}
@media(max-width:720px){.hp-gold-choice-list{grid-template-columns:repeat(2,minmax(0,1fr))}.hp-gold-choice-meta{white-space:normal}.hp-gold-picker-title{flex-wrap:wrap}.hp-gold-price-pair{gap:9px}}
@media(max-width:440px){.hp-gold-choice-list{gap:7px}.hp-gold-widget button.hp-gold-choice{padding:8px!important;min-height:70px!important}.hp-gold-choice .hp-gold-brand-logo{width:30px;height:30px;flex-basis:30px}.hp-gold-choice-body>strong{font-size:11px}.hp-gold-chart-head{flex-wrap:wrap}.hp-gold-price-pair{justify-content:flex-start;width:100%;gap:18px}.hp-gold-price-pair>span{text-align:left}.hp-gold-chart-head h3{font-size:18px}}

/* v1.2.0 — plot-level loading/error overlay, visible above even the old chart */
.hp-gold-plot .hp-gold-overlay{position:absolute;inset:0;z-index:5;display:flex;align-items:center;justify-content:center;padding:17px;border-radius:9px;background:rgba(248,250,253,.92);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);text-align:center;transition:opacity .15s ease}
.hp-gold-plot .hp-gold-overlay[hidden]{display:none!important}
.hp-gold-overlay-card{width:min(100%,380px);background:rgba(255,255,255,.97);border:1px solid #e1e7ef;border-radius:14px;padding:22px 18px;box-shadow:0 10px 32px rgba(32,54,74,.10);display:flex;flex-direction:column;align-items:center;gap:10px;line-height:1.5}
.hp-gold-overlay-card strong{font-size:15px;color:#243549;font-weight:760;letter-spacing:normal}
.hp-gold-overlay-card p{font-size:12px;line-height:1.55;color:#64748b;margin:0;max-width:320px;overflow-wrap:anywhere}
.hp-gold-spinner{width:32px;height:32px;display:inline-block;border:3px solid #ddeaf1;border-top-color:var(--hpg-buy,#3e96b7);border-radius:50%;animation:hpg-spin .8s linear infinite}
.hp-gold-overlay:not(.hp-gold-overlay-loading) .hp-gold-spinner{animation:none;border:0;width:31px;height:31px;position:relative;background:#fff4de;color:#b17920}
.hp-gold-overlay:not(.hp-gold-overlay-loading) .hp-gold-spinner:before{content:'!';position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:18px;border:1px solid #e7ba6a;border-radius:50%;font-weight:800}
.hp-gold-overlay.hp-gold-overlay-error .hp-gold-spinner{background:#fff1f1;color:#c04c42}
.hp-gold-overlay.hp-gold-overlay-error .hp-gold-spinner:before{border-color:#e9a9a4}
.hp-gold-widget .hp-gold-overlay-card button[data-hp-overlay-retry]{border:1px solid var(--hpg-buy,#3e96b7)!important;background:var(--hpg-buy,#3e96b7)!important;color:#fff!important;border-radius:8px!important;padding:7px 17px!important;line-height:1.3!important;font-size:12px!important;font-weight:750;cursor:pointer;min-height:33px!important;margin:4px 0 0;box-shadow:none!important}
.hp-gold-widget .hp-gold-overlay-card button[data-hp-overlay-retry][hidden]{display:none!important}
@keyframes hpg-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.hp-gold-spinner{animation:none}}
@media(max-width:520px){.hp-gold-overlay-card{padding:14px 11px;gap:7px}.hp-gold-overlay-card strong{font-size:13px}.hp-gold-overlay-card p{font-size:11px}.hp-gold-plot .hp-gold-overlay{padding:8px}}

/* v1.3.0 — unavailable history ranges are muted and cannot be selected */
.hp-gold-widget .hp-gold-range button:disabled,
.hp-gold-widget .hp-gold-range button.is-unavailable{
  color:#a1aab8!important;
  background:transparent!important;
  opacity:.43!important;
  cursor:not-allowed!important;
  box-shadow:none!important;
  transform:none!important;
}
.hp-gold-widget .hp-gold-range button:disabled:hover,
.hp-gold-widget .hp-gold-range button.is-unavailable:hover{
  background:transparent!important;
  color:#a1aab8!important;
  opacity:.43!important;
}
.hp-gold-range-help{color:#83909e;font-size:11px;line-height:1.45;margin:-3px 0 11px;min-height:16px}
.hp-gold-range button:focus-visible{outline:2px solid var(--hpg-buy,#3e96b7)!important;outline-offset:2px!important}
