.gbcatsearch-trigger[hidden],
.gbcatsearch-modal[hidden] {
  display: none !important;
}

.block-category .cat_h1 h1.h1 {
  margin-bottom: 8px;
}

.block-category .cat_h1 .gbcatsearch-trigger,
.block-category .gbcatsearch-trigger {
  margin: 0 0 16px;
}

.gbcatsearch-open {
  display: inline-block;
  margin: 0;
  padding: 10px 18px;
  border: 0;
  background: #fdd54c;
  color: #000;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.gbcatsearch-open:hover,
.gbcatsearch-open:focus {
  background: #000;
  color: #fff;
  outline: 2px solid #000;
  outline-offset: 3px;
}

.gbcatsearch-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.gbcatsearch-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.55);
}

.gbcatsearch-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1000px;
  height: calc(100vh - 24px);
  max-height: 920px;
  background: #fff;
  padding: 16px 16px 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.gbcatsearch-close {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.gbcatsearch-dialog h2 {
  margin: 0 36px 12px 0;
  color: #222;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
}

.gbcatsearch-body {
  flex: 1 1 auto;
  min-height: 0;
}

.gbcatsearch-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f5f8f6;
}

body.gbcatsearch-lock {
  overflow: hidden;
}
