/* One column, measured from the bottom of the viewport above the shop toolbar. */
body:has(#mkshop-launcher){
  --mkshop-base: max(14px, env(safe-area-inset-bottom));
  --mkshop-edge: max(8px, env(safe-area-inset-right));
}
@media(max-width:1024px){
  body:has(#mkshop-launcher){--mkshop-base: calc(70px + env(safe-area-inset-bottom))}
}
body:has(#mkshop-launcher) .chaty-widget.right-position.has-single .single-channel > :is(.Whatsapp-channel-link,.chaty-cta-close){
  position:fixed !important;inset:auto var(--mkshop-edge) calc(var(--mkshop-base) + 112px) auto !important;
  width:54px !important;height:54px !important;margin:0 !important
}
body:has(#mkshop-launcher) a.scrollToTop{
  right:calc(var(--mkshop-edge) + 5px) !important;bottom:var(--mkshop-base) !important;
  height:44px;width:44px
}
#mkshop-launcher{
  position:fixed;z-index:350;right:calc(var(--mkshop-edge) + 3px);bottom:calc(var(--mkshop-base) + 54px);
  margin:0;padding:0;width:48px;height:48px
}
#mkshop-launcher .mkshop-open{
  box-sizing:border-box;display:grid;place-items:center;height:48px;width:48px;min-width:48px;min-height:48px;
  margin:0;padding:0;border:1px solid #fff;border-radius:50%;background:#1559a5;color:#fff;
  cursor:pointer;box-shadow:0 2px 8px #17324b38
}
#mkshop-launcher svg{display:block;width:25px;height:25px}
#mkshop-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;padding:0;border:0;border-radius:16px;width:min(420px,calc(100% - 20px));height:min(535px,calc(100dvh - 24px));max-width:none;max-height:none;background:white;color:#193247;box-shadow:0 12px 60px #1224354a;font:16px/1.4 system-ui,sans-serif;text-align:left;overflow:hidden}
#mkshop-dialog:not([open]){display:none}#mkshop-dialog::backdrop{background:#0b1b2b80}
html:has(#mkshop-dialog[open]){overflow:hidden}
#mkshop-dialog *{box-sizing:border-box}#mkshop-dialog .mkshop-frame{display:flex;flex-direction:column;height:100%}
#mkshop-dialog header{display:flex;justify-content:space-between;align-items:center;padding:8px 13px 8px 16px;color:#fff;background:#16344c;position:static}
#mkshop-dialog header strong,#mkshop-dialog header small{display:block;color:inherit}#mkshop-dialog header small{font-size:13px}
#mkshop-dialog button,#mkshop-dialog a{min-height:44px;border-radius:8px;padding:9px 11px;font:600 14px/1.25 system-ui,sans-serif;display:inline-flex;align-items:center;justify-content:center}
#mkshop-dialog [data-close]{min-width:44px;font-size:26px;background:#284860;color:white;border:0}
#mkshop-dialog .mkshop-body{flex:1;min-height:0;padding:14px;overflow:auto;overscroll-behavior:contain}
#mkshop-dialog h2{font:700 22px/1.16 system-ui,sans-serif;margin:0 0 10px;color:#182f42}
#mkshop-dialog p{font:400 16px/1.4 system-ui,sans-serif;margin:4px 0 10px;color:#31475a}
#mkshop-dialog .mkshop-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#mkshop-dialog .mkshop-choices button{background:#f4f7fa;color:#19354a;border:1px solid #ccd8e0}
#mkshop-dialog .mkshop-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
#mkshop-dialog .mkshop-actions a,#mkshop-dialog .mkshop-actions button{border:1px solid #cad7df;color:#153a51;background:#fff;text-decoration:none}
#mkshop-dialog a.mkshop-wa{background:#145843;color:#fff;border-color:#145843}
#mkshop-dialog .mkshop-form{display:flex;gap:6px;padding:8px 12px;margin:0;border-top:1px solid #d7dfe5}
#mkshop-dialog input{min-width:0;flex:1;height:44px;font-size:16px;border:1px solid #b3c2cc;border-radius:8px}
#mkshop-dialog [type=submit]{background:#173850;color:white;border:0}
#mkshop-dialog :focus-visible,.mkshop-open:focus-visible{outline:2px solid #b17600;outline-offset:1px}
#mkshop-dialog .mkshop-result{display:flex;align-items:center;gap:6px;justify-content:flex-start;text-decoration:underline;color:#164d69}
#mkshop-dialog .mkshop-result img{width:35px;height:35px;object-fit:contain}
@media(max-height:490px){#mkshop-dialog .mkshop-body{padding-block:6px}#mkshop-dialog h2{font-size:18px}}
#mkshop-dialog:has(.mkshop-checkout-frame){height:min(760px,calc(100dvh - 12px));width:min(640px,calc(100% - 12px))}
#mkshop-dialog:has(.mkshop-checkout-frame) .mkshop-form{display:none}
#mkshop-dialog:has(.mkshop-checkout-frame) .mkshop-body{display:flex;flex-direction:column}
.mkshop-checkout-frame{border:0;width:100%;flex:1;min-height:150px}
.mkshop-line{padding:8px 0;border-bottom:1px solid #dbe0e4}
