/* === Search Overlay === */
.uovmr-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transform-origin: center center; /* появление из середины */
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 9999;
    opacity: 0;
}

/* ===== Overlay для поиска (белый фон, мобильная версия) ===== */
@media (max-width: 768px) {
  
  /* Контейнер overlay */
  .uovmr-search-overlay {
    align-items: flex-start;
    padding-top: 60px;
  }

  /* Блок с формой внутри overlay */
  .uovmr-search-box {
    margin-top: 60px;
  }
}


.uovmr-search-overlay.open {
    transform: scale(1);
    opacity: 1;
}

/* Контейнер поиска */
.uovmr-search-box {
    position: relative;
    width: 90%;
    max-width: 600px;
}

/* Кнопка закрытия в overlay (крестик сверху справа) */
.uovmr-search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    font-weight: 300; /* тоньше */
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

/* Форма */
.uovmr-search-box .search-form {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ccc;
}

/* Поле ввода */
.uovmr-search-box input[type="search"] {
    flex: 1;
    width: 100%;
    border: none !important;        /* убиваем все дефолтные рамки */
    border-bottom: 2px solid #000;  /* рисуем своё подчёркивание */
    font-size: 18px;
    padding: 10px 0;                /* без лишних отступов справа/слева */
    outline: none;
    background: none;
    box-shadow: none;               /* убираем тени в Chrome/Safari */
    border-radius: 0;               /* убираем скругления */
}

/* Кнопка-лупа в белом overlay (рисуем CSS'ом) */
.uovmr-search-box .search-submit {
    position: relative;
    width: 28px;      /* тот же базовый размер, что и у синей */
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

/* круг */
.uovmr-search-box .search-submit::before {
    content: "";
    position: absolute;
    width: 70%;              /* диаметр круга */
    height: 70%;
    border: 2px solid #8f8f8f;  /* чёрная обводка */
    border-radius: 50%;
    top: 0;
    left: 0;
}

/* ручка */
.uovmr-search-box .search-submit::after {
    content: "";
    position: absolute;
    width: 43%;              /* длина ручки */
    height: 2px;             /* толщина ручки */
    background: #8f8f8f;        /* чёрная ручка */
    transform: rotate(47deg);
    bottom: 3px;
    right: 1px;
}


