.lbd {
    --lbd-accent: #1f2937;
    --lbd-accent-text: #ffffff;
    --lbd-border: #d9dde3;
    --lbd-soft: #f4f5f7;
    --lbd-radius: 8px;
    font-family: inherit;
    color: inherit;
    max-width: 760px;
}

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

.lbd__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
    margin-bottom: 20px;
}

.lbd__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

.lbd__field span {
    opacity: 0.75;
}

.lbd__field input,
.lbd__field select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--lbd-border);
    border-radius: var(--lbd-radius);
    background: #fff;
    font: inherit;
    color: inherit;
}

.lbd__result {
    background: var(--lbd-soft);
    border-radius: 12px;
    padding: 16px;
    transition: opacity 0.15s;
}

.lbd--loading .lbd__result {
    opacity: 0.55;
}

.lbd__totals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.lbd__box {
    background: #fff;
    border-radius: var(--lbd-radius);
    padding: 14px;
}

.lbd__box span {
    display: block;
    font-size: 13px;
    opacity: 0.75;
    margin-bottom: 4px;
}

.lbd__box strong {
    font-size: 22px;
    font-weight: 600;
}

.lbd__box--accent {
    background: var(--lbd-accent);
    color: var(--lbd-accent-text);
}

.lbd__box--accent span {
    opacity: 0.85;
}

.lbd__line {
    display: flex;
    justify-content: space-between;
    padding: 6px 2px;
    font-size: 14px;
    border-top: 1px solid var(--lbd-border);
}

.lbd__line:first-of-type {
    margin-top: 4px;
}

.lbd__msg {
    margin: 10px 0 0;
    font-size: 14px;
}

.lbd__note {
    margin: 12px 0;
    font-size: 12px;
    opacity: 0.7;
}

.lbd__cta {
    display: inline-block;
    padding: 11px 20px;
    border-radius: var(--lbd-radius);
    background: var(--lbd-accent);
    color: var(--lbd-accent-text);
    text-decoration: none;
    font-weight: 600;
}

.lbd__cta:hover {
    opacity: 0.9;
}

.lbd [hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .lbd__grid,
    .lbd__totals {
        grid-template-columns: 1fr;
    }
}
