/* Desktop POS: fit checkout within viewport, retain mobile cart behavior. */
@media (min-width:1101px) {
  #content:has(.pos) .mobile-cart-button,
  #content:has(.pos) #spyroMobileOrderBtn {display:none!important}
  #content:has(.pos) {height:calc(100dvh - 92px);min-height:520px;overflow:hidden!important;padding-bottom:8px!important}
  #content .pos {height:100%!important;min-height:0!important;display:grid!important;grid-template-columns:minmax(0,2.05fr) minmax(350px,.95fr)!important;gap:14px!important;align-items:stretch!important}
  #content .pos > div:first-child {min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
  #content .pos .product-grid {flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;align-content:start!important;padding-bottom:8px!important}
  #content .pos > .panel.cart {height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:14px!important}
  #content .pos .cart-list {flex:1 1 auto!important;min-height:80px!important;overflow-y:auto!important}
  #content .pos .totals {flex:0 0 auto!important}
  #content .pos .discount-points {flex:0 0 auto!important}
  #content .pos .pay-main {flex:0 0 auto!important}
}
@media (max-width:1100px) {
}


/* Catálogo S-PYRO — presentación únicamente, sin cambiar comandos. */
#content .pos .spyro-catalog-modern{position:relative!important;z-index:5;flex:0 0 auto!important;overflow:visible!important;background:#e5eee4!important;border:1px solid #cfdfd0!important;border-radius:13px!important;padding:8px!important;margin:0 0 10px!important;box-shadow:none!important}
#content .pos .spyro-catalog-toolbar{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:wrap!important}
#content .pos .spyro-catalog-toolbar #spyroCatalogCategories{position:relative;min-width:0;margin-right:auto}
#content .pos .spyro-catalog-toolbar .spyro-catalog-button{box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:40px!important;min-width:40px!important;padding:6px 10px!important;border-radius:10px!important;border:1px solid #a8c5ae!important;background:#f5f9f3!important;color:#174d32!important;font-size:14px!important;font-weight:750!important;line-height:1.15!important;cursor:pointer;white-space:nowrap;box-shadow:none!important;text-decoration:none!important}
#content .pos .spyro-catalog-toolbar .spyro-catalog-button>span[aria-hidden=true]{font-size:19px}
#content .pos .spyro-catalog-toolbar .spyro-catalog-button.active,
#content .pos .spyro-catalog-toolbar details.active>summary,
#content .pos .spyro-catalog-toolbar .primary{background:#195533!important;color:white!important;border-color:#195533!important}
#content .pos .spyro-catalog-toolbar summary{list-style:none}
#content .pos .spyro-catalog-toolbar summary::-webkit-details-marker{display:none}
#content .pos #spyroCatalogCategories:not([open])>#posCategories{display:none!important}
/* Full-width category banner anchored to the catalog, never to the narrow button. */
#content .pos .spyro-catalog-toolbar #spyroCatalogCategories{position:static!important}
#content .pos #spyroCatalogCategories[open]>#posCategories{box-sizing:border-box!important;display:grid!important;grid-template-columns:repeat(auto-fit,minmax(125px,1fr))!important;align-items:stretch!important;position:absolute!important;top:calc(100% + 4px)!important;left:0!important;right:0!important;z-index:10!important;min-width:0!important;width:100%!important;max-width:none!important;max-height:min(55vh,440px)!important;overflow:auto!important;background:#e5eee4!important;border:1px solid #b8cdbb!important;border-radius:12px!important;padding:10px!important;gap:7px!important;box-shadow:0 8px 22px #20432b24!important;margin:0!important}
#content .pos #spyroCatalogCategories #posCategories .pos-category{display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;white-space:normal!important;overflow-wrap:anywhere!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:42px!important;height:auto!important;background:#f8fbf7!important;color:#174d32!important;border:1px solid #b8cdbb!important;box-shadow:none!important;border-radius:9px!important;padding:8px 10px!important;font-size:14px!important;font-weight:750!important}
#content .pos #spyroCatalogCategories #posCategories .pos-category:hover{background:#cfe3d1!important;color:#174d32!important}
@media(max-width:700px){
 #content .pos #spyroCatalogCategories[open]>#posCategories{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:7px!important;gap:5px!important}
 #content .pos #spyroCatalogCategories #posCategories .pos-category{font-size:12px!important;min-height:36px!important;padding:6px 7px!important}
}
#content .pos #spyroCatalogCategories #posCategories .pos-category.active{background:#195533!important;color:#fff!important}
#content .pos #spyroCatalogSearchBox[hidden]{display:none!important}
#content .pos #spyroCatalogSearchBox:not([hidden]){display:block!important;margin-top:8px}
#content .pos #spyroCatalogSearchBox #prodSearch{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:none!important;min-height:40px!important;border:1px solid #a8c5ae!important;border-radius:9px!important;padding:8px 12px!important;background:#fff!important;color:#174d32!important}
#content .pos .product-grid .product{display:flex!important;flex-direction:column!important;text-align:center!important;padding:7px!important;border-radius:13px!important;min-width:0!important;background:#fff!important;border:1px solid #d2e0d1!important;box-shadow:0 2px 5px #20432b15!important}
#content .pos .product-grid .product .product-img{width:100%!important;border-radius:9px!important;margin-bottom:5px!important}
#content .pos .product-grid .product .product-info{display:flex!important;flex-direction:column!important;flex:1!important;align-items:center!important;justify-content:space-between!important;width:100%!important;min-width:0!important}
#content .pos .product-grid .product b{font-size:13px!important;line-height:1.2!important;min-height:2.4em!important;color:#182e21!important;overflow-wrap:anywhere}
#content .pos .product-grid .product .price{display:block!important;box-sizing:border-box!important;margin-top:4px!important;padding:4px 8px!important;border-radius:20px!important;background:#195533!important;color:#fff!important;font-size:17px!important;font-weight:850!important;line-height:1.15!important;min-width:75%!important}
#content .pos .cart .total-line.grand{font-size:24px!important;font-weight:850!important;color:#174d32!important}
#content .pos .cart .total-line.grand strong,#content .pos .cart .total-line.grand b{background:#195533!important;color:#fff!important;border-radius:18px!important;padding:5px 13px!important;font-size:24px!important}
@media(min-width:1101px){
 #content .pos .product-grid{grid-template-columns:repeat(auto-fill,minmax(128px,1fr))!important;gap:9px!important}
 #content .pos .product-grid .product .product-img{height:clamp(78px,11vh,125px)!important}
}
@media(max-width:700px){
 #content .pos .spyro-catalog-modern{padding:7px!important}
 #content .pos .spyro-catalog-toolbar{gap:5px!important}
 #content .pos .spyro-catalog-toolbar .spyro-catalog-button{min-height:38px!important;min-width:35px!important;padding:5px 7px!important;font-size:12px!important}
 #content .pos .spyro-catalog-toolbar #spyroCatalogCategories{margin-right:0}
 #content .pos .spyro-catalog-toolbar .spyro-catalog-label{display:none}
 #content .pos .product-grid .product .price{font-size:15px!important}
}

/* Empty direct-sale cart: clear vector watermark, never on top of order lines. */
body #content .pos > .panel.cart #cartList:has(> .empty)::before{
 content:""!important;display:block!important;position:absolute!important;left:50%!important;top:56%!important;
 transform:translate(-50%,-50%)!important;width:min(46%,160px)!important;height:min(48%,160px)!important;
 background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23195533' stroke-width='7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 20h15l13 53h54l15-40H31'/%3E%3Ccircle cx='47' cy='94' r='7'/%3E%3Ccircle cx='88' cy='94' r='7'/%3E%3C/svg%3E") center/contain no-repeat!important;
 opacity:.23!important;filter:none!important;pointer-events:none!important;z-index:0!important
}
body #content .pos > .panel.cart #cartList:not(:has(> .empty))::before{content:none!important;display:none!important}
body #content .pos > .panel.cart #cartList>.empty{position:relative!important;z-index:1!important;padding:16px 8px!important;text-align:center!important}
@media(min-width:1001px){
 #appView:has(#content .pos) .topbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:16px!important;padding-right:clamp(105px,12vw,210px)!important}
 #appView:has(#content .pos) .topbar::before{width:clamp(95px,11vw,195px)!important}
 #appView:has(#content .pos) .topbar .topbar-left{min-width:0!important}
 #appView:has(#content .pos) .topbar .instagram-follow{display:grid!important;position:static!important;transform:none!important;max-width:none!important;grid-template-columns:34px auto;grid-template-rows:auto auto;align-items:center;gap:2px 9px!important;padding:7px 12px!important;border:1px solid #c3d7c5;border-radius:12px;background:#f7faf6;white-space:nowrap;overflow:visible!important}
 #appView:has(#content .pos) .topbar .instagram-logo{width:34px!important;height:34px!important;grid-row:1/3}
 #appView:has(#content .pos) .topbar .instagram-follow span{font-size:13px!important;line-height:1.15!important;color:#40624d!important}
 #appView:has(#content .pos) .topbar .instagram-follow b{font-size:19px!important;line-height:1.15!important;font-weight:850!important;color:#195533!important}
 #appView:has(#content .pos) .topbar-right{position:static!important;transform:none!important;margin:0!important}
 #appView:has(#content .pos) .topbar #clock{font-size:14px!important}
}
@media(min-width:1001px) and (max-width:1250px){
 #appView:has(#content .pos) .topbar{gap:10px!important;padding-right:105px!important}
 #appView:has(#content .pos) .topbar::before{width:95px!important}
 #appView:has(#content .pos) .topbar .instagram-follow{padding:6px 8px!important;grid-template-columns:29px auto}
 #appView:has(#content .pos) .topbar .instagram-logo{width:29px!important;height:29px!important}
 #appView:has(#content .pos) .topbar .instagram-follow b{font-size:16px!important}
 #appView:has(#content .pos) .topbar .instagram-follow span{font-size:12px!important}
 #appView:has(#content .pos) .topbar #clock{font-size:12px!important}
}


/* Six equally aligned, labeled access buttons; no changes to catalog or cart. */
#content .pos .spyro-catalog-toolbar{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:6px!important;align-items:stretch!important}
#content .pos .spyro-catalog-toolbar #spyroCatalogCategories{min-width:0!important;margin:0!important;width:100%!important}
#content .pos .spyro-catalog-toolbar .spyro-catalog-button{width:100%!important;min-width:0!important;min-height:48px!important;height:48px!important;max-height:48px!important;padding:5px 7px!important;gap:5px!important;white-space:normal!important;text-align:center!important;line-height:1.12!important;border-radius:10px!important;font-size:clamp(10px,1vw,14px)!important}
#content .pos .spyro-catalog-toolbar .spyro-toolbar-icon{width:20px!important;height:20px!important;flex:0 0 20px!important;pointer-events:none}
#content .pos .spyro-catalog-toolbar #spyroCatalogCategories summary .spyro-toolbar-icon:last-child{width:13px!important;height:13px!important;flex-basis:13px!important}
#content .pos .spyro-catalog-toolbar .spyro-catalog-label,#content .pos .spyro-catalog-toolbar #spyroCatalogCategoryLabel{display:block!important;min-width:0!important;overflow-wrap:anywhere}
#content .pos .spyro-catalog-toolbar .spyro-catalog-button:not(.active).primary{background:#f5f9f3!important;color:#174d32!important;border-color:#a8c5ae!important}
#content .pos .spyro-catalog-toolbar .spyro-catalog-button:hover{border-color:#195533!important}
#content .pos .spyro-catalog-toolbar .spyro-catalog-button:focus-visible{outline:2px solid #195533!important;outline-offset:2px}
@media(max-width:1000px){
 #content .pos .spyro-catalog-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 #content .pos .spyro-catalog-toolbar .spyro-catalog-button{font-size:12px!important;min-height:43px!important;height:43px!important;max-height:43px!important}
}
@media(max-width:370px){
 #content .pos .spyro-catalog-toolbar .spyro-catalog-button{font-size:11px!important;padding:4px!important;gap:3px!important}
 #content .pos .spyro-catalog-toolbar .spyro-toolbar-icon{width:16px!important;height:16px!important;flex-basis:16px!important}
}


/* Direct POS cart: compact optional details, single tip selection and top cash lock. */
#content .pos .cart .spyro-cash-lock{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 36px!important;width:36px!important;height:36px!important;padding:0!important;background:#e3eee0!important;color:#195533!important}
#content .pos .cart .cart-tools{flex-wrap:wrap!important;gap:5px!important}
#content .pos .cart .cart-name{min-width:0!important}
#content .pos .cart .spyro-cart-options{margin-top:4px!important;font-size:11px!important;color:#477456!important}
#content .pos .cart .spyro-cart-options summary{cursor:pointer!important;font-size:11px!important;color:#477456!important}
#content .pos .cart .spyro-cart-options-body{margin-top:4px;padding:6px 8px;background:#edf4ea;border-radius:7px;line-height:1.45;overflow-wrap:anywhere}
#content .pos .cart .spyro-cart-options-body b{display:inline!important;font-size:inherit!important}
#content .pos .cart:has(#spyroCartTipDetails) .totals .total-line:not(.grand){justify-content:flex-end!important;gap:12px!important}
#content .pos .cart:has(#spyroCartTipDetails) .totals .total-line:not(.grand)>b,
#content .pos .cart:has(#spyroCartTipDetails) .totals .discount-value{min-width:87px!important;justify-content:flex-end!important;text-align:right!important}
#content .pos .cart .spyro-cart-tip-line{position:relative;align-items:center!important}
#content .pos .cart #spyroCartTipDetails{position:static!important;min-width:0!important}
#content .pos .cart #spyroCartTipDetails summary{cursor:pointer!important;color:#195533!important;font-weight:750!important;padding:3px 6px;border-radius:6px;background:#e3eee0}
#content .pos .cart #spyroCartTipDetails summary small{font-size:11px}
#content .pos .cart .spyro-cart-tip-pop{position:absolute!important;bottom:calc(100% + 5px);left:0;right:0;z-index:12;box-sizing:border-box;background:#e5eee3;border:1px solid #b6cbb9;border-radius:10px;padding:7px;box-shadow:0 6px 18px #224d3424}
#content .pos .cart .spyro-cart-tip-choices{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
#content .pos .cart .spyro-cart-tip-choices button{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:40px;min-width:0;padding:4px 2px;border-radius:7px;background:#fff;color:#195533;border:1px solid #b6cbb9;font-size:11px;font-weight:750;cursor:pointer}
#content .pos .cart .spyro-cart-tip-choices button small{font-size:10px;font-weight:500}
#content .pos .cart .spyro-cart-tip-choices button[aria-pressed=true]{background:#195533;color:white}
#content .pos .cart #spyroCartExtraBox{margin-top:8px}
#content .pos .cart #spyroCartExtraBox[hidden]{display:none!important}
#content .pos .cart #spyroCartExtraBox label{display:block;font-size:11px;margin-bottom:4px}
#content .pos .cart #spyroCartExtraBox>div{display:flex;gap:6px}
#content .pos .cart #spyroCartExtraInput{min-width:0;flex:1;width:100%;padding:7px;border:1px solid #b6cbb9;border-radius:7px;background:white}
#modal.spyro-quick-modal .modal-card{width:min(480px,calc(100vw - 24px))!important;max-width:480px!important;padding:20px!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important;background:#fff!important;border-radius:18px!important}
#modal.spyro-quick-modal .spyro-quick-form{display:grid;gap:10px;color:#254e42}
#modal.spyro-quick-modal .spyro-quick-heading{display:flex;align-items:center;gap:12px;padding:0 24px 11px 0;border-bottom:1px solid #d8e5d7}
#modal.spyro-quick-modal .spyro-quick-heading>span{display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:12px;background:#deebdc;color:#195533;font-size:25px}
#modal.spyro-quick-modal .spyro-quick-heading h3{margin:0!important;font-size:22px!important;color:#195533!important}
#modal.spyro-quick-modal .spyro-quick-heading p{margin:3px 0 0;font-size:12px;color:#5b7061}
#modal.spyro-quick-modal .spyro-quick-form label{font-size:13px;font-weight:750;color:#254e42;margin:0}
#modal.spyro-quick-modal .spyro-quick-form>input,#modal.spyro-quick-modal .spyro-quick-form>select{width:100%!important;box-sizing:border-box!important;min-height:40px;border:1px solid #b9cebb;border-radius:8px;background:#fff;padding:8px 10px}
#modal.spyro-quick-modal .spyro-quick-money{display:flex;align-items:center;gap:8px;padding:7px 12px;background:#edf4ea;border:1px solid #b9cebb;border-radius:9px}
#modal.spyro-quick-modal .spyro-quick-money>span{font-size:22px;font-weight:800;color:#195533}
#modal.spyro-quick-modal .spyro-quick-money input{flex:1;min-width:0;width:100%;background:transparent!important;border:0!important;font-size:22px!important;font-weight:750!important;padding:5px!important}
#modal.spyro-quick-modal .spyro-quick-amounts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
#modal.spyro-quick-modal .spyro-quick-amounts button{padding:7px 3px!important;min-width:0!important;font-size:12px!important;color:#195533!important;background:#f5f9f3!important}
#modal.spyro-quick-modal .spyro-quick-preview{background:#e4eee1;border-radius:10px;padding:12px}
#modal.spyro-quick-modal .spyro-quick-preview>div{display:flex;gap:8px;justify-content:space-between;align-items:center;margin:6px 0}
#modal.spyro-quick-modal .spyro-quick-preview b{overflow-wrap:anywhere}
#modal.spyro-quick-modal .spyro-quick-preview strong{font-size:21px;color:#195533;white-space:nowrap}
#modal.spyro-quick-modal .spyro-quick-actions{display:grid;grid-template-columns:1fr 2fr;gap:8px}
#modal.spyro-quick-modal .spyro-quick-actions button{min-height:43px!important;border-radius:9px!important}
#modal.spyro-quick-modal .spyro-quick-actions .primary{background:#195533!important;color:#fff!important}
@media(max-width:420px){#content .pos .cart .spyro-cart-tip-choices button{font-size:10px}#content .pos .cart .spyro-cart-tip-choices button small{font-size:9px}}


/* Direct POS only: product controls occupy one row; optional details never shift that row. */
#content .pos .cart #cartList .spyro-direct-cart-row{display:grid!important;grid-template-columns:max-content minmax(0,1fr) max-content max-content!important;grid-template-rows:auto auto!important;align-items:center!important;column-gap:8px!important;row-gap:2px!important}
#content .pos .cart #cartList .spyro-direct-cart-row>.cart-qty{grid-column:1!important;grid-row:1!important;align-self:center!important}
#content .pos .cart #cartList .spyro-direct-cart-row>.cart-name{grid-column:2!important;grid-row:1!important;align-self:center!important;min-width:0!important;overflow-wrap:anywhere}
#content .pos .cart #cartList .spyro-direct-cart-row>.cart-price{grid-column:3!important;grid-row:1!important;align-self:center!important;white-space:nowrap!important;text-align:right!important}
#content .pos .cart #cartList .spyro-direct-cart-row>.cart-remove{grid-column:4!important;grid-row:1!important;align-self:center!important}
#content .pos .cart #cartList .spyro-direct-cart-row>.spyro-cart-options{grid-column:2 / 5!important;grid-row:2!important;align-self:start!important;margin:0!important;min-width:0!important}
#content .pos .cart #cartList .spyro-direct-cart-row:not(:has(>.spyro-cart-options)){grid-template-rows:auto!important}
@media(max-width:420px){#content .pos .cart #cartList .spyro-direct-cart-row{column-gap:5px!important}}


#modal.spyro-reprint-modal .modal-card{width:min(510px,calc(100vw - 24px))!important;max-width:510px!important;border-radius:16px!important;padding:18px!important}
#modal.spyro-reprint-modal .spyro-reprint-picker{display:grid;gap:12px;color:#195533}
#modal.spyro-reprint-modal .spyro-reprint-picker h3{margin:0}
#modal.spyro-reprint-modal .spyro-reprint-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
#modal.spyro-reprint-modal .spyro-reprint-choices button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:84px;border-radius:10px;background:#e2eedf!important;color:#195533!important;white-space:normal!important}
#modal.spyro-reprint-modal .spyro-reprint-choices button.primary{background:#195533!important;color:white!important}
#modal.spyro-reprint-modal .spyro-reprint-choices small{font-size:11px;font-weight:500;line-height:1.3}
#modal.spyro-reprint-modal #spyroReprintStatus{font-size:12px}


/* Product optionals: entire label is clickable; native radio semantics retained. */
#modal.spyro-modern-optionals .modal-card{width:min(800px,calc(100vw - 24px))!important;max-width:800px!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important;border-radius:16px!important;padding:18px!important;background:#f8faf6!important}
#modal.spyro-modern-optionals .spyro-opt-heading{display:flex;gap:12px;align-items:center;padding-right:24px}
#modal.spyro-modern-optionals .spyro-opt-heading h3{margin:0!important;color:#195533!important;font-size:24px!important}
#modal.spyro-modern-optionals .spyro-opt-heading small{color:#597063;font-size:12px}
#modal.spyro-modern-optionals .spyro-opt-symbol{display:grid;place-items:center;background:#dcebd9;border-radius:10px;width:44px;height:44px;flex:none;font-size:22px}
#modal.spyro-modern-optionals .note{background:#e2eedf!important;color:#195533!important;margin:10px 0!important;padding:8px 12px!important;border-radius:8px!important}
#modal.spyro-modern-optionals .optional-modal-body{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;align-items:start!important;max-height:min(60dvh,560px)!important;overflow:auto!important;padding:0 2px 3px!important;margin:0 0 10px!important}
#modal.spyro-modern-optionals .optional-group{border:1px solid #cddbcc!important;border-radius:12px!important;min-width:0!important;padding:0!important;margin:0!important;overflow:hidden!important;background:white!important}
#modal.spyro-modern-optionals .optional-group-title{background:#dce7d5!important;color:#195533!important;font-size:16px!important;font-weight:800!important;margin:0!important;padding:10px 12px!important}
#modal.spyro-modern-optionals .optional-group-note{font-size:11px!important;color:#617965!important;margin:6px 12px 2px!important}
#modal.spyro-modern-optionals .optional-options{display:grid!important;grid-template-columns:1fr!important;gap:3px!important;padding:6px 9px 9px!important}
#modal.spyro-modern-optionals label.optional-item{display:flex!important;position:relative!important;align-items:center!important;gap:9px!important;min-height:37px!important;width:100%!important;box-sizing:border-box!important;cursor:pointer!important;padding:6px 9px!important;border:1px solid transparent!important;border-radius:7px!important;margin:0!important;color:#254e42!important;background:white!important}
#modal.spyro-modern-optionals label.optional-item:hover{background:#f0f5ed!important}
#modal.spyro-modern-optionals label.optional-item.selected,#modal.spyro-modern-optionals label.optional-item:has(input:checked){background:#dcebd6!important;border-color:#93b28f!important;color:#195533!important;font-weight:700!important}
#modal.spyro-modern-optionals label.optional-item input[type=radio]{position:static!important;opacity:1!important;appearance:auto!important;display:inline-block!important;width:18px!important;height:18px!important;min-width:18px!important;flex:0 0 18px!important;margin:0!important;accent-color:#195533!important;cursor:pointer!important;pointer-events:auto!important;clip:auto!important;clip-path:none!important}
#modal.spyro-modern-optionals .optional-radio{display:none!important}
#modal.spyro-modern-optionals .optional-name{flex:1;white-space:normal!important;overflow-wrap:anywhere}
#modal.spyro-modern-optionals .optional-price{white-space:nowrap;color:#195533;font-weight:700}
#modal.spyro-modern-optionals button[onclick^="confirmOptionals"]{background:#195533!important;color:white!important;border-radius:9px!important;min-height:43px!important}
@media(max-width:540px){#modal.spyro-modern-optionals .optional-modal-body{grid-template-columns:1fr!important;max-height:55dvh!important}#modal.spyro-modern-optionals .modal-card{padding:12px!important}}
#productsTable .spyro-pos-toggle{display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:#195533;font-weight:700;padding:5px 4px;cursor:pointer;text-align:left;white-space:nowrap}
#productsTable .spyro-pos-toggle[aria-checked=false]{color:#69756d}
#productsTable .spyro-pos-toggle small{display:block;font-size:10px;font-weight:500}
#productsTable .spyro-switch-track{position:relative;width:36px;height:20px;border-radius:20px;background:#4d854a;flex:0 0 36px}
#productsTable .spyro-switch-track::after{content:"";position:absolute;top:3px;right:3px;width:14px;height:14px;border-radius:50%;background:white}
#productsTable .spyro-pos-toggle[aria-checked=false] .spyro-switch-track{background:#9da59f}
#productsTable .spyro-pos-toggle[aria-checked=false] .spyro-switch-track::after{left:3px;right:auto}
#productsTable .spyro-pos-toggle:disabled{opacity:.55;cursor:wait}
#productsTable tr:has(.spyro-pos-toggle[aria-checked=false]){background:#f0f1ef}


/* Daily tips popup, scoped to the enterprise shortcut. */
#modal.spyro-daily-tips-modal .modal-card{width:min(960px,calc(100vw - 24px))!important;max-width:960px!important;max-height:calc(100dvh - 24px)!important;overflow-y:auto!important;border-radius:16px!important;background:#f8faf6!important;padding:18px!important}
#modal.spyro-daily-tips-modal h3{color:#195533!important;font-size:22px!important;margin:0 0 10px!important;padding-right:25px}
#modal.spyro-daily-tips-modal .spyro-tip-day-filter{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}
#modal.spyro-daily-tips-modal .spyro-tip-day-filter input{width:auto!important;min-width:135px;max-width:100%}
#modal.spyro-daily-tips-modal .spyro-tip-day-kpis{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:8px;margin:12px 0}
#modal.spyro-daily-tips-modal .spyro-tip-day-kpis>div{display:grid;gap:4px;padding:12px;border:1px solid #cbdccb;border-radius:10px;background:white;min-width:0}
#modal.spyro-daily-tips-modal .spyro-tip-day-kpis>div:first-child{background:#e2eedf}
#modal.spyro-daily-tips-modal .spyro-tip-day-kpis span{font-size:11px;font-weight:750;color:#58715f}
#modal.spyro-daily-tips-modal .spyro-tip-day-kpis strong{font-size:clamp(15px,2vw,24px);color:#195533;overflow-wrap:anywhere}
#modal.spyro-daily-tips-modal .table-wrap{max-height:48dvh;overflow:auto;border:1px solid #cbdccb;border-radius:8px;background:white;margin-bottom:12px}
#modal.spyro-daily-tips-modal thead{position:sticky;top:0;background:#e2eedf}
#modal.spyro-daily-tips-modal .spyro-tip-sale-item{padding:8px 10px;border-bottom:1px solid #dce8da;background:white}
#modal.spyro-daily-tips-modal .spyro-tip-sale-item>div,#modal.spyro-daily-tips-modal .spyro-tip-sale-totals>div{display:flex;justify-content:space-between;gap:10px}
#modal.spyro-daily-tips-modal .spyro-tip-sale-item small{display:block;color:#58715f;margin:4px 0 0 18px}
#modal.spyro-daily-tips-modal .spyro-tip-sale-totals{display:grid;gap:7px;padding:12px;border:1px solid #cbdccb;border-radius:10px;background:white;margin:12px 0}
#modal.spyro-daily-tips-modal .spyro-tip-sale-totals .grand{border-top:1px solid #cbdccb;padding-top:10px;font-size:18px;font-weight:800;color:#195533}
#modal.spyro-daily-tips-modal .primary{background:#195533!important;color:white!important}
@media(max-width:600px){#modal.spyro-daily-tips-modal .spyro-tip-day-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#modal.spyro-daily-tips-modal .modal-card{padding:12px!important}}

/* Desktop counter only: one compact row, with equal icon-only utility buttons.
   Keep the header in normal flow so the cart never covers any hit target. */
#content .pos .cart .spyro-service-choice{display:none!important}
@media(min-width:701px){
 #content .pos .cart .cart-title:has(> .cart-tools > .spyro-service-choice){flex:0 0 auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 #content .pos .cart .cart-title .cart-tools:has(> .spyro-service-choice){display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-end!important;width:100%!important;min-width:0!important;height:auto!important;min-height:36px!important;max-height:none!important;gap:4px!important;margin:0 0 7px!important;padding:0!important;box-sizing:border-box!important;position:relative!important}
 #content .pos .cart .cart-title .cart-tools > .spyro-service-choice{display:flex!important;align-items:center!important;gap:4px!important;flex:1 1 0!important;min-width:0!important;margin:0!important}
 #content .pos .cart .cart-title .cart-tools > .spyro-service-choice button{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:1 1 0!important;min-width:0!important;width:auto!important;height:36px!important;min-height:36px!important;max-height:36px!important;box-sizing:border-box!important;gap:3px!important;padding:0 3px!important;border:1px solid #587761!important;border-radius:8px!important;background:#f4f8f3!important;color:#315941!important;font-size:11px!important;font-weight:750!important;white-space:nowrap!important;cursor:pointer;line-height:1!important}
 #content .pos .cart .cart-title .cart-tools > .spyro-service-choice button[aria-pressed="true"]{background:#346748!important;color:#fff!important;border-color:#346748!important}
 #content .pos .cart .cart-title .cart-tools > .spyro-service-choice button[data-service-mode="LLEVAR"][aria-pressed="true"]{background:#985b20!important;color:#fff!important;border-color:#985b20!important}
 #content .pos .cart .cart-title .cart-tools > .spyro-service-choice button[aria-pressed="false"] .spyro-service-check{display:none!important}
 #content .pos .cart .cart-title .cart-tools:has(> .spyro-service-choice) > :is(.contact-square,.drawer-square){display:inline-flex!important;flex:0 0 36px!important;width:36px!important;min-width:36px!important;max-width:36px!important;height:36px!important;min-height:36px!important;max-height:36px!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;padding:0!important;margin:0!important;border:1px solid #a8c9b8!important;border-radius:8px!important;background:#f7fbf8!important;color:#346748!important;font-size:18px!important;line-height:1!important}
 #content .pos .cart .cart-title .cart-tools:has(> .spyro-service-choice) > .contact-square > span{display:none!important}
 #content .pos .cart .cart-title .cart-tools:has(> .spyro-service-choice) > :is(.contact-square,.drawer-square) svg{width:20px!important;height:20px!important;flex:0 0 20px!important}
 #content .pos .cart .cart-title .cart-tools:has(> .spyro-service-choice) button:focus-visible{outline:2px solid #195533!important;outline-offset:1px!important}
}
/* The compact desktop layout must also fit a narrow tablet-sized cart. */
@media(min-width:701px) and (max-width:1100px){
 #content .pos .cart .cart-title .cart-tools > .spyro-service-choice button{gap:2px!important;font-size:10px!important}
 #content .pos .cart .cart-title .cart-tools > .spyro-service-choice button > span:first-child{display:none!important}
}

/* Wide tablets use the counter controls too. Allow fallback wrap rather than clipping actions. */
@media(min-width:701px){
 #content .pos .cart .cart-title .cart-tools:has(> .spyro-service-choice){flex-wrap:wrap!important;gap:3px!important}
 #content .pos .cart .cart-title .cart-tools > .spyro-service-choice{flex:1 1 128px!important;min-width:128px!important;gap:3px!important}
 #content .pos .cart .cart-title .cart-tools > .spyro-service-choice button{padding:0 2px!important;font-size:10px!important;gap:2px!important;height:34px!important;min-height:34px!important;max-height:34px!important}
 #content .pos .cart .cart-title .cart-tools > .spyro-service-choice button > span:first-child{display:none!important}
 #content .pos .cart .cart-title .cart-tools:has(> .spyro-service-choice) > :is(.contact-square,.drawer-square){flex:0 0 30px!important;width:30px!important;min-width:30px!important;max-width:30px!important;height:34px!important;min-height:34px!important;max-height:34px!important}
 #content .pos .cart .cart-title .cart-tools:has(> .spyro-service-choice) > :is(.contact-square,.drawer-square) svg{width:18px!important;height:18px!important;flex:0 0 18px!important}
}

/* Table kitchen dispatch: visible above the scrolling order, independent of the payment footer. */
#content .pos .cart .cart-title:has(>.spyro-barista-send){height:auto!important;min-height:0!important;max-height:none!important;flex:0 0 auto!important;flex-wrap:wrap!important;overflow:visible!important;gap:5px!important}
#content .pos .cart .cart-title>.spyro-barista-send{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 100%!important;width:100%!important;min-width:0!important;min-height:42px!important;height:auto!important;margin:0 0 5px!important;padding:8px 6px!important;background:#e4f0fa!important;color:#18597f!important;border:1px solid #80b5d6!important;border-radius:8px!important;font-weight:750!important;font-size:13px!important;white-space:normal!important;box-sizing:border-box!important}
#content .pos .cart .cart-title>.spyro-barista-send:disabled{opacity:.65!important;cursor:wait!important}
