.nfc-calculator {
    --nfc-ink: #12302f;
    --nfc-muted: #7b8581;
    --nfc-border: #ffa086;
    --nfc-soft-border: #decdbd;
    --nfc-wash: #fbf6ee;
    --nfc-accent: #ff9d83;
    --nfc-input: #fffefd;
    box-sizing: border-box;
    width: min(645px, calc(100vw - 32px));
    margin: 8px auto 44px;
    color: var(--nfc-ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}

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

.nfc-calculator [hidden] {
    display: none !important;
}

.nfc-panel {
    border: 1px solid var(--nfc-border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.8);
}

.nfc-form {
    padding: 25px 30px 42px;
}

.nfc-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.nfc-field > span:first-child,
.nfc-addon legend,
.nfc-total span {
    color: var(--nfc-accent);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nfc-field-full {
    width: 100%;
}

.nfc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin-top: 17px;
}

.nfc-input {
    width: 100%;
    min-height: 33px;
    border: 1px solid var(--nfc-soft-border);
    border-radius: 6px;
    background: var(--nfc-input);
    color: var(--nfc-ink);
    font: inherit;
    line-height: 1.4;
    outline: none;
    padding: 8px 11px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.nfc-input:focus {
    border-color: var(--nfc-accent);
    box-shadow: 0 0 0 3px rgba(255, 157, 131, 0.18);
}

.nfc-affix-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px;
}

.nfc-affix-field .nfc-input {
    min-width: 0;
}

.nfc-prefix,
.nfc-suffix {
    color: var(--nfc-ink);
    white-space: nowrap;
}

.nfc-weeks {
    margin-top: 16px;
}

.nfc-divider {
    height: 1px;
    margin: 18px 0 19px;
    background: var(--nfc-border);
}

.nfc-addon {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.nfc-addon legend {
    margin-bottom: 10px;
    padding: 0;
}

.nfc-addon-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 51px;
    padding: 10px 12px;
    border: 1px solid var(--nfc-soft-border);
    border-radius: 6px;
    background: var(--nfc-wash);
    cursor: pointer;
}

.nfc-addon-box input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--nfc-accent);
}

.nfc-addon-copy {
    display: grid;
    gap: 4px;
}

.nfc-addon-copy strong {
    color: var(--nfc-ink);
    font-size: 12px;
}

.nfc-addon-copy em {
    color: var(--nfc-muted);
    font-size: 9px;
}

.nfc-addon-price {
    color: var(--nfc-accent);
    font-size: 9px;
}

.nfc-estimate {
    margin-top: 18px;
    padding: 27px 30px 0;
    overflow: hidden;
}

.nfc-estimate-title {
    margin: 0 0 18px;
    color: var(--nfc-accent);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
    font-style: italic;
    text-align: center;
}

.nfc-line,
.nfc-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--nfc-ink);
}

.nfc-line {
    margin-top: 12px;
}

.nfc-line strong {
    font-size: 12px;
}

.nfc-total {
    margin-top: 18px;
    padding: 23px 0 20px;
    border-top: 1px solid var(--nfc-border);
}

.nfc-total strong {
    color: var(--nfc-accent);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 21px;
    font-weight: 400;
}

.nfc-note {
    margin: 0 -30px;
    padding: 0 30px 13px;
    color: var(--nfc-muted);
    font-size: 9px;
    font-style: italic;
    text-align: center;
}

@media (max-width: 640px) {
    .nfc-calculator {
        width: min(100%, calc(100vw - 24px));
        margin-top: 18px;
    }

    .nfc-form,
    .nfc-estimate {
        padding-left: 18px;
        padding-right: 18px;
    }

    .nfc-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .nfc-addon-box {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .nfc-addon-price {
        grid-column: 2;
    }

    .nfc-note {
        margin-left: -18px;
        margin-right: -18px;
        padding-left: 18px;
        padding-right: 18px;
    }
}
