.store-header { background: rgb(15, 59, 33); color: rgb(255, 255, 255); padding: 28px; border-radius: 16px; margin-bottom: 24px; }
.store-header .store-name { color: inherit; }
.posItem .card { border: 1px solid rgb(220, 230, 220); border-radius: 14px; overflow: hidden; box-shadow: rgba(15, 59, 33, 0.06) 0px 5px 20px; }
.posItem .card-title { color: rgb(16, 37, 26); }
.posItem .card-text { color: rgb(83, 100, 90); }
.posItem .card-footer { background: rgb(255, 255, 255); border: 0px; }
.posItem .btn-primary { background: rgb(47, 125, 40); border-color: rgb(47, 125, 40); color: rgb(255, 255, 255); font-weight: 700; }
.posItem .btn-primary:hover { background: rgb(36, 99, 32); border-color: rgb(36, 99, 32); }
.posItem .btn-primary:focus-visible { outline: rgb(206, 220, 33) solid 3px; outline-offset: 3px; }
body:has(#Checkout) { background: rgb(245, 247, 241); color: rgb(16, 37, 26); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
#Checkout { --wrap-max-width: 440px; --border-radius: 16px; --btcpay-primary: #2f7d28; --btcpay-primary-rgb: 47,125,40; --btcpay-body-text: #10251a; --btcpay-body-text-muted: #53645a; --btcpay-body-text-hover: #246320; --btcpay-bg-tile: #fff; --btcpay-body-bg: #f5f7f1; }
#Checkout > main.tile { background: rgb(255, 255, 255); border-width: 4px 1px 1px; border-style: solid; border-color: rgb(81, 177, 62) rgb(220, 230, 220) rgb(220, 230, 220); border-image: none; border-radius: 18px; box-shadow: rgba(15, 59, 33, 0.08) 0px 16px 48px; }
#Checkout .store-header { background: transparent; color: rgb(16, 37, 26); padding: 8px 12px 16px; margin-bottom: 8px; border-radius: 0px; }
#Checkout .store-header img { object-fit: contain; }
#Checkout #AmountDue { color: rgb(16, 37, 26); font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.3; overflow-wrap: anywhere; }
#Checkout .info { background: rgb(240, 246, 237); color: rgb(66, 91, 72); border: 1px solid rgb(220, 233, 215); border-radius: 12px; }
#Checkout .info .expiryTime { font-weight: 700; }
#Checkout #DetailsToggle { color: rgb(47, 125, 40); text-underline-offset: 3px; }
#Checkout .payment-details dl > div { padding-block: 3px; }
#Checkout .payment-details dd { font-variant-numeric: tabular-nums; }
#Checkout .btcpay-pill { border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
#Checkout .btcpay-pill.active { background: rgb(47, 125, 40); border-color: rgb(47, 125, 40); color: rgb(255, 255, 255); }
#Checkout .btn-primary { --bs-btn-bg: #2f7d28; --bs-btn-border-color: #2f7d28; --bs-btn-hover-bg: #246320; --bs-btn-hover-border-color: #246320; --bs-btn-active-bg: #1e531b; --bs-btn-active-border-color: #1e531b; --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff; background-color: rgb(47, 125, 40); border-color: rgb(47, 125, 40); color: rgb(255, 255, 255); font-weight: 650; }
#Checkout .btn-primary:hover { background-color: rgb(36, 99, 32); border-color: rgb(36, 99, 32); }
#Checkout .btn:not(.btn-link) { min-height: 44px; border-radius: 12px !important; }
#Checkout :is(a, button, select, input):focus-visible { outline: rgb(47, 125, 40) solid 3px; outline-offset: 3px; box-shadow: rgb(231, 242, 225) 0px 0px 0px 5px; }
#Checkout .form-control, #Checkout .form-select { border-radius: 10px; }
#Checkout > main.checkout-text { border-top: 1px solid rgb(220, 230, 220); box-shadow: none; line-height: 1.65; }
#Checkout .store-footer { color: rgb(83, 100, 90); }
#Checkout #ContactLink { color: rgb(47, 125, 40); font-weight: 650; text-underline-offset: 4px; }
#Checkout #ContactLink:hover { text-decoration: underline; }
@media (max-width: 480px) {
  #Checkout { --wrap-max-width: 100%; }
  #Checkout > main.tile { border-radius: 14px; box-shadow: rgba(15, 59, 33, 0.06) 0px 8px 24px; }
  #Checkout #AmountDue { font-size: clamp(1.35rem, 6vw, 1.9rem); }
  #Checkout .payment-details dl > div { gap: 10px; }
}
.checkout-modal body:has(#Checkout) { background: rgba(0, 0, 0, 0.85); }
.checkout-modal #Checkout .store-header { color: rgb(255, 255, 255); }
html[data-theme="dark"] body:has(#Checkout) { background: rgb(16, 28, 21); color: rgb(231, 239, 230); }
html[data-theme="dark"] #Checkout { --btcpay-body-text: #e7efe6; --btcpay-body-text-muted: #b2c2b5; --btcpay-bg-tile: #192b20; --btcpay-body-bg: #101c15; }
html[data-theme="dark"] #Checkout > main.tile { background: rgb(25, 43, 32); border-color: rgb(81, 177, 62) rgb(54, 82, 59) rgb(54, 82, 59); }
html[data-theme="dark"] #Checkout :is(.store-header, #AmountDue) { color: rgb(231, 239, 230); }
html[data-theme="dark"] #Checkout .info { background: rgb(33, 57, 39); border-color: rgb(54, 82, 59); color: rgb(208, 223, 209); }
html[data-theme="dark"] #Checkout :is(#DetailsToggle, #ContactLink) { color: rgb(159, 218, 143); }
html[data-theme="dark"] #Checkout .store-footer { color: rgb(178, 194, 181); }
html[data-theme="dark"] .posItem .card { background: rgb(25, 43, 32); border-color: rgb(54, 82, 59); }
html[data-theme="dark"] .posItem .card-title { color: rgb(231, 239, 230); }
html[data-theme="dark"] .posItem .card-text { color: rgb(178, 194, 181); }
html[data-theme="dark"] .posItem .card-footer { background: rgb(25, 43, 32); }
@media (prefers-reduced-motion: reduce) {
  #Checkout :is(a, button, input, select) { transition: none !important; }
}
#PosStatic:has(a[href="https://buy.stripe.com/6oUbJ1dxfdQZ1IM3sM4ZG00"]) footer.store-footer .store-powered-by { display: none !important; }
#PosStatic:has(a[href="https://buy.stripe.com/6oUbJ1dxfdQZ1IM3sM4ZG00"]) footer.store-footer::after { content: ""; display: block; width: 150px; height: 60px; margin: 0px auto; background: url("/LocalStorage/f26e2bf9-c718-4ff3-a648-1345783e0e8a-logo-btcpayserver-it.png") center center / contain no-repeat; }
@media (min-width: 600px) {
  main form:has(#tipologiaCliente):has(#codiceDestinatario) { display: grid; grid-template-columns: repeat(2, minmax(0px, 1fr)); gap: 4px 16px; }
  main form:has(#tipologiaCliente):has(#codiceDestinatario) > .form-group:has(#buyerName), main form:has(#tipologiaCliente):has(#codiceDestinatario) > .form-group:has(#buyerAddress1), main form:has(#tipologiaCliente):has(#codiceDestinatario) > #page-primary { grid-column: 1 / -1; }
}
@supports (-webkit-touch-callout: none) {
  @media (max-width: 767px) {
  #PosCart #content > .public-page-wrap > header.sticky-top { position: static; }
  #PosCart #Categories.scrollable { margin-bottom: 0px; }
  #PosCart #Categories nav, #PosCart #Categories.scrollable nav { flex-wrap: wrap; justify-content: center; overflow: visible; margin: 0px; padding: 0px; gap: 8px !important; }
}
}
@media (max-width: 767px) {
  #PosCart #content > .public-page-wrap { box-sizing: border-box; width: 100%; padding-left: 20px; padding-right: 20px; }
  #PosCart #content main, #PosCart #content header { min-width: 0px; max-width: 100%; }
  #PosCart #PosItems { margin-left: 0px; margin-right: 0px; }
}

/* Catalogo: prova di stabilità iOS, limitata alla pagina POS. */
@supports (-webkit-touch-callout: none) {
 @media (max-width: 767px) {
  #PosCart #cart { height: auto; top: 0; bottom: 0; }
  #PosCart #content > .public-page-wrap > header.sticky-top { position: static; }
  #PosCart #Categories.scrollable::before, #PosCart #Categories.scrollable::after { display: none; }
  #PosCart #Categories.scrollable nav { overflow: visible; }
  #PosCart img[src*="pos-hero.png"] { width: 100%; height: auto; aspect-ratio: 1672 / 941; }
 }
}

/* Mantiene stabile l'altezza del catalogo quando cambia la barra di Safari. */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 767px) {
    #PosCart #content > .public-page-wrap { min-height: 100vh !important; }
    @supports (min-height: 100svh) {
      #PosCart #content > .public-page-wrap { min-height: 100svh !important; }
    }
  }
}
