.hallams-estimator {
    box-sizing: border-box;
    width: 28rem;
    max-width: 100%;
    margin-block: 0.75rem 1rem;
}

.hallams-estimator-trigger {
    margin-top: 0.75rem;
}

.hallams-estimator[hidden] {
    display: none;
}

.hallams-estimator *,
.hallams-estimator *::before,
.hallams-estimator *::after {
    box-sizing: border-box;
}

.hallams-estimator__form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.hallams-estimator__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    align-items: stretch;
}

.hallams-estimator__controls input,
.hallams-estimator__controls button {
    min-height: 2.75rem;
    margin: 0;
    font-size: 1rem;
}

.hallams-estimator__controls input {
    width: 100%;
    min-width: 0;
}

.hallams-estimator__controls button:disabled,
[aria-controls^="hallams-product-estimator-"][aria-disabled="true"] {
    cursor: wait;
    opacity: 0.65;
}

.hallams-estimator__result {
    margin-top: 0.75rem;
}

.hallams-estimator__result p {
    margin: 0.5rem 0 0;
}

.hallams-estimator__rates {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hallams-estimator__rates li {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.hallams-estimator__pickup {
    font-weight: 600;
}

@media (max-width: 30rem) {
    .hallams-estimator__controls {
        grid-template-columns: minmax(0, 1fr);
    }

    .hallams-estimator__controls button {
        width: 100%;
    }
}
