/* PRODUCT PRICE BREAKDOWN */
.wcgp-box {
    --wcgp-primary: var(--gws-primary, #9b3269);
    --wcgp-gold: var(--gws-secondary, #d7b56d);
    --wcgp-ink: var(--gws-text, #281d24);
    --wcgp-muted: var(--gws-muted, #70636b);
    margin: 22px 0 30px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--wcgp-primary) 14%, #e7dfe3);
    border-radius: 16px;
    background: linear-gradient(145deg, #fff 0%, #fffafd 100%);
    box-shadow: 0 16px 38px rgba(67, 30, 49, .08);
}

.wcgp-breakdown-head {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    padding: 20px 20px 15px;
}

.wcgp-breakdown-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--wcgp-gold) 55%, #fff);
    border-radius: 50%;
    background: color-mix(in srgb, var(--wcgp-gold) 16%, #fff);
    color: var(--wcgp-primary);
}

.wcgp-breakdown-icon svg { width: 24px; height: 24px; }
.wcgp-breakdown-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--wcgp-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.wcgp-breakdown-head h3 { margin: 0; color: var(--wcgp-ink); font-size: 20px; line-height: 1.2; }
.wcgp-breakdown-head p { margin: 5px 0 0; color: var(--wcgp-muted); font-size: 12px; line-height: 1.45; }

.wcgp-breakdown-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 20px 16px;
    overflow: hidden;
    border: 1px solid #eee5e9;
    border-radius: 10px;
    background: #fff;
}
.wcgp-breakdown-facts > span { min-width: 0; padding: 10px 12px; border-right: 1px solid #eee5e9; }
.wcgp-breakdown-facts > span:last-child { border-right: 0; }
.wcgp-breakdown-facts small, .wcgp-breakdown-facts strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wcgp-breakdown-facts small { margin-bottom: 3px; color: var(--wcgp-muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.wcgp-breakdown-facts strong { color: var(--wcgp-ink); font-size: 13px; }

.wcgp-toggle {
    width: 100%;
    min-height: 44px;
    padding: 10px 20px;
    border: 0;
    border-top: 1px solid #eee5e9;
    border-radius: 0;
    background: color-mix(in srgb, var(--wcgp-primary) 5%, #fff);
    color: var(--wcgp-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
}
.wcgp-toggle:hover { background: color-mix(in srgb, var(--wcgp-primary) 9%, #fff); color: var(--wcgp-primary); }
.wcgp-toggle-chevron { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
.wcgp-toggle[aria-expanded="true"] .wcgp-toggle-chevron { transform: rotate(225deg); }

.wcgp-content { display: none; margin: 0; padding: 10px 20px 16px; text-align: left; }
.wcgp-content.active { display: block; }

.wcgp-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: baseline;
    max-width: none;
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px dashed #eee5e9;
    font-size: 13px;
}
.wcgp-row span { min-width: 0; color: var(--wcgp-muted); font-weight: 500; }
.wcgp-row strong { color: var(--wcgp-ink); text-align: right; white-space: nowrap; }
.wcgp-row .highlight { color: var(--wcgp-primary); font-weight: 700; }

.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: 7px;
    padding: 15px 14px;
    border: 0;
    border-radius: 10px;
    background: var(--wcgp-primary);
    color: #fff;
    font-size: 16px;
}

.wcgp-row.final span,
.wcgp-row.final strong {
    color: #fff;
    font-weight: bold;
}

.wcgp-history-toggle {
    margin-top: 0;
    border-bottom: 0;
    background: color-mix(in srgb, var(--wcgp-gold) 14%, #fff);
    color: var(--wcgp-ink);
}

.wcgp-history-toggle:hover {
    background: color-mix(in srgb, var(--wcgp-gold) 22%, #fff);
    color: var(--wcgp-ink);
}

.wcgp-history-content {
    padding: 14px;
    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;
}

@media (max-width: 767px) {
    .wcgp-box { margin-block: 18px 24px; border-radius: 13px; }
    .wcgp-breakdown-head { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 16px 14px 13px; }
    .wcgp-breakdown-icon { width: 40px; height: 40px; }
    .wcgp-breakdown-icon svg { width: 21px; height: 21px; }
    .wcgp-breakdown-head h3 { font-size: 17px; }
    .wcgp-breakdown-head p { font-size: 11px; }
    .wcgp-breakdown-facts { margin: 0 14px 13px; }
    .wcgp-breakdown-facts > span { padding: 9px 8px; }
    .wcgp-breakdown-facts strong { font-size: 12px; }
    .wcgp-toggle { min-height: 42px; padding-inline: 14px; }
    .wcgp-content { padding: 8px 14px 14px; }
    .wcgp-row { gap: 10px; padding-block: 8px; font-size: 12px; }
    .wcgp-row span { line-height: 1.35; }
    .wcgp-row.final { padding: 13px 11px; font-size: 14px; }
    .wcgp-history-content { padding: 10px; }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .single-product .summary .wcgp-box { max-width: 100%; }
    .wcgp-breakdown-head { padding-inline: 18px; }
    .wcgp-breakdown-facts { margin-inline: 18px; }
    .wcgp-content { padding-inline: 18px; }
}
