/* R15: search suggestions, support panel, welcome dialog, search results */

/* Search dialog suggestions */

.dt15-search-panel__prompt{
  margin:14px 2px 0;
  color:var(--dt15-muted);
  font-size:13px;
  line-height:1.5;
}

.dt15-search-panel__results{
  margin-top:14px;
  max-height:min(54vh,420px);
  overflow-y:auto;
  overscroll-behavior:contain;
}

.dt15-search-panel__results[hidden],
.dt15-search-panel__all[hidden],
.dt15-search-panel__prompt[hidden]{
  display:none;
}

.dt15-search-suggest{
  display:grid;
  gap:4px;
}

.dt15-search-suggest__group{
  margin:8px 0 0;
  padding:0 2px;
  color:var(--dt15-muted);
  font-size:11px;
  font-weight:800;
  letter-spacing:.09em;
  line-height:1.4;
  text-transform:uppercase;
}

.dt15-search-suggest__group:first-child{
  margin-top:0;
}

.dt15-search-suggest a{
  display:flex;
  align-items:center;
  gap:12px;
  min-height:52px;
  padding:8px 10px;
  border-radius:10px;
  color:var(--dt15-ink);
  text-decoration:none;
}

.dt15-search-suggest a:hover,
.dt15-search-suggest a:focus-visible{
  background:#f4f8f8;
  color:var(--dt15-teal);
}

.dt15-search-suggest img{
  width:40px;
  height:40px;
  flex:0 0 40px;
  border:1px solid var(--dt15-line);
  border-radius:8px;
  background:#eef4fb;
  object-fit:contain;
}

.dt15-search-suggest__copy{
  min-width:0;
  display:grid;
  gap:2px;
}

.dt15-search-suggest__copy strong{
  overflow-wrap:anywhere;
  font-size:14px;
  font-weight:650;
  line-height:1.35;
}

.dt15-search-suggest__copy small{
  color:var(--dt15-muted);
  font-size:12px;
  line-height:1.35;
}

.dt15-search-panel__empty{
  margin:4px 2px;
  color:var(--dt15-muted);
  font-size:14px;
  line-height:1.5;
}

.dt15-search-panel__all{
  margin:10px 2px 0;
}

.dt15-search-panel__all a{
  color:var(--dt15-teal);
  font-size:13px;
  font-weight:700;
  text-decoration:none;
}

.dt15-search-panel__all a:hover{
  text-decoration:underline;
}

/* Search results page */

.dt15-search-page{
  box-sizing:border-box;
  width:min(100% - 48px,1234px);
  margin:0 auto;
  padding:26px 0 10px;
}

.dt15-search-page__breadcrumb{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:18px;
  color:#5f7380;
  font-size:13px;
  line-height:1.3;
}

.dt15-search-page__breadcrumb a{
  color:inherit;
  text-decoration:none;
}

.dt15-search-page__breadcrumb a:hover{
  color:var(--dt15-teal);
}

.dt15-search-page__breadcrumb strong{
  color:#10232d;
  font-weight:600;
}

.dt15-search-page__head{
  padding-bottom:22px;
  border-bottom:1px solid var(--dt15-line);
}

.dt15-search-page__eyebrow{
  margin:0 0 6px;
  color:var(--dt15-muted);
  font-size:11px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.dt15-search-page h1{
  margin:0 0 18px;
  color:var(--dt15-ink);
  font-size:38px;
  font-weight:700;
  letter-spacing:-.02em;
  line-height:1.1;
}

.dt15-search-page__form{
  display:flex;
  gap:10px;
  max-width:620px;
}

.dt15-search-page__form input{
  width:100%;
  min-width:0;
  min-height:48px;
  flex:1;
  padding:12px;
  border:1px solid #899aaa;
  border-radius:6px;
  background:#fff;
  color:var(--dt15-ink);
  font:inherit;
  font-size:16px;
}

.dt15-search-page__form button{
  min-height:48px;
  padding:0 22px;
  border:0;
  border-radius:6px;
  background:var(--dt15-ink);
  color:#fff;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}

.dt15-search-page__form button:hover{
  background:var(--dt15-teal);
}

.dt15-search-page__count{
  margin:14px 0 0;
  color:var(--dt15-muted);
  font-size:14px;
  line-height:1.5;
}

.dt15-search-page__count strong{
  color:var(--dt15-ink);
}

.dt15-search-page__groups{
  display:grid;
  gap:30px;
  padding-top:26px;
}

.dt15-search-group h2{
  display:flex;
  align-items:baseline;
  gap:10px;
  margin:0 0 10px;
  color:var(--dt15-ink);
  font-size:20px;
  font-weight:700;
  line-height:1.2;
}

.dt15-search-group h2 span{
  color:var(--dt15-muted);
  font-size:12px;
  font-weight:700;
}

.dt15-search-group ul{
  margin:0;
  padding:0;
  display:grid;
  gap:8px;
  list-style:none;
}

.dt15-search-row{
  display:flex;
  align-items:center;
  gap:14px;
  min-height:70px;
  padding:10px 14px;
  border:1px solid var(--dt15-card-line);
  border-radius:10px;
  background:#fff;
  color:var(--dt15-ink);
  text-decoration:none;
  transition:border-color .16s,box-shadow .16s;
}

.dt15-search-row:hover,
.dt15-search-row:focus-visible{
  border-color:#b9d3dc;
  box-shadow:0 8px 20px #071b3b0f;
}

.dt15-search-row__thumb{
  width:52px;
  height:52px;
  flex:0 0 52px;
  border:1px solid var(--dt15-line);
  border-radius:8px;
  background:#eef4fb;
  object-fit:contain;
}

.dt15-search-row__copy{
  min-width:0;
  display:grid;
  gap:3px;
}

.dt15-search-row__copy strong{
  overflow-wrap:anywhere;
  font-size:15px;
  font-weight:650;
  line-height:1.35;
}

.dt15-search-row__copy small{
  color:var(--dt15-muted);
  font-size:12px;
  line-height:1.4;
}

.dt15-search-row__arrow{
  margin-left:auto;
  color:var(--dt15-teal);
  font-size:16px;
}

.dt15-search-page__empty{
  margin:34px 0 20px;
  padding:26px;
  border:1px dashed var(--dt15-line);
  border-radius:12px;
  background:#fff;
  color:var(--dt15-muted);
  font-size:15px;
  line-height:1.6;
}

/* Support widget */

.dt15-support__toggle{
  position:fixed;
  right:20px;
  bottom:20px;
  z-index:90;
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:48px;
  padding:0 18px;
  border:0;
  border-radius:999px;
  background:var(--dt15-ink);
  color:#fff;
  font:inherit;
  font-size:13px;
  font-weight:750;
  box-shadow:0 12px 30px #071b3b40;
  cursor:pointer;
}

.dt15-support__toggle:hover{
  background:var(--dt15-teal);
}

.dt15-support__toggle svg{
  flex:none;
}

.single-product .dt15-support__toggle{
  bottom:calc(88px + env(safe-area-inset-bottom));
}

.dt15-support-panel{
  position:fixed;
  inset:auto 16px 86px auto;
  width:min(380px,calc(100vw - 32px));
  max-width:none;
  max-height:calc(100dvh - 120px);
  margin:0;
  padding:0;
  border:0;
  border-radius:16px;
  background:#fff;
  color:var(--dt15-ink);
  box-shadow:0 24px 64px #071b3b40;
  overflow:hidden;
}

.single-product .dt15-support-panel{
  bottom:calc(150px + env(safe-area-inset-bottom));
}

.dt15-support-panel::backdrop{
  background:#071b3b26;
}

.dt15-support-panel__content{
  position:relative;
  max-height:calc(100dvh - 120px);
  padding:26px 22px 22px;
  overflow-y:auto;
}

.dt15-support-panel__close{
  position:absolute;
  top:10px;
  right:10px;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:#eef3f6;
  color:var(--dt15-ink);
  font-size:22px;
  line-height:1;
  cursor:pointer;
}

.dt15-support-panel__eyebrow{
  margin:0 0 6px;
  color:var(--dt15-teal);
  font-size:11px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.dt15-support-panel h2{
  margin:0 0 8px;
  padding-right:36px;
  font-family:var(--dt15-font-display);
  font-size:25px;
  font-weight:600;
  line-height:1.15;
}

.dt15-support-panel__intro{
  margin:0 0 18px;
  color:var(--dt15-muted);
  font-size:13px;
  line-height:1.5;
}

.dt15-support-panel__section{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--dt15-line);
}

.dt15-support-panel__section h3,
.dt15-support-panel__form h3{
  margin:0 0 10px;
  color:var(--dt15-ink);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.dt15-support-panel__faq{
  display:grid;
  gap:6px;
}

.dt15-support-panel__faq a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:42px;
  padding:0 12px;
  border:1px solid var(--dt15-card-line);
  border-radius:8px;
  color:var(--dt15-ink);
  font-size:14px;
  font-weight:600;
  text-decoration:none;
}

.dt15-support-panel__faq a:hover{
  border-color:#b9d3dc;
  color:var(--dt15-teal);
}

.dt15-support-panel__faq svg{
  flex:none;
  color:var(--dt15-teal);
}

.dt15-support-panel__channels{
  display:grid;
  gap:6px;
}

.dt15-support-panel__channels a{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:34px;
  overflow-wrap:anywhere;
  color:#33475c;
  font-size:13px;
  line-height:1.4;
  text-decoration:none;
}

.dt15-support-panel__channels a:hover{
  color:var(--dt15-teal);
}

.dt15-support-panel__channels svg{
  flex:none;
}

.dt15-support-panel__form{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--dt15-line);
}

.dt15-support-panel__form textarea{
  box-sizing:border-box;
  width:100%;
  padding:10px 12px;
  border:1px solid #899aaa;
  border-radius:8px;
  color:var(--dt15-ink);
  font:inherit;
  font-size:14px;
  line-height:1.45;
  resize:vertical;
}

.dt15-support-panel__form button{
  width:100%;
  min-height:44px;
  margin-top:10px;
  border:0;
  border-radius:8px;
  background:var(--dt15-orange);
  color:#1b1200;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

.dt15-support-panel__form button:hover{
  filter:brightness(.96);
}

/* Welcome dialog */

.dt15-welcome{
  width:min(520px,100% - 32px);
  max-width:none;
  max-height:calc(100dvh - 48px);
  margin:auto;
  padding:0;
  border:0;
  border-radius:18px;
  background:#fff;
  color:var(--dt15-ink);
  box-shadow:0 30px 80px #071b3b47;
  overflow:hidden;
}

.dt15-welcome::backdrop{
  background:#071b3b99;
}

.dt15-welcome__content{
  position:relative;
  padding:34px 34px 28px;
  background:
    radial-gradient(circle at 100% 0,#fff5cf 0,transparent 46%),
    #fff;
}

.dt15-welcome__close{
  position:absolute;
  top:12px;
  right:12px;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:50%;
  background:#eef3f6;
  color:var(--dt15-ink);
  font-size:24px;
  line-height:1;
  cursor:pointer;
}

.dt15-welcome__eyebrow{
  margin:0 0 10px;
  color:#846a00;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.dt15-welcome__content h2{
  margin:0 0 14px;
  padding-right:40px;
  font-family:var(--dt15-font-display);
  font-size:clamp(28px,4vw,36px);
  font-weight:600;
  letter-spacing:-.02em;
  line-height:1.12;
}

.dt15-welcome__body{
  margin:0 0 22px;
  color:#33475c;
  font-size:15px;
  line-height:1.6;
}

.dt15-welcome__actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
}

.dt15-welcome__cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 22px;
  border-radius:8px;
  background:var(--dt15-orange);
  color:#1b1200;
  font-size:14px;
  font-weight:800;
  text-decoration:none;
}

.dt15-welcome__cta:hover{
  filter:brightness(.96);
}

.dt15-welcome__dismiss{
  min-height:46px;
  padding:0 14px;
  border:0;
  background:transparent;
  color:var(--dt15-teal);
  font:inherit;
  font-size:13px;
  font-weight:700;
  text-decoration:underline;
  cursor:pointer;
}

.dt15-welcome__note{
  margin:18px 0 0;
  padding-top:14px;
  border-top:1px solid var(--dt15-line);
  color:var(--dt15-muted);
  font-size:11px;
  line-height:1.45;
}

@media (max-width:760px){
  .dt15-search-panel__prompt{
    display:none;
  }

  .dt15-search-panel__content{
    grid-template-rows:auto auto;
  }

  .dt15-search-panel__results,
  .dt15-search-panel__all{
    grid-column:1/-1;
    margin:0;
  }

  .dt15-search-panel__results{
    max-height:min(52dvh,380px);
    padding:4px 2px 0;
    border-top:1px solid var(--dt15-line);
  }

  .dt15-search-panel.is-expanded{
    max-height:calc(100dvh - 40px);
    border-radius:16px;
    overflow-y:auto;
  }

  .dt15-search-panel.is-expanded .dt15-search-panel__content{
    padding:8px 10px 12px;
  }

  .dt15-search-panel.is-expanded .dt15-search-panel__close{
    justify-self:start;
  }

  .dt15-search-page{
    width:calc(100% - 32px);
    padding-top:20px;
  }

  .dt15-search-page h1{
    font-size:30px;
  }

  .dt15-search-page__form{
    flex-direction:column;
    gap:8px;
  }

  .dt15-search-page__form button{
    width:100%;
  }

  .dt15-search-page__groups{
    gap:24px;
  }

  .dt15-search-row{
    align-items:flex-start;
    padding:10px 12px;
  }

  .dt15-search-row__thumb{
    width:44px;
    height:44px;
    flex-basis:44px;
  }

  .dt15-support__toggle{
    right:14px;
    bottom:calc(14px + env(safe-area-inset-bottom));
    min-height:44px;
    padding:0 15px;
  }

  .single-product .dt15-support__toggle{
    bottom:calc(84px + env(safe-area-inset-bottom));
  }

  .dt15-support-panel{
    inset:auto 10px calc(70px + env(safe-area-inset-bottom)) 10px;
    width:auto;
    max-height:calc(100dvh - 96px);
  }

  .single-product .dt15-support-panel{
    bottom:calc(140px + env(safe-area-inset-bottom));
  }

  .dt15-support-panel__content{
    max-height:calc(100dvh - 96px);
    padding:24px 18px 18px;
  }

  .dt15-welcome__content{
    padding:28px 22px 22px;
  }

  .dt15-welcome__actions{
    align-items:stretch;
    flex-direction:column;
  }

  .dt15-welcome__cta,
  .dt15-welcome__dismiss{
    width:100%;
  }
}

@media (prefers-reduced-motion:reduce){
  .dt15-search-row,
  .dt15-support__toggle{
    transition:none;
  }
}
