/* WRAPPER */
.wcgp-box {
    margin: 20px 0 30px; /* bottom spacing added */
}

/* BUTTON */
.wcgp-toggle {
    width: 100%;
    background: #d4af37; /* gold color like reference */
    color: #fff;
    padding: 10px 14px; /* reduced height */
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border-radius: 2px;
}

/* BUTTON HOVER */
.wcgp-toggle:hover {
    background: #c29d2f;
}

/* CONTENT */
.wcgp-content {
    display: none;
    margin-top: 20px;
    margin-bottom: 20px; /* spacing below table */
    text-align: center;
}

.wcgp-content.active {
    display: block;
}

/* ROW */
.wcgp-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0; /* reduced spacing */
    max-width: 420px;
    margin: 0 auto;
    font-size: 15px;
}

/* LABEL */
.wcgp-row span {
    color: #666;
    font-weight: 500;
}

/* VALUE */
.wcgp-row strong {
    color: #444;
}

/* GOLD HIGHLIGHT VALUES */
.wcgp-row .highlight {
    color: #d4af37;
    font-weight: 600;
}

.wcgp-offer-price {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: baseline;
    gap: 8px;
}

.wcgp-offer-price del {
    color: #888;
    font-weight: 500;
    text-decoration-thickness: 1.5px;
}

.wcgp-offer-price ins {
    color: #d4af37;
    font-weight: 700;
    text-decoration: none;
}

.wcgp-saving-row {
    padding-top: 0;
    font-size: 13px;
}

.wcgp-saving-row span,
.wcgp-saving-row strong {
    color: #2e846d;
}

/* FINAL PRICE */
.wcgp-row.final {
    margin-top: 10px;
    font-size: 17px;
}

.wcgp-row.final strong {
    color: #d4af37;
    font-weight: bold;
}

.wcgp-history-toggle {
    margin-top: 12px;
    background: #19362f;
}

.wcgp-history-toggle:hover {
    background: #102720;
}

.wcgp-history-content {
    text-align: left;
}

.wcgp-history-card {
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid #dfe4e2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(24, 32, 38, 0.08);
    overflow: hidden;
}

.wcgp-market-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 20px;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid #e5e5e5;
    background: linear-gradient(180deg, #fbfcfb 0%, #fff 100%);
}

.wcgp-market-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.wcgp-market-symbol {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #19362f;
    background: #f2e5bd;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
}

.wcgp-history-title {
    display: block;
    color: #1f2933;
    font-size: 16px;
    font-weight: 800;
}

.wcgp-history-subtitle {
    display: block;
    margin-top: 3px;
    color: #7b8791;
    font-size: 12px;
    font-weight: 600;
}

.wcgp-market-quote {
    text-align: right;
}

.wcgp-history-current {
    display: block;
    color: #19362f;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
}

.wcgp-history-change {
    display: inline-flex;
    min-width: 128px;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.wcgp-history-change.positive {
    color: #2f9b82;
    background: #e6f6ee;
}

.wcgp-history-change.negative {
    color: #b94a48;
    background: #fae8e6;
}

.wcgp-history-range {
    display: inline-flex;
    align-self: stretch;
    border: 1px solid #dce5e1;
    border-radius: 8px;
    overflow: hidden;
}

.wcgp-history-range span {
    display: inline-flex;
    min-width: 68px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    color: #19362f;
    background: #eef7f4;
    font-weight: 800;
}

.wcgp-market-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid #e8ecea;
    background: #fbfcfb;
}

.wcgp-market-stats div {
    padding: 14px 18px;
    border-right: 1px solid #e8ecea;
}

.wcgp-market-stats div:last-child {
    border-right: none;
}

.wcgp-market-stats span {
    display: block;
    margin-bottom: 5px;
    color: #7b8791;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.wcgp-market-stats strong {
    display: block;
    color: #252b31;
    font-size: 14px;
    font-weight: 800;
}

.wcgp-history-chart-wrap {
    position: relative;
    padding: 28px 24px 18px;
    background:
        linear-gradient(180deg, rgba(248, 250, 249, 0.85), rgba(255, 255, 255, 0) 160px),
        #fff;
}

.wcgp-rate-chart {
    display: block;
    width: 100%;
    min-height: 300px;
    cursor: crosshair;
}

.wcgp-chart-tooltip {
    position: absolute;
    z-index: 2;
    min-width: 140px;
    padding: 9px 10px;
    border: 1px solid rgba(25, 54, 47, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 26px rgba(24, 32, 38, 0.14);
    color: #1f2933;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 120ms ease, transform 120ms ease;
}

.wcgp-chart-tooltip.active {
    opacity: 1;
    transform: translateY(0);
}

.wcgp-chart-tooltip strong {
    display: block;
    color: #19362f;
    font-size: 14px;
    font-weight: 800;
}

.wcgp-chart-tooltip span {
    display: block;
    margin-top: 3px;
    color: #7b8791;
    font-size: 12px;
    font-weight: 600;
}

.wcgp-history-note {
    margin: 0;
    padding: 0 24px 22px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .wcgp-market-head {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 18px;
    }

    .wcgp-market-quote {
        text-align: left;
    }

    .wcgp-history-current {
        font-size: 26px;
    }

    .wcgp-history-change {
        justify-self: start;
    }

    .wcgp-history-range {
        justify-self: start;
    }

    .wcgp-market-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wcgp-market-stats div:nth-child(2n) {
        border-right: none;
    }

    .wcgp-market-stats div:nth-child(-n + 2) {
        border-bottom: 1px solid #e8ecea;
    }

    .wcgp-history-chart-wrap {
        padding: 22px 10px 12px;
    }

    .wcgp-rate-chart {
        min-height: 260px;
    }
}

.wcgp-history-page {
    padding: 34px 0 46px;
    background: #f6f7f8;
}

.wcgp-history-page-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.wcgp-history-page-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: end;
    margin-bottom: 22px;
}

.wcgp-page-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: #9b7a25;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.wcgp-history-page h1 {
    margin: 0;
    color: #182026;
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
}

.wcgp-history-page-head p {
    max-width: 620px;
    margin: 10px 0 0;
    color: #68727d;
    font-size: 16px;
    line-height: 1.5;
}

.wcgp-page-window {
    min-width: 330px;
    padding: 14px;
    border: 1px solid #dfe4e2;
    border-radius: 8px;
    background: #fff;
    text-align: left;
}

.wcgp-page-window span {
    display: block;
    color: #87909a;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.wcgp-page-window strong {
    display: block;
    margin-top: 3px;
    color: #19362f;
    font-size: 20px;
    font-weight: 800;
}

.wcgp-market-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.wcgp-market-picker {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dfe4e2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(24, 32, 38, 0.06);
}

.wcgp-market-option {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #1f2933;
    cursor: pointer;
    text-align: left;
}

.wcgp-market-option:hover,
.wcgp-market-option.active {
    border-color: #ead690;
    background: #fff9e8;
}

.wcgp-market-option span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f2e5bd;
    color: #19362f;
    font-size: 12px;
    font-weight: 800;
}

.wcgp-market-option strong {
    color: #1f2933;
    font-size: 15px;
    font-weight: 800;
}

.wcgp-market-panel {
    border: 1px solid #dfe4e2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(24, 32, 38, 0.08);
    overflow: hidden;
}

.wcgp-market-page-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e8ecea;
    background: linear-gradient(180deg, #fbfcfb 0%, #fff 100%);
}

.wcgp-range-tabs {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    margin-top: 12px;
}

.wcgp-range-tabs button {
    min-width: 58px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #68727d;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.wcgp-range-tabs button:hover,
.wcgp-range-tabs button.active {
    border-color: #ead690;
    background: #fff9e8;
    color: #19362f;
}

.wcgp-page-chart-wrap {
    padding: 30px 24px 20px;
}

.wcgp-page-rate-chart {
    display: block;
    width: 100%;
    min-height: 340px;
    cursor: crosshair;
}

@media (max-width: 860px) {
    .wcgp-market-shell {
        grid-template-columns: 1fr;
    }

    .wcgp-market-picker {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .wcgp-history-page {
        padding: 24px 0 34px;
    }

    .wcgp-history-page-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .wcgp-history-page h1 {
        font-size: 32px;
    }

    .wcgp-page-window {
        min-width: 0;
        width: 100%;
    }

    .wcgp-market-picker {
        grid-template-columns: 1fr;
    }

    .wcgp-market-page-head {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .wcgp-page-chart-wrap {
        padding: 22px 10px 14px;
    }

    .wcgp-page-rate-chart {
        min-height: 280px;
    }
}

/* SHOP LOOP PRODUCT WEIGHT BADGE */
.products li.product {
    position: relative;
}

.wcgp-weight-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background-color: #9b3269;
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.wcgp-weight-badge span {
    color: #fff;
}

