:host {
  display: block;
  width: 100%;
  --header-skeleton-bg: var(--siteheader-skeleton-bg, #e8edf2);
  --header-skeleton-shine: var(--siteheader-skeleton-shine,
          rgba(255, 255, 255, 0.65));
  --header-skeleton-radius: var(--siteheader-skeleton-radius, 0.4rem);
  --header-skeleton-gap: var(--siteheader-skeleton-gap, 1.2rem);
  --header-skeleton-padding-x: var(--siteheader-skeleton-padding-x, 1.6rem);
  --header-skeleton-padding-y: var(--siteheader-skeleton-padding-y, 1.2rem);
  --header-skeleton-border-color: var(--siteheader-skeleton-border-color,
          #d9e1e8);
  --header-skeleton-mobile-height: var(--siteheader-skeleton-mobile-height,
          6.4rem);
  --header-skeleton-top-row-height: var(--siteheader-skeleton-top-row-height,
          7.2rem);
  --header-skeleton-bottom-row-height: var(--siteheader-skeleton-bottom-row-height,
          6.4rem);
}

.header-skeleton {
  width: 100%;
  box-sizing: border-box;
  border-bottom: 0.1rem solid var(--header-skeleton-border-color);
  background: var(--siteheader-skeleton-background, #fff);
}

.mobile-layout,
.tablet-desktop-layout {
  width: 100%;
  box-sizing: border-box;
}

.mobile-row,
.top-row,
.bottom-row {
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding-left: var(--header-skeleton-padding-x);
  padding-right: var(--header-skeleton-padding-x);
}

/* -------------------------------------------------------------------------- */
/* Skeleton blocks                                                            */
/* -------------------------------------------------------------------------- */
.skel {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--header-skeleton-bg);
}

.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--header-skeleton-shine), transparent);
  animation: header-skeleton-shimmer 1.4s infinite;
}

.skel-logo {
  width: 11.2rem;
  height: 2.8rem;
  border-radius: var(--header-skeleton-radius);
}

.skel-icon-button {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
}

.skel-chip {
  width: 10rem;
  height: 3.6rem;
  border-radius: 1.8rem;
}

.skel-pill {
  width: 7.2rem;
  height: 3.6rem;
  border-radius: 1.8rem;
}

.skel-menu-button {
  width: 12rem;
  height: 4rem;
  border-radius: 0.4rem;
}

.skel-search {
  width: min(100%, 36rem);
  height: 4rem;
  border-radius: 2rem;
}

/* -------------------------------------------------------------------------- */
/* Mobile                                                                     */
/* -------------------------------------------------------------------------- */
.mobile-layout {
  display: block;
}

.mobile-row {
  justify-content: space-between;
  min-height: var(--header-skeleton-mobile-height);
  padding-top: var(--header-skeleton-padding-y);
  padding-bottom: var(--header-skeleton-padding-y);
}

/* -------------------------------------------------------------------------- */
/* Tablet / Desktop                                                           */
/* -------------------------------------------------------------------------- */
.tablet-desktop-layout {
  display: none;
}

.top-row {
  min-height: var(--header-skeleton-top-row-height);
  padding-top: var(--header-skeleton-padding-y);
  padding-bottom: var(--header-skeleton-padding-y);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: var(--header-skeleton-gap);
  align-items: center;
}

.top-row-left,
.top-row-center,
.top-row-right,
.bottom-row-left,
.bottom-row-right {
  display: flex;
  align-items: center;
}

.top-row-left {
  justify-content: flex-start;
  gap: var(--header-skeleton-gap);
  min-width: 0;
}

.top-row-center {
  justify-content: center;
}

.top-row-right {
  justify-content: flex-end;
  gap: var(--header-skeleton-gap);
  min-width: 0;
}

.bottom-row {
  min-height: var(--header-skeleton-bottom-row-height);
  justify-content: space-between;
  gap: var(--header-skeleton-gap);
  padding-top: 0.8rem;
  padding-bottom: 1.2rem;
}

.bottom-row-left {
  justify-content: flex-start;
  flex: 0 0 auto;
}

.bottom-row-right {
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
}

.bottom-row-right .skel-search {
  margin-left: auto;
}

/* -------------------------------------------------------------------------- */
/* Breakpoints                                                                */
/* -------------------------------------------------------------------------- */
/* Tablet and up */
@media screen and (min-width: 768px) {
  .mobile-layout {
    display: none;
  }
  .tablet-desktop-layout {
    display: block;
  }
}
/* Desktop */
@media screen and (min-width: 1200px) {
  :host {
    --header-skeleton-padding-x: var(--siteheader-skeleton-padding-x-desktop, 2.4rem);
    --header-skeleton-top-row-height: var(--siteheader-skeleton-top-row-height-desktop,
            8rem);
    --header-skeleton-bottom-row-height: var(--siteheader-skeleton-bottom-row-height-desktop,
            6.8rem);
  }
  .skel-logo {
    width: 13rem;
    height: 3rem;
  }
  .skel-search {
    width: min(100%, 42rem);
  }
}
@keyframes header-skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .skel::after {
    animation: none;
  }
}