/* DoliPlay Smart Search 1.0.0 - isolated to header search */
.dp-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.dp-premium-search.dp-smart-search{position:relative;display:flex;align-items:center;gap:5px;max-width:710px;width:100%;border:1px solid #d5dce5;border-radius:30px;background:#fff!important;padding:4px 5px 4px 15px;box-shadow:0 1px 4px #0000000d}
.dp-premium-search.dp-smart-search input{min-width:0;flex:1;width:100%;height:38px;background:transparent!important;border:0!important;box-shadow:none!important;color:#111!important;padding:0 4px!important;outline:none;font-size:14px}
.dp-premium-search.dp-smart-search input::placeholder{color:#64748b}
.dp-smart-search button{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;border:0;color:#111}
.dp-smart-ai{gap:5px;background:#dbeafe!important;border-radius:24px;padding:10px 12px;white-space:nowrap;font-weight:650;font-size:12px}
.dp-smart-ai span:first-child{color:#2563eb;font-size:17px}
.dp-smart-submit,.dp-smart-mic{width:38px;height:38px;border-radius:50%;background:#f1f5f9!important}
.dp-smart-search button:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.dp-smart-panel{position:absolute;top:calc(100% + 9px);left:0;right:0;z-index:999;background:#fff;color:#111;border:1px solid #e2e8f0;box-shadow:0 12px 30px #0002;border-radius:14px;padding:16px}
.dp-smart-panel[hidden]{display:none!important}
.dp-smart-panel-title{font-size:16px}.dp-smart-panel-desc{color:#475569;font-size:13px;margin:7px 0 12px}
.dp-smart-topics{display:flex;flex-wrap:wrap;gap:8px}
.dp-smart-topics a{color:#1d4ed8;background:#eff6ff;border:1px solid #bfdbfe;border-radius:20px;padding:8px 12px;text-decoration:none;font-size:13px}
.dp-smart-hint{font-size:12px;color:#475569;margin-top:10px}
@media(max-width:900px){.dp-smart-ai-text{display:none}.dp-smart-ai{padding:8px 11px}}
@media(max-width:560px){.dp-premium-search.dp-smart-search{gap:2px;padding-left:8px;min-width:0}.dp-smart-ai{padding:6px 8px}.dp-smart-submit,.dp-smart-mic{width:30px;height:32px}.dp-premium-search.dp-smart-search input{font-size:12px;height:32px}.dp-smart-panel{min-width:min(90vw,340px)}}

/* 1.0.1: reset inherited theme button styling and enforce a unified pill */
header.dp-premium-top form.dp-premium-search.dp-smart-search{
 box-sizing:border-box!important;display:flex!important;flex-direction:row!important;
 flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;
 gap:6px!important;width:100%!important;max-width:610px!important;min-width:0!important;
 height:52px!important;min-height:52px!important;margin:0 auto!important;
 padding:5px 7px 5px 17px!important;border:1px solid #d6dee8!important;
 border-radius:999px!important;background:#fff!important;box-shadow:0 2px 8px rgba(15,23,42,.06)!important;
 overflow:visible!important
}
header.dp-premium-top form.dp-smart-search input[name="q"]{
 box-sizing:border-box!important;display:block!important;flex:1 1 0!important;
 min-width:0!important;width:0!important;max-width:none!important;
 height:40px!important;margin:0!important;padding:0 6px!important;
 border:0!important;border-radius:0!important;outline:0!important;
 background:transparent!important;box-shadow:none!important;
 color:#111111!important;font-size:14px!important;font-weight:400!important;
}
header.dp-premium-top form.dp-smart-search button{
 box-sizing:border-box!important;position:static!important;float:none!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 auto!important;min-width:0!important;min-height:0!important;
 margin:0!important;border:0!important;outline-offset:2px!important;
 box-shadow:none!important;line-height:1!important;vertical-align:middle!important;
 text-transform:none!important;letter-spacing:normal!important;
}
header.dp-premium-top form.dp-smart-search button.dp-smart-ai{
 height:38px!important;min-height:38px!important;width:auto!important;
 padding:0 14px!important;gap:7px!important;border-radius:999px!important;
 background:#dbeafe!important;color:#111111!important;font-size:12px!important;
 font-weight:650!important;white-space:nowrap!important;
}
header.dp-premium-top form.dp-smart-search button.dp-smart-submit,
header.dp-premium-top form.dp-smart-search button.dp-smart-mic{
 height:38px!important;width:38px!important;padding:0!important;
 border-radius:50%!important;background:#f1f5f9!important;color:#111111!important;
}
header.dp-premium-top form.dp-smart-search button svg{display:block!important;flex:none!important;width:20px!important;height:20px!important}
header.dp-premium-top form.dp-smart-search button:hover{filter:brightness(.97)}
@media(max-width:900px){header.dp-premium-top form.dp-smart-search button.dp-smart-ai{padding:0 10px!important}}
@media(max-width:560px){
 header.dp-premium-top form.dp-premium-search.dp-smart-search{height:44px!important;min-height:44px!important;gap:3px!important;padding:3px 4px 3px 9px!important}
 header.dp-premium-top form.dp-smart-search input[name="q"]{height:34px!important;font-size:12px!important;padding:0 3px!important}
 header.dp-premium-top form.dp-smart-search button.dp-smart-ai{height:32px!important;min-height:32px!important;padding:0 8px!important}
 header.dp-premium-top form.dp-smart-search button.dp-smart-submit,
 header.dp-premium-top form.dp-smart-search button.dp-smart-mic{width:32px!important;height:32px!important}
 header.dp-premium-top form.dp-smart-search button svg{width:17px!important;height:17px!important}
}

/* v1.0.2: mobile only one search control; preserve all other header actions */
header.dp-premium-top .dp-smart-search .dp-smart-mic,
header.dp-premium-top .dp-mobile-search-toggle{display:none!important}
@media(max-width:800px){
 header.dp-premium-top form.dp-premium-search.dp-smart-search{flex:1 1 0!important;min-width:0!important;max-width:none!important}
 header.dp-premium-top form.dp-smart-search button.dp-smart-ai{flex:0 0 auto!important}
 header.dp-premium-top .dp-mobile-actions{flex:0 0 auto!important}
}
@media(max-width:560px){
 header.dp-premium-top form.dp-smart-search .dp-smart-ai-text{display:none!important}
 header.dp-premium-top form.dp-smart-search button.dp-smart-ai{width:32px!important;height:32px!important;min-height:32px!important;padding:0!important}
 header.dp-premium-top form.dp-smart-search button.dp-smart-submit{width:32px!important;height:32px!important}
}

/* Smart Search 1.0.3: logo permanently anchored left on narrow screens.
   Header row 1 = brand + mobile actions; row 2 = full-width search. */
@media (max-width:800px){
  header.dp-premium-top{display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:flex-start!important;column-gap:8px!important;row-gap:8px!important;height:auto!important;min-height:62px!important}
  header.dp-premium-top > .dp-premium-brand{order:0!important;display:flex!important;flex:0 1 auto!important;margin:0 auto 0 0!important;max-width:min(48vw,170px)!important;min-width:0!important;position:relative!important;left:auto!important;right:auto!important;transform:none!important}
  header.dp-premium-top > .dp-premium-brand img{max-width:100%!important;height:auto!important;max-height:34px!important;object-fit:contain!important;object-position:left center!important}
  header.dp-premium-top > .dp-mobile-actions{order:1!important;flex:0 0 auto!important;margin-left:auto!important}
  header.dp-premium-top > form.dp-premium-search.dp-smart-search{order:2!important;flex:1 0 100%!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;box-sizing:border-box!important}
  header.dp-premium-top > .dp-premium-nav{order:3!important}
  header.dp-premium-top > .dp-premium-login{order:3!important}
}
@media(max-width:560px){
  header.dp-premium-top > .dp-premium-brand{max-width:min(52vw,150px)!important}
  header.dp-premium-top > .dp-premium-nav{width:100%!important}
}

/* Smart Search 1.0.4 — one-row adaptive mobile header.
   Do not move brand, chat or bell. Override v1.0.3 wrap layout. */
@media (max-width:800px){
 header.dp-premium-top{
   display:grid!important;
   grid-template-columns:minmax(0,max-content) minmax(0,1fr) max-content!important;
   grid-template-rows:minmax(48px,auto)!important;
   column-gap:clamp(4px,1.2vw,10px)!important;
   row-gap:0!important;
   align-items:center!important;
   flex-wrap:nowrap!important;
   height:auto!important;min-height:62px!important;
   padding:7px clamp(6px,1.5vw,12px)!important;
   box-sizing:border-box!important;
 }
 header.dp-premium-top > .dp-premium-brand{
   grid-column:1!important;grid-row:1!important;order:0!important;
   display:flex!important;min-width:0!important;max-width:clamp(88px,20vw,150px)!important;
   width:auto!important;margin:0!important;justify-self:start!important;
   position:static!important;transform:none!important;
 }
 header.dp-premium-top > .dp-premium-brand img{
   width:auto!important;max-width:100%!important;height:auto!important;max-height:32px!important;object-fit:contain!important;
 }
 header.dp-premium-top > form.dp-premium-search.dp-smart-search{
   grid-column:2!important;grid-row:1!important;order:1!important;
   width:100%!important;max-width:100%!important;min-width:0!important;
   margin:0!important;flex:none!important;justify-self:stretch!important;
   box-sizing:border-box!important;overflow:visible!important;
   padding:3px 4px 3px 7px!important;gap:2px!important;
 }
 header.dp-premium-top > form.dp-smart-search input[name="q"]{
   min-width:0!important;width:0!important;flex:1 1 0!important;
   height:32px!important;font-size:clamp(10px,2.5vw,13px)!important;
   padding:0 2px!important;text-overflow:ellipsis!important;
 }
 header.dp-premium-top > form.dp-smart-search .dp-smart-ai-text{display:none!important}
 header.dp-premium-top > form.dp-smart-search button.dp-smart-ai,
 header.dp-premium-top > form.dp-smart-search button.dp-smart-submit{
   width:30px!important;height:30px!important;min-width:30px!important;
   min-height:30px!important;padding:0!important;border-radius:50%!important;
 }
 header.dp-premium-top > .dp-mobile-actions{
   grid-column:3!important;grid-row:1!important;order:2!important;
   margin:0!important;justify-self:end!important;min-width:0!important;
 }
 header.dp-premium-top > .dp-premium-nav,
 header.dp-premium-top > .dp-premium-login{
   grid-column:1 / -1!important;grid-row:2!important;order:3!important;
 }
}
@media (max-width:420px){
 header.dp-premium-top{grid-template-columns:minmax(0,max-content) minmax(0,1fr) max-content!important;column-gap:4px!important;padding-left:5px!important;padding-right:5px!important}
 header.dp-premium-top > .dp-premium-brand{max-width:clamp(76px,23vw,102px)!important}
 header.dp-premium-top > form.dp-premium-search.dp-smart-search{padding-left:5px!important;padding-right:3px!important}
 header.dp-premium-top > form.dp-smart-search button.dp-smart-ai,
 header.dp-premium-top > form.dp-smart-search button.dp-smart-submit{width:27px!important;min-width:27px!important;height:29px!important;min-height:29px!important}
 header.dp-premium-top > form.dp-smart-search input[name="q"]{font-size:11px!important}
 header.dp-premium-top > form.dp-smart-search input[name="q"]::placeholder{color:transparent!important}
}
