/* =========================================================
 * MEGURU - WordPress block widget compatibility
 *
 * SANGO 1.6 was designed for classic widgets. Current WordPress stores
 * default sidebar widgets as blocks, whose markup does not contain
 * .widgettitle / #searchform / #s / #searchsubmit. Keep SANGO's visual
 * language while accepting the current block-widget markup.
 * ======================================================= */
.sidebar .widget_block > .wp-block-heading,
.sidebar .widget_block > .wp-block-group > .wp-block-group__inner-container > .wp-block-heading,
.sidebar .widget_block .wp-block-group__inner-container > .wp-block-heading:first-child,
.sidebar .widget_search .wp-block-search__label {
  display: block;
  margin: 0;
  padding: 7px 13px;
  background-color: #c8e4ff;
  color: #6bb6ff;
  font-family: "Quicksand", sans-serif;
  font-size: 1.2em;
  font-weight: bold;
  line-height: 1.5;
}

.sidebar .widget_block > .wp-block-group,
.sidebar .widget_block > .wp-block-group > .wp-block-group__inner-container {
  margin: 0;
  padding: 0;
}

.sidebar .widget_block ul,
.sidebar .widget_block ol {
  margin: 0;
  padding-left: 0;
}

.sidebar .widget_block ul li {
  margin: 0;
  list-style: none;
  font-weight: bold;
}

.sidebar .widget_block ul li a {
  display: block;
  padding: 7px;
  color: #626262;
  text-decoration: none;
}

.sidebar .widget_block ul li a:hover {
  background: #efefef;
}

/* Current WordPress Search block -> SANGO 1.6 search-widget appearance. */
.sidebar .widget_search.wp-block-search,
.sidebar .widget_search .wp-block-search {
  background: transparent;
}

.sidebar .widget_search .wp-block-search__inside-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 400px;
  margin: 0;
  padding: 0;
}

.sidebar .widget_search .wp-block-search__input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 45px;
  margin: 0;
  padding: 0 58px 0 12px;
  border: 0;
  border-bottom: solid 1px #efefef;
  border-radius: 3px;
  background: #fff;
  outline: none;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.15), 0 3px 3px -2px rgba(0, 0, 0, 0.15);
  color: #5c6b80;
  line-height: 45px;
  transition: 0.3s ease-in-out;
  -webkit-appearance: none;
}

.sidebar .widget_search .wp-block-search__input:focus {
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.sidebar .widget_search .wp-block-search__button {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  flex: 0 0 52px;
  width: 52px;
  min-width: 52px;
  height: 45px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  border-bottom: solid 1px rgba(0, 0, 0, 0.1);
  border-radius: 0 3px 3px 0;
  background-color: #6bb6ff;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  line-height: 45px;
  text-align: center;
  white-space: nowrap;
  word-break: keep-all;
}

/* Block widgets use h2 instead of SANGO's h4.widgettitle. */
.sidebar .widget_block .wp-block-heading + ul,
.sidebar .widget_block .wp-block-heading + ol,
.sidebar .widget_block .wp-block-heading + .wp-block-latest-comments {
  margin-top: 0;
}
