/* ==================================================
   SEARCH – UberMenu + Google CSE (CLEAN FINAL)
   ================================================== */


/* --------------------------------------------------
   1. Kontener po kliknięciu lupy
--------------------------------------------------- */

.ubermenu-searchform {
  display: none;
  background: #f3e9c6;
  padding: 12px 16px;
  align-items: center;
  justify-content: center;
}

.ubermenu-searchform.is-open {
  display: flex;
}


/* --------------------------------------------------
   2. Wrapper Google CSE
--------------------------------------------------- */

.ubermenu-searchform .gsc-control-searchbox-only {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}


/* --------------------------------------------------
   3. Usuń branding Google
--------------------------------------------------- */

.gsc-branding,
.gcsc-branding,
.gsc-above-wrapper-area {
  display: none !important;
}


/* --------------------------------------------------
   4. Główna ramka (TABLE)
--------------------------------------------------- */

.gsc-search-box {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;

  background: #fff;
  border: 1px solid #4a1d1d;
  border-radius: 4px;
  overflow: hidden;
}


/* --------------------------------------------------
   5. Komórki tabeli
--------------------------------------------------- */

.gsc-search-box td {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  vertical-align: middle;
}


/* --------------------------------------------------
   6. Input – wyśrodkowany pionowo
--------------------------------------------------- */

.gsc-input-box {
  background: transparent !important;
}

.gsc-input-box input.gsc-input {
  height: 40px !important;
  line-height: 40px !important;
  width: 100% !important;

  padding: 0 12px !important;
  font-size: 16px !important;

  border: none !important;
  outline: none !important;
  box-shadow: none !important;

  background: transparent !important;
  background-image: none !important; /* usuń logo Google */
  color: #000;
}


/* --------------------------------------------------
   7. Przycisk lupy
--------------------------------------------------- */

.gsc-search-button {
  width: 48px;
}

.gsc-search-button button {
  width: 48px;
  height: 40px !important;

  background: #4a1d1d !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

.gsc-search-button button:hover {
  background: #5c2626 !important;
}


/* Ikona SVG */
.gsc-search-button svg {
  width: 14px;
  height: 14px;
  fill: #fff !important;
}


/* --------------------------------------------------
   8. Usuń przycisk X (clear) + jego komórkę
--------------------------------------------------- */

.gsc-clear-button,
td.gsc-clear-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
}


/* --------------------------------------------------
   9. Fokus UX
--------------------------------------------------- */

.gsc-search-box:focus-within {
  border-color: #c8b37a !important;
}


/* --------------------------------------------------
   10. KLUCZOWE: zabicie #main table { margin-bottom }
--------------------------------------------------- */

#main #menu-item-117937 table.gsc-search-box {
  margin-bottom: 0 !important;
}


/* --------------------------------------------------
   11. UberMenu – usuń zbędne odstępy
--------------------------------------------------- */

#menu-item-117937,
#menu-item-117937 > ul.ubermenu-content-block,
#menu-item-117937 li.widget,
#menu-item-117937 .wgs_wrapper {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
/* ==================================================
   UberMenu – usuń padding widgeta TYLKO dla searcha
   ================================================== */

#menu-item-117937 .ubermenu-widget {
  padding: 0 !important;
}

.ubermenu-content-block.ubermenu-widget-area {
    margin: 0 !important;
    padding: 0 !important;
}

/* UberMenu – search box bez żółtego tła */
#menu-item-117937 {
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    line-height: normal !important;
    background: transparent !important;
}

#menu-item-117937.ubermenu-item-header {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
#menu-item-117937 {
    min-height: 0 !important;
}
#menu-item-117937 .wgs_wrapper {
    margin: 0 !important;
    padding: 0 !important;
    display: block;
}
.widget.widget_wgs_widget.ubermenu-widget.ubermenu-item-header {
    height: auto !important;
}
#menu-item-117937 input.gsc-input {
height: 100% !important;}