/* Pizza's World Core 2.27.123 — Kadence native header search drawer.
   Visual treatment only: keep Kadence's existing open/close, focus and submit logic.
   Scope strictly to the native #search-drawer; never affect #mobile-drawer
   or the homepage hero's own pizzeria/city search. */

body.pw-site-shell #search-drawer > .drawer-overlay {
  background: rgba(20, 35, 28, .34) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

body.pw-site-shell #search-drawer > .drawer-inner {
  position: fixed !important;
  box-sizing: border-box;
  top: clamp(76px, 15vh, 148px) !important;
  bottom: auto !important;
  left: 0 !important;
  right: 0 !important;
  width: min(680px, calc(100vw - 36px)) !important;
  max-width: 680px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: calc(100dvh - 96px) !important;
  margin: 0 auto !important;
  padding: 14px 20px 24px !important;
  overflow-y: auto;
  color: #244C38 !important;
  background: #fbf7f0 !important;
  border: 1px solid #e5d8c7;
  border-radius: 16px;
  box-shadow: 0 22px 65px rgba(17, 32, 23, .22);
}

body.pw-site-shell #search-drawer .drawer-header {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  padding: 0 !important;
  margin: 0 0 4px !important;
  min-height: 42px;
  background: transparent !important;
}

body.pw-site-shell #search-drawer .search-toggle-close {
  position: static !important;
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  flex: 0 0 40px;
  width: 40px !important;
  height: 40px !important;
  min-height: 40px;
  margin: 0 !important;
  padding: 8px !important;
  border: 1px solid #e4d6c7 !important;
  border-radius: 50% !important;
  background: #f3eade !important;
  color: #244c38 !important;
  cursor: pointer;
  opacity: 1 !important;
}
body.pw-site-shell #search-drawer .search-toggle-close:hover {
  background: #eaddcc !important;
  color: #C62828 !important;
}
body.pw-site-shell #search-drawer .search-toggle-close:focus-visible {
  outline: 3px solid #c62828 !important;
  outline-offset: 2px;
}
body.pw-site-shell #search-drawer .search-toggle-close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

body.pw-site-shell #search-drawer .drawer-content {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}
body.pw-site-shell #search-drawer .drawer-content::before {
  content: "Search Pizza’s World";
  display: block;
  margin: 0 0 15px;
  color: #244c38;
  font-family: var(--pw-font-heading,serif);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 700;
  line-height: 1.3;
}

body.pw-site-shell #search-drawer form.search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100% !important;
  max-width: none !important;
  min-height: 52px;
  margin: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
  border: 1px solid #cfc1ae !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}
body.pw-site-shell #search-drawer form.search-form:focus-within {
  border-color: #244c38 !important;
  box-shadow: 0 0 0 3px rgba(36, 76, 56, .16) !important;
}
body.pw-site-shell #search-drawer .search-form label {
  display: block;
  flex: 1;
  width: 100%;
  min-width: 0;
  margin: 0;
}
body.pw-site-shell #search-drawer input.search-field,
body.pw-site-shell #search-drawer input.search-field:focus {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  min-height: 50px;
  padding: 11px 52px 11px 17px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #244C38 !important;
  font-size: 17px;
  line-height: 1.5;
  box-shadow: none !important;
  outline: none !important;
}
body.pw-site-shell #search-drawer input.search-field::placeholder {
  color: #766b61 !important;
  opacity: 1 !important;
}
body.pw-site-shell #search-drawer .kadence-search-icon-wrap {
  color: #C62828 !important;
  fill: currentColor;
}
body.pw-site-shell #search-drawer .kadence-search-icon-wrap svg {
  color: #C62828 !important;
  fill: currentColor;
}

@media (max-width: 600px) {
  body.pw-site-shell #search-drawer > .drawer-inner {
    top: 70px !important;
    width: calc(100vw - 24px) !important;
    padding: 12px 16px 20px !important;
    border-radius: 14px;
  }
  body.pw-site-shell #search-drawer .drawer-content::before {
    font-size: 21px;
    margin-bottom: 12px;
  }
  body.pw-site-shell #search-drawer input.search-field {
    font-size: 16px;
  }
}
@media (max-height: 540px) {
  body.pw-site-shell #search-drawer > .drawer-inner {
    top: 56px !important;
    max-height: calc(100dvh - 64px) !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.pw-site-shell #search-drawer .drawer-inner,
  body.pw-site-shell #search-drawer .search-toggle-close {
    transition: none !important;
  }
}
