.hcv-daily-limit-meter {
    --hcv-limit-green: #147947;
    --hcv-limit-light: #eef8f1;
    position: sticky;
    top: var(--hcv-limit-sticky-top, 0px);
    z-index: 91;
    border-top: 1px solid rgba(17, 70, 53, .1);
    border-bottom: 1px solid rgba(17, 70, 53, .16);
    background: rgba(249, 252, 250, .97);
    color: #102f26;
    box-shadow: 0 8px 24px rgba(6, 37, 28, .08);
    backdrop-filter: blur(12px);
}

.hcv-daily-limit-meter[hidden] { display: none !important; }

.hcv-daily-limit-meter__inner {
    width: min(1280px, calc(100% - 40px));
    min-height: 76px;
    margin: 0 auto;
    padding: 12px 0;
    display: grid;
    grid-template-columns: 42px minmax(260px, 1fr) minmax(290px, .8fr) auto;
    align-items: center;
    gap: 16px;
}

.hcv-daily-limit-meter__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--hcv-limit-light);
    color: var(--hcv-limit-green);
}

.hcv-daily-limit-meter__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hcv-daily-limit-meter__copy { display: grid; gap: 2px; line-height: 1.3; }
.hcv-daily-limit-meter__copy strong { font-size: 15px; color: #082d23; }
.hcv-daily-limit-meter__copy span { font-size: 13px; }
.hcv-daily-limit-meter__copy small { color: #60736b; font-size: 11px; }

.hcv-daily-limit-meter__progress { display: grid; gap: 6px; }
.hcv-daily-limit-meter__progress > div {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe9e3;
}
.hcv-daily-limit-meter__progress > div span {
    display: block;
    width: min(100%, var(--hcv-limit-progress));
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #137b49, #66b549);
    transition: width .25s ease;
}
.hcv-daily-limit-meter__progress p { margin: 0; font-size: 12px; color: #53645d; }
.hcv-daily-limit-meter__progress b { color: #102f26; }
.hcv-daily-limit-meter__progress strong { color: var(--hcv-limit-green); }
.hcv-daily-limit-meter__progress em { padding: 0 4px; font-style: normal; color: #9aaba4; }

.hcv-daily-limit-meter__guide { position: relative; }
.hcv-daily-limit-meter__guide summary {
    min-width: 112px;
    padding: 9px 12px;
    border: 1px solid #b9cdc3;
    border-radius: 999px;
    color: #174b3b;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    list-style: none;
}
.hcv-daily-limit-meter__guide summary::-webkit-details-marker { display: none; }
.hcv-daily-limit-meter__guide[open] summary { background: #edf6f0; }
.hcv-daily-limit-meter__guide > div {
    position: absolute;
    right: 0;
    width: min(390px, calc(100vw - 32px));
    margin: 10px 0 0;
    padding: 13px 15px;
    border: 1px solid #c9d9d1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(4, 33, 25, .15);
}
.hcv-daily-limit-meter__guide p { margin: 0; font-size: 12px; line-height: 1.5; }
.hcv-daily-limit-meter__guide p + p { margin-top: 8px; color: #60736b; }
.hcv-daily-limit-meter__guide a { color: #147947; font-weight: 700; text-underline-offset: 2px; }

.hcv-daily-limit-meter.is-near {
    --hcv-limit-green: #9b6810;
    --hcv-limit-light: #fff4d8;
    background: rgba(255, 251, 240, .98);
}
.hcv-daily-limit-meter.is-near .hcv-daily-limit-meter__progress > div span {
    background: linear-gradient(90deg, #d3961e, #edba47);
}
.hcv-daily-limit-meter.is-over {
    --hcv-limit-green: #a62d2d;
    --hcv-limit-light: #fff0ed;
    background: rgba(255, 246, 244, .98);
}
.hcv-daily-limit-meter.is-over .hcv-daily-limit-meter__progress > div span { background: #c9473d; }

@media (max-width: 900px) {
    .hcv-daily-limit-meter__inner {
        width: min(100% - 28px, 720px);
        grid-template-columns: 36px 1fr auto;
        gap: 10px;
    }
    .hcv-daily-limit-meter__icon { width: 36px; height: 36px; }
    .hcv-daily-limit-meter__progress { grid-column: 2 / -1; }
    .hcv-daily-limit-meter__guide { grid-column: 3; grid-row: 1; }
    .hcv-daily-limit-meter__guide summary { min-width: auto; padding: 7px 10px; }
}

@media (max-width: 600px) {
    .hcv-daily-limit-meter { position: relative; top: auto; }
    .hcv-daily-limit-meter__inner {
        width: calc(100% - 24px);
        min-height: 0;
        padding: 11px 0 13px;
        grid-template-columns: 34px minmax(0, 1fr);
    }
    .hcv-daily-limit-meter__copy strong { font-size: 14px; }
    .hcv-daily-limit-meter__copy span { font-size: 12px; }
    .hcv-daily-limit-meter__copy small { font-size: 10px; }
    .hcv-daily-limit-meter__progress { grid-column: 1 / -1; }
    .hcv-daily-limit-meter__progress p { display: flex; flex-wrap: wrap; gap: 2px; font-size: 11px; }
    .hcv-daily-limit-meter__guide { grid-column: 1 / -1; grid-row: auto; }
    .hcv-daily-limit-meter__guide summary { width: max-content; }
    .hcv-daily-limit-meter__guide > div { position: static; width: auto; margin-top: 8px; box-shadow: none; }
}
