.nh-estimator,
.nh-estimator * {
    box-sizing: border-box;
}

.nh-estimator {
    font-family: 'Lato', sans-serif;
    color: #17221d;
}

.nh-estimator--floating {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999999;
}

.nh-estimator__launcher {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 5px 20px 5px 20px;
    background: #1f2937;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
    font-weight: 700;
    font-size: 13px;
    width: 145px;
    text-align: left;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #2f6b57;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    border-radius: 9999px;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    user-select: none;
    border: 0;
}

.nh-estimator__launcher:hover {
    transform: translateY(-1px);
}

.nh-estimator__launcher-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #2f6b57;
    font-size: 13px;
    letter-spacing: .5px;
}

.nh-estimator__panel {
    width: min(460px, calc(100vw - 32px));
    height: min(720px, calc(100vh - 40px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
    /* border: 1px solid #dfe7e3; */
}

.nh-estimator--floating .nh-estimator__panel {
    position: absolute;
    right: 0;
    bottom: 72px;
}

.nh-estimator--inline .nh-estimator__panel {
    width: 100%;
    max-width: 780px;
    height: auto;
    min-height: 620px;
    margin: 24px auto;
    box-shadow: 0 14px 50px rgba(21, 45, 34, .13);
}

.nh-estimator__panel.is-hidden {
    display: none;
}

.nh-estimator__header {
    min-height: 74px;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2f6b57;
    color: #fff;
}

.nh-estimator__header strong {
    display: block;
    font-size: 17px;
}

.nh-estimator__header small {
    display: block;
    margin-top: 2px;
    opacity: .86;
    font-size: 12px;
}

.nh-estimator__icon-button {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    padding: 4px 8px;
}

.nh-estimator__progress {
    height: 5px;
    background: #e8efec;
}

.nh-estimator__progress span {
    display: block;
    width: 0;
    height: 100%;
    background: #6bbfa3;
    transition: width .25s ease;
}

.nh-estimator__content {
    flex: 1;
    overflow-y: auto;
    padding: 22px;
    background: #fbfcfb;
}

.nh-estimator__footer {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    background: #fff;
    border-top: 1px solid #e4ebe7;
}

.nh-estimator__back,
.nh-estimator__reset {
    border: 0;
    background: transparent;
    color: #2f6b57;
    cursor: pointer;
    font-weight: 650;
    padding: 7px;
}

.nh-estimator__reset {
    color: #69746f;
    font-size: 12px;
    margin-left: auto;
}

.nh-estimator .is-hidden {
    display: none !important;
}

.nh-estimator__eyebrow {
    color: #2f6b57;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 7px;
}

.nh-estimator h2 {
    margin: 0 0 10px;
    color: #17221d;
    font-size: 23px;
    line-height: 1.2;
}

.nh-estimator h3 {
    margin: 22px 0 10px;
    font-size: 16px;
}

.nh-estimator__help {
    margin: 0 0 18px;
    color: #66716c;
    font-size: 13px;
    line-height: 1.5;
}

.nh-estimator__tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.nh-estimator__tile {
    min-height: 62px;
    border: 1px solid #d6dfda;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    color: #17221d;
    cursor: pointer;
    text-align: left;
    font: inherit;
    font-weight: 650;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.nh-estimator__tile:hover {
    border-color: #2f6b57;
    box-shadow: 0 4px 14px rgba(47, 107, 87, .12);
}

.nh-estimator__tile.is-selected {
    border-color: #2f6b57;
    background: #eaf3ef;
    box-shadow: inset 0 0 0 1px #2f6b57;
}

.nh-estimator__form,
.nh-estimator__lead-form {
    display: grid;
    gap: 12px;
}

.nh-estimator__input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nh-estimator__input {
    width: 100%;
    border: 1px solid #cfd9d4;
    border-radius: 11px;
    padding: 12px 13px;
    background: #fff;
    color: #17221d;
    font: inherit;
    outline: none;
}

.nh-estimator__input:focus {
    border-color: #2f6b57;
    box-shadow: 0 0 0 3px rgba(47, 107, 87, .12);
}

.nh-estimator__suffix {
    font-weight: 700;
    color: #5f6964;
}

.nh-estimator__primary,
.nh-estimator__secondary {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    margin-top: 14px;
}

.nh-estimator__primary {
    background: #2f6b57;
    color: #fff;
}

.nh-estimator__primary:hover {
    background: #245544;
}

.nh-estimator__secondary {
    background: #e8efec;
    color: #234f40;
}

.nh-estimator button:disabled,
.nh-estimator input:disabled {
    opacity: .55;
    cursor: wait;
}

.nh-estimator__file-input {
    width: 100%;
    padding: 16px;
    border: 1px dashed #9fb5aa;
    border-radius: 12px;
    background: #fff;
}

.nh-estimator__file-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #edf4f1;
}

.nh-estimator__file-card small {
    color: #68736e;
}

.nh-estimator__file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nh-estimator__confirm-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0;
    padding: 11px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #dce5e1;
    cursor: pointer;
}

.nh-estimator__confirm-row input {
    margin-top: 4px;
}

.nh-estimator__confirm-row small {
    display: block;
    color: #7a847f;
}

.nh-estimator__warning,
.nh-estimator__manual-item {
    padding: 10px 12px;
    border-left: 3px solid #cc9b41;
    background: #fff8eb;
    font-size: 13px;
}

.nh-estimator__loading,
.nh-estimator__busy {
    padding: 24px 10px;
    text-align: center;
    color: #5e6964;
}

.nh-estimator__error,
.nh-estimator__inline-error {
    padding: 12px;
    border-radius: 10px;
    background: #fff0f0;
    color: #9a2b2b;
    margin: 12px 0;
}

.nh-estimator__success {
    padding: 12px;
    border-radius: 10px;
    background: #e9f5ef;
    color: #245b46;
    margin-bottom: 16px;
    font-weight: 700;
}

.nh-estimator__result--locked {
    position: relative;
}

.nh-estimator__masked-amount {
    margin: 10px 0 8px;
    padding: 15px 16px;
    border: 1px dashed #9fb5aa;
    border-radius: 12px;
    background: linear-gradient(135deg, #edf4f1, #f8faf9);
    color: #234f40;
    font-size: clamp(25px, 5vw, 36px);
    line-height: 1.15;
    letter-spacing: .08em;
    text-align: center;
    font-variant-numeric: tabular-nums;
    user-select: none;
}

.nh-estimator__lock-note {
    margin: 0 0 12px;
    color: #405049;
    font-size: 13px;
    text-align: center;
}

.nh-estimator__confidence {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e8efec;
    color: #2f6b57;
    font-size: 12px;
    font-weight: 750;
}

.nh-estimator__label {
    display: grid;
    gap: 6px;
    color: #38433e;
    font-size: 13px;
    font-weight: 650;
}

.nh-estimator__consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #58635e;
}

.nh-estimator__consent input {
    margin-top: 3px;
}

.nh-estimator__consent a {
    color: #2f6b57;
}

.nh-estimator__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.nh-estimator__breakdown {
    margin: 18px 0;
    border-top: 1px solid #dce5e1;
}

.nh-estimator__breakdown-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #dce5e1;
    font-size: 13px;
}

.nh-estimator__breakdown-row strong {
    text-align: right;
}

.nh-estimator__priced-item,
.nh-estimator__assumption {
    color: #5d6863;
    font-size: 13px;
}

@media (max-width: 680px) {
    .nh-estimator--floating {
        right: 12px;
        bottom: 12px;
    }

    .nh-estimator--floating .nh-estimator__panel {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
        max-width: none;
    }

    .nh-estimator__launcher-text {
        display: none;
    }

    .nh-estimator__launcher {
        padding: 7px;
    }

    .nh-estimator__tiles {
        grid-template-columns: 1fr;
    }

    .nh-estimator__content {
        padding: 18px;
    }
}

/* v1.3 - karta oferty zgodna z firmowym kosztorysem */
.nh-estimator__offer-heading {
    margin-top: 24px !important;
}

.nh-estimator__offer-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 18px;
}

.nh-estimator__offer-card {
    min-width: 0;
    padding: 13px;
    border: 1px solid #dce3df;
    border-top: 3px solid #d72f36;
    border-radius: 10px;
    background: #fff;
}

.nh-estimator__offer-card-title {
    min-height: 36px;
    padding-bottom: 7px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
}

.nh-estimator__offer-card-gross {
    display: block;
    color: #c92b32;
    font-size: 16px;
    line-height: 1.25;
}

.nh-estimator__offer-card-net,
.nh-estimator__offer-card-rate,
.nh-estimator__offer-card-range {
    display: block;
    margin-top: 5px;
    color: #59645f;
    font-size: 11px;
    line-height: 1.35;
}

.nh-estimator__offer-card-net,
.nh-estimator__offer-card-rate {
    font-weight: 650;
}

.nh-estimator__extras-card {
    margin: 16px 0;
    padding: 14px;
    border-radius: 11px;
    background: #f1f3f2;
}

.nh-estimator__extras-card h3 {
    margin-top: 0;
}

.nh-estimator__breakdown-row strong small {
    display: block;
    margin-top: 2px;
    color: #6a746f;
    font-size: 10px;
    font-weight: 500;
}

.nh-estimator__breakdown-row--total {
    margin-top: 4px;
    /* border-top: 2px solid #cad4cf; */
}

.nh-estimator__breakdown-row--total span {
    font-weight: 600;
}

.nh-estimator__breakdown-row--total strong {
    color: #2f6b57;
    font-size: 15px;
}

@media (max-width: 680px) {
    .nh-estimator__offer-cards {
        grid-template-columns: 1fr;
    }

    .nh-estimator__offer-card-title {
        min-height: 0;
    }
}