/* ==========================================================================
   SHIFTIFY TECHNOLOGIES — SMART MANUAL MOVING CALCULATOR
   COMPACT • PROFESSIONAL • SIDE-BY-SIDE INVOICE GRID
   ========================================================================== */

:root {
    --primary-navy: #002b66;
    --dark-navy: #172b40;
    --brand-orange: #ff5500;
    --brand-orange-hover: #e04a00;

    --green: #16834d;
    --green-dark: #123b28;
    --green-light: #f1fbf5;
    --green-border: #d9eadf;

    --border-color: #e2e8f0;
    --border-soft: #edf1f5;

    --bg-light: #f8fafc;
    --bg-soft: #fbfcfd;

    --text-dark: #24334a;
    --text-muted: #65758c;
    --text-light: #94a3b8;

    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 6px;

    --shadow-sm: 0 2px 8px rgba(0, 43, 102, .04);
    --shadow-md: 0 6px 20px rgba(0, 43, 102, .08);
}

/* ==========================================================================
   1. BASE & RESET
   ========================================================================== */

.manual-estimator-section,
.manual-estimator-section * {
    box-sizing: border-box;
}

.manual-estimator-section {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 16px 90px;
    background: #fff;
    color: var(--text-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.manual-estimator-section button,
.manual-estimator-section input,
.manual-estimator-section select {
    font: inherit;
}

.manual-estimator-section img {
    max-width: 100%;
}

/* ==========================================================================
   2. PAGE HEADER
   ========================================================================== */

.manual-estimator__header {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 20px;
    text-align: center;
}

.manual-estimator__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: var(--brand-orange);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.manual-estimator__eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-orange);
}

.manual-estimator__header h2 {
    margin: 0 0 6px;
    color: var(--primary-navy);
    font-size: clamp(22px, 3vw, 28px);
    line-height: 1.2;
    font-weight: 800;
}

.manual-estimator__header p {
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* ==========================================================================
   3. MAIN CARD
   ========================================================================== */

.manual-estimator-card {
    position: relative;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* ==========================================================================
   4. SMART HEADER
   ========================================================================== */

.manual-smart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: var(--dark-navy);
    color: #fff;
}

.manual-smart-header__left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.manual-smart-header__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .15);
    font-size: 18px;
}

.manual-smart-header__left>div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.manual-smart-header__left strong,
.manual-smart-header__left span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.manual-smart-header__left strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.manual-smart-header__left span {
    color: rgba(255, 255, 255, .8);
    font-size: 11px;
}

.manual-smart-header__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.manual-smart-header__status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #52e59e;
    box-shadow: 0 0 6px #52e59e;
}

/* ==========================================================================
   5. PROGRESS
   ========================================================================== */

.manual-progress {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 14px 20px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.manual-progress__step {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color .2s;
}

.manual-progress__step span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 50%;
    background: #cbd5e1;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.manual-progress__step small {
    font-size: 11px;
    font-weight: 600;
}

.manual-progress__step.is-active {
    color: var(--dark-navy);
}

.manual-progress__step.is-active span {
    background: var(--dark-navy);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(23, 43, 64, .12);
}

.manual-progress__step.is-complete span {
    background: #10b981;
    color: #fff;
}

.manual-progress__line {
    flex: 1 1 auto;
    min-width: 12px;
    height: 2px;
    margin: 0 10px;
    background: var(--border-color);
}

.manual-progress__line.is-complete {
    background: var(--dark-navy);
}

/* ==========================================================================
   6. PANELS
   ========================================================================== */

.manual-panel {
    display: none;
    width: 100%;
    min-width: 0;
    padding: 24px;
}

.manual-panel.is-active {
    display: block;
    animation: manualFadeIn .25s ease;
}

@keyframes manualFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   7. SECTION TITLES
   ========================================================================== */

.manual-section-title {
    width: 100%;
    margin: 0 0 16px;
    text-align: left;
}

.manual-section-title span,
.manual-section-title h3 {
    display: block;
    color: var(--primary-navy);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.manual-section-title small,
.manual-section-title p {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.4;
}

/* ==========================================================================
   8. SEARCH
   ========================================================================== */

.manual-search-wrap {
    width: 100%;
    margin-bottom: 14px;
}

.manual-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
}

.manual-search:focus-within {
    border-color: var(--dark-navy);
    box-shadow: 0 0 0 3px rgba(23, 43, 64, .08);
}

.manual-search__icon {
    margin-right: 10px;
    color: var(--text-muted);
    font-size: 16px;
}

.manual-search__input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-dark);
    font-size: 13px;
}

.manual-search__input::placeholder {
    color: #94a3b8;
}

.manual-search__clear {
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
}

/* ==========================================================================
   9. CATEGORY TABS
   ========================================================================== */

.manual-category-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 16px;
    padding-bottom: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.manual-category-tabs::-webkit-scrollbar {
    height: 4px;
}

.manual-category-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.manual-category-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    color: var(--text-dark);
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s;
}

.manual-category-tab:hover {
    background: #fff;
    border-color: #cbd5e1;
}

.manual-category-tab.is-active {
    border-color: var(--dark-navy);
    background: var(--dark-navy);
    color: #fff;
}

.manual-category-tab__icon {
    font-size: 15px;
}

.manual-category-tab__text strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
}

/* ==========================================================================
   10. NOTICES
   ========================================================================== */

.manual-inventory-help,
.manual-marketplace-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin-bottom: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
}

.manual-inventory-help {
    border: 1px solid #bae6fd;
    background: #f0f9ff;
    color: #0369a1;
}

.manual-inventory-help__icon,
.manual-marketplace-alert__icon {
    flex: 0 0 auto;
    font-size: 18px;
}

.manual-inventory-help__content {
    min-width: 0;
    flex: 1;
}

.manual-inventory-help__content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
}

.manual-inventory-help__points {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #0c4a6e;
    font-size: 11px;
}

.manual-marketplace-alert {
    align-items: center;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.manual-marketplace-alert__content {
    min-width: 0;
    flex: 1;
    font-size: 12px;
}

.manual-marketplace-alert__close {
    border: 0;
    background: transparent;
    color: #92400e;
    cursor: pointer;
    font-size: 16px;
}

.manual-search-empty {
    padding: 24px 16px;
    color: var(--text-muted);
    text-align: center;
}

.manual-search-empty span {
    display: block;
    margin-bottom: 6px;
    font-size: 24px;
}

.manual-search-empty strong {
    display: block;
    color: var(--text-dark);
    font-size: 13px;
}

/* ==========================================================================
   11. CATEGORY GROUPS
   ========================================================================== */

.manual-category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.manual-category-group {
    display: none;
    width: 100%;
    min-width: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    overflow: hidden;
}

.manual-category-group.is-open {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-sm);
}

.manual-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    border: 0;
    background: var(--bg-light);
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
}

.manual-category-header:hover {
    background: #f1f5f9;
}

.manual-category-header__left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.manual-category-header__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 16px;
}

.manual-category-header__details {
    min-width: 0;
}

.manual-category-header__details strong,
.manual-category-header__details small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manual-category-header__details strong {
    font-size: 13px;
    font-weight: 700;
}

.manual-category-header__details small {
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 11px;
}

.manual-category-header__right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.manual-category-count {
    padding: 4px 10px;
    border-radius: 12px;
    background: #e2e8f0;
    color: var(--text-dark);
    font-size: 10px;
    font-weight: 700;
}

.manual-category-arrow {
    color: var(--text-muted);
    font-size: 12px;
    transition: transform .2s;
}

.manual-category-group.is-open .manual-category-arrow {
    transform: rotate(180deg);
}

.manual-category-content {
    display: none;
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border-top: 1px solid var(--border-color);
}

.manual-category-group.is-open .manual-category-content {
    display: grid;
}

/* ==========================================================================
   12. INVENTORY ITEMS
   ========================================================================== */

.manual-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.manual-item:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-sm);
}

.manual-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    font-size: 16px;
}

.manual-item__info {
    flex: 1;
    min-width: 0;
}

.manual-item__info strong {
    display: block;
    width: 100%;
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manual-item__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 3px;
}

.manual-cft,
.manual-fragile-badge,
.manual-standard-badge {
    font-size: 10px;
    font-weight: 600;
}

.manual-standard-badge {
    color: #64748b;
}

.manual-fragile-badge {
    padding: 2px 6px;
    border-radius: 4px;
    background: #fff5ef;
    color: var(--brand-orange);
}

.manual-item__controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex: 0 0 auto;
}

.manual-item__controls--three {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.manual-action-quantity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.manual-action-label {
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.manual-quantity {
    display: inline-flex;
    align-items: center;
    height: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    overflow: hidden;
}

.manual-qty-btn {
    width: 26px;
    height: 100%;
    flex: 0 0 26px;
    border: 0;
    background: var(--bg-light);
    color: var(--dark-navy);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.manual-qty-btn:hover {
    background: #e2e8f0;
}

.manual-qty-input {
    width: 30px;
    height: 100%;
    flex: 0 0 30px;
    padding: 0;
    border: 0;
    outline: 0;
    background: #fff;
    color: var(--text-dark);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    -moz-appearance: textfield;
}

.manual-qty-input::-webkit-outer-spin-button,
.manual-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ==========================================================================
   13. LOGISTICS
   ========================================================================== */

.manual-logistics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    margin-bottom: 14px;
}

.manual-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.manual-field label {
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 600;
}

.manual-field select {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--text-dark);
    font-size: 12px;
    outline: none;
}

.manual-field select:focus {
    border-color: var(--dark-navy);
}

.manual-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    font-size: 12px;
}

.manual-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
    flex: 0 0 42px;
}

.manual-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.manual-switch span {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: #cbd5e1;
    cursor: pointer;
    transition: .3s;
}

.manual-switch span::before {
    position: absolute;
    content: "";
    width: 16px;
    height: 16px;
    left: 3px;
    bottom: 3px;
    border-radius: 50%;
    background: #fff;
    transition: .3s;
}

.manual-switch input:checked+span {
    background: var(--brand-orange);
}

.manual-switch input:checked+span::before {
    transform: translateX(20px);
}

.manual-distance-control {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    font-size: 12px;
}

.manual-distance-control input[type="range"] {
    flex: 1;
    min-width: 0;
    accent-color: var(--dark-navy);
    cursor: pointer;
}

.manual-inline-notice {
    width: 100%;
    margin-bottom: 12px;
    padding: 10px 14px;
    border: 1px solid #ffdcd0;
    border-radius: var(--radius-sm);
    background: #fff5ef;
    color: var(--brand-orange);
    font-size: 11px;
}

/* ==========================================================================
   14. ADDITIONAL SERVICES
   ========================================================================== */

.manual-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-bottom: 14px;
}

.manual-service-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    cursor: pointer;
    transition: all .2s;
}

.manual-service-card:hover {
    border-color: #cbd5e1;
    background: var(--bg-light);
}

.manual-service-card span {
    font-size: 16px;
    line-height: 1;
}

.manual-service-card div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.manual-service-card strong {
    color: var(--text-dark);
    font-size: 11px;
    font-weight: 700;
}

.manual-service-card small {
    color: var(--brand-orange);
    font-size: 10px;
    font-weight: 700;
}

.manual-services-terms {
    width: 100%;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-light);
}

.manual-services-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.4;
    cursor: pointer;
}

.manual-services-terms-check input {
    margin-top: 2px;
    accent-color: var(--dark-navy);
}

/* ==========================================================================
   15. LIVE SUMMARY
   ========================================================================== */

.manual-live-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: #eaf7f3;
    text-align: center;
}

.manual-live-summary small {
    display: block;
    color: #059669;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.manual-live-summary strong {
    display: block;
    margin-top: 3px;
    color: var(--dark-navy);
    font-size: 15px;
    font-weight: 800;
}

/* ==========================================================================
   16. REVIEW CARDS
   ========================================================================== */

.manual-review-card {
    width: 100%;
    min-width: 0;
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
}

.manual-review-card__title {
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.manual-review-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 12px;
}

.manual-review-row:last-child {
    border-bottom: 0;
}

.manual-review-card__hint {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 10px;
}

.manual-review-empty {
    color: var(--text-muted);
    font-size: 11px;
}

/* ==========================================================================
   17. INVENTORY REVIEW
   ========================================================================== */

.manual-review-inventory {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin-bottom: 16px;
}

.manual-review-inventory-section {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    overflow: hidden;
}

.manual-review-inventory-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.manual-review-inventory-section__header>div {
    min-width: 0;
    flex: 1;
}

.manual-review-inventory-section__header strong {
    display: block;
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 800;
}

.manual-review-inventory-section__header small {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 10px;
}

.manual-review-inventory-section__header>span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 24px;
    padding: 0 8px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: #fff;
    color: var(--dark-navy);
    font-size: 10px;
    font-weight: 800;
}

.manual-review-inventory-section--move .manual-review-inventory-section__header {
    border-top: 3px solid var(--dark-navy);
}

.manual-review-inventory-section--sell .manual-review-inventory-section__header {
    border-top: 3px solid var(--brand-orange);
}

.manual-review-inventory-section--donate .manual-review-inventory-section__header {
    border-top: 3px solid #10b981;
}

.manual-review-inventory-section .manual-review-items-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    min-width: 0;
    padding: 10px;
    background: #fff;
}

.manual-review-inventory-section .manual-review-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 70px 100px 110px;
    align-items: center;
    width: 100%;
    min-width: 0;
    gap: 8px;
    padding: 8px 12px !important;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    font-size: 11px;
}

.manual-review-inventory-section .manual-review-item__name-line {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    min-width: 0;
}

.manual-review-inventory-section .manual-review-item__name-line strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-dark);
    font-size: 11px;
    font-weight: 700;
}

.manual-review-inventory-section .manual-review-item__name>small {
    display: block;
    width: 100%;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 9px;
}

.manual-review-inventory-section .manual-action-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.manual-review-inventory-section .manual-action-badge--move {
    background: #eef2f7;
    color: var(--dark-navy);
}

.manual-review-inventory-section .manual-action-badge--sell {
    background: #fff5ef;
    color: var(--brand-orange);
}

.manual-review-inventory-section .manual-action-badge--donate {
    background: #ecfdf5;
    color: #059669;
}

.manual-review-inventory-section .manual-review-item__qty,
.manual-review-inventory-section .manual-review-item__cft,
.manual-review-inventory-section .manual-review-item__goods-value {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    gap: 4px;
}

.manual-review-inventory-section .manual-review-item__qty small,
.manual-review-inventory-section .manual-review-item__cft small,
.manual-review-inventory-section .manual-review-item__goods-value small {
    color: var(--text-muted);
    font-size: 9px;
    white-space: nowrap;
}

.manual-review-inventory-section .manual-review-item__qty strong,
.manual-review-inventory-section .manual-review-item__cft strong,
.manual-review-inventory-section .manual-review-item__goods-value strong {
    color: var(--dark-navy);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* ==========================================================================
   18. CALCULATION PREVIEW
   ========================================================================== */

.manual-calculation-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    text-align: center;
}

.manual-calculation-preview small {
    display: block;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.manual-calculation-preview strong {
    display: block;
    color: var(--dark-navy);
    font-size: 16px;
    font-weight: 800;
}

/* ==========================================================================
   19. GOODS VALUE PANEL
   ========================================================================== */

#manual-value-panel .manual-value-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin-bottom: 16px;
    padding: 14px 16px;
    border: 1px solid #dfe7ef;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    font-size: 12px;
}

#manual-value-panel .manual-value-notice__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
}

#manual-value-panel .manual-value-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-bottom: 14px;
}

#manual-value-panel .manual-value-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 50px 110px 60px;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    font-size: 11px;
}

#manual-value-panel .manual-value-item__info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

#manual-value-panel .manual-value-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
    font-size: 14px;
}

#manual-value-panel .manual-value-item__info strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
}

#manual-value-panel .manual-money-input {
    display: flex;
    align-items: center;
    width: 100%;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    overflow: hidden;
}

#manual-value-panel .manual-money-input>span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 100%;
    flex: 0 0 22px;
    border-right: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
}

#manual-value-panel .manual-declared-value,
.manual-resell-estimate {
    width: 100%;
    height: 100%;
    padding: 0 6px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 11px;
    font-weight: 600;
}

#manual-value-panel .manual-goods-value-summary,
#manual-value-panel .manual-resell-summary,
#manual-value-panel .manual-insurance-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 10px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    font-size: 12px;
}

#manual-value-panel .manual-insurance-info {
    background: #fff;
}

/* ==========================================================================
   20. GREEN MILESTONE
   ========================================================================== */

.manual-green-milestone {
    width: 100%;
    min-width: 0;
}

.manual-green-milestone__hero {
    padding: 20px;
    margin-bottom: 14px;
    border: 1px solid var(--green-border);
    border-radius: var(--radius-lg);
    background: var(--green-light);
    text-align: center;
}

.manual-green-milestone__eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px;
}

.manual-green-milestone__hero h2 {
    margin: 0;
    color: var(--green-dark);
    font-size: 22px;
    line-height: 1.2;
}

.manual-green-milestone__hero p {
    max-width: 650px;
    margin: 6px auto 0;
    color: #587064;
    font-size: 12px;
    line-height: 1.4;
}

.manual-green-milestone__free {
    margin-top: 10px;
    font-size: 11px;
    color: var(--green-dark);
}

.manual-green-milestone__free strong {
    display: block;
    margin-bottom: 2px;
}

.manual-green-milestone__promise {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #fff;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
}

.manual-green-section {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
}

.manual-green-section__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.manual-green-section__heading strong {
    display: block;
    color: var(--text-dark);
    font-size: 12px;
}

.manual-green-section__heading small {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 10px;
}

.manual-green-section__heading>span {
    padding: 4px 10px;
    border-radius: 12px;
    background: #f3f4f6;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

/* Tree cards */

.manual-tree-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.manual-tree-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, transform .1s;
}

.manual-tree-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.manual-tree-card.is-selected {
    border-color: var(--green);
    box-shadow: 0 0 0 2px rgba(22, 131, 77, .15);
}

.manual-tree-card__image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f2faf5;
}

.manual-tree-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    padding: 8px;
}

.manual-tree-card__body {
    padding: 10px;
}

.manual-tree-card__body>strong {
    display: block;
    color: var(--text-dark);
    font-size: 12px;
}

.manual-tree-card__tag {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 6px;
    border-radius: 6px;
    background: #edf8f1;
    color: var(--green);
    font-size: 8px;
    font-weight: 800;
}

.manual-tree-card__facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 8px;
}

.manual-tree-card__facts div {
    min-width: 0;
}

.manual-tree-card__facts small {
    display: block;
    color: var(--text-muted);
    font-size: 8px;
}

.manual-tree-card__facts b {
    display: block;
    margin-top: 2px;
    color: var(--dark-navy);
    font-size: 9px;
    line-height: 1.2;
}

.manual-tree-card__body p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 9px;
    line-height: 1.3;
}

.manual-tree-card__select {
    display: block;
    margin: 0 10px 10px;
    padding: 6px;
    border-radius: 6px;
    background: #f5f6f7;
    color: var(--dark-navy);
    text-align: center;
    font-size: 9px;
    font-weight: 800;
}

.manual-tree-card.is-selected .manual-tree-card__select {
    background: var(--green);
    color: #fff;
}

.manual-green-location {
    max-width: 450px;
}

.manual-green-location label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
}

.manual-green-location select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-dark);
    font-size: 12px;
}

.manual-green-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.manual-green-trust>div {
    display: grid;
    grid-template-columns: 24px 1fr;
    column-gap: 8px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
}

.manual-green-trust span {
    grid-row: span 2;
    font-size: 18px;
}

.manual-green-trust strong {
    color: var(--text-dark);
    font-size: 10px;
}

.manual-green-trust small {
    color: var(--text-muted);
    font-size: 8px;
}

.manual-green-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 12px 16px;
    border: 1px solid var(--green-border);
    border-radius: var(--radius-md);
    background: #f4fbf6;
}

.manual-green-selected small {
    display: block;
    color: var(--text-muted);
    font-size: 9px;
}

.manual-green-selected strong {
    display: block;
    margin-top: 2px;
    color: var(--green);
    font-size: 12px;
}

.manual-green-selected>span {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 14px;
    background: #fff;
    color: var(--green);
    font-size: 9px;
    font-weight: 800;
}

/* ==========================================================================
   21. MOVING DATE CALENDAR
   ========================================================================== */

#manual-date-panel {
    background: #fff;
}

#manual-date-panel>.manual-section-title {
    margin-bottom: 14px;
}

.manual-date-calendar {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
}

.manual-date-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.manual-date-header strong {
    color: var(--primary-navy);
    font-size: 15px;
    font-weight: 700;
}

.manual-date-header button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--dark-navy);
    font-size: 20px;
    cursor: pointer;
}

.manual-date-header button:hover {
    background: var(--bg-light);
}

.manual-date-weekdays,
.manual-date-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.manual-date-weekdays span {
    padding-bottom: 6px;
    color: var(--text-muted);
    text-align: center;
    font-size: 11px;
    font-weight: 700;
}

.manual-date-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 56px;
    padding: 4px 2px;
    border: 1px solid #e8edf2;
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.manual-date-number {
    color: #26364a;
    font-size: 12px;
    font-weight: 700;
}

.manual-date-price {
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.manual-date-day.has-surcharge {
    border-color: #ffdfcf;
    background: #fff8f3;
}

.manual-date-day.has-surcharge .manual-date-price {
    color: #e65a22;
}

.manual-date-day.is-selected {
    border: 2px solid var(--brand-orange);
    background: #fff0e8;
}

.manual-date-day:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.manual-date-blank {
    min-height: 56px;
}

.manual-date-selected {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-light);
}

.manual-date-selected span {
    color: var(--text-muted);
    font-size: 11px;
}

.manual-date-selected strong {
    color: var(--primary-navy);
    font-size: 14px;
}

.manual-date-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

#manual-date-continue:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ==========================================================================
   22. FINAL QUOTE & INVOICE BREAKDOWN (2 LAYERS IN 1 ROW GRID LAYOUT)
   ========================================================================== */

#manual-quote-panel {
    background: #fff;
}

#manual-quote-panel>.manual-section-title {
    margin-bottom: 14px;
}

.manual-final-invoice {
    width: 100%;
    min-width: 0;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #fff;
    overflow: hidden;
}

.manual-final-invoice__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-light);
}

.manual-final-invoice__header strong {
    display: block;
    color: var(--dark-navy);
    font-size: 13px;
    font-weight: 800;
}

.manual-final-invoice__header small {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 10px;
}

.manual-final-invoice__status {
    padding: 4px 10px;
    border-radius: 20px;
    background: #eef2f7;
    color: var(--dark-navy);
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

/* Professional Invoice Card Configured with 2 Layers in 1 Row & Tightened Gaps */

.manual-quote-card {
    width: 100%;
    margin: 12px 0;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: #fff;
    color: var(--text-dark);
    border: 1px solid #cbd5e1;
    box-shadow: var(--shadow-sm);

    /* 2 LAYERS / COLUMNS IN 1 ROW WITH CONTROLLED GAPS */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 10px;
    align-items: start;
}

.manual-quote-card__eyebrow,
.manual-quote-card__heading,
.invoice-grand-total,
.invoice-disclaimer {
    grid-column: 1 / -1;
    /* Spans across both columns */
}

.manual-quote-card__eyebrow {
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.manual-quote-card__heading {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.manual-quote-card__heading h3 {
    margin: 0 0 2px 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
}

.manual-quote-card__heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 11px;
}

.invoice-section {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    margin-bottom: 0;
    height: 100%;
}

.invoice-section__title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
    background: #f8fafc;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    border-left: 3px solid #2563eb;
}

.invoice-section__title span {
    font-size: 9px;
    font-weight: 800;
    color: #2563eb;
    background: #eff6ff;
    padding: 2px 5px;
    border-radius: 4px;
}

.manual-quote-breakdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    text-align: left;
}

.manual-quote-breakdown>div {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 4px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.manual-quote-breakdown>div:last-child {
    border-bottom: none;
}

.manual-quote-breakdown span {
    display: flex;
    flex-direction: column;
    color: #334155;
    font-size: 11px;
    font-weight: 600;
}

.manual-quote-breakdown small {
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 400;
    margin-top: 1px;
}

.manual-quote-breakdown strong {
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    margin-left: 8px;
}

.manual-quote-breakdown .invoice-subtotal {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    border-bottom: none;
    margin-top: 4px;
    padding: 6px 8px;
}

.manual-quote-breakdown .invoice-subtotal span {
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.manual-quote-breakdown .invoice-subtotal strong {
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
}

.insurance-description {
    font-size: 9px;
    color: #475569;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--radius-sm);
    padding: 8px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.invoice-grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f172a;
    color: #ffffff;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin-top: 8px;
    margin-bottom: 4px;
}

.invoice-grand-total span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.invoice-grand-total small {
    display: block;
    font-size: 10px;
    color: #cbd5e1;
    font-weight: 400;
}

.invoice-grand-total strong {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}

.invoice-disclaimer {
    font-size: 9px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 4px;
    margin-bottom: 0;
    line-height: 1.3;
}

/* Green summary */

.manual-final-green-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 12px;
    padding: 10px 14px;
    border: 1px solid var(--green-border);
    border-radius: var(--radius-md);
    background: var(--green-light);
}

.manual-final-green-summary__info {
    min-width: 0;
}

.manual-final-green-summary__info small {
    display: block;
    color: var(--text-muted);
    font-size: 9px;
}

.manual-final-green-summary__info strong {
    display: block;
    margin-top: 2px;
    color: var(--green);
    font-size: 12px;
}

.manual-final-green-summary>span {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 14px;
    background: #fff;
    color: var(--green);
    font-size: 9px;
    font-weight: 800;
}

/* Payment status */

#manual-payment-status {
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    color: var(--text-muted);
    font-size: 10px;
    line-height: 1.4;
}

/* Payment action / summary */

.manual-payment-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 14px 18px;
    width: 100%;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
}

.manual-payment-summary>div {
    display: flex;
    flex-direction: column;
}

.manual-payment-summary small {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.manual-payment-summary strong {
    font-size: 18px;
    font-weight: 800;
    color: #16a34a;
}

.manual-payment-summary>span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
}

.manual-payment-summary i {
    color: #16a34a;
}

.manual-payment-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #fff;
}

.manual-payment-action__info {
    min-width: 0;
}

.manual-payment-action__info small {
    display: block;
    color: var(--text-muted);
    font-size: 10px;
}

.manual-payment-action__info strong {
    display: block;
    margin-top: 2px;
    color: var(--dark-navy);
    font-size: 18px;
    font-weight: 800;
}

.manual-payment-action .manual-primary-btn {
    flex: 0 0 auto;
    min-width: 180px;
}

/* ==========================================================================
   23. BUTTONS
   ========================================================================== */

.manual-panel-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin-top: 16px;
}

.manual-panel-actions--split {
    justify-content: space-between;
}

.manual-primary-btn,
.manual-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
    text-decoration: none;
}

.manual-primary-btn {
    border: 0;
    background: var(--brand-orange);
    color: #fff;
}

.manual-primary-btn:hover {
    background: var(--brand-orange-hover);
}

.manual-primary-btn:active {
    transform: scale(.98);
}

.manual-secondary-btn {
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-dark);
}

.manual-secondary-btn:hover {
    background: var(--bg-light);
    border-color: #cbd5e1;
}

/* ==========================================================================
   24. STICKY SUMMARY
   ========================================================================== */

.manual-sticky-summary {
    position: fixed;
    z-index: 90;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: min(600px, calc(100% - 24px));
    min-height: 48px;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 43, 102, .12);
}

.manual-sticky-summary small {
    display: block;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
}

.manual-sticky-summary strong {
    color: var(--dark-navy);
    font-size: 13px;
    font-weight: 800;
}

.manual-sticky-summary__goods {
    padding-left: 12px;
    border-left: 1px solid var(--border-color);
}

.manual-sticky-summary__button {
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--brand-orange);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

/* ==========================================================================
   25. TABLET RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
    .manual-estimator-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .manual-panel {
        padding: 16px;
    }

    .manual-category-content {
        grid-template-columns: 1fr;
    }

    .manual-logistics-grid {
        grid-template-columns: 1fr;
    }

    .manual-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .manual-calculation-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #manual-value-panel .manual-value-list {
        grid-template-columns: 1fr;
    }

    .manual-review-inventory-section .manual-review-items-list {
        grid-template-columns: 1fr;
    }

    .manual-review-inventory-section .manual-review-item {
        grid-template-columns: minmax(0, 1fr) 70px 100px 110px;
    }

    .manual-tree-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================================
   26. MOBILE RESPONSIVE
   ========================================================================== */

@media (max-width: 767px) {
    .manual-estimator-section {
        padding: 10px 8px 84px;
    }

    .manual-estimator__header {
        margin-bottom: 12px;
    }

    .manual-smart-header {
        padding: 10px 14px;
    }

    .manual-smart-header__left strong {
        font-size: 12px;
    }

    .manual-smart-header__left span {
        font-size: 10px;
    }

    .manual-progress {
        padding: 10px 12px;
    }

    .manual-progress__step {
        justify-content: center;
    }

    .manual-progress__step small {
        display: none;
    }

    .manual-progress__step span {
        width: 23px;
        height: 23px;
        flex-basis: 23px;
        font-size: 10px;
    }

    .manual-progress__line {
        margin: 0 6px;
    }

    .manual-panel {
        padding: 14px 12px;
    }

    .manual-section-title span,
    .manual-section-title h3 {
        font-size: 14px;
    }

    /* Inventory items */

    .manual-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px;
        padding: 10px;
    }

    .manual-item__info {
        width: 100%;
    }

    .manual-item__info strong {
        white-space: normal;
        font-size: 12px;
    }

    .manual-item__controls--three {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px;
        width: 100%;
    }

    .manual-action-quantity {
        width: 100%;
    }

    .manual-quantity {
        width: 100%;
        justify-content: space-between;
    }

    .manual-qty-btn {
        width: 28px;
        flex-basis: 28px;
    }

    .manual-qty-input {
        width: 100%;
        flex: 1;
    }

    /* Services grid */

    .manual-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Goods value */

    #manual-value-panel .manual-value-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    #manual-value-panel .manual-value-item__quantity {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    #manual-value-panel .manual-value-item__input {
        width: 100%;
    }

    /* Inventory review */

    .manual-review-inventory {
        gap: 10px;
    }

    .manual-review-inventory-section__header {
        padding: 10px 12px;
    }

    .manual-review-inventory-section .manual-review-items-list {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
    }

    .manual-review-inventory-section .manual-review-item {
        grid-template-columns: minmax(0, 1fr) 56px 75px 90px;
        gap: 6px;
        padding: 8px !important;
    }

    /* Green trees */

    .manual-green-milestone__hero {
        padding: 14px;
    }

    .manual-green-milestone__hero h2 {
        font-size: 19px;
    }

    .manual-tree-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .manual-green-trust {
        grid-template-columns: 1fr;
    }

    .manual-green-section {
        padding: 10px;
    }

    /* Calendar */

    .manual-date-calendar {
        padding: 10px;
    }

    .manual-date-day,
    .manual-date-blank {
        min-height: 48px;
    }

    .manual-date-actions {
        flex-direction: column;
        gap: 8px;
    }

    /* Quote invoice card stacks columns on smaller displays */

    .manual-quote-card {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .invoice-grand-total {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .invoice-grand-total strong {
        font-size: 22px;
    }

    .manual-payment-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px;
    }

    .manual-payment-action {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }

    .manual-payment-action .manual-primary-btn {
        width: 100%;
        min-width: 0;
    }

    /* Buttons */

    .manual-panel-actions--split {
        flex-direction: column-reverse;
        gap: 8px;
    }

    .manual-primary-btn,
    .manual-secondary-btn {
        width: 100%;
        min-height: 40px;
    }

    /* Sticky summary */

    .manual-sticky-summary {
        bottom: calc(8px + env(safe-area-inset-bottom));
        width: calc(100% - 16px);
        padding: 8px 12px;
    }

    .manual-sticky-summary strong {
        font-size: 11px;
    }

    .manual-sticky-summary__button {
        height: 32px;
        padding: 0 10px;
        font-size: 11px;
    }
}

/* ==========================================================================
   27. SMALL PHONES RESPONSIVE
   ========================================================================== */

@media (max-width: 480px) {
    .manual-estimator-section {
        padding-left: 6px;
        padding-right: 6px;
    }

    .manual-review-inventory-section .manual-review-item {
        grid-template-columns: minmax(0, 1fr) 50px 65px 80px;
        gap: 4px;
        padding: 6px !important;
    }

    .manual-green-milestone__hero h2 {
        font-size: 18px;
    }

    .manual-date-day,
    .manual-date-blank {
        min-height: 44px;
    }
}

/* ==========================================================================
   28. EXTRA SMALL PHONES
   ========================================================================== */

@media (max-width: 375px) {
    .manual-item__controls--three {
        grid-template-columns: 1fr !important;
    }

    .manual-action-quantity {
        flex-direction: row;
        justify-content: space-between;
    }

    .manual-quantity {
        width: 100px;
    }

    .manual-review-inventory-section .manual-review-item {
        grid-template-columns: minmax(0, 1fr) 46px 60px 72px;
        gap: 3px;
        padding: 5px !important;
    }

    .manual-quote-card {
        padding: 12px;
    }

    .manual-date-day,
    .manual-date-blank {
        min-height: 40px;
    }
}

/* =========================================================
   SHIFTIFY — FINAL QUOTE / INVOICE ALIGNMENT
   Only affects Step 6 — does not change other steps
========================================================= */

/* Main invoice container */
#manual-quote-panel .manual-final-invoice {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Review cards — two aligned columns */
#manual-quote-panel .manual-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
    margin: 14px 0;
}

/* Review card spacing */
#manual-quote-panel .manual-review-card {
    min-width: 0;
    padding: 14px 16px;
    margin: 0;
    box-sizing: border-box;
    border-radius: 10px;
}

/* Card headings */
#manual-quote-panel .manual-review-card__title {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

/* Each review row */
#manual-quote-panel .manual-review-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    margin: 0;
    border-bottom: 1px solid rgba(100, 116, 139, 0.13);
}

#manual-quote-panel .manual-review-row:last-child {
    border-bottom: none;
}

#manual-quote-panel .manual-review-row span {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    line-height: 1.45;
}

#manual-quote-panel .manual-review-row strong {
    flex-shrink: 0;
    text-align: right;
    font-size: 12px;
    line-height: 1.45;
}

/* Card hint */
#manual-quote-panel .manual-review-card__hint {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.5;
}

/* Green milestone */
#manual-quote-panel .manual-review-card--green {
    grid-column: span 2;
}

#manual-quote-panel .manual-green-final-note {
    margin-top: 10px;
    padding: 9px 11px;
    border-radius: 8px;
}

/* Calculation preview — four equal columns */
#manual-quote-panel .manual-calculation-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

#manual-quote-panel .manual-calculation-preview>div {
    min-width: 0;
    padding: 11px 12px;
    box-sizing: border-box;
    border-radius: 9px;
}

#manual-quote-panel .manual-calculation-preview small {
    display: block;
    margin-bottom: 5px;
    font-size: 10px;
    line-height: 1.4;
}

#manual-quote-panel .manual-calculation-preview strong {
    display: block;
    font-size: 15px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Invoice card */
#manual-quote-panel .manual-quote-card {
    width: 100%;
    box-sizing: border-box;
    padding: 18px;
    margin-top: 14px;
    border-radius: 12px;
}

/* Invoice heading */
#manual-quote-panel .manual-quote-card__eyebrow {
    font-size: 10px;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

#manual-quote-panel .manual-quote-card__heading {
    margin-bottom: 14px;
}

#manual-quote-panel .manual-quote-card__heading h3 {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.4;
}

#manual-quote-panel .manual-quote-card__heading p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
}

/* Invoice sections */
#manual-quote-panel .invoice-section {
    margin: 0 0 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(100, 116, 139, 0.18);
}

#manual-quote-panel .invoice-section__title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 9px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

#manual-quote-panel .invoice-section__title>span {
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 11px;
}

/* Invoice breakdown rows */
#manual-quote-panel .manual-quote-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0;
}

#manual-quote-panel .manual-quote-breakdown>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    margin: 0;
}

#manual-quote-panel .manual-quote-breakdown>div>span {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    line-height: 1.4;
}

#manual-quote-panel .manual-quote-breakdown>div>span small {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.4;
    opacity: 0.75;
}

#manual-quote-panel .manual-quote-breakdown>div>strong {
    flex: 0 0 auto;
    min-width: 75px;
    text-align: right;
    font-size: 12px;
    line-height: 1.4;
}

/* Subtotals */
#manual-quote-panel .manual-quote-breakdown>.invoice-subtotal {
    padding: 10px 0;
    margin-top: 3px;
    border-top: 1px dashed rgba(100, 116, 139, 0.3);
    font-weight: 700;
}

#manual-quote-panel .invoice-subtotal span,
#manual-quote-panel .invoice-subtotal strong {
    font-size: 12px;
    font-weight: 700;
}

/* Insurance description */
#manual-quote-panel .insurance-description {
    margin: 0 0 8px;
    font-size: 11px;
    line-height: 1.55;
}

/* Grand total */
#manual-quote-panel .invoice-grand-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px;
    margin-top: 12px;
    border-radius: 10px;
}

#manual-quote-panel .invoice-grand-total>div {
    min-width: 0;
}

#manual-quote-panel .invoice-grand-total span {
    display: block;
    font-size: 12px;
    font-weight: 800;
}

#manual-quote-panel .invoice-grand-total small {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.4;
}

#manual-quote-panel .invoice-grand-total strong {
    flex-shrink: 0;
    font-size: 23px;
    line-height: 1.3;
}

/* Disclaimer */
#manual-quote-panel .invoice-disclaimer {
    margin: 10px 0 0;
    font-size: 10px;
    line-height: 1.55;
}

/* Payment summary */
#manual-quote-panel .manual-payment-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 13px 16px;
    margin-top: 12px;
    border-radius: 10px;
}

#manual-quote-panel .manual-payment-summary>div {
    min-width: 0;
}

#manual-quote-panel .manual-payment-summary small {
    display: block;
    font-size: 10px;
    margin-bottom: 4px;
}

#manual-quote-panel .manual-payment-summary strong {
    font-size: 21px;
}

#manual-quote-panel .manual-payment-summary>span {
    font-size: 11px;
    line-height: 1.5;
    text-align: right;
}

/* Payment buttons */
#manual-quote-panel .manual-panel-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

#manual-quote-panel .manual-panel-actions button {
    min-height: 42px;
}

/* =========================================================
   RESPONSIVE — TABLET
========================================================= */
@media (max-width: 768px) {

    #manual-quote-panel .manual-review-grid {
        gap: 9px;
    }

    #manual-quote-panel .manual-review-card {
        padding: 11px;
    }

    #manual-quote-panel .manual-calculation-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    #manual-quote-panel .manual-quote-card {
        padding: 14px;
    }
}

/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */
@media (max-width: 520px) {

    #manual-quote-panel .manual-review-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    #manual-quote-panel .manual-review-card--green {
        grid-column: auto;
    }

    #manual-quote-panel .manual-review-card {
        padding: 12px;
    }

    #manual-quote-panel .manual-calculation-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #manual-quote-panel .manual-quote-card {
        padding: 12px;
    }

    #manual-quote-panel .manual-quote-card__heading h3 {
        font-size: 16px;
    }

    #manual-quote-panel .manual-quote-breakdown>div {
        gap: 10px;
    }

    #manual-quote-panel .manual-quote-breakdown>div>span {
        font-size: 11px;
    }

    #manual-quote-panel .manual-quote-breakdown>div>strong {
        min-width: 65px;
        font-size: 11px;
    }

    #manual-quote-panel .invoice-grand-total {
        padding: 12px;
    }

    #manual-quote-panel .invoice-grand-total strong {
        font-size: 19px;
    }

    #manual-quote-panel .manual-payment-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    #manual-quote-panel .manual-payment-summary>span {
        text-align: left;
    }

    #manual-quote-panel .manual-panel-actions {
        flex-direction: column-reverse;
    }

    #manual-quote-panel .manual-panel-actions button {
        width: 100%;
    }
}

/* FINAL QUOTE ONLY — MOBILE TEXT FIX */
@media (max-width: 520px) {

    #manual-quote-panel .manual-quote-card {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        min-width: 0;
        padding: 12px;
    }

    #manual-quote-panel .invoice-section {
        width: 100%;
        min-width: 0;
    }

    #manual-quote-panel .manual-quote-breakdown>div {
        align-items: flex-start;
        gap: 8px;
        min-width: 0;
    }

    #manual-quote-panel .manual-quote-breakdown>div>span {
        flex: 1 1 auto;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #manual-quote-panel .manual-quote-breakdown>div>strong {
        flex: 0 0 auto;
        min-width: 0;
        max-width: 42%;
        margin-left: 0;
        text-align: right;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #manual-quote-panel .invoice-grand-total {
        flex-wrap: wrap;
        gap: 8px;
    }

    #manual-quote-panel .invoice-grand-total>div {
        min-width: 0;
        flex: 1 1 120px;
    }

    #manual-quote-panel .invoice-grand-total strong {
        max-width: 100%;
        font-size: 19px;
        overflow-wrap: anywhere;
    }

    #manual-quote-panel .manual-payment-summary {
        flex-wrap: wrap;
        min-width: 0;
    }

    #manual-quote-panel .manual-payment-summary>span {
        max-width: 100%;
        white-space: normal;
        text-align: left;
    }
}

/* EXTRA SMALL PHONES */
@media (max-width: 375px) {

    #manual-quote-panel .manual-quote-card {
        padding: 9px;
    }

    #manual-quote-panel .manual-quote-breakdown>div>span {
        font-size: 10px;
    }

    #manual-quote-panel .manual-quote-breakdown>div>strong {
        font-size: 10px;
    }

    #manual-quote-panel .invoice-section {
        padding: 8px;
    }
}

/* =========================================================
   SHIFTIFY — FINAL QUOTE RESPONSIVE PATCH
   ONLY STEP 6 — DESKTOP / TABLET / ALL MOBILE PHONES
   Does not modify other calculator steps
========================================================= */

/* Prevent width overflow */
#manual-quote-panel,
#manual-quote-panel * {
    box-sizing: border-box;
}

#manual-quote-panel .manual-final-invoice,
#manual-quote-panel .manual-review-grid,
#manual-quote-panel .manual-quote-card,
#manual-quote-panel .manual-payment-summary {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

/* Inventory review cards */
#manual-quote-panel .manual-review-inventory-section .manual-review-items-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#manual-quote-panel .manual-review-inventory-section .manual-review-item {
    grid-template-columns: minmax(0, 1fr) 65px 75px 90px;
    gap: 6px;
    min-width: 0;
}

#manual-quote-panel .manual-review-item__name,
#manual-quote-panel .manual-review-item__qty,
#manual-quote-panel .manual-review-item__cft,
#manual-quote-panel .manual-review-item__goods-value {
    min-width: 0;
}

/* Invoice grid */
#manual-quote-panel .manual-quote-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#manual-quote-panel .manual-quote-card > * {
    min-width: 0;
}

#manual-quote-panel .invoice-section {
    min-width: 0;
    width: 100%;
    height: auto;
}

/* Review details */
#manual-quote-panel .manual-review-row {
    flex-wrap: wrap;
}

#manual-quote-panel .manual-review-row span {
    overflow-wrap: anywhere;
}

/* =========================================================
   TABLETS
========================================================= */
@media (max-width: 900px) {

    #manual-quote-panel .manual-review-inventory-section .manual-review-items-list {
        grid-template-columns: 1fr;
    }

    #manual-quote-panel .manual-review-inventory-section .manual-review-item {
        grid-template-columns: minmax(0, 1fr) 60px 75px 90px;
    }

    #manual-quote-panel .manual-review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #manual-quote-panel .manual-quote-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 12px;
    }

    #manual-quote-panel .invoice-section__title {
        font-size: 11px;
    }
}

/* =========================================================
   MOBILE PHONES
========================================================= */
@media (max-width: 600px) {

    /* Main invoice */
    #manual-quote-panel .manual-final-invoice {
        border-radius: 9px;
    }

    #manual-quote-panel .manual-final-invoice__header {
        padding: 11px 12px;
    }

    #manual-quote-panel .manual-final-invoice__status {
        font-size: 8px;
        padding: 4px 7px;
    }

    /* Inventory items */
    #manual-quote-panel .manual-review-inventory-section .manual-review-items-list {
        grid-template-columns: minmax(0, 1fr);
        padding: 7px;
    }

    #manual-quote-panel .manual-review-inventory-section .manual-review-item {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 7px 10px;
        padding: 9px !important;
    }

    #manual-quote-panel .manual-review-item__name {
        grid-column: 1 / -1;
        min-width: 0;
    }

    #manual-quote-panel .manual-review-item__qty,
    #manual-quote-panel .manual-review-item__cft,
    #manual-quote-panel .manual-review-item__goods-value {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    /* Review information */
    #manual-quote-panel .manual-review-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    #manual-quote-panel .manual-review-card--green {
        grid-column: auto;
    }

    #manual-quote-panel .manual-review-card {
        padding: 11px;
        margin: 0;
    }

    #manual-quote-panel .manual-review-row {
        gap: 8px;
        font-size: 11px;
    }

    #manual-quote-panel .manual-review-row strong {
        max-width: 55%;
        overflow-wrap: anywhere;
        text-align: right;
    }

    /* Four calculation summaries */
    #manual-quote-panel .manual-calculation-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        padding: 9px;
    }

    #manual-quote-panel .manual-calculation-preview > div {
        min-width: 0;
        padding: 9px 5px;
    }

    #manual-quote-panel .manual-calculation-preview small {
        font-size: 9px;
        overflow-wrap: anywhere;
    }

    #manual-quote-panel .manual-calculation-preview strong {
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    /* Invoice becomes one column */
    #manual-quote-panel .manual-quote-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
        padding: 10px;
        margin-top: 10px;
    }

    #manual-quote-panel .manual-quote-card__eyebrow,
    #manual-quote-panel .manual-quote-card__heading,
    #manual-quote-panel .invoice-grand-total,
    #manual-quote-panel .invoice-disclaimer {
        grid-column: 1;
    }

    #manual-quote-panel .manual-quote-card__heading h3 {
        font-size: 16px;
    }

    #manual-quote-panel .manual-quote-card__heading p {
        font-size: 10px;
    }

    #manual-quote-panel .invoice-section {
        padding: 9px;
        margin: 0;
    }

    #manual-quote-panel .invoice-section__title {
        align-items: flex-start;
        font-size: 11px;
        line-height: 1.4;
        gap: 7px;
    }

    #manual-quote-panel .invoice-section__title > span {
        flex: 0 0 23px;
    }

    /* Price rows */
    #manual-quote-panel .manual-quote-breakdown > div {
        align-items: flex-start;
        gap: 7px;
        padding: 8px 0;
    }

    #manual-quote-panel .manual-quote-breakdown > div > span {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 11px;
        overflow-wrap: anywhere;
    }

    #manual-quote-panel .manual-quote-breakdown > div > span small {
        font-size: 9px;
        line-height: 1.4;
    }

    #manual-quote-panel .manual-quote-breakdown > div > strong {
        flex: 0 0 auto;
        min-width: 0;
        max-width: 38%;
        margin: 0;
        font-size: 11px;
        text-align: right;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    #manual-quote-panel .manual-quote-breakdown .invoice-subtotal {
        padding: 9px 5px;
    }

    /* Final amount */
    #manual-quote-panel .invoice-grand-total {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        padding: 12px;
    }

    #manual-quote-panel .invoice-grand-total > div {
        flex: 1;
        min-width: 0;
    }

    #manual-quote-panel .invoice-grand-total span {
        font-size: 10px;
    }

    #manual-quote-panel .invoice-grand-total strong {
        flex: 0 0 auto;
        max-width: 48%;
        font-size: 19px;
        overflow-wrap: anywhere;
        text-align: right;
    }

    #manual-quote-panel .invoice-disclaimer {
        font-size: 9px;
        line-height: 1.5;
    }

    /* Payment */
    #manual-quote-panel .manual-payment-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }

    #manual-quote-panel .manual-payment-summary strong {
        font-size: 20px;
    }

    #manual-quote-panel .manual-payment-summary > span {
        max-width: 100%;
        white-space: normal;
        font-size: 10px;
        line-height: 1.5;
        text-align: left;
    }

    /* Action buttons */
    #manual-quote-panel .manual-panel-actions--split {
        flex-direction: column-reverse;
        gap: 8px;
    }

    #manual-quote-panel .manual-panel-actions button {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        white-space: normal;
    }
}

/* =========================================================
   SMALL PHONES — 375px AND BELOW
========================================================= */
@media (max-width: 375px) {

    #manual-quote-panel .manual-panel {
        padding-left: 8px;
        padding-right: 8px;
    }

    #manual-quote-panel .manual-quote-card {
        padding: 8px;
    }

    #manual-quote-panel .invoice-section {
        padding: 8px;
    }

    #manual-quote-panel .manual-quote-breakdown > div > span {
        font-size: 10px;
    }

    #manual-quote-panel .manual-quote-breakdown > div > strong {
        font-size: 10px;
        max-width: 40%;
    }

    #manual-quote-panel .invoice-grand-total {
        padding: 10px;
    }

    #manual-quote-panel .invoice-grand-total strong {
        font-size: 17px;
    }

    #manual-quote-panel .manual-calculation-preview strong {
        font-size: 12px;
    }

    #manual-quote-panel .manual-review-inventory-section__header {
        padding: 9px;
    }
}

/* =========================================================
   VERY NARROW PHONES — 320px
========================================================= */
@media (max-width: 340px) {

    #manual-quote-panel .manual-final-invoice__header {
        gap: 6px;
        padding: 9px;
    }

    #manual-quote-panel .manual-review-row {
        font-size: 10px;
    }

    #manual-quote-panel .invoice-grand-total strong {
        font-size: 15px;
    }

    #manual-quote-panel .manual-quote-breakdown > div {
        gap: 5px;
    }
}
/* =========================================================
   SHIFTIFY GOOGLE ADDRESS AUTOCOMPLETE
========================================================= */

.address-autocomplete-wrap {
    position: relative !important;
    overflow: visible !important;
}

/* Suggestions dropdown */
.google-address-suggestions {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100%;

    display: none;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;

    padding: 6px;
    background: #fff;

    border: 1px solid #dce4ef;
    border-radius: 11px;

    box-shadow: 0 12px 30px rgba(0, 30, 70, 0.16);

    z-index: 99999 !important;

    scrollbar-width: thin;
    scrollbar-color: #b8c5d6 #f4f6f9;
}

/* Display when suggestions exist */
.google-address-suggestions:not(:empty) {
    display: block;
}

/* Individual suggestion */
.google-address-option {
    display: flex !important;
    align-items: flex-start;
    gap: 11px;

    width: 100%;
    padding: 11px 10px;

    background: #fff;
    border: none;
    border-radius: 8px;

    text-align: left;
    cursor: pointer;

    transition: background .2s ease;
}

.google-address-option:hover,
.google-address-option:focus {
    background: #f1f6fc;
    outline: none;
}

/* Location icon */
.google-address-option__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 32px;
    width: 32px;
    height: 32px;

    background: #edf4fc;
    color: #0050a0;

    border-radius: 8px;
    font-size: 18px;
}

/* Text wrapper */
.google-address-option__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 4px;
}

/* Main address */
.google-address-option__content strong {
    color: #172b40;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Secondary address */
.google-address-option__content small {
    color: #78879a;
    font-size: 11px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Divider between suggestions */
.google-address-option + .google-address-option {
    border-top: 1px solid #edf0f4;
}

/* Scrollbar */
.google-address-suggestions::-webkit-scrollbar {
    width: 5px;
}

.google-address-suggestions::-webkit-scrollbar-thumb {
    background: #b8c5d6;
    border-radius: 10px;
}

/* Active address field */
.estimate-form-group:focus-within {
    position: relative;
    z-index: 100;
}

.address-autocomplete-wrap:focus-within {
    z-index: 101;
}

/* Mobile */
@media (max-width: 600px) {
    .google-address-suggestions {
        max-height: 230px;
        border-radius: 9px;
    }

    .google-address-option {
        padding: 10px 8px;
        gap: 9px;
    }

    .google-address-option__content strong {
        font-size: 12px;
    }

    .google-address-option__content small {
        font-size: 10px;
    }
}

.manual-field-hint {
    display: block;
    margin-top: 3px;
    margin-bottom: 8px;
    color: #737b88;
    font-size: 11px;
    line-height: 1.4;
}

.manual-special-handling {
    margin-top: 18px;
}

.manual-handling-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.manual-handling-card {
    padding: 13px;
    border: 1px solid #e5e9ef;
    border-radius: 9px;
    background: #fff;
}

.manual-handling-card__header {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
}

.manual-handling-card__header > span {
    font-size: 22px;
}

.manual-handling-card__header strong,
.manual-handling-card__header small {
    display: block;
}

.manual-handling-card__header strong {
    font-size: 13px;
    color: #172033;
}

.manual-handling-card__header small {
    margin-top: 3px;
    font-size: 11px;
    color: #788293;
}

.manual-handling-option {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    cursor: pointer;
}

.manual-handling-option input {
    margin-top: 3px;
    accent-color: #ff5a00;
}

.manual-handling-option strong,
.manual-handling-option small {
    display: block;
}

.manual-handling-option strong {
    font-size: 12px;
}

.manual-handling-option small {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.5;
    color: #788293;
}

@media(max-width: 600px) {
    .manual-handling-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   SHIFTIFY — HIDE INTERNAL PRICING
   ALL DEVICES: DESKTOP, TABLET & MOBILE
========================================================= */

.manual-estimator-section .invoice-internal-pricing {
    display: none !important;
}

