/* Shared alignment for grouped services; keep labels and actions compact and readable. */
#demoServices .gd-service-group,#services .gd-service-group{margin:0 0 16px;padding:12px;border-radius:14px}
#demoServices .gd-service-group>summary,#services .gd-service-group>summary{padding:4px 0 12px;font-size:15px;line-height:1.35}
#demoServices .vt-demo-service{display:grid;grid-template-columns:minmax(150px,1fr) minmax(190px,1.1fr) minmax(160px,.85fr) auto;grid-template-areas:"name meta group action";align-items:center;gap:14px;min-height:0;margin:0;padding:12px 16px;box-sizing:border-box}
#demoServices .vt-demo-service+.vt-demo-service{margin-top:10px}
#demoServices .vt-demo-service>strong{grid-area:name;min-width:0;font-size:15px;line-height:1.35}
#demoServices .vt-demo-service-meta{grid-area:meta;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;justify-content:initial;min-width:0}
#demoServices .vt-demo-service-meta>span{font-size:13px;line-height:1.4;min-width:0}
#demoServices .vt-demo-service-price{white-space:nowrap;font-size:16px;text-align:right}
#demoServices .vt-demo-service>button{grid-area:action;min-height:40px;padding:8px 12px;font-size:13px;white-space:nowrap;margin:0}
#demoServices .gd-service-group-choice{grid-area:group;display:flex;align-items:center;gap:8px;min-width:0;margin:0!important;font-size:12px;line-height:1.3}
#demoServices .gd-service-group-choice select{flex:1;width:100%;min-width:0;min-height:40px;padding:8px 30px 8px 10px;font:inherit;font-size:13px;margin:0}
#services .vt-service-card{margin:10px 0 0;padding:14px}
#services .vt-service-head{gap:12px;align-items:center}
#services .vt-service-head p{margin:4px 0;font-size:13px}
#services .gd-service-group-choice{display:flex;align-items:center;gap:8px;margin:6px 0 0;min-width:0;font-size:12px}
#services .gd-service-group-choice select{width:min(220px,100%);min-width:0;min-height:40px;padding:8px 30px 8px 10px;font-size:13px;margin:0}
@media(max-width:1050px){#demoServices .vt-demo-service{grid-template-columns:minmax(0,1fr) minmax(170px,1fr) auto;grid-template-areas:"name meta action" "group group group";gap:10px 14px}#demoServices .gd-service-group-choice{max-width:300px}}
@media(max-width:680px){#demoServices .gd-service-group,#services .gd-service-group{padding:10px;margin-bottom:14px}#demoServices .vt-demo-service{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"name name" "meta meta" "group action";padding:12px;gap:10px}#demoServices .vt-demo-service-meta{grid-template-columns:minmax(0,1fr) auto}#demoServices .gd-service-group-choice{display:block;font-size:11px}#demoServices .gd-service-group-choice select{display:block;margin-top:4px;max-width:190px}#demoServices .vt-demo-service>button{align-self:end}#services .vt-service-head{flex-wrap:wrap}#services .vt-service-head>div{min-width:0}}

/* Real services have photos and actions; give each its own layout track. */
#services .vt-service-head{display:grid;grid-template-columns:64px minmax(0,1fr) auto;align-items:start;gap:12px}
#services .vt-service-head>.vt-service-info{min-width:0;overflow-wrap:anywhere}
#services .vt-service-info>strong{display:block;line-height:1.4}
#services .vt-service-photo{width:64px;height:64px;min-width:0;object-fit:cover}
#services .vt-service-actions,#services .vt-variant-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
#services .vt-service-actions>button,#services .vt-variant-actions>button{margin:0;min-height:44px;padding:10px 12px;white-space:nowrap;font-size:13px}
#services .vt-variant-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:start;gap:12px;padding:16px 0}
#services .vt-variant-row>span{min-width:0;overflow-wrap:anywhere;line-height:1.5}
#services .vt-variant-photo{width:48px;height:48px;min-width:0;object-fit:cover}
#services .vt-variant-row>.vt-variant-form{grid-column:1/-1;min-width:0}
@media(max-width:1050px){#services .vt-service-head{grid-template-columns:56px minmax(0,1fr)}#services .vt-service-photo{width:56px;height:56px}#services .vt-service-actions{grid-column:1/-1}#services .vt-service-actions>button{flex:1 1 auto}}
@media(max-width:680px){
 #services .vt-service-card{padding:12px}
 #services .gd-service-group-choice{display:block;margin-top:10px}
 #services .gd-service-group-choice select{display:block;width:100%;max-width:100%;margin-top:5px}
 #services .vt-variant-row{grid-template-columns:44px minmax(0,1fr);gap:10px}
 #services .vt-variant-photo{width:44px;height:44px}
 #services .vt-variant-actions{grid-column:1/-1}
 #services .vt-variant-actions>button{flex:1 1 auto}
 #services .vt-service-card>button{max-width:100%;margin:12px 0 0;font-size:13px;white-space:normal;min-height:44px}
}

#services .vt-service-actions>.vt-media-picker,#services .vt-variant-actions>.vt-media-picker{min-width:0}
#services .vt-service-actions .vt-photo-button,#services .vt-variant-actions .vt-photo-button{margin:0;min-height:44px;padding:10px 12px;white-space:nowrap;font-size:13px}
@media(max-width:1050px){#services .vt-service-actions>.vt-media-picker{flex:1 1 auto}#services .vt-service-actions .vt-photo-button{width:100%}}
@media(max-width:680px){#services .vt-variant-actions>.vt-media-picker{flex:1 1 auto}#services .vt-variant-actions .vt-photo-button{width:100%}}
#services .gd-photo-upload{width:64px;min-width:0}#services .gd-photo-upload>button{display:block;padding:0!important;margin:0!important;cursor:pointer;box-sizing:border-box;overflow:hidden}#services .gd-photo-upload .vt-variant-photo{width:48px;height:48px}#services .gd-variant-service>.vt-service-head{grid-template-columns:minmax(0,1fr) auto}#services .gd-mono-service .vt-variant-row{grid-template-columns:minmax(0,1fr) auto;padding-top:18px;margin-top:16px}#services .vt-service-info>select{display:block;width:min(240px,100%);margin-top:14px;min-height:44px}#services .vt-service-card>button{margin-top:24px!important}#services .vt-service-card>.vt-variant-form{margin-top:20px;padding:20px}#services .vt-variants-list{margin-top:18px}#services .vt-variant-row>.vt-variant-actions{align-self:start}#services .gd-mono-service .vt-variant-row>span{font-size:14px}#services .gd-variant-service>.vt-service-head>.vt-service-actions{grid-column:auto}@media(max-width:1050px){#services .gd-variant-service>.vt-service-head{grid-template-columns:minmax(0,1fr)}#services .gd-photo-upload{width:56px}#services .gd-variant-service>.vt-service-head>.vt-service-actions{grid-column:1/-1}}@media(max-width:680px){#services .gd-mono-service .vt-variant-row{grid-template-columns:minmax(0,1fr)}#services .gd-photo-upload:has(.vt-variant-photo){width:44px}#services .gd-photo-upload .vt-variant-photo{width:44px;height:44px}#services .vt-service-card>.vt-variant-form{padding:16px}}

/* Large service photo with management actions beside it; settings share full width. */
html body #services .gd-mono-service>.vt-service-head{display:grid;grid-template-columns:112px minmax(0,1fr);grid-template-areas:"photo actions" "info info";gap:18px 16px;align-items:start}
html body #services .gd-mono-service>.vt-service-head>.gd-photo-upload{grid-area:photo;width:112px;min-width:0;margin:0}
html body #services .gd-mono-service>.vt-service-head>.gd-photo-upload>.vt-service-photo{box-sizing:border-box;width:112px;height:112px;min-width:0;min-height:0;border-radius:12px;margin:0;display:grid;place-items:center}
html body #services .gd-mono-service .vt-service-photo>img{width:100%;height:100%;object-fit:cover;display:block}
html body #services .gd-mono-service .vt-service-photo svg{width:42px;height:42px}
html body #services .gd-mono-service>.vt-service-head>.vt-service-actions{grid-area:actions;display:grid;grid-template-columns:minmax(0,1fr);gap:10px;align-self:center;width:100%}
html body #services .gd-mono-service>.vt-service-head>.vt-service-actions>button{width:100%;min-height:48px;white-space:normal;padding:10px 12px;box-sizing:border-box;font-size:14px}
html body #services .gd-mono-service>.vt-service-head>.vt-service-info{grid-area:info;width:100%;min-width:0}
html body #services .vt-service-info>select,html body #services .vt-service-info>.gd-service-group-choice,html body #services .vt-service-info>.gd-service-group-choice>select{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
html body #services .vt-service-info>.gd-service-group-choice{display:block;margin:14px 0 0}
html body #services .vt-service-info>.gd-service-group-choice>select{display:block;margin:0;min-height:46px;font-size:16px}
html body #services .vt-service-info>select{margin:12px 0 0;min-height:46px;font-size:16px}
@media(max-width:360px){html body #services .gd-mono-service>.vt-service-head{grid-template-columns:96px minmax(0,1fr);column-gap:12px}html body #services .gd-mono-service>.vt-service-head>.gd-photo-upload,html body #services .gd-mono-service>.vt-service-head>.gd-photo-upload>.vt-service-photo{width:96px}html body #services .gd-mono-service>.vt-service-head>.gd-photo-upload>.vt-service-photo{height:96px}html body #services .gd-mono-service>.vt-service-head>.vt-service-actions>button{font-size:13px;padding:10px 6px;min-height:44px}html body #services .gd-mono-service>.vt-service-head>.vt-service-actions{gap:8px}}

html body #services .vt-variant-row:last-child{border-bottom:0!important}
