html {
        box-sizing: border-box;
    }

    *,
    *::before,
    *::after {
        box-sizing: inherit;
    }

    body {
        margin: 0;
        background: #f2f4f7;
        overflow-x: hidden;
    }

    .flooring-estimator-wrapper {
        position: relative;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
        max-width: 950px !important;
        width: 92%;
        margin: 2rem auto;
        padding: 2rem;
        background-color: #ffffff;
        border-radius: 14px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    }

    .flooring-estimator-wrapper .draft-status-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        background: #f6f7f9;
        border: 1px solid #e1e4e8;
        border-radius: 10px;
        padding: 10px 12px;
        margin-bottom: 14px;
        color: #444;
        font-size: 0.9rem;
        font-weight: 700;
    }

    .flooring-estimator-wrapper h1 {
        text-align: center;
        font-size: 1.8rem;
        margin-bottom: 0.35rem;
        color: #222;
    }

    .flooring-estimator-wrapper .estimator-subtitle {
        text-align: center;
        font-size: 0.98rem;
        color: #666;
        margin-bottom: 1.25rem;
        line-height: 1.5;
    }

    .flooring-form-step {
        display: none;
        animation: flooringFadeIn 0.3s ease;
    }

    .flooring-form-step.active {
        display: block;
    }

    .flooring-form-step[tabindex="-1"]:focus {
        outline: none;
    }

    .flooring-estimator-wrapper .progress-bar {
        height: 8px;
        background: #e7e7e7;
        border-radius: 999px;
        margin-bottom: 24px;
        overflow: hidden;
    }

    .flooring-estimator-wrapper .progress-bar-fill {
        height: 100%;
        background: #0070f3;
        width: 0%;
        transition: width 0.3s ease;
    }

    .flooring-estimator-wrapper .mobile-step-tabs {
        display: none;
    }

    .flooring-estimator-wrapper .project-section-nav {
        display: none;
    }

    .flooring-estimator-wrapper .room-mode-only {
        display: none;
    }

    .flooring-estimator-wrapper.room-measure-mode .room-mode-only {
        display: inline-flex;
    }

    @keyframes flooringFadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .flooring-estimator-wrapper .note-box {
        background: #f8fbff;
        border: 1px solid #d7e8ff;
        border-radius: 10px;
        padding: 14px;
        margin-bottom: 18px;
        font-size: 0.93rem;
        line-height: 1.5;
        color: #334;
    }

    .flooring-estimator-wrapper h2 {
        margin-top: 0;
        margin-bottom: 1rem;
        border-bottom: 1px solid #ddd;
        padding-bottom: 8px;
        font-size: 1.15rem;
        color: #333;
    }

    .flooring-estimator-wrapper .area-section-title-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .flooring-estimator-wrapper .area-section-title-row h2 {
        flex: 1 1 auto;
        margin-bottom: 1rem;
    }

    .flooring-estimator-wrapper .text-danger-btn {
        width: auto;
        min-height: auto;
        padding: 0;
        background: none;
        color: #d32f2f;
        border: none;
        border-radius: 0;
        text-decoration: underline;
        cursor: pointer;
        font-size: 0.9rem;
        font-weight: 700;
    }

    .flooring-estimator-wrapper .text-danger-btn:hover {
        background: none;
        color: #b71c1c;
    }

    .flooring-estimator-wrapper h3 {
        margin-top: 0;
        margin-bottom: 0.35rem;
        color: #222;
    }

    .flooring-estimator-wrapper label {
        display: block;
        margin: 10px 0 6px;
        font-weight: 600;
        font-size: 0.95rem;
        color: #333;
    }

    .flooring-estimator-wrapper .field-help {
        font-size: 0.85rem;
        color: #777;
        margin-top: -4px;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .flooring-estimator-wrapper .grid-2,
    .flooring-estimator-wrapper .grid-3 {
        display: grid;
        gap: 14px;
    }

    .flooring-estimator-wrapper .grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .flooring-estimator-wrapper .grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .flooring-estimator-wrapper input,
    .flooring-estimator-wrapper select,
    .flooring-estimator-wrapper textarea {
        width: 100% !important;
        padding: 11px 12px;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 8px;
        margin-bottom: 14px;
        box-sizing: border-box !important;
        font-family: inherit !important;
        background: #fff;
        color: #222;
    }

    .flooring-estimator-wrapper textarea {
        min-height: 104px;
        resize: vertical;
        line-height: 1.4;
    }

    .flooring-estimator-wrapper input[readonly] {
        background: #f6faf7;
        border-color: #b9d8bf;
        color: #1b5e20;
        font-weight: 800;
    }

    .flooring-estimator-wrapper button {
        padding: 12px 18px;
        background: #0070f3;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
    }

    .flooring-estimator-wrapper button:hover {
        background: #005ed0;
    }

    .flooring-estimator-wrapper button.secondary {
        background: #e0e0e0;
        color: #333;
    }

    .flooring-estimator-wrapper button.secondary:hover {
        background: #d0d0d0;
    }

    .flooring-estimator-wrapper button[disabled] {
        opacity: 0.65;
        cursor: not-allowed;
    }

    .flooring-estimator-wrapper .button-row {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        margin-top: 24px;
        flex-wrap: wrap;
    }

    .flooring-estimator-wrapper .button-row.right {
        justify-content: flex-end;
    }

    .flooring-estimator-wrapper .preview-card,
    .flooring-estimator-wrapper .review-card,
    .flooring-estimator-wrapper .summary-card,
    .flooring-estimator-wrapper .breakdown-card,
    .flooring-estimator-wrapper .submission-result {
        background: #fafafa;
        border: 1px solid #e6e6e6;
        border-radius: 10px;
        padding: 16px;
        margin-top: 22px;
    }

    .flooring-estimator-wrapper .submission-result {
        margin-bottom: 18px;
        background: #f8fbff;
        border-color: #cfe3ff;
    }

    .flooring-estimator-wrapper .submission-result h3 {
        margin-bottom: 10px;
    }

    .flooring-estimator-wrapper .submission-result-row {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 0;
        border-bottom: 1px solid #e3edf8;
        color: #263142;
    }

    .flooring-estimator-wrapper .submission-result-row:last-child {
        border-bottom: none;
    }

    .flooring-estimator-wrapper .submission-result-row strong {
        text-align: right;
        overflow-wrap: anywhere;
    }

    .flooring-estimator-wrapper .submission-status.success {
        color: #1b5e20;
    }

    .flooring-estimator-wrapper .submission-status.neutral {
        color: #40546d;
    }

    .flooring-estimator-wrapper .submission-status.error {
        color: #c62828;
    }

    .flooring-estimator-wrapper .preview-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .flooring-estimator-wrapper .review-snapshot {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
        margin-top: 14px;
    }

    .flooring-estimator-wrapper .review-snapshot-item {
        padding: 12px;
        background: #f8fbff;
        border: 1px solid #d7e8ff;
        border-radius: 8px;
        min-height: 68px;
    }

    .flooring-estimator-wrapper .review-snapshot-label {
        display: block;
        color: #5f6b7a;
        font-size: 0.78rem;
        font-weight: 800;
        line-height: 1.2;
        text-transform: uppercase;
    }

    .flooring-estimator-wrapper .review-snapshot-value {
        display: block;
        margin-top: 6px;
        color: #172033;
        font-size: 1rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .flooring-estimator-wrapper .preview-item {
        background: #ffffff;
        border: 1px solid #e8e8e8;
        border-radius: 8px;
        padding: 12px;
        min-height: 64px;
    }

    .flooring-estimator-wrapper .preview-label {
        display: block;
        color: #666;
        font-size: 0.82rem;
        font-weight: 700;
        margin-bottom: 5px;
        text-transform: uppercase;
    }

    .flooring-estimator-wrapper .preview-value {
        color: #222;
        font-size: 0.96rem;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .flooring-estimator-wrapper .review-check-list {
        display: grid;
        gap: 8px;
    }

    .flooring-estimator-wrapper .review-check {
        border-radius: 8px;
        padding: 10px 12px;
        line-height: 1.4;
        border: 1px solid #ddd;
    }

    .flooring-estimator-wrapper .review-check-title {
        display: block;
        font-size: 0.9rem;
        font-weight: 900;
        line-height: 1.25;
    }

    .flooring-estimator-wrapper .review-check-detail {
        display: block;
        margin-top: 3px;
        font-size: 0.9rem;
        font-weight: 700;
        line-height: 1.35;
    }

    .flooring-estimator-wrapper .review-check.info {
        background: #f5f8ff;
        border-color: #c9dafc;
        color: #174ea6;
    }

    .flooring-estimator-wrapper .review-check.warn {
        background: #fff8e1;
        border-color: #f5d36b;
        color: #6a4b00;
    }

    .flooring-estimator-wrapper .review-check.good {
        background: #f1f8f1;
        border-color: #c8e6c9;
        color: #1b5e20;
    }

    .flooring-estimator-wrapper .summary-line {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 0;
        border-bottom: 1px solid #ececec;
        color: #333;
    }

    .flooring-estimator-wrapper .summary-line:last-child {
        border-bottom: none;
    }

    .flooring-estimator-wrapper .summary-line.grand {
        font-size: 1.08rem;
        font-weight: 700;
        color: #0070f3;
    }

    .flooring-estimator-wrapper .summary-line.deposit {
        font-weight: 700;
        color: #1b5e20;
    }

    .flooring-estimator-wrapper .warning-message {
        color: #c62828;
        font-weight: 700;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    .flooring-estimator-wrapper .hidden {
        display: none !important;
    }

    .flooring-estimator-wrapper table.estimate-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 0.5rem;
        font-size: 0.95rem;
    }

    .flooring-estimator-wrapper table.estimate-table th,
    .flooring-estimator-wrapper table.estimate-table td {
        border: 1px solid #ddd;
        padding: 10px;
        vertical-align: top;
    }

    .flooring-estimator-wrapper table.estimate-table thead tr {
        background: #f2f2f2;
    }

    .flooring-estimator-wrapper .input-error {
        border: 2px solid #d32f2f !important;
        background: #fff9f9 !important;
    }

    .flooring-estimator-wrapper .area-section {
        background: #fcfcfc;
        border: 1px solid #eee;
        padding: 16px;
        border-radius: 10px;
        margin-bottom: 16px;
    }

    .flooring-estimator-wrapper .takeup-box {
        margin-top: 8px;
        padding: 14px;
        background: #f8fbff;
        border: 1px solid #d7e8ff;
        border-radius: 10px;
    }

    .flooring-estimator-wrapper .room-helper {
        margin-bottom: 16px;
        padding: 14px;
        background: #f7fbf8;
        border: 1px solid #cfe8d4;
        border-radius: 10px;
    }

    .flooring-estimator-wrapper .helper-choice {
        margin-bottom: 14px;
        padding: 12px;
        background: #f6f7f9;
        border: 1px solid #e1e4e8;
        border-radius: 10px;
    }

    .flooring-estimator-wrapper .custom-line-items-section,
    .flooring-estimator-wrapper .notes-section {
        margin-top: 14px;
        padding: 14px;
        background: #f8fafc;
        border: 1px solid #e1e7ef;
        border-radius: 10px;
    }

    .flooring-estimator-wrapper .custom-line-items-header,
    .flooring-estimator-wrapper .room-helper-header,
    .flooring-estimator-wrapper .room-helper-footer {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        align-items: flex-start;
    }

    .flooring-estimator-wrapper .room-helper-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
        margin-top: 10px;
    }

    .flooring-estimator-wrapper .room-sync-note {
        margin: 4px 0 0;
        color: #1b5e20;
        font-size: 0.86rem;
        font-weight: 700;
        line-height: 1.35;
    }

    .flooring-estimator-wrapper .room-area-summary-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 12px;
    }

    .flooring-estimator-wrapper .room-area-summary-card {
        padding: 11px 12px;
        background: #ffffff;
        border: 1px solid #d8e4d8;
        border-radius: 8px;
    }

    .flooring-estimator-wrapper .room-area-summary-card h4 {
        margin: 0 0 5px;
        color: #1b5e20;
        font-size: 0.88rem;
        line-height: 1.25;
    }

    .flooring-estimator-wrapper .room-area-summary-card p {
        margin: 0;
        color: #333;
        font-size: 0.9rem;
        font-weight: 700;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .flooring-estimator-wrapper .material-scope-summary {
        margin: -4px 0 14px;
        padding: 10px 12px;
        background: #f5f8ff;
        border: 1px solid #d7e8ff;
        border-radius: 8px;
        color: #334;
        font-size: 0.9rem;
        font-weight: 700;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .flooring-estimator-wrapper .material-step-status {
        margin: -4px 0 14px;
        padding: 9px 11px;
        border-radius: 8px;
        border: 1px solid #f0d9a8;
        background: #fff8e8;
        color: #6b4600;
        font-size: 0.88rem;
        font-weight: 800;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .flooring-estimator-wrapper .material-step-status.ready {
        border-color: #b9dfc1;
        background: #f1f8f1;
        color: #1b5e20;
    }

    .flooring-estimator-wrapper .material-step-status.needs-action {
        border-color: #f0d9a8;
        background: #fff8e8;
        color: #6b4600;
    }

    .flooring-estimator-wrapper .room-measure-row {
        display: grid;
        grid-template-columns: 1.25fr 0.72fr 0.72fr 0.74fr 0.82fr 1fr auto;
        gap: 10px;
        align-items: end;
        margin-bottom: 10px;
        padding: 10px;
        border: 1px solid #e0eadf;
        border-radius: 10px;
        background: #fff;
    }

    .flooring-estimator-wrapper .room-sqft-output {
        padding: 11px 12px;
        margin-bottom: 14px;
        border: 1px solid #d8e4d8;
        border-radius: 8px;
        background: #f9fcf9;
        color: #1b5e20;
        font-weight: 800;
        min-height: 45px;
        box-sizing: border-box;
    }

    .flooring-estimator-wrapper .takeup-header {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        align-items: flex-start;
    }

    .flooring-estimator-wrapper .small-btn {
        padding: 9px 12px;
        font-size: 0.92rem;
        white-space: nowrap;
    }

    .flooring-estimator-wrapper .takeup-row {
        display: grid;
        grid-template-columns: 1.5fr 1fr auto;
        gap: 10px;
        align-items: end;
        margin-bottom: 10px;
        padding: 10px;
        border: 1px solid #e4e4e4;
        border-radius: 10px;
        background: #fff;
    }

    .flooring-estimator-wrapper .custom-line-item-row {
        display: grid;
        grid-template-columns: 1.5fr 0.7fr auto;
        gap: 10px;
        align-items: end;
        margin-bottom: 10px;
        padding: 10px;
        border: 1px solid #e4e4e4;
        border-radius: 10px;
        background: #fff;
    }

    .flooring-estimator-wrapper .custom-line-item-total {
        font-weight: 800;
        color: #333;
        margin: 6px 0 0;
    }

    .flooring-estimator-wrapper .remove-takeup-btn {
        background: #f5f5f5 !important;
        color: #c62828 !important;
        border: 1px solid #ddd !important;
        padding: 10px 12px !important;
        font-size: 0.9rem !important;
    }

    .flooring-estimator-wrapper .takeup-total {
        font-weight: 700;
        color: #333;
        margin: 6px 0 0;
    }

    .flooring-estimator-wrapper .quick-takeup-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 10px 0 12px;
    }

    .flooring-estimator-wrapper .quick-takeup-btn {
        min-height: 38px;
        padding: 8px 12px;
        background: #ffffff;
        color: #333;
        border: 1px solid #d8dee6;
        font-size: 0.9rem;
    }

    .flooring-estimator-wrapper .quick-takeup-btn:hover {
        background: #f5f8ff;
    }

    .flooring-estimator-wrapper .room-takeup-note {
        display: none;
        margin: 0 0 10px;
        color: #1b5e20;
        font-size: 0.84rem;
        font-weight: 700;
        line-height: 1.35;
    }

    .flooring-estimator-wrapper.room-measure-mode .room-takeup-note {
        display: block;
    }

    .flooring-estimator-wrapper.room-measure-mode .manual-takeup-box {
        display: none;
    }

    .flooring-estimator-wrapper.room-measure-mode .manual-size-grid {
        display: none;
    }

    .flooring-estimator-wrapper.room-measure-mode .manual-area2-only {
        display: none !important;
    }

    .flooring-estimator-wrapper.room-measure-mode .manual-area1-only {
        display: none !important;
    }

    .flooring-estimator-wrapper .address-field-wrap {
        position: relative;
        z-index: 50;
    }

    .flooring-estimator-wrapper #area1ProductWrap,
    .flooring-estimator-wrapper #area2ProductWrap {
        position: relative;
    }

    .flooring-estimator-wrapper .product-suggestions {
        position: absolute;
        z-index: 1000;
        left: 0;
        right: 0;
        top: 76px;
        background: #ffffff;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
        overflow: hidden;
        max-height: 260px;
        overflow-y: auto;
    }

    .flooring-estimator-wrapper .product-suggestion-item {
        width: 100%;
        display: block;
        background: #ffffff;
        color: #222;
        border: none;
        border-bottom: 1px solid #eee;
        border-radius: 0;
        padding: 10px 12px;
        text-align: left;
        font-size: 0.95rem;
        font-weight: 600;
        cursor: pointer;
    }

    .flooring-estimator-wrapper .product-suggestion-item:hover {
        background: #f5f8ff;
    }

    .flooring-estimator-wrapper .product-suggestion-empty {
        color: #777;
        cursor: default;
        font-weight: 700;
    }

    .flooring-estimator-wrapper .product-suggestion-empty:hover {
        background: #ffffff;
    }

    .flooring-estimator-wrapper .product-key-select {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    .flooring-estimator-wrapper .selected-product-text {
        margin: -6px 0 10px;
        color: #1b5e20;
        font-size: 0.9rem;
        font-weight: 800;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .flooring-estimator-wrapper .mapbox-suggestions {
        position: absolute;
        z-index: 999999;
        left: 0;
        right: 0;
        top: 100%;
        margin-top: -8px;
        background: #ffffff;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
        overflow: hidden;
    }

    .flooring-estimator-wrapper .mapbox-suggestion-item {
        width: 100%;
        display: block;
        background: #ffffff;
        color: #222;
        border: none;
        border-bottom: 1px solid #eee;
        border-radius: 0;
        padding: 10px 12px;
        text-align: left;
        font-size: 0.95rem;
        font-weight: 400;
        cursor: pointer;
    }

    .flooring-estimator-wrapper .mapbox-suggestion-item:hover {
        background: #f5f8ff;
    }

    .flooring-estimator-wrapper .mapbox-suggestion-status {
        color: #6b3b00;
        background: #fff8e6;
        cursor: default;
        font-weight: 600;
        line-height: 1.35;
    }

    .flooring-estimator-wrapper .mapbox-suggestion-status:hover {
        background: #fff8e6;
    }

    .flooring-estimator-wrapper .carpet-pad-wrap.hidden {
        display: none !important;
    }

    @media (max-width: 768px) {
        html.flooring-estimator-embedded,
        body.flooring-estimator-embedded {
            height: 100%;
            overflow: hidden;
            background: #ffffff;
        }

        .flooring-estimator-wrapper {
            width: 94%;
            padding: 1.25rem;
        }

        .flooring-estimator-wrapper.embedded-mode {
            width: 100%;
            max-width: 100% !important;
            min-width: 0;
            height: 100vh;
            height: 100svh;
            height: 100dvh;
            max-height: 100vh;
            max-height: 100svh;
            max-height: 100dvh;
            margin: 0;
            box-sizing: border-box;
            padding: 14px max(16px, calc(env(safe-area-inset-right) + 14px)) max(8px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
            border-radius: 0;
            box-shadow: none;
            scrollbar-gutter: stable;
            scroll-padding-bottom: 24px;
            overflow-x: hidden;
            overflow-y: auto;
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
        }

        .flooring-estimator-wrapper.embedded-mode form {
            min-height: calc(100dvh - 122px);
        }

        .flooring-estimator-wrapper.embedded-mode .flooring-form-step.active {
            padding-bottom: 92px;
        }

        .flooring-estimator-wrapper.embedded-mode::-webkit-scrollbar {
            width: 10px;
        }

        .flooring-estimator-wrapper.embedded-mode::-webkit-scrollbar-track {
            background: #f1f3f5;
        }

        .flooring-estimator-wrapper.embedded-mode::-webkit-scrollbar-thumb {
            background: #9aa4af;
            border: 2px solid #f1f3f5;
            border-radius: 999px;
        }

        .flooring-estimator-wrapper.embedded-mode .button-row:last-child {
            padding-bottom: 16px;
        }

        .flooring-estimator-wrapper .grid-2,
        .flooring-estimator-wrapper .grid-3,
        .flooring-estimator-wrapper .review-snapshot,
        .flooring-estimator-wrapper .preview-grid,
        .flooring-estimator-wrapper .room-area-summary-grid,
        .flooring-estimator-wrapper .room-measure-row,
        .flooring-estimator-wrapper .custom-line-item-row,
        .flooring-estimator-wrapper .takeup-row {
            grid-template-columns: 1fr;
        }

        .flooring-estimator-wrapper .takeup-header,
        .flooring-estimator-wrapper .custom-line-items-header,
        .flooring-estimator-wrapper .room-helper-header,
        .flooring-estimator-wrapper .room-helper-footer,
        .flooring-estimator-wrapper .button-row {
            flex-direction: column;
        }

        .flooring-estimator-wrapper .small-btn,
        .flooring-estimator-wrapper .button-row button {
            width: 100%;
        }

        .flooring-estimator-wrapper table.estimate-table,
        .flooring-estimator-wrapper table.estimate-table thead,
        .flooring-estimator-wrapper table.estimate-table tbody,
        .flooring-estimator-wrapper table.estimate-table tr,
        .flooring-estimator-wrapper table.estimate-table th,
        .flooring-estimator-wrapper table.estimate-table td {
            display: block;
            width: 100%;
        }

        .flooring-estimator-wrapper table.estimate-table thead {
            display: none;
        }

        .flooring-estimator-wrapper table.estimate-table tr {
            margin-bottom: 12px;
            border: 1px solid #ddd;
        }

        .flooring-estimator-wrapper table.estimate-table td {
            border: none;
            border-bottom: 1px solid #eee;
        }

        .flooring-estimator-wrapper {
            color: #202124;
        }

        .flooring-estimator-wrapper h1 {
            margin: 0 0 4px;
            text-align: left;
            font-size: 1.35rem;
            line-height: 1.2;
        }

        .flooring-estimator-wrapper .estimator-subtitle {
            margin: 0 0 12px;
            text-align: left;
            font-size: 0.9rem;
            line-height: 1.35;
        }

        .flooring-estimator-wrapper .progress-bar {
            height: 6px;
            margin-bottom: 10px;
        }

        .flooring-estimator-wrapper .mobile-step-tabs {
            position: sticky;
            top: 0;
            z-index: 80;
            display: flex;
            overflow-x: auto;
            overscroll-behavior-x: contain;
            -webkit-overflow-scrolling: touch;
            gap: 6px;
            margin: 0 -2px 12px;
            padding: 8px 0 10px;
            background: #ffffff;
            border-bottom: 1px solid #e6e8eb;
            scrollbar-width: none;
        }

        .flooring-estimator-wrapper .mobile-step-tabs::-webkit-scrollbar {
            display: none;
        }

        .flooring-estimator-wrapper .mobile-step-tab {
            flex: 0 0 auto;
            min-width: 76px;
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #d8dee6;
            border-radius: 8px;
            background: #f7f9fb;
            color: #4b5563;
            font-size: 0.82rem;
            font-weight: 800;
            line-height: 1;
            cursor: default;
            user-select: none;
        }

        .flooring-estimator-wrapper .mobile-step-tab.active {
            border-color: #0070f3;
            background: #eaf3ff;
            color: #005ed0;
        }

        .flooring-estimator-wrapper .project-section-nav {
            position: sticky;
            top: 54px;
            z-index: 79;
            display: flex;
            overflow-x: auto;
            overscroll-behavior-x: contain;
            -webkit-overflow-scrolling: touch;
            gap: 6px;
            margin: -4px -2px 12px;
            padding: 8px 0 10px;
            background: #ffffff;
            border-bottom: 1px solid #edf0f3;
            scrollbar-width: none;
        }

        .flooring-estimator-wrapper .project-section-nav::-webkit-scrollbar {
            display: none;
        }

        .flooring-estimator-wrapper .project-section-chip {
            flex: 0 0 auto;
            min-width: 74px;
            min-height: 44px;
            padding: 6px 10px;
            background: #ffffff;
            color: #4b5563;
            border: 1px solid #d8dee6;
            border-radius: 8px;
            font-size: 0.78rem;
            font-weight: 800;
        }

        .flooring-estimator-wrapper .project-section-chip.active {
            background: #f1f8f1;
            border-color: #8bc995;
            color: #1b5e20;
        }

        .flooring-estimator-wrapper .draft-status-row {
            align-items: stretch;
            margin-bottom: 10px;
            padding: 9px 10px;
            border-radius: 8px;
            font-size: 0.84rem;
        }

        .flooring-estimator-wrapper .draft-status-row button {
            width: 100%;
        }

        .flooring-estimator-wrapper .note-box,
        .flooring-estimator-wrapper .area-section,
        .flooring-estimator-wrapper .helper-choice,
        .flooring-estimator-wrapper .custom-line-items-section,
        .flooring-estimator-wrapper .notes-section,
        .flooring-estimator-wrapper .takeup-box,
        .flooring-estimator-wrapper .room-helper,
        .flooring-estimator-wrapper .preview-card,
        .flooring-estimator-wrapper .review-card,
        .flooring-estimator-wrapper .summary-card,
        .flooring-estimator-wrapper .breakdown-card,
        .flooring-estimator-wrapper .submission-result {
            margin-top: 12px;
            padding: 12px;
            border-radius: 8px;
        }

        .flooring-estimator-wrapper .submission-result-row {
            display: block;
        }

        .flooring-estimator-wrapper .submission-result-row strong {
            display: block;
            margin-top: 3px;
            text-align: left;
        }

        .flooring-estimator-wrapper .area-section {
            background: #ffffff;
            border-color: #dfe3e8;
        }

        .flooring-estimator-wrapper .project-subsection {
            scroll-margin-top: 116px;
        }

        .flooring-estimator-wrapper input,
        .flooring-estimator-wrapper select,
        .flooring-estimator-wrapper button,
        .flooring-estimator-wrapper .area-section,
        .flooring-estimator-wrapper .takeup-box,
        .flooring-estimator-wrapper .room-helper {
            scroll-margin-top: 124px;
            scroll-margin-bottom: 112px;
        }

        .flooring-estimator-wrapper .area2-toggle-card {
            margin: 12px 0;
            padding: 12px;
            background: #f8fafc;
            border: 1px dashed #cfd8e3;
            border-radius: 8px;
        }

        .flooring-estimator-wrapper .room-helper,
        .flooring-estimator-wrapper .takeup-box {
            background: #f8fafc;
        }

        .flooring-estimator-wrapper h2 {
            margin: 0 0 12px;
            padding-bottom: 8px;
            font-size: 1rem;
            line-height: 1.25;
        }

        .flooring-estimator-wrapper .area-section-title-row {
            align-items: stretch;
            flex-direction: column;
            gap: 8px;
        }

        .flooring-estimator-wrapper .area-section-title-row h2 {
            margin-bottom: 0;
        }

        .flooring-estimator-wrapper .text-danger-btn {
            width: 100%;
            min-height: 42px;
            padding: 9px 12px;
            background: #fff7f7;
            border: 1px solid #f0c4c4;
            border-radius: 8px;
            text-decoration: none;
        }

        .flooring-estimator-wrapper .text-danger-btn:hover {
            background: #fff1f1;
        }

        .flooring-estimator-wrapper h3 {
            font-size: 0.96rem;
            line-height: 1.25;
        }

        .flooring-estimator-wrapper label {
            margin: 8px 0 5px;
            font-size: 0.9rem;
            line-height: 1.25;
        }

        .flooring-estimator-wrapper .field-help {
            margin-top: -3px;
            margin-bottom: 8px;
            font-size: 0.8rem;
            line-height: 1.35;
        }

        .flooring-estimator-wrapper input,
        .flooring-estimator-wrapper select,
        .flooring-estimator-wrapper textarea {
            min-height: 48px;
            margin-bottom: 10px;
            padding: 11px 12px;
            font-size: 16px;
            border-radius: 8px;
        }

        .flooring-estimator-wrapper textarea {
            min-height: 112px;
        }

        .flooring-estimator-wrapper button {
            min-height: 48px;
            border-radius: 8px;
            font-size: 0.98rem;
        }

        .flooring-estimator-wrapper .small-btn {
            min-height: 42px;
            white-space: normal;
        }

        .flooring-estimator-wrapper .takeup-header,
        .flooring-estimator-wrapper .custom-line-items-header,
        .flooring-estimator-wrapper .room-helper-header,
        .flooring-estimator-wrapper .room-helper-footer {
            gap: 8px;
        }

        .flooring-estimator-wrapper .room-helper-actions,
        .flooring-estimator-wrapper .quick-takeup-actions {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            width: 100%;
        }

        .flooring-estimator-wrapper .room-helper-actions {
            grid-template-columns: 1fr;
        }

        .flooring-estimator-wrapper .quick-takeup-btn {
            width: 100%;
            min-height: 44px;
            padding: 8px 10px;
            background: #ffffff;
        }

        .flooring-estimator-wrapper .product-suggestions,
        .flooring-estimator-wrapper .mapbox-suggestions {
            max-height: min(330px, 42dvh);
            overflow-y: auto;
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
        }

        .flooring-estimator-wrapper .product-suggestion-item,
        .flooring-estimator-wrapper .mapbox-suggestion-item {
            min-height: 46px;
            padding: 12px 13px;
            font-size: 0.95rem;
            line-height: 1.3;
        }

        .flooring-estimator-wrapper .room-measure-row,
        .flooring-estimator-wrapper .custom-line-item-row,
        .flooring-estimator-wrapper .takeup-row {
            padding: 10px;
            border-radius: 8px;
            gap: 4px;
        }

        .flooring-estimator-wrapper .room-measure-row {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
            align-items: stretch;
        }

        .flooring-estimator-wrapper .room-field-name,
        .flooring-estimator-wrapper .room-field-existing,
        .flooring-estimator-wrapper .room-measure-row .remove-takeup-btn {
            grid-column: 1 / -1;
        }

        .flooring-estimator-wrapper .room-field label {
            margin-top: 0;
        }

        .flooring-estimator-wrapper .room-field input,
        .flooring-estimator-wrapper .room-field select {
            margin-bottom: 0;
        }

        .flooring-estimator-wrapper .room-sqft-output {
            min-height: 48px;
            margin-bottom: 0;
            display: flex;
            align-items: center;
            padding: 10px 12px;
        }

        .flooring-estimator-wrapper .room-measure-row .remove-takeup-btn {
            min-height: 44px;
            margin-top: 2px;
        }

        .flooring-estimator-wrapper .summary-line {
            align-items: stretch;
            flex-direction: column;
            gap: 3px;
            padding: 10px 0;
        }

        .flooring-estimator-wrapper .summary-line strong {
            font-size: 1.08rem;
        }

        .flooring-estimator-wrapper .summary-line.grand strong,
        .flooring-estimator-wrapper .summary-line.deposit strong {
            font-size: 1.18rem;
        }

        .flooring-estimator-wrapper .warning-message {
            position: sticky;
            top: 0;
            z-index: 70;
            margin: 0 0 10px;
            padding: 8px 0;
            background: #ffffff;
            line-height: 1.35;
        }

        .flooring-estimator-wrapper .button-row {
            position: sticky;
            bottom: 0;
            z-index: 90;
            flex-direction: row;
            flex-wrap: nowrap;
            align-items: stretch;
            gap: 8px;
            margin: 18px 0 0;
            padding: 10px 0 max(12px, calc(env(safe-area-inset-bottom) + 10px));
            background: rgba(255, 255, 255, 0.96);
            border-top: 1px solid #e1e4e8;
            box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.08);
        }

        .flooring-estimator-wrapper .button-row button {
            width: auto !important;
            flex: 1 1 0;
            margin: 0;
        }

        .flooring-estimator-wrapper .button-row.right button {
            flex-basis: 100%;
        }
    }
