/* Adapt the approved Figma layout to the phone viewport without scaling text. */
html:has(body.connected-app){height:100%;background:#fff;scrollbar-gutter:auto;overflow:hidden}
.connected-app{--phone-nav-height:max(76px,4.75rem);--phone-gutter:24px;--phone-safe-bottom:env(safe-area-inset-bottom,0px);-webkit-text-size-adjust:100%;text-size-adjust:100%;color-scheme:light;font-size:1rem;line-height:1.5;position:fixed;inset:0;overflow:hidden}
.connected-app #device{width:100%;max-width:480px;min-height:0;height:100%;height:100dvh;overflow:clip}
.connected-app #device>.screen{width:100%!important;min-height:100%!important;height:100%!important;border-radius:0!important;padding-top:max(20px,env(safe-area-inset-top))!important;padding-right:max(var(--phone-gutter),env(safe-area-inset-right))!important;padding-left:max(var(--phone-gutter),env(safe-area-inset-left))!important;padding-bottom:max(24px,var(--phone-safe-bottom))!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scroll-padding-block:24px calc(var(--phone-nav-height) + var(--phone-safe-bottom) + 24px)}
.connected-app #device>.screen.has-bottom-nav{padding-bottom:calc(var(--phone-nav-height) + var(--phone-safe-bottom) + 24px)!important}
.connected-app #device>.screen.has-action-dock{padding-bottom:calc(var(--phone-nav-height) + var(--phone-safe-bottom) + 100px)!important}
.connected-app .screen>*{flex-shrink:0}
.connected-app .screen>.flex-spacer{flex-shrink:1;min-height:16px}
.connected-app .phone-fluid{width:100%!important;min-width:0;max-width:100%}
.connected-app .screen>p,.connected-app .floating{width:100%!important;max-width:100%}
.connected-app .screen>.flex-spacer{max-height:none!important}
.connected-app input,.connected-app textarea,.connected-app select{font-size:1rem!important}
.connected-app .screen [data-name="Navigation"],.connected-app .screen>[data-name="Header"]{width:100%!important;min-height:44px!important;height:auto!important;overflow:visible!important;display:grid!important;grid-template-columns:48px minmax(0,1fr) minmax(48px,max-content);align-items:center}
.connected-app [data-name="Navigation"]>[data-name="Selltrove / black wordmark"],.connected-app [data-name="Header"]>[data-name="Selltrove / black wordmark"]{width:100%!important;min-width:0}
.connected-app [data-name^="Step indicator"]{width:auto!important;min-width:48px;height:auto!important;min-height:28px;padding:4px 6px;overflow:visible!important}
.connected-app [data-name^="Step indicator"] p{font-size:.8125rem!important;line-height:1.2!important;white-space:nowrap;width:auto!important;overflow-wrap:normal}
.connected-app .consistent-back{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;border:1px solid #e6e6e6!important;border-radius:20px!important;position:relative;overflow:visible!important}
.connected-app .consistent-back:after{content:"";position:absolute;inset:-2px}
.connected-app .screen [data-name="Products, bookings or both"]{width:100%!important;min-height:44px;height:44px!important}
.connected-app [data-name="Products, bookings or both"]>button{flex:1!important;width:auto!important;min-width:0;height:44px!important}
.connected-app [data-name="Products, bookings or both"]>button p{width:auto!important;max-width:100%}
.connected-app .screen [data-name="Connection reassurance"]{height:auto!important;min-height:90px;padding:16px!important}
.connected-app [data-name="Connection reassurance"]>*{width:100%!important}
.connected-app [data-name="Bottom navigation"]{position:fixed!important;bottom:0!important;left:50%!important;transform:translateX(-50%);z-index:4;background:#fff;display:flex!important;align-items:stretch!important;gap:0!important;min-height:calc(var(--phone-nav-height) + var(--phone-safe-bottom));height:auto!important;padding:8px max(var(--phone-gutter),env(safe-area-inset-right)) calc(8px + var(--phone-safe-bottom)) max(var(--phone-gutter),env(safe-area-inset-left))!important;width:100%!important;max-width:480px;border-top:1px solid #eceeeb;overflow:visible!important}
.connected-app [data-name="Bottom navigation"]>*{display:flex!important;flex:1 1 0!important;align-items:center!important;justify-content:center!important;min-height:52px;min-width:0;width:auto!important;gap:5px!important;padding:4px 0;border-radius:12px}
.connected-app [data-name="Bottom navigation"] p{font-size:.75rem!important;line-height:1.3!important;letter-spacing:.01em;width:auto!important;max-width:100%;color:#626b66!important}
.connected-app [data-name="Bottom navigation"] [aria-current="page"]{background:#f5f6f3}
.connected-app [data-name="Bottom navigation"] [aria-current="page"] p{color:#212121!important;font-weight:600!important}
.connected-app [data-name="Bottom navigation"]>*.consistent-back{border:0!important;border-radius:12px!important;width:auto!important;height:auto!important}
.connected-app .screen[data-screen="102:99"]{height:100%!important;min-height:100%!important;gap:14px!important;overflow:hidden!important}
.connected-app .store-window{width:100%;height:0;min-height:180px;flex:1 1 auto;border-radius:0;overflow:auto;overscroll-behavior:contain}
.connected-app .store-window>.store{width:100%;transform:none;padding:0;min-height:0;gap:20px}
.connected-app .store-window .sf-header{min-height:24px}
.connected-app .store-window .sf-brand{font-size:.8125rem}
.connected-app .store-window .sf-header nav{display:none}
.preview-private-label{font-size:11px;color:#737b77}
.connected-app .store-window .sf-store[data-theme="minimalist"] h1{font-size:1.5625rem;line-height:1.3;letter-spacing:0}
.connected-app .store-window .sf-store[data-theme="minimalist"] h2{font-size:17px;letter-spacing:0}
.connected-app .store-window .sf-store[data-theme="minimalist"] .sf-hero-photo{aspect-ratio:354/216;border-radius:16px}
.connected-app .store-window .sf-store[data-theme="minimalist"] .sf-product .sf-photo{aspect-ratio:171/95}
.connected-app .store-window .sf-store[data-theme="minimalist"] .sf-product p{font-size:.75rem!important}
.connected-app [data-name="Theme switcher"]{width:100%!important;height:44px!important;flex-shrink:0}
.connected-app [data-name="Theme switcher"]>p{width:auto!important;flex:1}
.connection-sheet{border:0;border-radius:24px 24px 0 0;background:#fff;color:#212121;width:min(100%,480px);max-width:100%;max-height:90svh;padding:24px 24px max(24px,env(safe-area-inset-bottom));margin:auto auto 0;font:16px 'Instrument Sans',sans-serif;box-shadow:0 -8px 32px #0001}
.connection-sheet::backdrop{background:#0005}
.connection-sheet form{display:flex;flex-direction:column;gap:24px}
.connection-sheet header{display:flex;align-items:center;justify-content:space-between;gap:16px}
.connection-sheet h2{font-size:1.375rem;margin:0;font-weight:600}
.connection-sheet header button{width:44px;height:44px;display:grid;place-items:center;border:1px solid #e6e6e6;border-radius:50%;flex:none}
.sheet-country{display:flex;flex-direction:column;gap:8px;font-size:.8125rem}
.connection-sheet .connected-consent{font-size:.875rem;color:#626b66}
.connection-sheet input[type="checkbox"]{accent-color:#212121;min-width:20px;min-height:20px;margin:0}
.connection-sheet button:disabled{opacity:.45;cursor:default}
.sheet-error{font-size:.875rem;line-height:1.5;color:#a52a2a}
@media(max-height:740px){.connected-app .screen>[data-name="Space"]:not(.flex-spacer),.connected-app .screen>[data-name="Spacing"]:not(.flex-spacer){max-height:20px}}

.connected-app [data-name="Products, bookings or both"]>button[aria-pressed="true"] p{color:#212121!important}

.connected-app .new-textarea input{border:1px solid #e5e7e5;border-radius:16px;padding:16px;width:100%;font:inherit;color:#212121}

.connected-app [data-name="Three Instagram posts"]>[data-name="Sample Instagram image"],.connected-app [data-name="Products and bookings"]>[data-name="Product"],.connected-app [data-name="Products and bookings"]>[data-name="Booking"]{flex:1;min-width:0;width:auto!important}
.connected-app [data-name="Products and bookings"] [data-name="Product information"]{flex:1;min-width:0;width:auto!important}
.connected-app [data-name="Products and bookings"] p,.connected-app [data-name="Products and bookings"] [data-name="Book example"]{max-width:100%;width:100%!important}

/* Keep reading text at phone size rather than the tiny prototype scale. */
.connected-app .phone-body{font-size:1rem!important;line-height:1.5!important;max-width:100%;overflow-wrap:anywhere}
.connected-app .phone-caption{font-size:.875rem!important;line-height:1.45!important;letter-spacing:.01em;max-width:100%}
.connected-app .new-subtitle,.connected-app .new-card p,.connected-app .group-copy strong,.connected-app .group-detail strong,.connected-app .media-action-row,.connected-app .new-button,.connected-app .product-list-card strong,.connected-app .product-comment{font-size:1rem;line-height:1.5}
.connected-app .group-copy small,.connected-app .group-detail p,.connected-app .settings-group h2,.connected-app .product-list-card small,.connected-app .media-status p,.connected-app .new-slots legend,.connected-app .service-location{font-size:.875rem;line-height:1.5}
.connected-app .group-row,.connected-app .new-button{min-height:52px;height:auto}
.connected-app .screen [data-name="Label and detail"]{min-width:0;overflow:visible!important}
.connected-app .screen button:active,.connected-app .screen a:active{opacity:.7}
.connected-app .screen:has(input:focus,textarea:focus) [data-name="Bottom navigation"],.connected-app .screen:has(input:focus,textarea:focus) .phone-action-dock{visibility:hidden}
.connected-app .screen:has(.service-search input:focus) [data-name="Bottom navigation"],.connected-app .screen:has(.service-search input:focus) .phone-action-dock{visibility:visible}
.connected-app #notice{bottom:calc(var(--phone-nav-height) + var(--phone-safe-bottom) + 16px)}

/* The Services overview uses the existing Selltrove type, surfaces and actions. */
.connected-app .services-screen{gap:24px!important}
.services-content{width:100%;display:flex;flex-direction:column;gap:28px}
.services-heading h1{font-size:1.75rem;font-weight:600;line-height:1.2;letter-spacing:-.02em;margin:0 0 10px}
.services-heading p{font-size:1rem;line-height:1.5;color:#626b66}
.services-tools{display:flex;flex-direction:column;gap:20px}
.service-search{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;background:#f5f6f3;border-radius:16px;padding:0 16px}
.service-search>svg{width:20px;height:20px;opacity:.65}
.service-search input{width:100%;min-width:0;min-height:52px;border:0;background:transparent;outline:none}
.service-search:focus-within{outline:2px solid #626b66;outline-offset:2px}
.services-summary{display:flex;justify-content:space-between;gap:16px;color:#626b66;font-size:.875rem}
.services-count{color:#212121;font-weight:500}
.services-screen #service-list{gap:16px}
.service-card{width:100%;border:1px solid #e5e7e3;border-radius:20px;background:#fff;overflow:hidden}
.service-card-main{display:flex;align-items:center;gap:14px;padding:16px;width:100%;text-align:left;min-height:112px}
.service-thumb{width:64px;height:76px;flex:none;display:grid;place-items:center;background:#f5f6f3;border-radius:12px;overflow:hidden}
.service-photo{width:100%;height:100%;object-fit:cover}
.service-placeholder{width:24px;height:24px}
.service-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:6px}
.service-copy>strong{font-size:1rem;font-weight:500;line-height:1.4;overflow-wrap:anywhere}
.service-price{font-size:1rem;line-height:1.4;font-variant-numeric:tabular-nums}
.service-price>span{font-size:.875rem;color:#626b66;white-space:nowrap}
.service-visibility{color:#626b66;font-size:.875rem;line-height:1.4;letter-spacing:.01em}
.service-availability{display:flex;align-items:center;gap:10px;padding:12px 16px;min-height:48px;border-top:1px solid #eceeeb;width:100%;font-size:.875rem;text-align:left}
.service-availability>span{flex:1}
.service-availability>img{width:18px;height:18px}
.services-empty{display:flex;flex-direction:column;align-items:flex-start;gap:16px;padding:40px 0 24px;max-width:330px}
.services-empty-icon{width:64px;height:64px;display:grid;place-items:center;border-radius:20px;background:#f5f6f3;margin-bottom:12px}
.services-empty-icon img{width:28px;height:28px}
.services-empty h2{font-size:1.5rem;font-weight:500;line-height:1.3;letter-spacing:-.01em;margin:0}
.services-empty p,.services-no-results p{font-size:1rem;line-height:1.5;color:#626b66}
.services-no-results{padding:32px 0}
.services-no-results h2{font-size:1.125rem;font-weight:500;margin:0 0 8px}
.services-no-results button{font-size:1rem;min-height:48px;text-decoration:underline;margin-top:12px}
.phone-action-dock{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--phone-nav-height) + var(--phone-safe-bottom));z-index:3;max-width:480px;width:100%;padding:12px var(--phone-gutter) 16px;background:#fff}
.phone-action-dock .new-button{display:flex;align-items:center;justify-content:center;gap:10px;border-radius:16px;min-height:52px}
@media(max-width:374px){.connected-app{--phone-gutter:16px}.service-card-main{gap:10px;padding:12px}.service-thumb{width:52px;height:68px}}
@media(orientation:landscape) and (max-height:500px){.connected-app{--phone-nav-height:64px}.connected-app #device{max-width:760px}.connected-app [data-name="Bottom navigation"],.phone-action-dock{max-width:760px}.connected-app [data-name="Bottom navigation"]{padding-top:2px!important;padding-bottom:calc(2px + var(--phone-safe-bottom))!important}.services-empty{padding-top:12px}}
