/* Adapt the native Rapid Builder without replacing its product controls. */
@layer fpb-glass-buttons {
 html.fpb-builder-open,html.fpb-builder-open body {overflow:hidden!important;}
 #fpb-native-project-builder button:disabled {opacity:.5!important;cursor:wait!important;}
 body.fpb-shell-active .fp-rb-modal-overlay#fpb-native-project-builder {
  position:fixed!important; inset:0!important; width:100%!important; height:100dvh!important;
  z-index:2147483000!important; padding:24px!important; box-sizing:border-box!important;
  align-items:center!important; justify-content:center!important; background:rgb(0 0 0 / .48)!important; backdrop-filter:blur(14px)!important;
 }
 body.fpb-shell-active #fpb-native-project-builder *, body.fpb-shell-active #fpb-native-project-builder *::before, body.fpb-shell-active #fpb-native-project-builder *::after {box-sizing:border-box!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-modal-content {
  --ink:#f1f0ed!important;--muted:#bbb9b5!important;--line:#555550!important;--paper:#191a19!important;--panel:#232422!important;--panel-soft:#30322e!important;--field-bg:#30322e!important;--field-text:#f1f0ed!important;--brand:#326d57!important;--brand-soft:#a9d5c3!important;
  padding:0!important;display:flex!important;flex-direction:column!important; width:100%!important;max-width:1240px!important;height:100%!important;max-height:1000px!important;min-height:0!important;
  background:var(--paper)!important;color:var(--ink)!important;border:1px solid var(--line)!important;border-radius:26px!important;overflow:hidden!important;font-family:var(--fpb-ui-font,sans-serif)!important;
 }
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-modal-content[data-theme="light"] {--ink:#262824!important;--muted:#555851!important;--line:#aaa9a2!important;--paper:#d4d2cd!important;--panel:#e1dfda!important;--panel-soft:#c4c5be!important;--field-bg:#e9e7e2!important;--field-text:#262824!important;--brand-soft:#28604c!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-header {display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:18px 24px!important;background:var(--panel)!important;flex-shrink:0!important;border-bottom:1px solid var(--line)!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-headline {font-size:26px!important;line-height:1.15!important;letter-spacing:-.04em!important;font-weight:400!important;margin:0!important;color:var(--ink)!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-header-actions {display:flex!important;gap:8px!important;flex-shrink:0!important;align-items:center!important;}
 body.fpb-shell-active #fpb-native-project-builder button {font-family:inherit!important;font-size:13px!important;font-weight:500!important;line-height:1.25!important;min-height:44px!important;box-shadow:none!important;cursor:pointer;}
 body.fpb-shell-active #fpb-native-project-builder button:not(.fp-rb-row-check):not(.fp-rb-btn-create) {background:var(--panel-soft)!important;color:var(--ink)!important;border:1px solid var(--line)!important;border-radius:999px!important;}
 body.fpb-shell-active #fpb-native-project-builder button:focus-visible,#fpb-native-project-builder input:focus-visible,#fpb-native-project-builder select:focus-visible,#fpb-native-project-builder summary:focus-visible {outline:2px solid var(--brand-soft)!important;outline-offset:3px!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-theme-switch {display:flex!important;gap:2px!important;width:auto!important;padding:3px!important;border:1px solid var(--line)!important;background:var(--panel)!important;border-radius:999px!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-theme-toggle,#fpb-native-project-builder .fp-rb-close {width:44px!important;height:44px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex-shrink:0!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-theme-toggle {border-color:transparent!important;background:transparent!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-theme-toggle.is-active,#fpb-native-project-builder .fp-rb-tab.is-active {background:var(--panel-soft)!important;border-color:var(--brand-soft)!important;color:var(--brand-soft)!important;}
 body.fpb-shell-active #fpb-native-project-builder svg {display:block!important;width:18px!important;height:18px!important;stroke:currentColor!important;fill:none!important;}
 body.fpb-shell-active #fpb-native-project-builder .fpb-builder-scroll {flex:1!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-toolbar {display:grid!important;gap:12px!important;padding:20px 24px!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-toolbar-row {display:flex!important;gap:10px!important;width:100%!important;align-items:center!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-input-group {min-width:0!important;flex:1!important;}
 body.fpb-shell-active #fpb-native-project-builder input,#fpb-native-project-builder select {font-family:inherit!important;min-width:0!important;max-width:100%!important;width:100%!important;height:46px!important;min-height:46px!important;border:1px solid var(--line)!important;border-radius:12px!important;padding:10px 12px!important;background:var(--field-bg)!important;color:var(--field-text)!important;font-size:16px!important;line-height:1.4!important;}
 body.fpb-shell-active #fpb-native-project-builder input::placeholder {color:var(--muted)!important;opacity:1!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-tool-btn {padding:10px 18px!important;white-space:nowrap!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-search-wrap {position:relative!important;width:100%!important;}
 body.fpb-shell-active #fpb-native-project-builder #fp-rb-live-search {padding-right:48px!important;}
 body.fpb-shell-active #fpb-native-project-builder #fp-rb-clear-search {position:absolute!important;right:2px!important;top:50%!important;transform:translateY(-50%)!important;width:44px!important;border:0!important;background:transparent!important;padding:0!important;}
 body.fpb-shell-active #fpb-native-project-builder .fpb-builder-details summary {color:var(--ink)!important;cursor:pointer;font-size:14px!important;min-height:44px!important;align-content:center;}
 body.fpb-shell-active #fpb-native-project-builder .fpb-builder-details[open] summary {margin-bottom:10px;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-tabs {display:flex!important;gap:8px!important;padding:0 24px 16px!important;overflow-x:auto!important;flex-shrink:0!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-tab {flex-shrink:0!important;padding:10px 18px!important;white-space:nowrap!important;}
 body.fpb-shell-active #fpb-native-project-builder #fp-rb-view {overflow:visible!important;padding:0 24px 24px!important;flex:none!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-loader {padding:24px!important;color:var(--muted)!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-group-container {background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:18px!important;overflow:hidden!important;margin-bottom:16px!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-group-header {display:flex!important;align-items:center!important;gap:8px!important;padding:12px!important;background:var(--panel-soft)!important;border:0!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-group-title-toggle {background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;flex:1!important;min-width:0!important;display:flex!important;gap:8px!important;align-items:center!important;min-height:44px!important;font-size:12px!important;color:var(--ink)!important;overflow-wrap:anywhere;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-group-master-check {font-size:10px!important;padding:8px 12px!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-grid {width:100%!important;border-collapse:collapse!important;margin:0!important;background:transparent!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-grid td {padding:14px 10px!important;border:0!important;border-bottom:1px solid var(--line)!important;color:var(--ink)!important;background:transparent!important;vertical-align:middle!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-meta {display:flex!important;align-items:center!important;gap:14px!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-meta strong {font-weight:500!important;font-size:14px!important;line-height:1.5!important;overflow-wrap:anywhere;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-img-wrap {width:88px!important;height:88px!important;flex-shrink:0!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-img-wrap img {width:100%!important;height:100%!important;object-fit:contain!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-row-check,#fpb-native-project-builder .fp-rb-add-var-btn,#fpb-native-project-builder .fp-rb-remove-var-btn {width:44px!important;height:44px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:50%!important;flex-shrink:0!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-row-check {background:transparent!important;border:1px solid var(--line)!important;color:transparent!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-row-check.is-selected {background:var(--brand)!important;border-color:var(--brand)!important;color:#fff!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-q-input {min-width:64px!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-modal-footer {display:flex!important;gap:12px!important;align-items:center!important;justify-content:space-between!important;flex-shrink:0!important;padding:14px 24px!important;background:var(--panel)!important;border-top:1px solid var(--line)!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-selection-counter {color:var(--muted)!important;font-size:13px!important;line-height:1.4!important;}
 body.fpb-shell-active #fpb-native-project-builder .fp-rb-btn-create {border:1px solid var(--brand)!important;border-radius:999px!important;background:var(--brand)!important;color:#fff!important;padding:12px 28px!important;}
 @media(min-width:701px) {#fpb-native-project-builder .fpb-builder-details summary {display:none!important;}}
 @media(max-width:700px) {
  body.fpb-shell-active .fp-rb-modal-overlay#fpb-native-project-builder {padding:6px!important;top:var(--fpb-builder-top,0px)!important;height:var(--fpb-builder-height,100dvh)!important;bottom:auto!important;}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-modal-content {border-radius:22px!important;max-height:none!important;}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-header {padding:12px!important;}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-headline {font-size:21px!important;max-width:150px!important;}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-header-actions {gap:6px!important;}
  body.fpb-shell-active #fpb-native-project-builder .fp-theme-switch {padding:1px!important;gap:0!important;}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-toolbar {padding:12px!important;gap:10px!important;}
  body.fpb-shell-active #fpb-native-project-builder .fpb-builder-details .fp-rb-toolbar-row {display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-input-group:first-child {grid-column:1 / -1!important;}
  body.fpb-shell-active #fpb-native-project-builder #fp-rb-reconcile {grid-column:1 / -1!important;}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-tabs {padding:0 12px 14px!important;}
  body.fpb-shell-active #fpb-native-project-builder #fp-rb-view {padding:0 12px 14px!important;}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-grid,#fpb-native-project-builder .fp-rb-grid tbody {display:block!important;}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-item-row {display:grid;grid-template-columns:44px minmax(0,1fr) 70px 44px;gap:12px 8px;padding:14px 10px;border-bottom:1px solid var(--line);}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-grid .fp-rb-item-row td {display:block!important;padding:0!important;border:0!important;width:auto!important;min-width:0!important;}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-item-row td:nth-child(1) {grid-column:1;grid-row:1;align-self:center;}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-item-row td:nth-child(2) {grid-column:2 / -1;grid-row:1;}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-item-row td:nth-child(3) {grid-column:1 / 3;grid-row:2;}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-item-row td:nth-child(4) {grid-column:3;grid-row:2;}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-item-row td:nth-child(5) {grid-column:4;grid-row:2;align-self:end;}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-item-row td:nth-child(3)::before {content:'Finish / option';}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-item-row td:nth-child(4)::before {content:'Qty';}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-item-row td:nth-child(3)::before,#fpb-native-project-builder .fp-rb-item-row td:nth-child(4)::before {display:block;color:var(--muted);font-size:11px;line-height:1.4;margin-bottom:6px;}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-meta {gap:10px!important;}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-img-wrap {width:64px!important;height:64px!important;}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-meta strong {font-size:13px!important;}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-group-drag-handle {display:flex!important;align-items:center!important;justify-content:center!important;width:24px!important;min-height:44px!important;flex-shrink:0!important;color:var(--muted)!important;}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-modal-footer {padding:10px 12px max(10px,env(safe-area-inset-bottom))!important;}
  body.fpb-shell-active #fpb-native-project-builder .fp-rb-btn-create {padding:12px 20px!important;white-space:nowrap!important;}
 }
}
