/* Custom header styles for better layout */
.cds--header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.cds--header__global {
  padding-right: 1rem;
}

/* Fix button alignment and spacing */
.cds--header__global .cds--btn {
  height: 48px !important;
  min-height: 48px !important;
  padding: 0.75rem 1rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.cds--header__global .cds--btn--primary {
  padding: 0.75rem 1rem !important;
}

.cds--header__global .cds--btn--ghost {
  margin-right: 0.5rem;
}

/* Fix icon spacing in buttons */
.cds--header__global .cds--btn svg {
  margin-left: 0.5rem !important;
  margin-right: 0 !important;
}

/* Better approach - target the button content wrapper */
.cds--header__global .cds--btn .cds--btn__icon {
  margin-left: 0.5rem !important;
}

/* Alternative fix for Carbon icon spacing */
.cds--header__global .cds--btn--primary > span {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

/* Ensure buttons don't overflow on smaller screens */
@media (max-width: 672px) {
  .cds--header__global .cds--btn {
    padding: 0.25rem 0.75rem !important;
    min-width: auto;
    height: 28px !important;
    min-height: 28px !important;
  }

  .cds--header__global .cds--btn--ghost {
    margin-right: 0.25rem;
  }
}

/* Fix navigation spacing */
.cds--header__nav {
  margin-left: 1rem;
}

@media (max-width: 1056px) {
  .cds--header__nav {
    margin-left: 0.5rem;
  }
}

/* Hero icon visibility */
@media (min-width: 1056px) {
  .hero-icon {
    display: block !important;
  }
}