/* DjimlyStore Digital 4.2.62.3: final desktop search and messaging layout layer.
 * Scoped to desktop. All data fetching, messaging and financial handlers remain native.
 */
@media (min-width:1024px) {
  /* Header-anchored search, sized to content instead of a central full-screen sheet. */
  html body #djs-smart-search-v4225:not([hidden]) {
    position:fixed!important;inset:0!important;display:block!important;
    padding:0!important;overflow:visible!important;
    background:rgba(6,20,54,.27)!important;backdrop-filter:blur(2px)!important;
    -webkit-backdrop-filter:blur(2px)!important;
    z-index:2147483000!important;
  }
  html body #djs-smart-search-v4225 .dss-panel {
    position:absolute!important;
    left:var(--djs623-search-x,calc(50vw - 330px))!important;
    top:var(--djs623-search-y,103px)!important;
    bottom:auto!important;right:auto!important;
    width:min(660px,calc(100vw - 32px))!important;
    max-width:calc(100vw - 32px)!important;
    height:auto!important;min-height:0!important;
    max-height:min(520px,calc(100dvh - var(--djs623-search-y,103px) - 18px))!important;
    display:flex!important;flex-direction:column!important;
    margin:0!important;border:1px solid #d2e2f8!important;
    border-radius:17px!important;overflow:hidden!important;
    background:#fff!important;color:#142d52!important;
    box-shadow:0 25px 76px rgba(5,20,58,.32)!important;
  }
  html body #djs-smart-search-v4225 .dss-header {
    flex:0 0 auto!important;display:flex!important;align-items:center!important;
    min-height:68px!important;padding:10px 14px!important;
    border-bottom:1px solid #e6edf8!important;
  }
  html body #djs-smart-search-v4225 .dss-field {
    flex:1 1 auto!important;min-width:0!important;
    min-height:46px!important;height:46px!important;
    border-radius:11px!important;background:#f3f7fe!important;
  }
  html body #djs-smart-search-v4225 input[data-dss-input] {font-size:14px!important;}
  html body #djs-smart-search-v4225 .dss-body {
    display:block!important;flex:0 1 auto!important;min-height:0!important;height:auto!important;
    max-height:min(388px,calc(100dvh - var(--djs623-search-y,103px) - 126px))!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    padding:13px 16px 11px!important;background:#fff!important;
  }
  html body #djs-smart-search-v4225 .dss-content {
    min-height:0!important;max-width:none!important;width:100%!important;margin:0!important;
  }
  html body #djs-smart-search-v4225 .dss-section-title {
    font-size:12px!important;margin:5px 0 7px!important;color:#23395a!important;
  }
  html body #djs-smart-search-v4225 .dss-quick-list {
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    margin:0 0 11px!important;column-gap:13px!important;
  }
  html body #djs-smart-search-v4225 .dss-quick {
    min-height:39px!important;padding:7px 4px!important;gap:6px!important;
  }
  html body #djs-smart-search-v4225 .dss-quick-label {font-size:12px!important;}
  html body #djs-smart-search-v4225 .dss-hint {font-size:11px!important;margin:5px 0 7px!important;}
  html body #djs-smart-search-v4225 .dss-results {
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:0 13px!important;margin:0!important;
  }
  html body #djs-smart-search-v4225 .dss-result {
    min-width:0!important;min-height:73px!important;gap:9px!important;
    padding:8px 3px!important;align-items:center!important;
  }
  html body #djs-smart-search-v4225 .dss-result-img {
    width:49px!important;height:54px!important;flex:0 0 49px!important;
    border-radius:9px!important;
  }
  html body #djs-smart-search-v4225 .dss-result-name {font-size:12px!important;}
  html body #djs-smart-search-v4225 .dss-result-price {font-size:11px!important;}
  html body #djs-smart-search-v4225 .dss-chevron {font-size:19px!important;}
  html body #djs-smart-search-v4225 .dss-footer {
    flex:0 0 auto!important;padding:9px 16px 12px!important;
    border-top:1px solid #e8eef9!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:39px!important;font-size:12px!important;border-radius:10px!important;
  }

  /* PC messenger: fixed sidebar + clear thread header + usable composer. */
  html body #djs-portal #djs-screen-chat.djs-message-center.djs623-ready.djs-screen--active {
    --djs623-side-width:clamp(310px,27vw,390px);
    display:flex!important;flex-direction:column!important;
    position:relative!important;box-sizing:border-box!important;
    padding:0 0 0 var(--djs623-side-width)!important;
    height:clamp(540px,calc(100dvh - 122px),1000px)!important;
    min-height:540px!important;max-height:none!important;
    background:#f3f7fd!important;overflow:hidden!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready > .djs623-conversations {
    padding:22px 15px 14px!important;
    background:#fff!important;box-shadow:none!important;
    border-right:1px solid #dbe6f4!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready > .djs-mc-header {
    position:relative!important;width:100%!important;max-width:none!important;
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    flex:0 0 78px!important;min-height:78px!important;height:78px!important;
    padding:0 24px!important;margin:0!important;box-sizing:border-box!important;
    background:#fff!important;border-bottom:1px solid #e1eaf6!important;
    box-shadow:0 2px 7px rgba(23,65,125,.035)!important;
  }
  /* The back arrow is a mobile affordance. Desktop switches threads via the sidebar. */
  html body #djs-portal #djs-screen-chat.djs623-ready.is-thread > .djs-mc-header .djs-mc-back {
    display:none!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready.is-thread > .djs-mc-header .djs-mc-heading {
    position:relative!important;left:auto!important;right:auto!important;
    top:auto!important;bottom:auto!important;transform:none!important;
    max-width:calc(100% - 222px)!important;min-width:0!important;
    margin:0!important;padding:0!important;
    display:flex!important;flex-direction:row!important;align-items:center!important;
    justify-content:flex-start!important;gap:12px!important;
    text-align:left!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready.is-thread .djs-mc-brand-logo {
    display:none!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready.is-thread .djs-mc-heading::before {
    content:"";display:block!important;flex:0 0 45px!important;width:45px!important;height:45px!important;
    border-radius:15px!important;
    background:#e9f3ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231c6dd5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a7.5 7.5 0 0 1-7.5 7.5H6l-3 2v-7.5A7.5 7.5 0 0 1 10.5 6H13'/%3E%3Cpath d='M16 3h5v5m0-5-6.5 6.5'/%3E%3C/svg%3E") center / 23px no-repeat!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready.is-thread .djs-mc-title-button {
    display:inline-flex!important;justify-content:flex-start!important;align-items:center!important;
    margin:0!important;padding:0!important;min-width:0!important;
    max-width:100%!important;text-align:left!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready.is-thread .djs-chat-title {
    font-size:18px!important;line-height:1.25!important;font-weight:820!important;
    letter-spacing:-.015em!important;color:#1c3351!important;
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready.is-thread .djs-mc-thread-actions {
    display:flex!important;position:relative!important;top:auto!important;bottom:auto!important;
    right:auto!important;left:auto!important;align-items:center!important;
    margin:0 0 0 auto!important;gap:4px!important;height:44px!important;max-width:210px!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready.is-thread .djs-mc-action {
    flex:0 0 39px!important;width:39px!important;height:39px!important;
    display:grid!important;place-items:center!important;background:#f4f8ff!important;
    color:#285b9f!important;border:1px solid #e8effa!important;border-radius:11px!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready > .djs-mc-body {
    position:relative!important;flex:1 1 auto!important;min-height:0!important;
    max-height:none!important;width:100%!important;max-width:none!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    border:0!important;border-radius:0!important;box-shadow:none!important;
    background:#f3f7fd!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready.is-thread > .djs-mc-body {
    padding:22px clamp(21px,3vw,44px) 116px!important;
    box-sizing:border-box!important;scrollbar-width:thin!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready.is-thread > .djs-mc-body > .djs-chat-line {
    width:100%!important;max-width:980px!important;
    margin:0 auto 16px!important;box-sizing:border-box!important;
    min-height:0!important;align-items:flex-end!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready.is-thread .djs-mc-msg-stack {
    max-width:min(76%,640px)!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready.is-thread .djs-chat-bubble {
    font-size:14px!important;line-height:1.52!important;padding:12px 15px!important;
    border-radius:14px!important;box-shadow:0 2px 10px rgba(26,55,108,.045)!important;
    overflow-wrap:anywhere!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready.is-thread .djs-mc-day,
  html body #djs-portal #djs-screen-chat.djs623-ready.is-thread .djs-chat-live-note {
    max-width:800px!important;margin-left:auto!important;margin-right:auto!important;
  }
  /* Restore the native composer at a normal desktop width and fixed bottom. */
  html body #djs-portal #djs-screen-chat.djs623-ready.is-thread #djs-chat-input-wrap.djs-mc-composer.is-visible {
    position:absolute!important;left:var(--djs623-side-width)!important;right:0!important;
    bottom:0!important;top:auto!important;
    width:calc(100% - var(--djs623-side-width))!important;max-width:none!important;
    height:89px!important;min-height:89px!important;box-sizing:border-box!important;
    display:flex!important;flex-direction:row!important;align-items:center!important;gap:11px!important;
    padding:14px clamp(17px,2.8vw,42px)!important;margin:0!important;
    background:#fff!important;border-top:1px solid #dae5f3!important;
    box-shadow:0 -6px 25px rgba(30,65,117,.06)!important;z-index:34!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready.is-thread #djs-chat-input-wrap .djs-mc-plus {
    flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;
    display:grid!important;place-items:center!important;background:#eaf3ff!important;
    color:#176bd4!important;border:1px solid #d9e7fa!important;border-radius:13px!important;
    padding:0!important;margin:0!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready.is-thread #djs-chat-input-wrap .djs-mc-input-shell {
    flex:1 1 auto!important;min-width:0!important;max-width:none!important;
    height:53px!important;min-height:53px!important;display:flex!important;
    align-items:center!important;background:#f5f8fd!important;
    border:1px solid #d7e4f5!important;border-radius:14px!important;
    overflow:hidden!important;margin:0!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready.is-thread #djs-chat-input-wrap #djs-chat-input {
    display:block!important;box-sizing:border-box!important;flex:1 1 auto!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    height:51px!important;min-height:51px!important;margin:0!important;
    padding:0 15px!important;background:transparent!important;color:#152f50!important;
    font-size:14px!important;line-height:1.35!important;
    border:0!important;box-shadow:none!important;outline-offset:-3px!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready.is-thread #djs-chat-input-wrap #djs-chat-send {
    display:grid!important;place-items:center!important;flex:0 0 47px!important;
    width:47px!important;height:47px!important;min-width:47px!important;
    padding:0!important;margin:0!important;background:#176adf!important;
    color:#fff!important;border:0!important;border-radius:13px!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready > .djs-mc-tools {
    left:var(--djs623-side-width)!important;right:0!important;
    width:calc(100% - var(--djs623-side-width))!important;
    bottom:89px!important;max-height:min(390px,55vh)!important;
    overflow-y:auto!important;padding:16px 26px!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    box-sizing:border-box!important;z-index:35!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready :is(.djs-mc2-reply-preview,.djs-mc2-recording) {
    left:var(--djs623-side-width)!important;right:0!important;width:calc(100% - var(--djs623-side-width))!important;
    bottom:89px!important;box-sizing:border-box!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready .djs-mc-category-menu {
    left:calc(var(--djs623-side-width) + 20px)!important;right:auto!important;
    top:72px!important;transform:none!important;max-width:300px!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready > .djs-mc2-search-panel {
    position:relative!important;left:0!important;right:auto!important;
    width:100%!important;max-width:100%!important;box-sizing:border-box!important;
    flex:0 0 auto!important;
  }
  html body #djs-portal #djs-screen-chat.djs623-ready:not(.is-thread) > .djs623-chat-empty {
    inset:0 0 0 var(--djs623-side-width)!important;
  }
}
@media (min-width:1024px) and (max-width:1200px) {
  html body #djs-smart-search-v4225 .dss-panel {width:min(600px,calc(100vw - 32px))!important;}
  html body #djs-portal #djs-screen-chat.djs623-ready {--djs623-side-width:320px;}
  html body #djs-portal #djs-screen-chat.djs623-ready > .djs-mc-tools {grid-template-columns:repeat(4,minmax(0,1fr))!important;}
}

/* v4.2.62.4 ROUTER SAFETY: the desktop Messenger may NEVER force itself
   onto another page. The application's .djs-screen--active class is the
   sole authority for screen visibility, even after CSS cache/reordering. */
@media (min-width:1024px) {
  html body #djs-portal > #djs-screen-chat.djs-message-center.djs623-ready:not(.djs-screen--active) {
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
}
