:root {
  --wip-primary: #0b3d68;
  --wip-secondary: #f29b22;
  --wip-ink: #172435;
  --wip-muted: #657184;
  --wip-line: #dce2e9;
  --wip-soft: #f4f7fa;
  --wip-white: #fff;
  --wip-danger: #a52525;
  --wip-success: #1c6b42;
  --wip-radius: 14px;
  --wip-shadow: 0 12px 35px rgba(17, 31, 49, .09);
}

.wip-shell,
.wip-shell * { box-sizing: border-box; }
.wip-shell [hidden] { display: none !important; }
.wip-shell { color: var(--wip-ink); font-family: inherit; margin: 36px auto; max-width: 1180px; padding: 0 18px; }
.wip-auth { max-width: 590px; }
.wip-brand { align-items: center; display: flex; font-size: 17px; font-weight: 750; gap: 10px; margin: 0 0 18px; }
.wip-brand img { display: block; max-height: 44px; max-width: 220px; width: auto; }
.wip-brand-mark { align-items: center; background: var(--wip-primary); border-radius: 10px; color: #fff; display: inline-flex; font-size: 20px; height: 42px; justify-content: center; width: 42px; }
.wip-card { background: var(--wip-white); border: 1px solid var(--wip-line); border-radius: var(--wip-radius); box-shadow: var(--wip-shadow); margin: 0 0 22px; padding: clamp(20px, 3vw, 34px); }
.wip-card h1, .wip-card h2, .wip-card h3, .wip-panel h2, .wip-panel h3 { color: var(--wip-ink); line-height: 1.2; margin: 0 0 12px; }
.wip-card h2 { border-top: 1px solid var(--wip-line); font-size: 19px; margin-top: 26px; padding-top: 24px; }
.wip-card p { color: var(--wip-muted); }
.wip-eyebrow { color: var(--wip-primary) !important; font-size: 12px; font-weight: 800; letter-spacing: .11em; margin: 0 0 8px !important; text-transform: uppercase; }
.wip-center { text-align: center; }
.wip-grid { display: grid; gap: 17px; }
.wip-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wip-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wip-span-2 { grid-column: 1 / -1; }
.wip-form label, .wip-form legend { color: var(--wip-ink); display: block; font-size: 14px; font-weight: 650; }
.wip-required-marker { color: #b42318; font-weight: 800; }
.wip-account-prefilled { background: #f2f4f7 !important; color: #475467; }
.wip-form label small { color: var(--wip-muted); display: block; font-size: 12px; font-weight: 400; margin-top: 6px; }
.wip-form input:not([type="checkbox"]):not([type="radio"]), .wip-form select, .wip-form textarea, .wip-table input, .wip-table select { background: #fff; border: 1px solid #bfc8d3; border-radius: 8px; color: var(--wip-ink); font: inherit; margin-top: 7px; min-height: 44px; padding: 9px 11px; transition: border-color .15s, box-shadow .15s; width: 100%; }
.wip-form select[multiple] { min-height: 176px; }
.wip-form input:focus, .wip-form select:focus, .wip-form textarea:focus, .wip-table input:focus, .wip-table select:focus { border-color: var(--wip-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wip-primary) 16%, transparent); outline: none; }
.wip-form fieldset { border: 1px solid var(--wip-line); border-radius: 10px; margin: 0; padding: 16px; }
.wip-check { align-items: flex-start; display: flex !important; font-weight: 500 !important; gap: 10px; margin: 12px 0; }
.wip-check input { accent-color: var(--wip-primary); flex: 0 0 auto; height: 18px; margin: 2px 0 0; width: 18px; }
.wip-button { appearance: none; background: var(--wip-primary); border: 1px solid var(--wip-primary); border-radius: 9px; color: #fff !important; cursor: pointer; display: inline-flex; font-size: 14px; font-weight: 750; justify-content: center; line-height: 1; margin: 14px 4px 0 0; min-height: 44px; padding: 14px 18px; text-decoration: none !important; transition: filter .15s, transform .15s; }
.wip-button:hover { filter: brightness(1.07); transform: translateY(-1px); }
.wip-button:disabled { cursor: wait; filter: grayscale(.4); opacity: .65; transform: none; }
.wip-button-secondary { background: #fff; color: var(--wip-primary) !important; }
.wip-load-documents { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--wip-line); }
.wip-load-documents h4 { margin: 0 0 8px; }
.wip-document-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.wip-rate-acceptance { margin-top: 14px; padding: 14px; border: 1px solid var(--wip-line); border-radius: 10px; background: #f8fafc; }
.wip-button-social { background: #fff; color: var(--wip-ink) !important; flex: 1; }
.wip-text-button { background: transparent; border: 0; color: var(--wip-primary); cursor: pointer; font: inherit; font-weight: 700; padding: 10px 0; }
.wip-social-row, .wip-form-actions, .wip-section-heading { align-items: center; display: flex; gap: 10px; justify-content: space-between; }
.wip-divider { align-items: center; color: var(--wip-muted); display: flex; font-size: 12px; gap: 12px; margin: 22px 0; text-transform: uppercase; }
.wip-divider::before, .wip-divider::after { background: var(--wip-line); content: ""; flex: 1; height: 1px; }
.wip-card-footer { border-top: 1px solid var(--wip-line); margin: 24px 0 0 !important; padding-top: 18px; text-align: center; }
.wip-phone-auth { border-top: 1px solid var(--wip-line); margin-top: 20px; padding-top: 18px; }
.wip-phone-auth summary { color: var(--wip-primary); cursor: pointer; font-weight: 700; }
.wip-notice { border: 1px solid; border-radius: 9px; margin: 0 0 18px; padding: 13px 15px; }
.wip-notice.is-error { background: #fff1f1; border-color: #efb6b6; color: var(--wip-danger); }
.wip-notice.is-warning { background: #fff8e6; border-color: #edcf7b; color: #765a08; }
.wip-notice.is-success, .wip-success { background: #eef9f3; border-color: #a9d5bd; color: var(--wip-success); }
.wip-choice-grid { border: 0 !important; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); padding: 0 !important; }
.wip-choice-grid legend { margin-bottom: 10px; }
.wip-choice-grid label { cursor: pointer; position: relative; }
.wip-choice-grid input { opacity: 0; position: absolute; }
.wip-choice-grid span { border: 1px solid var(--wip-line); border-radius: 10px; display: block; min-height: 86px; padding: 16px; }
.wip-choice-grid small { color: var(--wip-muted); display: block; font-weight: 400; margin-top: 5px; }
.wip-choice-grid input:checked + span { border-color: var(--wip-primary); box-shadow: inset 0 0 0 2px var(--wip-primary); }
.wip-portal-layout { align-items: start; display: grid; gap: 24px; grid-template-columns: 210px minmax(0, 1fr); }
.wip-portal-nav { background: var(--wip-white); border: 1px solid var(--wip-line); border-radius: var(--wip-radius); box-shadow: var(--wip-shadow); display: grid; overflow: hidden; padding: 8px; position: sticky; top: 24px; }
.wip-portal-nav button { background: transparent; border: 0; border-radius: 8px; color: var(--wip-ink); cursor: pointer; font: inherit; font-weight: 650; padding: 12px 13px; text-align: left; }
.wip-portal-nav button:hover, .wip-portal-nav button.is-active { background: var(--wip-soft); color: var(--wip-primary); }
.wip-panel { display: none; }
.wip-panel.is-active { display: block; }
.wip-stat { background: var(--wip-primary); border-radius: 12px; color: #fff; display: grid; gap: 4px; padding: 22px; }
.wip-stat strong { font-size: 29px; }
.wip-stat span { font-size: 13px; opacity: .84; }
.wip-status { background: var(--wip-soft); border-radius: 99px; color: var(--wip-primary); display: inline-block; font-size: 12px; margin-left: 6px; padding: 4px 8px; }
.wip-list { display: grid; gap: 0; }
.wip-list article { align-items: center; border-bottom: 1px solid var(--wip-line); display: grid; gap: 5px; grid-template-columns: minmax(130px, 1fr) minmax(180px, 2fr) auto; padding: 14px 0; }
.wip-list article:last-child { border-bottom: 0; }
.wip-list span, .wip-meta { color: var(--wip-muted); font-size: 13px; }
.wip-loading { color: var(--wip-muted); }
.wip-table-wrap { overflow-x: auto; }
.wip-table { border-collapse: collapse; font-size: 13px; min-width: 840px; width: 100%; }
.wip-table th, .wip-table td { border-bottom: 1px solid var(--wip-line); padding: 10px 8px; text-align: left; }
.wip-table input, .wip-table select { margin: 0; min-height: 38px; padding: 6px 8px; }
.wip-price { color: var(--wip-primary); font-size: 1.35rem; white-space: nowrap; }
.wip-delivery-quote { border-left: 4px solid var(--wip-secondary); margin-top: 14px; }
.wip-return-lines { display: grid; gap: 12px; margin: 22px 0; }
.wip-return-line { background: var(--wip-soft); border: 1px solid var(--wip-line); border-radius: 10px; padding: 14px; }
.wip-return-line .wip-grid { margin-top: 12px; }
.wip-tracking { border-top: 1px solid var(--wip-line); display: grid; gap: 10px; margin-top: 20px; padding-top: 18px; }
.wip-tracking article { background: var(--wip-soft); border-radius: 9px; padding: 12px; }
.wip-tracking article p, .wip-tracking article small { display: block; margin: 5px 0 0; }
.wip-wizard-progress { display: grid; gap: 10px; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 0 0 30px; padding: 0; }
.wip-wizard-progress li { align-items: center; color: var(--wip-muted); display: flex; font-size: 12px; font-weight: 700; gap: 7px; min-width: 0; }
.wip-wizard-progress li::after { background: var(--wip-line); content: ""; flex: 1; height: 2px; margin-left: 3px; }
.wip-wizard-progress li:last-child::after { display: none; }
.wip-wizard-progress span { align-items: center; background: var(--wip-soft); border: 1px solid var(--wip-line); border-radius: 50%; display: inline-flex; flex: 0 0 28px; height: 28px; justify-content: center; }
.wip-wizard-progress li.is-active { color: var(--wip-primary); }
.wip-wizard-progress li.is-active span { background: var(--wip-primary); border-color: var(--wip-primary); color: #fff; }
.wip-wizard-progress li.is-complete span { background: var(--wip-success); border-color: var(--wip-success); color: #fff; }
.wip-account-progress { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wip-wizard-step[hidden] { display: none !important; }
.wip-quote-item { align-items: end; background: var(--wip-soft); border: 1px solid var(--wip-line); border-radius: 11px; display: grid; gap: 14px; grid-template-columns: minmax(0, 2fr) minmax(130px, .7fr) auto; margin-bottom: 12px; padding: 16px; }
.wip-quote-item .wip-text-button { margin-bottom: 6px; }
.wip-quote-item-product { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.wip-quote-item-product > span, .wip-quote-item-product > small { color: var(--wip-muted); font-size: 12px; }
.wip-quote-item-tiers { grid-column: 1 / -1; min-width: 0; }
.wip-quote-item-tiers:empty { display: none; }
.wip-tier-table-wrap { overflow-x: auto; border: 1px solid #cddbd3; border-radius: 8px; background: #fff; }
.wip-tier-table { border-collapse: collapse; width: 100%; font-size: 13px; text-align: left; }
.wip-tier-table caption { padding: 10px 12px; text-align: left; font-weight: 700; color: #21563b; }
.wip-tier-table th, .wip-tier-table td { padding: 8px 12px; border-top: 1px solid #e1e8e4; }
.wip-tier-table thead { background: #f2f7f4; }
.wip-tier-table tbody th { font-weight: 500; }
.wip-tier-table tr.is-applied { background: #e5f5ea; color: #175334; font-weight: 700; }
.wip-tier-table tr.is-applied th { font-weight: 700; }
.wip-quote-item-tiers .wip-help { margin: 8px 0 0; font-size: 12px; }
.wip-product-catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; margin: 20px 0 28px; }
.wip-product-card { border: 1px solid var(--wip-line); border-radius: 12px; overflow: hidden; min-width: 0; background: #fff; display: flex; flex-direction: column; }
.wip-product-photo { aspect-ratio: 4 / 3; display: grid; place-items: center; background: #f6f7f8; overflow: hidden; color: #59636e; }
.wip-product-photo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.wip-product-photo [hidden] { display: none !important; }
.wip-product-card-body { padding: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex: 1; }
.wip-product-card-body h4, .wip-product-card-body p { margin: 0; overflow-wrap: anywhere; }
.wip-product-card-body small { overflow-wrap: anywhere; color: var(--wip-muted); }
.wip-product-card-body .wip-button { margin-top: auto; width: 100%; }
.wip-stock-status { font-size: 13px; font-weight: 600; }
.wip-catalog-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 14px; padding: 18px; margin-top: 18px; background: var(--wip-soft); border: 1px solid var(--wip-line); border-radius: 12px; }
.wip-catalog-filters label { min-width: 0; }
.wip-catalog-filters input, .wip-catalog-filters select { width: 100%; min-width: 0; }
.wip-catalog-search, .wip-catalog-filter-footer { grid-column: 1 / -1; }
.wip-catalog-filter-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.wip-catalog-filter-footer p { margin: 0; color: var(--wip-muted); font-size: 13px; }
.wip-product-facts { font-size: 13px; color: var(--wip-muted); }
.wip-catalog-empty { grid-column: 1 / -1; padding: 20px; border: 1px solid var(--wip-line); border-radius: 10px; }
.wip-schedule-layout { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); align-items: start; gap: 18px; margin: 16px 0; }
.wip-schedule-guidance { padding: 12px 16px; margin-bottom: 12px; box-shadow: none; font-size: 13px; }
.wip-schedule-guidance p { margin: 5px 0; }
.wip-schedule-calendar { border: 1px solid var(--wip-line); border-radius: 10px; padding: 10px; margin: 0; background: #fff; width: 100%; max-width: 360px; }
.wip-calendar-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.wip-calendar-heading h4 { margin: 0; }
.wip-calendar-heading button { border: 1px solid var(--wip-line); border-radius: 8px; background: #fff; color: #17354d; font-size: 24px; min-width: 44px; min-height: 44px; cursor: pointer; }
.wip-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.wip-calendar-weekday { text-align: center; font-size: 12px; font-weight: 700; padding: 6px 0; }
.wip-calendar-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 44px; min-width: 0; padding: 3px 1px; border: 1px solid #d9e0e5; border-radius: 6px; color: #22364a; background: #fff; cursor: pointer; font: inherit; font-size: 14px; }
.wip-calendar-day small { font-size: 8px; line-height: 1.1; }
.wip-calendar-day.has-route { background: #eaf5ff; border-color: #4e8dba; color: #133d60; }
.wip-calendar-day.has-run { background: #e9f6ed; border-color: #4b9666; color: #174b2a; }
.wip-calendar-day.is-selected { outline: 3px solid #173d60; outline-offset: 1px; font-weight: 800; }
.wip-calendar-day:disabled, .wip-calendar-heading button:disabled { background: #f5f5f5; color: #a3a3a3; border-color: #e8e8e8; cursor: default; }
.wip-calendar-day:focus-visible, .wip-calendar-heading button:focus-visible, .wip-upcoming-dates button:focus-visible { outline: 3px solid #174a74; outline-offset: 2px; }
.wip-calendar-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: #4b5c6b; margin: 10px 0 0; }
.wip-schedule-times { min-width: 0; padding: 12px !important; }
.wip-time-date { margin: 0 0 12px; font-size: 14px; font-weight: 700; }
.wip-time-blocks { display: grid; gap: 9px; }
.wip-form .wip-time-block { display: flex; align-items: flex-start; gap: 10px; border: 1px solid #c8d5df; border-radius: 9px; padding: 12px; min-height: 44px; cursor: pointer; background: #fff; }
.wip-time-block input { flex: 0 0 auto; margin: 3px 0 0; accent-color: #1c6b42; }
.wip-time-block span { min-width: 0; overflow-wrap: anywhere; }
.wip-time-block strong { display: block; font-size: 14px; }
.wip-form .wip-time-block.is-selected { border-color: #268455; background: #ecf8f0; color: #175334; }
.wip-time-block:focus-within { outline: 2px solid #1c6b42; outline-offset: 2px; }
.wip-schedule-upcoming summary { cursor: pointer; font-size: 13px; font-weight: 650; padding: 10px 0; }
.wip-upcoming-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; margin-bottom: 20px; }
.wip-upcoming-dates button { display: flex; flex-direction: column; gap: 5px; text-align: left; padding: 14px; border: 1px solid #c8d5df; border-radius: 9px; background: #f6faff; color: #17354d; cursor: pointer; font: inherit; }
.wip-upcoming-dates small { font-size: 12px; }
.wip-schedule-selection { padding: 14px; border-left: 3px solid #4e8dba; background: #f6faff; color: #17354d; }
@media (max-width: 480px) {
  .wip-schedule-calendar { padding: 8px; }
  .wip-calendar-grid { gap: 3px; }
  .wip-calendar-day { min-height: 44px; font-size: 14px; }
  .wip-calendar-day small { font-size: 8px; }
}
@media (max-width: 800px) {
  .wip-schedule-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
.wip-quote-review-step { padding: 20px; border: 1px solid #bedecb; border-top: 4px solid #1c6b42; border-radius: 12px; background: linear-gradient(#f0faf4, #fff 240px); }
.wip-quote-review-step h3, .wip-quote-review-step .wip-eyebrow { color: #185837 !important; }
.wip-quote-review-step .wip-quote-totals { border-color: #32845a; background: #edf8f1; border-radius: 8px; padding: 14px 16px; }
.wip-quote-review-step .wip-quote-totals .wip-grand-total { color: #185837; }
.wip-quote-review-step [data-wip-confirm-quote] { background: #1c6b42; border-color: #1c6b42; }
.wip-quote-review-step [data-wip-confirm-quote]:hover { background: #165432; }
.wip-review-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; }
.wip-review-layout h4 { margin: 0 0 10px; font-size: 15px; color: #21563b; }
.wip-review-fulfillment { background: #f7faf8; border: 1px solid #deebe3; padding: 16px; border-radius: 8px; }
.wip-review-fulfillment dl { margin: 0; }
.wip-review-fulfillment dt { color: var(--wip-muted); font-size: 12px; margin: 12px 0 4px; }
.wip-review-fulfillment dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.wip-review-products .wip-quote-review-lines small { display: block; margin-top: 5px; }
.wip-review-products .wip-quote-review-lines > div:first-child { padding-top: 0; }
.wip-review-notes { margin-top: 16px; font-size: 13px; }
.wip-review-notes p { margin: 8px 0 0; }
[data-wip-custom-timing] { margin: 12px 0 18px !important; }
@media (max-width: 800px) { .wip-review-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.wip-wizard-progress [data-wip-wizard-progress="5"].is-active { color: #1c6b42; }
.wip-wizard-progress [data-wip-wizard-progress="5"].is-active span { background: #1c6b42; border-color: #1c6b42; }
.wip-quote-review-lines > div { border-bottom: 1px solid var(--wip-line); display: grid; gap: 3px 14px; grid-template-columns: minmax(0, 1fr) auto; padding: 12px 0; }
.wip-quote-review-lines small { color: var(--wip-muted); grid-column: 1 / -1; }
.wip-quote-totals { border-top: 2px solid var(--wip-ink); margin-top: 18px; padding-top: 10px; }
.wip-quote-totals p { display: flex; justify-content: space-between; margin: 8px 0; }
.wip-quote-totals .wip-grand-total { color: var(--wip-ink); font-size: 1.2rem; }
.wip-stat-primary { background: var(--wip-primary) !important; border-color: var(--wip-primary) !important; color: #fff !important; }
.wip-route-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.wip-route-stops { display: grid; gap: 12px; list-style: none; margin: 16px 0 0; padding: 0; }
.wip-route-stops > li { align-items: start; background: var(--wip-soft); border: 1px solid var(--wip-line); border-radius: 10px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(240px, .7fr); padding: 14px; }
.wip-route-stops p { margin: 4px 0; }
.wip-stop-actions { display: grid; gap: 8px; }
.wip-stop-actions .wip-button { text-align: center; }
.wip-agreement { border-bottom: 1px solid var(--wip-line); padding: 0 0 24px; }
.wip-agreement + .wip-agreement { padding-top: 24px; }
.wip-agreement-text { background: var(--wip-soft); border-radius: 9px; color: #344154; margin: 15px 0; max-height: 320px; overflow: auto; padding: 16px; }
.wip-agreement-complete { border: 1px solid #a9d5bd; border-radius: 9px; padding: 12px 14px; }
.wip-post-onboarding .wip-card { box-shadow: none; padding: 0; }
.wip-account-link + .wip-account-link { margin-left: 12px; }
.wip-form.is-busy { opacity: .72; }
.wip-shell {
  width: min(100% - 32px, 1280px) !important;
  margin-inline: auto !important;
}

.wip-auth {
  width: min(100% - 32px, 820px) !important;
  max-width: 820px !important;
}

.wip-onboarding {
  width: min(100% - 32px, 1180px) !important;
  max-width: 1180px !important;
}

.wip-portal {
  width: min(100% - 32px, 1280px) !important;
  max-width: 1280px !important;
}

.wip-card,
.wip-form {
  width: 100%;
}

.wip-grid {
  display: grid;
  gap: 18px;
}

.wip-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wip-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wip-span-2 {
  grid-column: span 2;
}

.wip-invalid {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.12) !important;
}

.wip-field-error {
  display: block;
  color: #b42318;
  font-size: 0.85rem;
  line-height: 1.3;
  margin-top: 4px;
}

.wip-form label:has(.wip-invalid) {
  color: #7a271a;
}

.wip-form small {
  display: block;
  color: #667085;
  font-size: 0.84rem;
  line-height: 1.35;
  margin-top: 4px;
}

@media (max-width: 1000px) {
  .wip-shell,
  .wip-auth,
  .wip-onboarding,
  .wip-portal {
    width: min(100% - 24px, 100%) !important;
  }

  .wip-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
	.wip-route-stops > li { grid-template-columns: 1fr; }
	.wip-wizard-progress { grid-template-columns: 1fr; }
	.wip-wizard-progress li::after { display: none; }
	.wip-quote-item { grid-template-columns: 1fr; }
  .wip-shell,
  .wip-auth,
  .wip-onboarding,
  .wip-portal {
    width: min(100% - 20px, 100%) !important;
  }

  .wip-grid-2,
  .wip-grid-3 {
    grid-template-columns: 1fr;
  }

  .wip-span-2 {
    grid-column: span 1;
  }

  .wip-card {
    padding: 18px;
  }
}

@media (max-width: 800px) {
  .wip-grid-2, .wip-grid-3, .wip-choice-grid { grid-template-columns: 1fr; }
  .wip-portal-layout { grid-template-columns: 1fr; }
  .wip-portal-nav { grid-template-columns: repeat(3, 1fr); position: static; }
  .wip-portal-nav button { text-align: center; }
  .wip-social-row, .wip-section-heading { align-items: stretch; flex-direction: column; }
  .wip-button-social { width: 100%; }
  .wip-list article { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .wip-shell { margin: 22px auto; padding: 0 10px; }
  .wip-card { padding: 19px; }
  .wip-portal-nav { grid-template-columns: repeat(2, 1fr); }
}

/* WIP Google Places autocomplete display fix */
.wip-form input[data-wip-address-search] {
  background-image: none !important;
  background-repeat: no-repeat !important;
  background-position: initial !important;
  background-size: initial !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.wip-form input[data-wip-address-search].wip-invalid {
  background-image: none !important;
}

.pac-container {
  z-index: 2147483647 !important;
  background: #ffffff !important;
  border: 1px solid #d0d5dd !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.18) !important;
  font-family: inherit !important;
  overflow: hidden !important;
}

.pac-item {
  display: block !important;
  min-height: 44px !important;
  padding: 10px 14px !important;
  border-top: 1px solid #eaecf0 !important;
  color: #344054 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  cursor: pointer !important;
  background: #ffffff !important;
}

.pac-item:first-child {
  border-top: 0 !important;
}

.pac-item:hover,
.pac-item-selected {
  background: #f9fafb !important;
}

.pac-item-query {
  color: #101828 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.pac-matched {
  color: #0b3d68 !important;
  font-weight: 700 !important;
}

.pac-icon {
  display: none !important;
}
.wip-place-autocomplete-wrap {
  display: block;
  width: 100%;
}

.wip-place-autocomplete {
  display: block;
  width: 100%;
  min-height: 44px;
}

gmp-place-autocomplete,
.wip-place-autocomplete {
  width: 100%;
}

/* WIP address/manual input layout */
.wip-address-manual {
  margin-top: 10px;
  padding: 16px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #f9fafb;
}

.wip-address-manual[hidden] {
  display: none !important;
}

.wip-help {
  color: #475467;
  font-size: 0.92rem;
  line-height: 1.45;
}

.wip-guidance {
  border-left: 4px solid var(--wip-primary);
}

.wip-guidance ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.wip-guidance li {
  margin-bottom: 4px;
}

/* Make overview stats act like tab links */
button.wip-stat {
  appearance: none;
  border: 1px solid #d0d5dd;
  cursor: pointer;
  text-align: left;
  background: #ffffff;
  color: var(--wip-ink) !important;
  font: inherit;
  min-height: 112px;
}

button.wip-stat:hover,
button.wip-stat:focus {
  border-color: var(--wip-primary);
  box-shadow: 0 0 0 3px rgba(11, 61, 104, 0.12);
  outline: none;
}

button.wip-stat strong,
button.wip-stat span {
  display: block;
  color: inherit !important;
}

button.wip-stat-primary {
  background: var(--wip-primary) !important;
  border-color: var(--wip-primary) !important;
  color: #ffffff !important;
}

.wip-subcard,
.wip-readiness {
  background: var(--wip-soft);
  border: 1px solid var(--wip-line);
  border-radius: 11px;
  padding: 16px;
}

.wip-readiness > .wip-help { margin: 0 0 14px; }
.wip-readiness-option { background: #fff; border: 1px solid var(--wip-line); border-radius: 9px; margin: 0; padding: 13px; }
.wip-readiness-option strong,
.wip-readiness-option small { display: block; }
.wip-inline-error { color: var(--wip-danger); }
.wip-setup-summary { border-left: 4px solid var(--wip-secondary); }

/* Better long form help text */
.wip-form small {
  display: block;
  color: #667085;
  font-size: 0.84rem;
  line-height: 1.35;
  margin-top: 4px;
}

.wip-form textarea {
  min-height: 90px;
  resize: vertical;
}

[data-wip-membership-switch] {
  align-items: end;
  background: var(--wip-soft);
  border: 1px solid var(--wip-line);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
}

[data-wip-membership-switch] label { flex: 1 1 260px; margin: 0; }
[data-wip-membership-switch] select { margin-top: 5px; width: 100%; }
[data-wip-order-detail] { margin-top: 16px; }
.wip-auth-controls { border: 0; padding: 0; margin: 0; min-width: 0; }
.wip-auth-controls:disabled { opacity: .65; }
[data-wip-boot-status] { margin-bottom: 16px; }
