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

.hvrce-estimator {
    --hvrce-blue: #1d4ed8;
    --hvrce-text: #111827;
    --hvrce-muted: #6b7280;
    --hvrce-border: #e5eaf1;
    --hvrce-bg: #f7f9fc;
    --hvrce-card: #fff;
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 14px 38px;
    color: var(--hvrce-text);
    font-family: inherit;
}

.hvrce-head {
    margin-bottom: 22px;
    text-align: center;
}

.hvrce-title {
    margin: 0 0 8px !important;
    padding: 0 !important;
    font-size: 34px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    color: #0f172a;
}

.hvrce-desc {
    max-width: 680px;
    margin: 0 auto;
    color: var(--hvrce-muted);
    font-size: 15px;
    line-height: 1.6;
}

.hvrce-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 22px;
    align-items: start;
}

.hvrce-panel {
    border: 1px solid var(--hvrce-border);
    border-radius: 16px;
    background: var(--hvrce-card);
    box-shadow: 0 14px 36px rgba(15, 23, 42, .04);
}

.hvrce-form-panel {
    padding: 22px;
}

.hvrce-form-panel h3,
.hvrce-result-head h3 {
    margin: 0 0 18px !important;
    padding: 0 !important;
    font-size: 17px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    color: #111827;
}

.hvrce-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hvrce-field span,
.hvrce-section-label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 800;
    color: #374151;
}

.hvrce-field select {
    width: 100%;
    min-height: 44px;
    margin: 0 !important;
    border: 1px solid #d9e2ef;
    border-radius: 10px;
    background-color: #fff;
    padding: 9px 12px;
    color: #111827;
    font-size: 14px;
    box-shadow: none !important;
}

.hvrce-color-block,
.hvrce-incentive-block {
    margin-top: 22px;
}

.hvrce-color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hvrce-color-btn {
    width: 32px;
    height: 32px;
    min-height: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 1px solid #d5dbe6 !important;
    border-radius: 999px !important;
    background: var(--hvrce-color, #fff) !important;
    cursor: pointer;
    position: relative;
    outline: none !important;
    box-shadow: none !important;
}

.hvrce-color-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.hvrce-color-btn.hvrce-active::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 2px solid var(--hvrce-blue);
    border-radius: inherit;
}

.hvrce-incentive-list {
    display: grid;
    gap: 10px;
}

.hvrce-check {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border: 1px solid #edf1f6;
    border-radius: 10px;
    background: #fbfdff;
    cursor: pointer;
}

.hvrce-check input {
    margin: 0;
}

.hvrce-check span {
    min-width: 0;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

.hvrce-check strong {
    color: var(--hvrce-blue);
    font-size: 13px;
    white-space: nowrap;
}

.hvrce-preview-panel {
    grid-column: 1 / 2;
    padding: 18px;
}

.hvrce-car-preview {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.hvrce-car-image {
    aspect-ratio: 16 / 9;
    border-radius: 13px;
    overflow: hidden;
    background: #f3f6fb;
    border: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 13px;
}

.hvrce-car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.hvrce-preview-label {
    margin-bottom: 4px;
    color: #8a94a6;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.hvrce-preview-title {
    margin: 0 0 4px !important;
    padding: 0 !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #0f172a;
}

.hvrce-preview-meta {
    margin: 0;
    color: var(--hvrce-muted);
    font-size: 14px;
}

.hvrce-result-panel {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
    padding: 22px;
    position: sticky;
    top: 18px;
}

.hvrce-result-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.hvrce-total-mini {
    flex: 0 0 auto;
    color: var(--hvrce-blue);
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
}

.hvrce-lines {
    display: grid;
    gap: 9px;
    padding: 12px 0;
    border-top: 1px solid #edf1f6;
}

.hvrce-line,
.hvrce-summary-line,
.hvrce-vpoint {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.45;
}

.hvrce-line strong,
.hvrce-summary-line strong,
.hvrce-vpoint strong {
    color: #111827;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.hvrce-subtitle-line {
    margin-top: 8px;
    padding-top: 4px;
    color: #1f2937;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.hvrce-muted-line span,
.hvrce-empty-inline {
    color: #9ca3af;
    font-size: 13px;
}

.hvrce-summary-lines {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid #edf1f6;
    display: grid;
    gap: 12px;
}

.hvrce-grand-total {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid #dbe9ff;
}

.hvrce-grand-total span {
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.hvrce-grand-total strong {
    color: var(--hvrce-blue);
    font-size: 25px;
    line-height: 1.2;
    font-weight: 900;
}

.hvrce-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.hvrce-btn,
.hvrce-btn:hover,
.hvrce-btn:focus,
.hvrce-btn:active,
.hvrce-btn:visited {
    min-height: 42px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 9px !important;
    padding: 10px 14px !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
}

.hvrce-btn-primary {
    border: 1px solid var(--hvrce-blue);
    background: var(--hvrce-blue);
    color: #fff !important;
}

.hvrce-btn-light {
    border: 1px solid #dfe6f0;
    background: #fff;
    color: #111827 !important;
}

.hvrce-note {
    margin: 14px 0 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.6;
}

.hvrce-hotline {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
}

.hvrce-notice {
    max-width: 900px;
    margin: 20px auto;
    padding: 14px;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
}

@media (max-width: 991px) {
    .hvrce-layout {
        grid-template-columns: 1fr;
    }

    .hvrce-preview-panel,
    .hvrce-result-panel {
        grid-column: auto;
        grid-row: auto;
    }

    .hvrce-result-panel {
        position: static;
    }
}

@media (max-width: 640px) {
    .hvrce-estimator {
        padding: 20px 10px 30px;
    }

    .hvrce-title {
        font-size: 26px !important;
    }

    .hvrce-form-panel,
    .hvrce-result-panel,
    .hvrce-preview-panel {
        padding: 15px;
        border-radius: 13px;
    }

    .hvrce-field-grid,
    .hvrce-car-preview,
    .hvrce-actions {
        grid-template-columns: 1fr;
    }

    .hvrce-car-image {
        width: 100%;
    }

    .hvrce-result-head {
        display: block;
    }

    .hvrce-total-mini {
        margin-top: -8px;
        margin-bottom: 10px;
        font-size: 15px;
    }

    .hvrce-line,
    .hvrce-summary-line,
    .hvrce-vpoint {
        font-size: 13px;
    }

    .hvrce-line strong,
    .hvrce-summary-line strong,
    .hvrce-vpoint strong {
        white-space: normal;
    }

    .hvrce-grand-total strong {
        font-size: 22px;
    }
}


/* v1.0.1 - Desktop polish for Flatsome UX Builder */
@media (min-width: 992px) {
    .hvrce-estimator {
        --hvrce-blue: #1f4fd8;
        --hvrce-blue-dark: #123fb7;
        --hvrce-soft-blue: #eef5ff;
        max-width: 1280px;
        padding: 44px 18px 52px;
    }

    .hvrce-head {
        margin-bottom: 30px;
    }

    .hvrce-title {
        font-size: 38px !important;
        letter-spacing: .015em;
    }

    .hvrce-desc {
        max-width: 760px;
        font-size: 16px;
    }

    .hvrce-layout {
        grid-template-columns: minmax(700px, 1fr) minmax(390px, 420px);
        gap: 26px;
    }

    .hvrce-panel {
        border-color: #e8eef7;
        border-radius: 18px;
        box-shadow: 0 22px 60px rgba(15, 23, 42, .065);
    }

    .hvrce-form-panel {
        padding: 30px 32px 28px;
        background:
            radial-gradient(circle at 12% 0%, rgba(29, 78, 216, .055), transparent 34%),
            linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    }

    .hvrce-form-panel h3,
    .hvrce-result-head h3 {
        font-size: 19px !important;
    }

    .hvrce-field-grid {
        gap: 20px 24px;
    }

    .hvrce-field span,
    .hvrce-section-label {
        margin-bottom: 9px;
        color: #1f2937;
        font-size: 13px;
        letter-spacing: .01em;
    }

    .hvrce-field select {
        min-height: 50px;
        border-radius: 12px;
        border-color: #dce5f1;
        padding: 11px 15px;
        font-size: 15px;
        font-weight: 700;
        transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
    }

    .hvrce-field select:hover {
        border-color: #c8d6ea;
        background-color: #fcfdff;
    }

    .hvrce-field select:focus {
        border-color: var(--hvrce-blue);
        box-shadow: 0 0 0 4px rgba(29, 78, 216, .1) !important;
        outline: none;
    }

    .hvrce-color-block,
    .hvrce-incentive-block {
        margin-top: 28px;
    }

    .hvrce-color-list {
        gap: 18px;
        min-height: 46px;
    }

    .hvrce-color-btn {
        width: 36px;
        height: 36px;
        border-width: 2px !important;
        box-shadow: 0 6px 18px rgba(15, 23, 42, .08) !important;
        transition: transform .18s ease, box-shadow .18s ease;
    }

    .hvrce-color-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(15, 23, 42, .12) !important;
    }

    .hvrce-color-btn.hvrce-active::after {
        inset: -7px;
        border-width: 3px;
    }

    .hvrce-incentive-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .hvrce-check {
        min-height: 54px;
        padding: 13px 14px;
        border-radius: 12px;
        background: #fff;
        transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    }

    .hvrce-check:hover {
        transform: translateY(-1px);
        border-color: #d7e4f6;
        box-shadow: 0 12px 26px rgba(15, 23, 42, .05);
    }

    .hvrce-preview-panel {
        padding: 20px 24px;
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    }

    .hvrce-car-preview {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 24px;
    }

    .hvrce-car-image {
        border-radius: 16px;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
    }

    .hvrce-preview-label {
        margin-bottom: 7px;
        letter-spacing: .06em;
    }

    .hvrce-preview-title {
        font-size: 27px !important;
        line-height: 1.2 !important;
    }

    .hvrce-preview-meta {
        font-size: 15px;
        line-height: 1.6;
    }

    .hvrce-result-panel {
        padding: 28px 28px 26px;
        border-radius: 20px;
        overflow: hidden;
        top: 24px;
        background:
            linear-gradient(#ffffff, #ffffff) padding-box,
            linear-gradient(180deg, rgba(31, 79, 216, .18), rgba(226, 232, 240, .75)) border-box;
    }

    .hvrce-result-panel::before {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 5px;
        background: linear-gradient(90deg, var(--hvrce-blue), #60a5fa);
    }

    .hvrce-result-head {
        padding-bottom: 18px;
        margin-bottom: 2px;
        border-bottom: 1px solid #edf2f7;
    }

    .hvrce-total-mini {
        padding: 6px 10px;
        border-radius: 999px;
        background: var(--hvrce-soft-blue);
        color: var(--hvrce-blue-dark);
        font-size: 15px;
    }

    .hvrce-lines {
        gap: 11px;
        padding: 15px 0;
    }

    .hvrce-line,
    .hvrce-summary-line,
    .hvrce-vpoint {
        gap: 18px;
        font-size: 15px;
    }

    .hvrce-line strong,
    .hvrce-summary-line strong,
    .hvrce-vpoint strong {
        font-size: 15px;
    }

    .hvrce-subtitle-line {
        margin-top: 12px;
        padding-top: 8px;
        font-size: 13px;
        color: #111827;
    }

    .hvrce-summary-lines {
        margin-top: 10px;
        padding-top: 16px;
    }

    .hvrce-grand-total {
        padding: 18px 20px;
        border-radius: 16px;
        background:
            radial-gradient(circle at 90% 0%, rgba(96, 165, 250, .24), transparent 36%),
            linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
        border-color: #d8e7ff;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
    }

    .hvrce-grand-total strong {
        font-size: 30px;
        letter-spacing: .01em;
    }

    .hvrce-actions {
        gap: 12px;
        margin-top: 20px;
    }

    .hvrce-btn,
    .hvrce-btn:hover,
    .hvrce-btn:focus,
    .hvrce-btn:active,
    .hvrce-btn:visited {
        min-height: 48px;
        border-radius: 11px !important;
        font-size: 15px !important;
    }

    .hvrce-btn-primary {
        background: linear-gradient(180deg, #2558e4 0%, #1d4ed8 100%);
        border-color: #1d4ed8;
        box-shadow: 0 14px 26px rgba(29, 78, 216, .22) !important;
    }

    .hvrce-btn-primary:hover {
        filter: brightness(.98);
        transform: translateY(-1px);
    }

    .hvrce-btn-light:hover {
        background: #f8fafc;
        border-color: #cbd8eb;
    }

    .hvrce-note {
        margin-top: 16px;
        font-size: 13px;
        color: #64748b;
    }

    .hvrce-hotline {
        padding: 12px 14px;
        border-radius: 12px;
        background: #f1f5f9;
    }
}

@media (min-width: 1200px) {
    .hvrce-layout {
        grid-template-columns: minmax(760px, 1fr) 430px;
        gap: 30px;
    }

    .hvrce-form-panel {
        padding: 32px 34px 30px;
    }
}
