/* magyarpolc.hu - contact + rating block in the header top bar. */

.mp-header-contact__wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  flex: 0 0 auto !important;
}

.mp-header-contact__item,
.mp-header-contact__rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mp-header-contact__stars {
  display: flex;
  align-items: center;
}

.mp-header-contact__star {
  --c-star: #ecb911;
  position: relative;
  width: 14px;
  height: 14px;
  background-color: var(--c-star);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.26 6.85.62-5.17 4.54 1.53 6.7L12 16.9l-6.11 3.22 1.53-6.7L2.25 8.88l6.85-.62z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.26 6.85.62-5.17 4.54 1.53 6.7L12 16.9l-6.11 3.22 1.53-6.7L2.25 8.88l6.85-.62z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.mp-header-contact__star::before {
  content: none;
}

.mp-header-contact__percent {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--c-ink);
}

.mp-header-contact__descr {
  margin: 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--c-muted);
}

/* ---------- Header layout ---------- */

@media (min-width: 768px) {
  .header-top {
    height: auto !important;
    min-height: 108px;
    flex-wrap: nowrap !important;
    align-items: stretch;
    column-gap: 10px;
  }

  .header-top > div {
    height: auto !important;
  }

  .header-top > .site-name-wrapper,
  .header-top > .mp-header-contact__wrapper,
  .header-top > div.search {
    align-self: center !important;
  }

  .header-top > .site-name-wrapper,
  .header-top > .mp-header-contact__wrapper {
    flex: 0 0 auto !important;
  }

  .header-top > div.search {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .header-top > .navigation-buttons {
    flex: 0 0 auto !important;
    align-self: stretch !important;
  }

  .header-top > .navigation-buttons .top-nav-button {
    height: 100% !important;
  }
}

@media (max-width: 1199px) {
  .mp-header-contact__wrapper {
    display: none;
  }
}