/* DjimlyStore Digital v4.2.62.1 — targeted desktop corrections.
   All changes are >= 1024px. Native mobile, order state, payment flows, and routes untouched.
*/
@media (min-width:1024px) {
  /* 1. The official logo contains dark letters: give it a readable light backdrop. */
  html body #djs-portal #djs-site-header {
    overflow:visible!important;
    isolation:isolate;
  }
  html body #djs-portal #djs-site-header .djs-logo.djs-logo-image {
    display:flex!important;align-items:center!important;justify-content:center!important;
    box-sizing:border-box!important;padding:7px 11px!important;
    background:linear-gradient(145deg,#ffffff,#edf4ff)!important;
    border:1px solid rgba(255,255,255,.9)!important;
    border-radius:12px!important;
    box-shadow:0 5px 16px rgba(0,10,60,.16)!important;
  }
  html body #djs-portal #djs-site-header .djs-brand-header-logo {
    display:block!important;width:100%!important;max-width:100%!important;
    height:100%!important;max-height:100%!important;
    object-fit:contain!important;filter:none!important;
  }

  /* 2. Desktop account dropdown must stay inside the viewport, rather than being clipped. */
  html body #djs-portal #djs-site-header .djs62-account-popover-wrap {position:relative!important;z-index:250!important;}
  html body #djs-portal #djs-site-header .djs62-account-popover {
    position:fixed!important;left:auto!important;top:60px!important;
    right:clamp(14px,3vw,55px)!important;
    width:min(320px,calc(100vw - 28px))!important;max-width:calc(100vw - 28px)!important;
    max-height:min(480px,calc(100vh - 105px))!important;overflow-y:auto!important;
    box-sizing:border-box!important;z-index:2147480000!important;
    border:1px solid #d8e5f5!important;border-radius:17px!important;
    padding:13px!important;background:#fff!important;color:#173455!important;
    box-shadow:0 20px 60px rgba(3,21,56,.24)!important;
    text-align:left!important;
  }
  html body #djs-portal #djs-site-header .djs62-account-popover-wrap.is-open .djs62-account-popover {
    visibility:visible!important;opacity:1!important;transform:translateY(0)!important;
    pointer-events:auto!important;
  }
  html body #djs-portal #djs-site-header .djs62-account-popover button,
  html body #djs-portal #djs-site-header .djs62-account-popover strong {
    white-space:normal!important;overflow-wrap:break-word!important;
    -webkit-text-fill-color:currentColor!important;
  }

  /* 3. Desktop search is a tidy, scrollable drop-down/dialog, not a giant empty white sheet. */
  html body #djs-smart-search-v4225:not([hidden]) {
    position:fixed!important;inset:0!important;z-index:2147483000!important;
    display:flex!important;align-items:center!important;justify-content:flex-start!important;
    box-sizing:border-box!important;padding:84px 18px 24px!important;
    overflow:hidden!important;background:rgba(7,18,49,.43)!important;
    backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);
  }
  html body #djs-smart-search-v4225 .dss-panel {
    display:flex!important;position:relative!important;flex-direction:column!important;
    width:min(820px,calc(100vw - 36px))!important;max-width:820px!important;
    min-height:240px!important;height:auto!important;
    max-height:min(590px,calc(100dvh - 110px))!important;
    margin:0 auto!important;border-radius:17px!important;
    border:1px solid #d5e4fa!important;box-shadow:0 26px 80px rgba(1,10,46,.33)!important;
    background:#fff!important;overflow:hidden!important;
  }
  html body #djs-smart-search-v4225 .dss-header {
    display:flex!important;flex:0 0 auto!important;min-height:79px!important;
    padding:14px 20px!important;border-bottom:1px solid #e7edf7!important;
  }
  html body #djs-smart-search-v4225 .dss-field {
    height:51px!important;min-height:51px!important;border-radius:12px!important;
    background:#f5f8ff!important;
  }
  html body #djs-smart-search-v4225 .dss-body {
    display:block!important;flex:0 1 auto!important;min-height:140px!important;
    max-height:min(435px,calc(100dvh - 230px))!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    padding:18px 22px 20px!important;background:#fff!important;color:#1b304d!important;
  }
  html body #djs-smart-search-v4225 .dss-content {display:block!important;width:100%!important;max-width:none!important;min-height:80px!important;}
  html body #djs-smart-search-v4225 .dss-section-title,
  html body #djs-smart-search-v4225 .dss-hint,
  html body #djs-smart-search-v4225 .dss-quick-label,
  html body #djs-smart-search-v4225 .dss-result-name {visibility:visible!important;opacity:1!important;-webkit-text-fill-color:currentColor!important;}
  html body #djs-smart-search-v4225 .dss-quick-list {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;column-gap:14px!important;margin-bottom:14px!important;}
  html body #djs-smart-search-v4225 .dss-quick {min-height:49px!important;}
  html body #djs-smart-search-v4225 .dss-results {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0 15px!important;}
  html body #djs-smart-search-v4225 .dss-footer {flex:0 0 auto!important;padding:10px 20px!important;}
  html body #djs-smart-search-v4225 .dss-footer:has([data-dss-all][hidden]) {display:none!important;}
  html body #djs-smart-search-v4225 .dss-all {min-height:43px!important;}

  /* 4. Messages: remove the inherited phone/tablet 680px canvas. */
  html body #djs-portal #djs-screen-chat.djs-message-center:not(.is-thread)>.djs-mc-body {
    width:100%!important;max-width:none!important;
    padding:0 clamp(26px,4.3vw,80px) 44px!important;
    box-sizing:border-box!important;
  }
  html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-home-shell {
    width:min(1120px,100%)!important;max-width:1120px!important;
    margin:0 auto!important;padding:34px 0 36px!important;
  }
  html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-v2-home {
    width:100%!important;max-width:none!important;
  }
  html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-v2-shortcuts {
    grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:17px!important;
  }
  html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-v2-shortcuts button {
    min-height:118px!important;
  }
  html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-v2-listheading h2 {font-size:19px!important;}
  html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-row {min-height:88px!important;padding:14px 12px!important;}
  html body #djs-portal #djs-screen-chat.is-thread .djs-mc-body {
    box-sizing:border-box!important;padding-left:max(28px,calc((100% - 1060px)/2))!important;
    padding-right:max(28px,calc((100% - 1060px)/2))!important;
  }

  /* 5. Product details, including the 1-plan Nord VPN view, should use the desktop canvas. */
  html body #djs-portal #djs-screen-product .djs-content-wrap,
  html body #djs-portal #djs-screen-product.djs-streaming-service-list-v21810 .djs-content-wrap,
  html body #djs-portal #djs-screen-product.djs-streaming-plan-detail-v21810 .djs-content-wrap {
    box-sizing:border-box!important;width:calc(100% - 76px)!important;
    max-width:1250px!important;margin-left:auto!important;margin-right:auto!important;
    padding:20px 20px 64px!important;
  }
  html body #djs-portal #djs-screen-product .djs-product-hero,
  html body #djs-portal #djs-screen-product.djs-streaming-plan-detail-v21810 .djs-product-hero {
    width:calc(100% - 76px)!important;max-width:1250px!important;margin:0 auto!important;
  }
  html body #djs-portal #djs-screen-product #djs-plan-slider {
    display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,330px),1fr))!important;
    gap:18px!important;justify-content:center!important;max-width:1180px!important;
    margin:0 auto!important;overflow:visible!important;
  }
  html body #djs-portal #djs-screen-product #djs-plan-slider:has(> :only-child) {
    grid-template-columns:minmax(0,min(620px,100%))!important;
  }
  html body #djs-portal #djs-screen-product.djs-streaming-service-list-v21810 #djs-plan-slider {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;
  }
  html body #djs-portal #djs-screen-product.djs-streaming-service-list-v21810 #djs-plan-slider:has(> :only-child) {
    grid-template-columns:minmax(0,min(680px,100%))!important;
  }
  html body #djs-portal #djs-screen-product #djs-plan-slider>.djs-stream-row-v21810 {
    width:100%!important;max-width:none!important;min-width:0!important;min-height:122px!important;
    padding:17px 19px!important;grid-template-columns:86px minmax(0,1fr) minmax(112px,auto)!important;
    gap:15px!important;border-radius:17px!important;
    border:1px solid #e0e9f6!important;box-shadow:0 6px 22px #123a6c10!important;
  }
  html body #djs-portal #djs-screen-product #djs-plan-slider>.djs-stream-row-v21810 .djs-stream-row-copy-v21810>b {font-size:16px!important;}
  html body #djs-portal #djs-screen-product #djs-plan-slider>.djs-stream-row-v21810 .djs-stream-row-side-v21810>strong {font-size:20px!important;}
  html body #djs-portal #djs-screen-product .djs-back-bar {width:100%!important;padding-inline:clamp(25px,4vw,72px)!important;box-sizing:border-box!important;}
  html body #djs-portal #djs-screen-product .djs-back-title {font-size:23px!important;}

  /* 6. Safer desktop alignment for transaction/secondary pages. */
  html body #djs-portal :is(#djs-screen-cart,#djs-screen-checkout,#djs-screen-gift-product-detail,#djs-screen-game,#djs-screen-game-detail) .djs-content-wrap {
    width:calc(100% - 76px)!important;max-width:1250px!important;
  }
}

@media (min-width:1024px) and (max-width:1240px){
  html body #djs-portal #djs-screen-product.djs-streaming-service-list-v21810 #djs-plan-slider {grid-template-columns:minmax(0,1fr)!important;max-width:750px!important;}
  html body #djs-portal #djs-screen-chat:not(.is-thread) .djs-mc-home-shell {max-width:990px!important;}
  html body #djs-portal #djs-site-header .djs-logo.djs-logo-image {padding:7px!important;}
}
@media (min-width:1024px) and (max-height:700px){
  html body #djs-smart-search-v4225:not([hidden]) {padding-top:70px!important;}
  html body #djs-smart-search-v4225 .dss-panel {max-height:calc(100dvh - 86px)!important;}
  html body #djs-portal #djs-site-header .djs62-account-popover {max-height:calc(100vh - 90px)!important;}
}
