/* Final touch pass: keep product size and business rules. */
body[data-screen=pos] #cloud-header{height:72px}
#cloud-pos .sale-workspace{height:calc(100dvh - 72px);--touch-radius:12px;--touch-gap:10px}
#cloud-pos :is(.caisse-categories,.cloud-shop,.cloud-basket){padding-top:12px}
#cloud-pos :is(.caisse-categories h2,.shop-heading h1,.cloud-basket-heading h2){font-size:24px;font-weight:750;line-height:30px;letter-spacing:-.035em;margin:0;padding:0}
#cloud-pos .caisse-categories>h2,#cloud-pos .shop-heading,#cloud-pos .cloud-basket-heading{min-height:48px;display:flex;align-items:center}
#cloud-pos .caisse-categories{gap:10px}
#cloud-pos .shop-heading{margin-bottom:8px}
#cloud-pos .cloud-basket-heading{margin-bottom:8px}
#cloud-pos .cloud-search-label{height:48px}
#cloud-pos .cloud-shortcuts{margin-bottom:10px;gap:10px}
#cloud-pos .cloud-shortcuts button{height:52px;min-height:52px;padding:6px 12px}
#cloud-pos .resource-product-row h3{font-size:20px;font-weight:700}
#cloud-pos :is(.cloud-categories,.resource-variants,.catalogue-section-items){gap:var(--touch-gap)}
#cloud-pos :is(.cloud-product,.cloud-categories button,.resource-product-row,.catalogue-section-title,.cloud-shortcuts button,.checkout-button,.attendance-shortcuts button,.service-shortcut){border-radius:var(--touch-radius)}
#cloud-pos :is(.quantity-control button,.gift-button,.icon-button,.attendance-shortcuts button,.service-shortcut,.tariff-control button,.discount-button),.service-dialog .quantity-control button{min-width:48px;min-height:48px;touch-action:manipulation}
#cloud-pos .quantity-control button{width:48px}
#cloud-pos .gift-button{padding:8px 10px}
#cloud-pos .line-controls{flex-wrap:wrap;gap:8px}
#cloud-pos .cloud-checkout{margin-top:10px;flex-shrink:0}
#cloud-pos .cloud-basket-content{overscroll-behavior:contain;scroll-padding:8px}
#cloud-pos .attendance-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#cloud-pos .attendance-shortcuts button{width:100%;height:48px;display:flex;align-items:center;justify-content:center;gap:7px;padding:6px;font-size:13px}
#cloud-pos .shop-footer{min-height:60px;flex-shrink:0}
#cloud-pos :is(.cloud-grid,.cloud-basket-content,.cloud-categories){scrollbar-width:thin;scrollbar-color:#92a58e transparent;scrollbar-gutter:stable}
#cloud-pos :is(.cloud-grid,.cloud-basket-content,.cloud-categories)::-webkit-scrollbar{width:7px}
#cloud-pos :is(.cloud-grid,.cloud-basket-content,.cloud-categories)::-webkit-scrollbar-thumb{background:#92a58e;border-radius:12px}
#cloud-pos button{touch-action:manipulation}
#cloud-pos button:focus-visible{outline:3px solid #56814a;outline-offset:2px}
#cloud-pos button:disabled{cursor:not-allowed}
#cloud-pos button:not(:disabled):active{filter:brightness(.94)}
#cloud-pos .cloud-product:not(:disabled):active{transform:scale(.98);background:#deedda;transition:none}
#cloud-pos .cloud-product:disabled{opacity:.65;filter:saturate(.4);transform:none}
#cloud-pos .cloud-product.is-unavailable{border-style:dashed}
#cloud-pos .cloud-product.is-unavailable .stock-warning{color:#6e5143;font-weight:700}
#cloud-pos .cloud-line.last-added{animation:basket-added 650ms ease-out;border-radius:12px}
@keyframes basket-added{0%,40%{background:#dfeeda}100%{background:transparent}}
#cloud-pos .cloud-product.just-added{animation-duration:130ms}
#cloud-pos .cloud-line>p,#cloud-pos .basket-intro{color:#5a705f}
.cloud-feedback{max-width:min(560px,calc(100vw - 24px));z-index:1000}
.cloud-feedback button{min-height:48px;min-width:48px}
html[data-theme=dark] #cloud-pos :is(.cloud-line>p,.basket-intro){color:#c1d0c5}
html[data-theme=dark] #cloud-pos .cloud-product.is-unavailable .stock-warning{color:#dac6bb}
html[data-theme=dark] #cloud-pos .cloud-line.last-added{animation-name:basket-added-dark}
@keyframes basket-added-dark{0%,40%{background:#3c5f43}100%{background:transparent}}
@media(min-width:651px) and (max-width:1100px){#cloud-pos .sale-workspace{grid-template-columns:160px minmax(0,1fr) 292px}#cloud-pos .resource-variants{grid-template-columns:repeat(2,minmax(0,1fr))}#cloud-pos .cloud-search-label{width:100%}#cloud-pos .shop-heading{flex-wrap:wrap}#cloud-pos .attendance-shortcuts button{gap:3px;font-size:12px}#cloud-pos .cloud-shop{padding-left:10px;padding-right:10px}}
@media(max-height:650px) and (min-width:651px){#cloud-pos .cloud-line{padding:8px 0}#cloud-pos .total-row{padding:8px 0}#cloud-pos .cloud-checkout{padding-top:0}#cloud-pos .cloud-checkout .checkout-button{min-height:48px}#cloud-pos .cloud-basket-heading{margin-bottom:6px}}
@media(max-width:650px){#cloud-pos .sale-workspace{height:auto}#cloud-pos .resource-variants{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){#cloud-pos .cloud-line.last-added,#cloud-pos .cloud-product.just-added{animation:none}#cloud-pos .cloud-product:not(:disabled):active{transform:none}}
@media(min-width:1151px) and (max-width:1499px){#cloud-pos .resource-product-row{grid-template-columns:130px minmax(0,1fr)}}

/* Finition caisse : priorité à la lecture et aux gestes sur un écran tactile. */
#cloud-pos .donation-shortcut{background:#e6f0d7;color:#3e5c3d}
#cloud-pos .membership-shortcut{background:#e5ede5;color:#3f5a49}
#cloud-pos .cloud-shortcuts button[aria-pressed=true]{border-color:#497847;box-shadow:0 0 0 1px #497847}
#cloud-pos .resource-product-row h3{font-size:22px;font-weight:750}
#cloud-pos .cloud-product .cloud-badge{width:auto;min-width:32px;height:32px;padding:0 7px;border-radius:16px;top:7px;right:7px;font-size:15px;font-weight:750;font-variant-numeric:tabular-nums}
#cloud-pos .quantity-control .quantity-value{width:auto;min-width:48px;font-variant-numeric:tabular-nums}
#cloud-pos .attendance-shortcuts button{display:grid;grid-template-columns:minmax(0,1fr) auto 48px;gap:8px;justify-content:stretch;height:50px;min-height:50px;padding:0 0 0 12px;text-align:left}
#cloud-pos .attendance-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
#cloud-pos .attendance-count{font-size:18px;line-height:1;font-variant-numeric:tabular-nums}
#cloud-pos .attendance-add{display:grid;place-items:center;align-self:stretch;min-width:48px;min-height:48px;border-left:1px solid #d6e1d0;color:#4e7645;font-size:18px;font-weight:750}
#cloud-pos .tariff-control{gap:6px;padding:4px;border:1px solid #d5e0d0;background:#e8eee5}
#cloud-pos .tariff-control button{font-weight:700;color:#58705c;border:1px solid transparent}
#cloud-pos .tariff-control button[aria-pressed=true]{border-color:#4c7f57;background:#fff;color:#244c35;box-shadow:0 0 0 1px #4c7f57;font-weight:800}
#cloud-pos .cloud-line{padding:7px 0!important}
#cloud-pos .cloud-line>p{margin:3px 0 5px!important;font-size:12px;line-height:1.35}
#cloud-pos .line-controls{gap:10px;align-items:center}
#cloud-pos .gift-button{justify-content:center;min-width:96px;padding:8px 12px;border:1px solid #cfddca;background:#eff4e9;color:#456a41;font-size:13px;font-weight:750}
#cloud-pos .gift-button.is-gifted{border-color:#779f67;background:#e1efd6;color:#315f34}
#cloud-pos .cloud-checkout{margin-top:8px;padding-top:10px;border-top:1px solid #d7e2d2}
#cloud-pos .discount-button{min-height:48px;margin:0 0 8px;padding:6px 10px;border:1px solid #dce6d7;border-radius:10px;background:#f5f8f2;color:#557254;font-size:12px;font-weight:700}
#cloud-pos .discount-button strong{font-size:18px;color:#3f6e47}
#cloud-pos .total-row{padding:6px 0 4px}
#cloud-pos .checkout-button{margin-top:4px}
html[data-theme=dark] #cloud-pos .donation-shortcut{background:#374f37;color:#e0edd6}
html[data-theme=dark] #cloud-pos .membership-shortcut{background:#344740;color:#e4eee7}
html[data-theme=dark] #cloud-pos .attendance-add{border-color:#596b5f;color:#c4e7af}
html[data-theme=dark] #cloud-pos .tariff-control{background:#263833;border-color:#586b5f}
html[data-theme=dark] #cloud-pos .tariff-control button{color:#c4d5c6}
html[data-theme=dark] #cloud-pos .tariff-control button[aria-pressed=true]{background:#b8db99;border-color:#d5edbd;color:#173222;box-shadow:0 0 0 1px #d5edbd}
html[data-theme=dark] #cloud-pos .gift-button{background:#2e4437;border-color:#627d69;color:#d0e8c3}
html[data-theme=dark] #cloud-pos .gift-button.is-gifted{background:#3b5d3d;border-color:#9bc582;color:#eff8e8}
html[data-theme=dark] #cloud-pos .cloud-checkout{border-color:#5a6d61}
html[data-theme=dark] #cloud-pos .discount-button{background:#2a4034;border-color:#596d5f;color:#d2e1d2}
html[data-theme=dark] #cloud-pos .discount-button strong{color:#caedb1}
@media(prefers-reduced-motion:reduce){#cloud-pos .cloud-line.last-added{background:#dfeeda}html[data-theme=dark] #cloud-pos .cloud-line.last-added{background:#3c5f43}}
