.er-price-calc {
    container-name: er-price;
    container-type: inline-size;
    width: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--size);
    line-height: 1.45;
}

.er-price-calc *,
.er-price-calc *::before,
.er-price-calc *::after {
    box-sizing: border-box;
}

.er-price-calc h1,
.er-price-calc h2,
.er-price-calc h3,
.er-price-calc p,
.er-price-calc label {
    margin: 0;
    line-height: 1.4;
    font-weight: 400;
    hyphens: manual;
    word-break: normal;
}

.er-price-calc h1 {
    color: var(--ink);
    font-size: 1.6em;
    font-weight: 650;
}

.er-price-calc h2,
.er-price-calc h3,
.er-price-calc__legend {
    color: var(--ink);
    font-size: 1.05em;
    font-weight: 650;
}

.er-price-calc p {
    max-width: 46em;
    margin-top: 0.3em;
    color: var(--muted);
}

.er-price-calc label>span {
    display: block;
    width: auto;
    max-width: none;
    flex: none;
    margin: 0;
}

.er-price-calc label input[type="text"] {
    width: 100%;
    max-width: none;
    height: var(--control);
    margin: 0;
    padding: 0 12px;
    color: var(--ink);
    font: inherit;
    font-weight: 400;
    background: var(--field);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.er-price-calc label.er-price-calc__check {
    display: flex;
    align-items: center;
    max-width: none;
    line-height: 1.4;
    font-weight: 400;
}

.er-price-calc label.er-price-calc__check[hidden],
.er-price-calc .er-price-calc__field[hidden],
.er-price-calc tr[hidden],
.er-price-calc [hidden] {
    display: none;
}

.er-price-calc tbody tr:nth-child(even),
.er-price-calc tbody tr:hover {
    background: transparent;
}

.er-price-calc__intro {
    margin-bottom: 16px;
}

.er-price-calc__layout {
    display: grid;
    gap: 16px;
}

.er-price-calc__form,
.er-price-calc__result {
    min-width: 0;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.er-price-calc__legend {
    margin: 0 0 12px;
}

.er-price-calc__field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    min-width: 0;
    margin: 0;
    cursor: default;
}

.er-price-calc__field>span:first-child {
    color: var(--muted);
    font-size: 0.9em;
}

.er-price-calc__select {
    position: relative;
    display: block;
    min-width: 0;
}

.er-price-calc__select select {
    width: 100%;
    height: var(--control);
    padding: 0 36px 0 12px;
    color: var(--ink);
    font: inherit;
    font-weight: 650;
    background: var(--field);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    appearance: none;
}

.er-price-calc__caret {
    position: absolute;
    top: calc((var(--control) - 8px) / 2);
    right: 12px;
    width: 12px;
    height: 8px;
    color: var(--ink);
    pointer-events: none;
}

.er-price-calc__combo {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: var(--control);
    overflow: hidden;
    background: var(--field);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.er-price-calc label>span.er-price-calc__combo {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: none;
}

.er-price-calc .er-price-calc__combo input[type="text"] {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.er-price-calc__suffix,
.er-price-calc__select--suffix {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    border-left: 1px solid var(--line);
    background: color-mix(in srgb, var(--ink) 5%, var(--field));
}

.er-price-calc .er-price-calc__suffix[hidden],
.er-price-calc__select option[hidden] {
    display: none;
}

.er-price-calc__suffix {
    padding: 0 12px;
    color: var(--muted);
}

.er-price-calc__field-note {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 450;
    line-height: 1.3;
}

.er-price-calc__select--suffix {
    position: relative;
    min-width: 6.5rem;
}

.er-price-calc__select--currency {
    min-width: 11.5rem;
}

.er-price-calc__select--suffix select {
    height: 100%;
    padding-right: 32px;
    font-weight: 650;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.er-price-calc__select--suffix .er-price-calc__caret {
    top: 50%;
    margin-top: -4px;
}

.er-price-calc__field input:focus,
.er-price-calc__select select:focus {
    outline: 2px solid var(--button);
    outline-offset: 1px;
}

.er-price-calc__combo:focus-within {
    outline: 2px solid var(--button);
    outline-offset: 1px;
    border-color: var(--button);
}

.er-price-calc__terms {
    display: grid;
    gap: 10px;
}

.er-price-calc__check {
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
    border-radius: var(--radius);
    cursor: pointer;
    white-space: normal;
    overflow-wrap: break-word;
    transition: border-color 0.2s, background-color 0.2s;
}

.er-price-calc__check:has(input:checked) {
    background: color-mix(in srgb, var(--button) 8%, var(--surface));
    border-color: var(--button);
}

.er-price-calc__check input {
    flex: 0 0 22px;
    align-self: center;
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: var(--button);
}

.er-price-calc label.er-price-calc__check input[type="checkbox"]::after {
    left: 50%;
    top: 46%;
    width: 5px;
    height: 9px;
    margin: 0;
    transform: translate(-50%, -65%) rotate(45deg);
}

.er-price-calc label.er-price-calc__check>span {
    display: block;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    white-space: normal;
    overflow-wrap: break-word;
}

.er-price-calc__check-title,
.er-price-calc__check-hint {
    display: block;
    white-space: normal;
    overflow-wrap: break-word;
}

.er-price-calc__check-title {
    font-weight: 650;
}

.er-price-calc__check-hint {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.85em;
}

.er-price-calc__actions {
    margin-top: 14px;
}

.er-price-calc p.er-price-calc__catalog {
    width: 100%;
    margin: 16px 0 0;
    padding: 22px 24px;
    box-sizing: border-box;
    color: var(--ink);
    max-width: none;
    font-size: 1.2em;
    line-height: 1.45;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.er-price-calc p.er-price-calc__catalog a {
    color: inherit;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.er-price-calc__catalog a[hidden] {
    display: none;
}

.er-price-calc__submit {
    width: 100%;
    height: var(--control);
    padding: 0 22px;
    color: var(--button-text);
    background: var(--button);
    border: 0;
    border-radius: var(--radius);
    cursor: pointer;
    font: inherit;
    font-weight: 650;
}

.er-price-calc__submit:hover,
.er-price-calc__submit:focus-visible {
    filter: brightness(0.92);
}

.er-price-calc__submit:disabled {
    cursor: wait;
    opacity: 0.6;
}

.er-price-calc__board {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.er-price-calc__summaries {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.er-price-calc__summary {
    padding: 14px 16px;
    background: color-mix(in srgb, var(--button) 8%, var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.er-price-calc__summary span {
    display: block;
    color: var(--muted);
    font-size: 0.85em;
}

.er-price-calc__summary strong {
    display: block;
    margin-top: 4px;
    font-size: 1.45em;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.er-price-calc__meter-bar {
    display: flex;
    gap: 2px;
    height: 12px;
    overflow: hidden;
    border-radius: 6px;
    background: color-mix(in srgb, var(--ink) 6%, var(--surface));
}

.er-price-calc__meter-part {
    flex: 0 0 auto;
    height: 100%;
}

.er-price-calc__meter-part--price {
    background: var(--ink);
}

.er-price-calc__meter-part--logistics {
    background: #3d7ea6;
}

.er-price-calc__meter-part--customs {
    background: var(--button);
}

.er-price-calc__meter-key {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.85em;
}

.er-price-calc__meter-key>span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.er-price-calc__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.er-price-calc__dot--price {
    background: var(--ink);
}

.er-price-calc__dot--logistics {
    background: #3d7ea6;
}

.er-price-calc__dot--customs {
    background: var(--button);
}

.er-price-calc__sheets {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.er-price-calc__sheet h3 {
    margin-bottom: 8px;
    padding: 8px 10px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: color-mix(in srgb, var(--ink) 4%, var(--surface));
    border-radius: calc(var(--radius) * 0.6);
}

.er-price-calc table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.er-price-calc th,
.er-price-calc td {
    padding: 10px 8px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--line);
    font-weight: 400;
    line-height: 1.3;
}

.er-price-calc thead th {
    color: var(--muted);
    font-size: 0.8em;
    font-weight: 650;
}

.er-price-calc td,
.er-price-calc thead th:not(:first-child) {
    width: 8.5rem;
    text-align: right;
    white-space: nowrap;
}

.er-price-calc .is-misc th {
    color: var(--muted);
}

.er-price-calc__subtotal {
    display: none;
    gap: 12px;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.er-price-calc__grand {
    display: flex;
    gap: 16px;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 14px;
    padding: 14px 12px;
    background: color-mix(in srgb, var(--button) 12%, var(--surface));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 1.25em;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.er-price-calc__grand strong {
    font-weight: 650;
}

.er-price-calc p.er-price-calc__preferential {
    display: block;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0;
    margin-top: 10px;
    padding: 12px 14px;
    color: #146c43;
    font-weight: 650;
    background: #e8f6ee;
    border: 1px solid #b7e0c7;
    border-radius: var(--radius);
}

.er-price-calc p.er-price-calc__preferential[hidden] {
    display: none;
}

.er-price-calc__message,
.er-price-calc__notes {
    margin: 12px 0 0;
    color: var(--muted);
}

.er-price-calc__notes {
    padding: 12px 14px;
    list-style: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.er-price-calc__notes li+li {
    margin-top: 6px;
}

.er-price-calc__years {
    margin-top: 20px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
}

.er-price-calc__years h3 {
    margin: 0 0 14px;
    color: #111111;
    font-size: 1.05em;
    font-weight: 650;
}

.er-price-calc__years td,
.er-price-calc__sheet td,
.er-price-calc__subtotal strong,
.er-price-calc__grand strong {
    white-space: nowrap;
}

.er-price-calc__sheet {
    min-width: 0;
    max-width: 100%;
}
