/* REWAA 39.2 — Spacious desktop navigation, clearer ticker, and configurable social links. */
.announcement-top.rw2-announcement {
  display: block;
  min-height: 44px;
  padding: 0;
  text-align: initial;
  font-size: 12.5px;
  line-height: 1.45;
  background: #091426;
  color: #e7eff8;
}
.rw2-topbar-inner {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding-inline: clamp(12px, 2vw, 30px);
}
.rw2-announcement .ticker-viewport {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
.rw2-announcement .ticker-track {
  width: max-content;
  animation-duration: 40s;
}
.rw2-announcement .ticker-group {
  min-width: 100vw;
  justify-content: space-around;
}
.rw2-announcement.has-social .ticker-group {
  min-width: calc(100vw - 290px);
}
.rw2-announcement .ticker-item {
  gap: 9px;
  padding: 11px clamp(14px, 1.45vw, 27px);
  font-size: 12.5px;
  line-height: 1.4;
  color: #e7eff8;
  border-left-color: rgba(255,255,255,.09);
}
.rw2-announcement .ticker-item svg { flex: 0 0 auto; width: 16px; height: 16px; }
.rw2-announcement-message {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  padding: 12px 10px;
  font-size: 12.5px;
}
.rw2-social-links {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.rw2-social-title,
.rw2-mobile-social > span {
  margin-inline-end: 3px;
  color: #edf5fc;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.rw2-social-link {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 5px;
  background: #fff;
  color: #1477a4;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.rw2-social-link svg { width: 16px; height: 16px; }
.rw2-social-link:hover {
  transform: translateY(-2px);
  background: #eaf8fe;
  color: #0b4e77;
  box-shadow: 0 4px 12px rgba(0,0,0,.16);
}
.rw2-social-link:focus-visible {
  outline: 2px solid #6fcdf4;
  outline-offset: 3px;
}

/* Refine the existing shopping icons without changing their destinations or behavior. */
.ref33-header .header-actions .icon-btn:not(.menu-toggle) {
  border: 1px solid #e1e9f3;
  border-radius: 10px;
  background: #fff;
  color: #334c6c;
  box-shadow: 0 1px 2px rgba(9,20,38,.035);
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.ref33-header .header-actions .icon-btn:not(.menu-toggle) svg {
  width: 19px;
  height: 19px;
}
.ref33-header .header-actions .icon-btn:not(.menu-toggle):hover {
  background: #f2f8fc;
  border-color: #b8d8e8;
  color: #0d6c98;
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(9,20,38,.07);
}
.ref33-header .action-count,
.ref33-header .cart-count {
  min-width: 18px;
  height: 18px;
  border: 2px solid #fff;
  font-size: 10px;
  line-height: 1;
}
.ref33-header .cart-btn svg { width: 18px; height: 18px; }

/* Desktop: keep the brand and shopping controls on row one; give category links a full, spacious row. */
@media (min-width: 1101px) {
  .ref33-header .header-row {
    height: auto;
    min-height: 70px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding-top: 10px;
    padding-bottom: 0;
  }
  .ref33-header .brand {
    order: 1;
    flex: 0 0 auto;
    min-width: max-content;
    gap: 9px;
    margin-block: 0 8px;
  }
  .ref33-header .brand-words strong { font-size: 19px; }
  .ref33-header .brand-words small { font-size: 8px; letter-spacing: .32em; }
  .ref33-header .logo-mark { width: 40px; height: 40px; }
  .ref33-header .header-actions {
    order: 2;
    flex: 0 0 auto;
    min-width: 0;
    margin-right: auto;
    margin-block: 0 8px;
    gap: 6px;
  }
  .ref33-header .header-actions > * { flex-shrink: 0; }
  .ref33-header .ref33-search-trigger {
    flex: 0 0 auto;
    width: clamp(165px, 15vw, 220px);
    max-width: 220px;
    min-width: 165px;
    height: 40px;
    padding-inline: 11px;
    gap: 8px;
    font-size: 12px;
  }
  .ref33-header .ref33-search-placeholder { max-width: 132px; }
  .ref33-header .ref33-search-trigger kbd { display: inline-flex; font-size: 9px; }
  .ref33-header .tech-btn { font-size: 12px; padding: 9px 12px; gap: 7px; }
  .ref33-header .icon-btn { width: 40px; height: 40px; }
  .ref33-header .cart-btn { min-height: 42px; padding-inline: 14px; gap: 8px; font-size: 12px; }
  .ref33-header .desktop-nav {
    order: 3;
    flex: 0 0 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(5px, .65vw, 12px);
    padding: 7px 0 10px;
    border-top: 1px solid #edf1f6;
    overflow: visible;
  }
  .ref33-header .desktop-nav > a {
    flex: 0 0 auto;
    min-width: max-content;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    padding: 9px clamp(8px, .75vw, 13px);
    border-radius: 9px;
    font-size: 13px;
    line-height: 1.5;
  }
  .ref33-header .desktop-nav > a:hover { background: #f3f7fc; }
  .ref33-header .desktop-nav > .rw1-more { flex: 0 0 auto; min-width: max-content; }
  .ref33-header .rw1-more > summary {
    padding: 9px 12px;
    gap: 6px;
    border-radius: 9px;
    font-size: 13px;
  }
  .ref33-header .rw1-more-list { z-index: 80; }
}

/* Keep the existing payment logos, presented as one calm capsule inspired by the supplied reference. */
.ref33-footer .footer-bottom .payments.payment-images {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 11px;
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
  padding: 11px 17px;
  border: 1px solid #e8edf4;
  border-radius: 999px;
  background: #fff;
}
.ref33-footer .footer-bottom .payment-images > span {
  flex: 0 0 58px;
  width: 58px;
  height: 34px;
  padding: 2px !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: transparent !important;
}
.ref33-footer .footer-bottom .payment-images img { object-fit: contain; }

/* Mobile/tablet: retain the existing compact action row and expose social links in the menu instead. */
@media (max-width: 1100px) {
  .rw2-topbar-inner { min-height: 40px; padding-inline: 0; gap: 0; }
  .rw2-social-links { display: none; }
  .rw2-announcement.has-social .ticker-group { min-width: 100vw; }
  .rw2-announcement .ticker-item { padding: 9px 17px; font-size: 11.5px; gap: 7px; }
  .ref33-footer .footer-bottom .payments.payment-images { width: 100%; border-radius: 22px; gap: 7px; padding: 10px 8px; }
  .ref33-footer .footer-bottom .payment-images > span { flex-basis: 48px; width: 48px; height: 30px; }
  .rw2-announcement-message { padding: 10px 12px; font-size: 11.5px; }
  .ref33-header .header-row { height: var(--header-h); min-height: 0; flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; }
  .ref33-header .brand,
  .ref33-header .desktop-nav,
  .ref33-header .header-actions { order: initial; }
  .rw2-mobile-social {
    display: block;
    padding: 14px 0 12px;
    border-top: 1px solid #edf1f6;
  }
  .rw2-mobile-social > span { display: block; margin: 0 0 9px; color: #526983; }
  .rw2-mobile-social > div { display: flex; flex-wrap: wrap; gap: 8px; }
}
@media (min-width: 1101px) {
  .rw2-mobile-social { display: none; }
}
@media (max-width: 480px) {
  .announcement-top.rw2-announcement { min-height: 38px; }
  .rw2-topbar-inner { min-height: 38px; }
  .rw2-announcement .ticker-item { padding-inline: 14px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .rw2-social-link { transition: none; }
}
