.cost-history-open{display:block;margin:7px 0 0;padding:4px 8px;font-size:11px;font-weight:500;color:#654591;background:#f5f1fa;border:1px solid #ddd0ed;border-radius:5px;white-space:nowrap}
.cost-history-dialog{width:min(920px,95vw);max-height:88vh;padding:0;border:1px solid #dcd6e7;border-radius:14px;color:#21354d;background:#fff;box-shadow:0 20px 65px #17263c35}
.cost-history-dialog::backdrop{background:#27314880}
.cost-history-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:22px 24px;border-bottom:1px solid #e5dfed;background:#faf8fd}
.cost-history-heading h2{font-size:20px;margin:5px 0 0;overflow-wrap:anywhere}
.cost-history-heading .eyebrow{margin:0;font-size:10px;letter-spacing:1.5px;color:#76608d}
.cost-history-close{flex-shrink:0;padding:7px 12px;font-size:12px;color:#654591;background:#fff;border:1px solid #d8cce6;border-radius:6px}
.cost-history-body{padding:20px 24px}
.cost-history-product{margin:0 0 16px;color:#566782;font-size:13px;overflow-wrap:anywhere}
.cost-history-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:15px}
.cost-history-summary>div{padding:14px;background:#f7f4fb;border:1px solid #e6dff0;border-radius:8px}
.cost-history-summary span{display:block;color:#6c7890;font-size:11px;margin-bottom:8px}
.cost-history-summary strong{display:block;font-size:17px;font-variant-numeric:tabular-nums}
.cost-history-note{color:#6b7890;font-size:12px;line-height:1.6}
.cost-history-empty{padding:22px;border:1px solid #e1d9ec;background:#faf8fd;border-radius:8px;color:#566782;line-height:1.7}
.cost-history-table-wrap{overflow:auto;border:1px solid #e1d9ec;border-radius:8px;margin-top:16px}
.cost-history-table-wrap>table{width:100%;min-width:680px;border-collapse:collapse;font-size:12px}
.cost-history-table-wrap th{background:#f3eff8;color:#66718a;font-size:11px;padding:12px;text-align:left;white-space:nowrap}
.cost-history-table-wrap td{padding:12px;border-bottom:1px solid #ece7f2;vertical-align:top;font-variant-numeric:tabular-nums}
.cost-history-table-wrap small{display:block;margin-top:5px;font-size:10px;color:#7a879d;line-height:1.5}
.cost-history-table-wrap .cost-increased{color:#b83b4f;font-weight:600}
.cost-history-table-wrap .cost-decreased{color:#17806a;font-weight:600}
.cost-history-components{margin:8px 0 0;padding:6px;border:1px solid #e5def0;background:#fbf9fe;border-radius:5px}
.cost-history-components summary{font-size:10px;color:#654591;cursor:pointer}
.cost-history-components table{margin-top:8px;width:100%;font-size:10px}
.cost-history-components th,.cost-history-components td{min-width:0;padding:5px}
@media(max-width:650px){.cost-history-heading{padding:17px 16px}.cost-history-heading h2{font-size:17px}.cost-history-body{padding:16px}.cost-history-summary{grid-template-columns:1fr}.cost-history-summary strong{font-size:16px}.cost-history-dialog{max-height:92vh}}

.cost-history-purchase{padding:16px;margin-bottom:22px;background:#faf8fd;border:1px solid #ded5eb;border-radius:10px}.cost-history-purchase h3{margin:0 0 12px}.cost-history-purchase li{font-size:12px;line-height:1.6;color:#645673;margin:6px 0}.cost-history-purchase details p{font-size:12px}
