/* Inter-country wallet watermark — auto-scroll desktop + mobile */
.gtb-flags-wm {
  position: relative;
  width: min(380px, 100%);
  height: 120px;
  margin-left: auto;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  border-radius: 12px;
  /* ensure paint layer so animation runs */
  transform: translateZ(0);
}

.gtb-flags-wm__track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  height: 100%;
  align-items: center;
  gap: 32px;
  animation: gtb-flags-scroll 12s linear infinite; /* was 20–22s — much clearer */
  will-change: transform;
}

@keyframes gtb-flags-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Desktop: even a bit faster */
@media (min-width: 761px) {
  .gtb-flags-wm__track {
    animation-duration: 10s;
  }
}

.gtb-flags-wm__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;   /* do not shrink — needed for -50% loop */
  min-width: 72px;
  opacity: 0.4;
  filter: grayscale(0.15);
}

.gtb-flags-wm__flag {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(139, 102, 45, 0.25);
  box-shadow: 0 4px 12px rgba(52, 37, 17, 0.08);
  background: #f5f0e7;
  display: block;
}

.gtb-flags-wm__code {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #8f6122;
}

.gtb-flags-wm__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(143, 97, 34, 0.55);
  z-index: 1;
}

/* Soft edges */
.gtb-flags-wm::before,
.gtb-flags-wm::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}
.gtb-flags-wm::before {
  left: 0;
  background: linear-gradient(90deg, var(--ivory, #f5f0e7), transparent);
}
.gtb-flags-wm::after {
  right: 0;
  background: linear-gradient(270deg, var(--ivory, #f5f0e7), transparent);
}

/* Desktop: keep animation, slightly faster / wider */
@media (min-width: 761px) {
  .gtb-flags-wm {
    width: min(420px, 38vw);
    height: 128px;
  }
  .gtb-flags-wm__track {
    animation-duration: 20s; /* always running on desktop */
  }
}

@media (max-width: 760px) {
  .gtb-flags-wm {
    width: 100%;
    height: 100px;
    margin: 12px 0 0;
  }
  .gtb-flags-wm__track {
    animation-duration: 18s;
  }
}

/* Only pause if the OS asks for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gtb-flags-wm__track {
    animation: none;
  }
}