/* Desktop-only rules extracted from legacy style.css. */
@media (min-width: 980px){
  .kmm-store-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 992px){
  .km-search-wrap .km-search input[type="search"]{
    width: 240px; /* slightly shorter */
  }
}
@media (min-width: 981px){
  .km-header__inner{
    display:grid !important;
    grid-template-columns:auto auto minmax(320px,1fr) auto !important;
    align-items:center !important;
    gap:18px !important;
  }

  .km-brand{
    min-width:0;
  }

  .km-nav{
    margin-left:0 !important;
    min-width:0;
  }

  .km-nav ul{
    gap:10px !important;
    flex-wrap:nowrap !important;
  }

  .km-nav a{
    padding:10px 10px !important;
    white-space:nowrap !important;
  }

  .km-search-wrap{
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:12px !important;
  }

  .km-search{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 78px !important;
    gap:8px !important;
    flex:1 1 auto !important;
  }

  .km-search input[type="search"]{
    width:100% !important;
    min-width:0 !important;
  }

  .km-search-submit{
    width:78px !important;
    min-width:78px !important;
    padding:0 10px !important;
  }

  .km-search-actions{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    flex-wrap:nowrap !important;
  }

  .km-search-actions .kmm-auth-btn{
    min-width:92px !important;
    width:92px !important;
    padding:0 12px !important;
    white-space:nowrap !important;
  }
}
@media (min-width: 981px){
  .km-header__inner{
    grid-template-columns:auto auto auto minmax(280px,1fr) auto !important;
  }

  .km-brand{order:1;}
  .km-nav{order:2;}
  .km-search-actions{order:3; margin-left:0 !important;}
  .km-search{order:4;}

  .km-search-wrap{
    grid-template-columns:auto minmax(280px,1fr) auto !important;
    gap:12px !important;
    width:100% !important;
  }

  .km-search{
    grid-template-columns:minmax(0,1fr) 92px !important;
    min-width:0 !important;
    width:100% !important;
  }

  .km-search-submit{
    min-width:92px !important;
    width:92px !important;
    min-height:44px !important;
    height:44px !important;
    border-radius:14px !important;
    padding:0 12px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
  }

  .km-search-actions{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    flex-wrap:nowrap !important;
  }

  .km-search-actions .kmm-auth-btn{
    min-height:44px !important;
    height:44px !important;
    min-width:92px !important;
    width:92px !important;
    border-radius:14px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
  }
}
@media (min-width: 981px){
  .km-header__inner{
    display:grid !important;
    grid-template-columns:auto auto auto minmax(320px,1fr) auto !important;
    align-items:center !important;
    gap:18px !important;
  }

  .km-brand{order:1 !important;}
  .km-nav{order:2 !important; margin-left:0 !important;}
  .km-search-actions{order:3 !important; margin-left:0 !important;}
  .km-search{order:4 !important; margin-left:0 !important;}
  .km-nav ul{
    flex-wrap:nowrap !important;
  }

  /* panelim between menu and input */
  .km-search-wrap{
    display:contents !important;
    width:auto !important;
    max-width:none !important;
    margin-left:0 !important;
  }

  .km-search-actions{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    flex-wrap:nowrap !important;
  }

  .km-search-actions .kmm-auth-btn{
    width:92px !important;
    min-width:92px !important;
    height:44px !important;
    min-height:44px !important;
    padding:0 12px !important;
    border-radius:14px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    white-space:nowrap !important;
  }

  .km-search{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 92px !important;
    gap:10px !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    flex:1 1 auto !important;
  }

  .km-search input[type="search"]{
    width:100% !important;
    min-width:0 !important;
  }

  /* Ara height same as Panelim */
  .km-search-submit{
    width:92px !important;
    min-width:92px !important;
    height:44px !important;
    min-height:44px !important;
    padding:0 12px !important;
    border-radius:14px !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
  }
}
@media (min-width: 981px){
  .km-header .km-nav{display:block !important;visibility:visible !important;opacity:1 !important;position:static !important;transform:none !important;max-height:none !important;overflow:visible !important;}
  .km-header .km-nav ul{display:flex !important;flex-wrap:nowrap !important;align-items:center !important;gap:12px !important;}
  .km-header .km-nav li{display:block !important;}
}
@media (min-width:981px){
  .km-header .km-menu-toggle{display:none !important}
  .km-header .km-nav{display:block !important;position:static !important;visibility:visible !important;opacity:1 !important;transform:none !important}
}
@media (min-width:981px){
  .km-header .km-brand{order:1 !important}
  .km-header .km-nav{
    order:2 !important;
    margin-right:0 !important;
    margin-left:22px !important;
  }
  .km-header .km-search-wrap{
    order:3 !important;
    flex:0 1 540px !important;
    flex-direction:row-reverse !important;
    margin-right:0 !important;
    margin-left:auto !important;
  }
  .km-header .km-search{flex:1 1 300px !important;max-width:340px !important}
  .km-header .km-search-actions{flex-wrap:nowrap !important}
}
@media (min-width: 1180px){
  body.home .kmm-home-hero__title{
    max-width:none !important;
    white-space:nowrap;
    font-size:clamp(29px,2.7vw,38px) !important;
    letter-spacing:-.035em;
  }
}
@media (min-width:901px){
  html.kmm-vote-modal-open{overflow:auto!important}
  body.single-coupon .kmm-vote-modal{
    position:fixed!important;
    inset:0!important;
    z-index:100100!important;
    display:block!important;
    padding:0!important;
    pointer-events:none!important;
  }
  body.single-coupon .kmm-vote-modal[hidden]{display:none!important}
  body.single-coupon .kmm-vote-modal__backdrop{display:none!important}
  body.single-coupon .kmm-vote-modal__dialog{
    --kmm-vote-shift-x:0px;
    --kmm-vote-shift-y:0px;
    position:absolute!important;
    top:138px!important;
    right:14px!important;
    z-index:1!important;
    width:200px!important;
    max-width:calc(100vw - 28px)!important;
    padding:17px 13px 13px!important;
    border:1px solid #fecdd3!important;
    border-radius:22px!important;
    background:linear-gradient(180deg,#fff 0%,#fffaf8 100%)!important;
    box-shadow:0 20px 44px rgba(15,23,42,.14)!important;
    text-align:center!important;
    pointer-events:auto!important;
    transform:translate3d(var(--kmm-vote-shift-x),var(--kmm-vote-shift-y),0)!important;
    transition:transform .18s ease-out,box-shadow .2s ease!important;
    will-change:transform!important;
  }
  body.single-coupon .kmm-vote-modal__dialog:hover{box-shadow:0 24px 52px rgba(15,23,42,.18)!important}
  body.single-coupon .kmm-vote-modal__close{right:7px!important;top:7px!important;width:27px!important;height:27px!important;font-size:20px!important}
  body.single-coupon .kmm-vote-modal__icon{width:38px!important;height:38px!important;margin:0 auto 8px!important;border-radius:12px!important;font-size:16px!important}
  body.single-coupon .kmm-vote-modal__dialog>h2{font-size:16px!important;line-height:1.25!important;padding:0 8px!important}
  body.single-coupon .kmm-vote-modal__dialog>p{margin:6px auto 10px!important;font-size:11px!important;line-height:1.4!important;color:#64748b!important}
  body.single-coupon .kmm-vote-modal .kmm-vote-inline__content{margin:0 0 6px!important}
  body.single-coupon .kmm-vote-modal .kmm-vote-inline__title{font-size:11px!important}
  body.single-coupon .kmm-vote-modal .kmm-vote-inline__actions{gap:6px!important}
  body.single-coupon .kmm-vote-modal .kmm-vote-mini{height:34px!important;min-height:34px!important;padding:0 8px!important;border-radius:10px!important;font-size:11px!important;gap:4px!important}
  body.single-coupon .kmm-vote-modal .kmm-vote-mini strong{min-width:19px!important;height:19px!important;font-size:9px!important;padding:0 4px!important}
  body.single-coupon .kmm-vote-modal__later{margin-top:3px!important;font-size:10px!important}
}
@media (min-width: 901px){
  body.single-coupon .kmm-coupon-content-row{
    grid-template-columns:minmax(0,1fr) 279px!important;
    gap:14px!important;
  }
  body.single-coupon .kmm-coupon-content-row>.kmm-coupon-action-panel{
    width:279px!important;
    padding:8px!important;
  }
  body.single-coupon .kmm-single-code-fit{
    grid-template-columns:minmax(0,1fr) minmax(104px,108px)!important;
    gap:6px!important;
    min-height:64px!important;
    padding:7px 5px 7px 10px!important;
  }
  body.single-coupon .kmm-single-code-fit .kmm-code-text{
    height:48px!important;
    padding:0 8px!important;
    font-size:17px!important;
    line-height:1!important;
    letter-spacing:.025em!important;
    font-weight:950!important;
    text-align:center!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  body.single-coupon .kmm-single-code-fit .km-btn{
    min-width:104px!important;
    max-width:108px!important;
    width:108px!important;
    height:48px!important;
    min-height:48px!important;
    padding-left:7px!important;
    padding-right:7px!important;
    font-size:12px!important;
    line-height:1.08!important;
  }
}
@media (min-width:901px){
  body.single-coupon .kmm-coupon-content-row{
    grid-template-columns:minmax(0,1fr) 298px!important;
    gap:18px!important;
  }
  body.single-coupon .kmm-coupon-content-row>.kmm-coupon-action-panel{
    width:298px!important;
    display:block!important;
    align-items:initial!important;
    justify-content:initial!important;
    padding:8px!important;
    overflow:visible!important;
  }
  body.single-coupon .kmm-coupon-action-panel .kmm-single-topbar,
  body.single-coupon .kmm-coupon-action-panel .kmm-single-code-wrap{
    display:block!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
  }
  body.single-coupon .kmm-single-code-fit{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 96px!important;
    align-items:center!important;
    gap:6px!important;
    width:100%!important;
    min-height:64px!important;
    padding:7px 4px 7px 9px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  body.single-coupon .kmm-single-code-fit .kmm-code-text{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:0!important;
    width:100%!important;
    height:48px!important;
    margin:0!important;
    padding:0 7px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:17px!important;
    line-height:1!important;
    font-weight:950!important;
    letter-spacing:.02em!important;
    text-align:center!important;
  }
  body.single-coupon .kmm-single-code-fit .km-btn{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:96px!important;
    min-width:96px!important;
    max-width:96px!important;
    height:48px!important;
    min-height:48px!important;
    margin:0!important;
    padding:0 4px!important;
    box-sizing:border-box!important;
    white-space:normal!important;
    text-align:center!important;
    font-size:12.5px!important;
    line-height:1.12!important;
  }
  body.single-coupon .kmm-coupon-expiry-row{
    display:flex!important;
    width:100%!important;
    justify-content:center!important;
    margin:7px 0 0!important;
    padding:0!important;
    clear:both!important;
  }
  body.single-coupon .kmm-coupon-expiry-row .km-meta-chip{
    width:auto!important;
    max-width:100%!important;
    min-height:32px!important;
    margin:0!important;
    padding:6px 11px!important;
    white-space:nowrap!important;
    font-size:12px!important;
    line-height:1.15!important;
  }
}
