/* Search component styles extracted from components.css */

.search-toggle {
  cursor: pointer;
}

/* --- Updated Search Drawer Styles --- */
.search-drawer {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 152px;
  /* Adjust for your header */
  z-index: 1000;
  width: 100vw;
  max-width: 100vw;
  background: #fff;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  box-shadow:
    0 20px 40px -20px rgba(0, 0, 0, 0.08),
    /* Only falls below, not above */
    inset 0 8px 16px -6px rgba(0, 0, 0, 0.1);
  min-height: 142px;
  overflow: visible;
  opacity: 0;
  transition: opacity 0.36s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.search-drawer.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  margin-block-start: -4px;
}

.search-drawer .search-container {
  width: 85vw;
  max-width: 1336px;
  min-height: 60px;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: box-shadow 0.2s;
  overflow: hidden;
  margin-top: 44px;
}

/* Make sure all column and inside wrappers follow the pill radius */
.search-container .wp-block-column {
  width: 100%;
  border-radius: 0px !important;
  margin: 0;
}

.search-container .wp-block-search__inside-wrapper {
  background: transparent;
  box-shadow: none;
  position: relative;
  border: none;
  margin: 0;
  display: block;
  align-items: center;
  width: 100%;
}

/* Input and button as before */
.search-container input[type="search"] {
  background: none;
  border-radius: 8px;
  border: 1px solid var(--Brand-Gray-3, #c2c2c2);
  background: var(--Brand-White, #fff);
  outline: none;
  font-size: 1.2rem;
  color: #222222;
  padding: 0.8em;
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

.search-container .wp-block-search__button {
  background: none;
  border: none;
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.search-container .wp-block-search__button svg {
  display: none !important;
}

.search-container .wp-block-search__button::before {
  content: "";
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  background: url("/wp-content/themes/keena-twentytwentyfive/blocks/icon-block/icons/Icons=dark_magnifying-glass.svg") no-repeat center/contain;
  vertical-align: middle;
}

.search-container input[type="search"]::placeholder {
  color: #787878;
  opacity: 1;
  font-size: 1.1rem;
}

/* Chrome, Safari, Opera, Edge */
.search-container input[type="search"]::-webkit-search-clear-button {
  display: none;
  -webkit-appearance: none;
}

/* Hide for old Edge and IE */
.search-container input[type="search"]::-ms-clear {
  display: none;
}

/* Firefox (usually doesn't show, but for safety) */
.search-container input[type="search"]::-moz-search-clear {
  display: none;
}

/* Responsive adjustments migrated to bp-tablet.css & bp-mobile.css (top offset, pointer events). */

/* Search results page */

