/*
 * Header links to running campaign pages (desktop nav + mobile menu), styled
 * like the theme's "Prisijungti" link with a sale "%" badge. Loaded as a
 * remote stylesheet BEFORE the theme CSS, hence the id-scoped selectors.
 */
#header .ss-header-buttons {
  --ss-header-accent: #e8573e;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  vertical-align: middle;
  /* the sign-in block brings its own left spacing; match its gap to the cart */
  margin-right: -11px;
}

#header .ss-header-buttons .ss-header-buttons__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px 3px 3px;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  color: #949494;
  font-size: 14px;
  line-height: 20px;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}

#header .ss-header-buttons .ss-header-buttons__link:hover,
#header .ss-header-buttons .ss-header-buttons__link:focus {
  border-color: var(--ss-header-accent);
  color: var(--ss-header-accent);
}

#header .ss-header-buttons .ss-header-buttons__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ss-header-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transition: transform .2s ease;
}

#header .ss-header-buttons .ss-header-buttons__link:hover .ss-header-buttons__icon {
  transform: rotate(-12deg) scale(1.08);
}

/* Mobile menu: rows above "Prisijungti" */
#header .ss-header-buttons--mobile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin: 8px 0 0;
}

#header .ss-header-buttons--mobile:empty {
  display: none;
}

#mobile_top_menu_wrapper .js-top-menu-bottom .ss-header-buttons--mobile .ss-header-buttons__link {
  display: inline-flex;
  align-self: flex-start;
  width: auto;
  max-width: calc(100% - 52px);
  margin: 4px 0 4px 26px; /* badge lines up with the menu items above */
  color: #232323;
  font-size: 14px;
  text-transform: uppercase;
  white-space: normal;
}
