/* Shared header layout for frontend and block editor preview */

.header-managed-content {
  padding: 0;
}

.header-managed-content > *:first-child,
.editor-styles-wrapper > *:first-child {
  margin-top: 0;
}

.header-managed-content > *:last-child,
.editor-styles-wrapper > *:last-child {
  margin-bottom: 0;
}

.header-managed-content .wp-block-columns,
.editor-styles-wrapper .wp-block-columns {
  margin: 0;
  align-items: center;
}

.header-managed-content .wp-block-column,
.editor-styles-wrapper .wp-block-column {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-managed-content .wp-block-column:nth-child(1),
.editor-styles-wrapper .wp-block-column:nth-child(1) {
  justify-content: flex-start;
}

.header-managed-content .wp-block-column:nth-child(2),
.editor-styles-wrapper .wp-block-column:nth-child(2) {
  justify-content: center;
}

.header-managed-content .wp-block-column:nth-child(3),
.editor-styles-wrapper .wp-block-column:nth-child(3) {
  justify-content: flex-end;
}

.header-managed-content .wp-block-navigation,
.editor-styles-wrapper .wp-block-navigation {
  margin: 0;
}

.header-managed-content .wp-block-group,
.editor-styles-wrapper .wp-block-group,
.header-managed-content .wp-block-columns,
.editor-styles-wrapper .wp-block-columns {
  margin-block-start: 0;
  margin-block-end: 0;
}

.header-managed-content .wp-block-navigation__container,
.editor-styles-wrapper .wp-block-navigation__container {
  flex-wrap: nowrap;
  justify-content: center;
}

.header-managed-content .wp-block-navigation-item__content,
.editor-styles-wrapper .wp-block-navigation-item__content {
  font-weight: 600;
  white-space: nowrap;
}

.header-managed-content .wp-block-site-logo img,
.header-managed-content img.custom-logo,
.editor-styles-wrapper .wp-block-site-logo img,
.editor-styles-wrapper img.custom-logo {
  max-height: 58px;
  width: auto;
}

.paw-admin-header-icons,
.editor-styles-wrapper .paw-admin-header-icons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

.paw-admin-header-icons a,
.editor-styles-wrapper .paw-admin-header-icons a {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2A2420;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.paw-admin-header-icons a:hover,
.editor-styles-wrapper .paw-admin-header-icons a:hover {
  background: #F5EFEB;
  color: #B35F59;
}

.paw-admin-header-icons svg,
.editor-styles-wrapper .paw-admin-header-icons svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

@media (max-width: 980px) {
  .header-managed-content .wp-block-navigation__container,
  .editor-styles-wrapper .wp-block-navigation__container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .paw-admin-header-icons,
  .editor-styles-wrapper .paw-admin-header-icons {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .header-managed-content .wp-block-columns,
  .editor-styles-wrapper .wp-block-columns {
    flex-direction: column;
    align-items: stretch;
  }

  .header-managed-content .wp-block-column,
  .editor-styles-wrapper .wp-block-column {
    justify-content: center !important;
  }

  .header-managed-content .wp-block-navigation__container,
  .editor-styles-wrapper .wp-block-navigation__container {
    flex-wrap: wrap;
  }
}
