.fuel-prices-widget {
    --fp-radius: 1.25rem;
    --fp-card-radius: 1rem;
    --fp-border: rgba(33, 37, 41, .09);
    --fp-muted-bg: rgba(248, 249, 250, .82);
}

.fuel-prices-widget .fuel-prices-widget__shell {
    border-radius: var(--fp-radius);
    background: var(--bs-body-bg, #fff);
    overflow: hidden;
}

.fuel-prices-widget .fuel-prices-widget__price-card {
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-card-radius);
    background: var(--bs-body-bg, #fff);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

@media (hover: hover) and (pointer: fine) {
    .fuel-prices-widget .fuel-prices-widget__price-card:hover {
        transform: translateY(-2px);
        border-color: rgba(33, 37, 41, .16);
        box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .055);
    }
}

.fuel-prices-widget .fuel-prices-widget__section-icon,
.fuel-prices-widget .fuel-prices-widget__price-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
}

.fuel-prices-widget .fuel-prices-widget__section-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: .75rem;
    background: var(--fp-muted-bg);
    border: 1px solid var(--fp-border);
    color: var(--bs-emphasis-color, #212529);
}

.fuel-prices-widget .fuel-prices-widget__price-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: .8rem;
}

.fuel-prices-widget .fuel-prices-widget__price-icon--fuel {
    background: rgba(220, 53, 69, .09);
    color: var(--bs-danger, #dc3545);
}

.fuel-prices-widget .fuel-prices-widget__price-icon--energy {
    background: rgba(255, 193, 7, .13);
    color: #9a7200;
}

.fuel-prices-widget .fuel-prices-widget__price-icon--renewable {
    background: rgba(25, 135, 84, .10);
    color: var(--bs-success, #198754);
}

/* Icons are CSS masks: no external icon library and no broken SVG paths. */
.fuel-prices-widget .fp-svg-icon {
    display: inline-block;
    width: 1.1rem;
    height: 1.1rem;
    max-width: 1.1rem;
    max-height: 1.1rem;
    flex: 0 0 1.1rem;
    background-color: currentColor;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.fuel-prices-widget .fp-svg-icon--fuel {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h8a2 2 0 0 1 2 2v6.17l1.83 1.83H19V6.41l-1.7-1.7 1.4-1.42 3 3A1 1 0 0 1 22 7v10a3 3 0 0 1-6 0v-3h-1v7H4V4a2 2 0 0 1 2-2Zm0 2v6h8V4H6Zm10 8v5a1 1 0 0 0 2 0v-4h-.59L16 11.59V12ZM6 12v7h8v-7H6Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 2h8a2 2 0 0 1 2 2v6.17l1.83 1.83H19V6.41l-1.7-1.7 1.4-1.42 3 3A1 1 0 0 1 22 7v10a3 3 0 0 1-6 0v-3h-1v7H4V4a2 2 0 0 1 2-2Zm0 2v6h8V4H6Zm10 8v5a1 1 0 0 0 2 0v-4h-.59L16 11.59V12ZM6 12v7h8v-7H6Z'/%3E%3C/svg%3E");
}

.fuel-prices-widget .fp-svg-icon--energy {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13 2 4.5 13H11l-1 9 8.5-12H12l1-8Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M13 2 4.5 13H11l-1 9 8.5-12H12l1-8Z'/%3E%3C/svg%3E");
}

.fuel-prices-widget .fp-svg-icon--wind {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 8h9.5a2.5 2.5 0 1 0-2.35-3.35l-1.88-.68A4.5 4.5 0 1 1 13.5 10H4V8Zm0 4h14.5a3.5 3.5 0 1 1-3.29 4.69l1.88-.68A1.5 1.5 0 1 0 18.5 14H4v-2Zm0 6h7v2H4v-2Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 8h9.5a2.5 2.5 0 1 0-2.35-3.35l-1.88-.68A4.5 4.5 0 1 1 13.5 10H4V8Zm0 4h14.5a3.5 3.5 0 1 1-3.29 4.69l1.88-.68A1.5 1.5 0 1 0 18.5 14H4v-2Zm0 6h7v2H4v-2Z'/%3E%3C/svg%3E");
}

.fuel-prices-widget .fp-svg-icon--clock {
    width: 1rem;
    height: 1rem;
    flex-basis: 1rem;
    opacity: .65;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm1 3h-2v6l5 3 1-1.73-4-2.27V7Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm1 3h-2v6l5 3 1-1.73-4-2.27V7Z'/%3E%3C/svg%3E");
}

.fuel-prices-widget .fp-svg-icon--info {
    width: 1rem;
    height: 1rem;
    flex-basis: 1rem;
    color: var(--bs-secondary-color, #6c757d);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 10h2v7h-2v-7Zm0-3h2v2h-2V7Zm1-5a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 10h2v7h-2v-7Zm0-3h2v2h-2V7Zm1-5a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm0 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Z'/%3E%3C/svg%3E");
}

.fuel-prices-widget .fuel-prices-widget__section-icon .fp-svg-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex-basis: 1.05rem;
}

.fuel-prices-widget .fuel-prices-widget__price-icon .fp-svg-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex-basis: 1.15rem;
}

.fuel-prices-widget .fuel-prices-widget__label {
    min-height: 2.5rem;
    line-height: 1.35;
}

.fuel-prices-widget .fuel-prices-widget__price {
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    line-height: 1;
    letter-spacing: -.045em;
    color: var(--bs-emphasis-color, #212529);
}

.fuel-prices-widget .badge {
    letter-spacing: .01em;
}

@media (max-width: 575.98px) {
    .fuel-prices-widget .fuel-prices-widget__shell {
        border-radius: 1rem;
    }

    .fuel-prices-widget .fuel-prices-widget__label {
        min-height: 0;
    }

    .fuel-prices-widget .fuel-prices-widget__price-icon {
        width: 2.35rem;
        height: 2.35rem;
    }
}
