/* Kiratt Crystal Luxe — mobile utility dock. Existing SWELL actions stay in place. */
@media (max-width:959px) {
  html.kcl-skin {
    --kcl-mobile-dock-height:calc(68px + env(safe-area-inset-bottom,0px));
    --kcl-mobile-balance-space:0px;
  }
  html.kcl-skin.kcl-mobile-dock {
    scroll-padding-bottom:calc(var(--kcl-mobile-dock-height) + var(--kcl-mobile-balance-space) + 20px);
  }
  html.kcl-skin.kcl-mobile-dock body {
    padding-bottom:calc(var(--kcl-mobile-dock-height) + var(--kcl-mobile-balance-space) + 12px);
  }
  html.kcl-skin.kcl-mobile-balance { --kcl-mobile-balance-space:56px; }
  html.kcl-skin #fix_bottom_menu {
    display:block;
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    width:100%;
    box-sizing:border-box;
    padding:5px max(8px,env(safe-area-inset-right,0px)) calc(5px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));
    border:0;
    border-top:1px solid #dce9e8;
    border-bottom:0;
    border-radius:18px 18px 0 0;
    background:linear-gradient(115deg,#fffefa 0%,#f9fcfb 55%,#edf6f5 100%);
    box-shadow:0 -3px 18px rgb(24 75 81 / 7%);
    color:#225b66;
    z-index:100;
    transition:none;
  }
  html.kcl-skin #fix_bottom_menu::before { display:none; }
  html.kcl-skin #fix_bottom_menu .menu_list {
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:minmax(0,1fr);
    align-items:stretch;
    gap:2px;
    height:auto;
    margin:0;
    padding:0;
  }
  html.kcl-skin #fix_bottom_menu .menu-item {
    min-width:0;
    width:auto;
    margin:0;
    padding:0;
    border:0;
    list-style:none;
  }
  html.kcl-skin #fix_bottom_menu .menu-item > a,
  html.kcl-skin #fix_bottom_menu .menu-item > button,
  html.kcl-skin #fix_bottom_menu .menu_btn {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    box-sizing:border-box;
    min-width:0;
    min-height:58px;
    height:100%;
    padding:6px 2px;
    border:0;
    border-radius:11px;
    background:linear-gradient(145deg,rgb(255 255 255 / 35%),rgb(228 243 241 / 22%));
    color:#225b66;
    box-shadow:none;
    font-family:inherit;
    text-decoration:none;
    -webkit-tap-highlight-color:rgb(18 155 185 / 12%);
  }
  html.kcl-skin #fix_bottom_menu .menu-item > a:focus-visible,
  html.kcl-skin #fix_bottom_menu .menu-item > button:focus-visible {
    outline:2px solid #0b7084;
    outline-offset:1px;
  }
  html.kcl-skin #fix_bottom_menu .menu-item > a:active,
  html.kcl-skin #fix_bottom_menu .menu_btn:active {
    background:linear-gradient(135deg,#deefeb,#f9f9ee);
  }
  html.kcl-skin #fix_bottom_menu .menu-item i {
    flex:0 0 19px;
    width:auto;
    height:19px;
    font-size:19px;
    line-height:19px;
    margin:0;
  }
  html.kcl-skin #fix_bottom_menu .menu_btn .open_btn { transform:none; }
  html.kcl-skin #fix_bottom_menu .menu-item span {
    display:block;
    width:100%;
    min-width:0;
    margin:0;
    color:inherit;
    font-size:10px;
    font-weight:600;
    line-height:1.35;
    letter-spacing:0;
    overflow-wrap:anywhere;
    text-align:center;
  }
  /* Embedded SVG masks keep all four symbols visible without an icon font. */
  html.kcl-skin #fix_bottom_menu .kcl-dock-action > i { display:none; }
  html.kcl-skin #fix_bottom_menu .kcl-dock-action::before {
    content:"";
    display:block;
    flex:0 0 21px;
    width:21px;
    height:21px;
    margin:0;
    background:currentColor;
    -webkit-mask:var(--kcl-dock-icon) center / contain no-repeat;
    mask:var(--kcl-dock-icon) center / contain no-repeat;
  }
  html.kcl-skin #fix_bottom_menu .kcl-dock-current {
    background:linear-gradient(145deg,#ecf8f8,#deefed);
    color:#08798e;
  }
  html.kcl-skin #fix_bottom_menu .kcl-dock-menu { --kcl-dock-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%206h16M4%2012h16M4%2018h16%22%2F%3E%3C%2Fsvg%3E"); }
  html.kcl-skin #fix_bottom_menu .kcl-dock-shop { --kcl-dock-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%207h12l2%2014H4L6%207Z%22%2F%3E%3Cpath%20d%3D%22M9%208V6a3%203%200%200%201%206%200v2%22%2F%3E%3C%2Fsvg%3E"); }
  html.kcl-skin #fix_bottom_menu .kcl-dock-use { --kcl-dock-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2011h16v10H4zM3%207h18v4H3zM12%207v14%22%2F%3E%3Cpath%20d%3D%22M12%207H8a2.5%202.5%200%201%201%202.3-3.5L12%207Zm0%200h4a2.5%202.5%200%201%200-2.3-3.5L12%207Z%22%2F%3E%3C%2Fsvg%3E"); }
  html.kcl-skin #fix_bottom_menu .kcl-dock-account { --kcl-dock-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%227%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M4%2021v-2a8%208%200%200%201%2016%200v2%22%2F%3E%3C%2Fsvg%3E"); }
  /* One compact face, even when the proprietary widget has a fixed outer wrapper. */
  html.kcl-skin.kcl-mobile-dock .kcl-mobile-point-badge {
    position:fixed !important;
    inset:auto auto calc(var(--kcl-mobile-dock-height) + 8px) max(12px,env(safe-area-inset-left,0px)) !important;
    box-sizing:border-box !important;
    width:auto !important;
    max-width:calc(100vw - 82px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)) !important;
    height:auto !important;
    margin:0 !important;
    z-index:101 !important;
    transform:none !important;
  }
  html.kcl-skin.kcl-mobile-dock .kcl-mobile-point-shell {
    padding:0 !important;
    min-height:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }
  html.kcl-skin.kcl-mobile-dock .kcl-mobile-point-face {
    box-sizing:border-box !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;
    width:auto !important;
    max-width:calc(100vw - 82px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)) !important;
    min-height:44px !important;
    height:auto !important;
    margin:0 !important;
    padding:9px 12px !important;
    border:1px solid #69adb8 !important;
    border-radius:24px !important;
    background:linear-gradient(118deg,#159eb7 0%,#0d7f96 60%,#12697f 100%) !important;
    box-shadow:0 3px 10px rgb(21 75 89 / 14%),inset 0 1px 0 rgb(255 255 255 / 25%) !important;
    color:#fff !important;
    font-family:inherit !important;
    font-size:11px !important;
    font-weight:600 !important;
    line-height:1.4 !important;
    letter-spacing:0 !important;
    white-space:normal !important;
    overflow-wrap:anywhere;
    text-decoration:none !important;
  }
  html.kcl-skin.kcl-mobile-dock .kcl-mobile-point-face > * {
    font-size:inherit !important;
    color:inherit !important;
    min-width:0;
  }
  html.kcl-skin.kcl-mobile-dock .kcl-mobile-point-shell .kcl-mobile-point-face { max-width:100% !important; }
  html.kcl-skin.kcl-mobile-dock .kcl-mobile-point-face:focus-visible {
    outline:2px solid #0b7084;
    outline-offset:3px;
  }
  html.kcl-skin.kcl-mobile-dock .p-fixBtnWrap {
    bottom:calc(var(--kcl-mobile-dock-height) + 8px);
    right:max(12px,env(safe-area-inset-right,0px));
  }
  html.kcl-skin.kcl-mobile-dock #pagetop {
    width:44px;
    height:44px;
    min-height:44px;
    background:linear-gradient(140deg,#fffefb,#eaf4ef);
    border:1px solid #b7d5d2;
    color:#267185;
    box-shadow:0 3px 12px rgb(21 75 89 / 9%);
  }
  /* Keep focused checkout / point / login fields clear when a software keyboard is open. */
  html.kcl-skin.kcl-mobile-keyboard #fix_bottom_menu,
  html.kcl-skin.kcl-mobile-keyboard .kcl-mobile-point-badge,
  html.kcl-skin.kcl-mobile-keyboard .p-fixBtnWrap {
    visibility:hidden !important;
    pointer-events:none !important;
  }
}
@media (max-width:374px) {
  html.kcl-skin #fix_bottom_menu .menu-item span { font-size:9px; }
  html.kcl-skin.kcl-mobile-dock .kcl-mobile-point-face { gap:5px !important; padding:9px 10px !important; font-size:10px !important; }
}
@media (max-width:959px) and (max-height:480px) and (orientation:landscape) {
  html.kcl-skin #fix_bottom_menu { padding-top:4px; padding-bottom:calc(4px + env(safe-area-inset-bottom,0px)); }
  html.kcl-skin #fix_bottom_menu .menu-item > a,
  html.kcl-skin #fix_bottom_menu .menu-item > button,
  html.kcl-skin #fix_bottom_menu .menu_btn { min-height:46px; gap:3px; padding-block:4px; }
  html.kcl-skin #fix_bottom_menu .kcl-dock-action::before { width:19px; height:19px; flex-basis:19px; }
  html.kcl-skin #fix_bottom_menu .menu-item i { font-size:16px; height:16px; line-height:16px; flex-basis:16px; }
}
