/* ==========================================================================
   Desktop Search Popup — "Search Product" Header Bar
   Task: 86ew4y0vd
   ========================================================================== */

/* Header bar inside suggestions wrapper */
.dgwt-wcas-suggestions-wrapp .search-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  margin-bottom: 0;
  border-bottom: 1px solid #e1e3e5;
  grid-column: 1 / -1;
  grid-row: 1;
}

.dgwt-wcas-suggestions-wrapp .search-popup-header .search-popup-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #353638;
  margin: 0;
  line-height: 24px;
}

.dgwt-wcas-suggestions-wrapp .search-popup-header .search-popup-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #1D1D1F;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.dgwt-wcas-suggestions-wrapp .search-popup-header .search-popup-close:hover {
  opacity: 1;
}

/* When header is present, shift grid rows down */
.dgwt-wcas-suggestions-wrapp.has-search-header {
  grid-template-rows: auto auto auto;
}

.dgwt-wcas-suggestions-wrapp.has-search-header .dgwt-wcas-section-categories {
  grid-row: 2;
}

.dgwt-wcas-suggestions-wrapp.has-search-header .dgwt-wcas-section-blog {
  grid-row: 3;
}

.dgwt-wcas-suggestions-wrapp.has-search-header .dgwt-wcas-section-products {
  grid-row: 2 / span 2;
}

/* Hide header bar on mobile/tablet overlay */
@media (max-width: 1099px) {
  .dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestions-wrapp .search-popup-header {
    display: none;
  }
}
