.pvs-section-template-country-contact-mosaic .pvs-country-contact-mark-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}
:where(.pvs-section-template-country-contact-mosaic .pvs-country-contact-mark) {
  display: block;
  flex-shrink: 0;
  width: 48px;
  height: 32px;
  margin: 0;
  overflow: hidden;
}
.pvs-section-template-country-contact-mosaic .pvs-country-contact-mark :is(img, picture) {
  display: block;
  width: 100%;
  height: 100%;
}
.pvs-section-template-country-contact-mosaic .pvs-country-contact-mark-heading > :is(h1, h2, h3, h4) {
  min-width: 0;
}

/* One turn for both the governed background layer and the flag faces. It starts
   at full speed on mouseover and decelerates into the back face: no ease-in, no
   delay, so the first frames already show the flag turning. */
.pvs-section-template-country-contact-mosaic [data-pvs-country-flag] > :is(.pvs-country-flag-turn, .intl-flex-visual-background) {
  border-radius: inherit;
  transform-origin: center;
  transform: perspective(450px) rotateY(0deg);
  transition: transform 180ms cubic-bezier(0, 0, .2, 1) 0s;
}
.pvs-section-template-country-contact-mosaic .pvs-country-flag-turn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.pvs-section-template-country-contact-mosaic :is(.pvs-country-flag-front, .pvs-country-flag-back) {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backface-visibility: hidden;
}
.pvs-section-template-country-contact-mosaic .pvs-country-flag-front > :is(picture, .pvs-logo-crop) {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
/* The renderer emits the item's back color or its site default; without one the
   back stays transparent over the item's own background, as before. */
.pvs-section-template-country-contact-mosaic .pvs-country-flag-back {
  display: grid;
  place-items: center;
  background-color: var(--pvs-country-flag-back-color, transparent);
  transform: rotateY(180deg) translateZ(1px);
}
.pvs-section-template-country-contact-mosaic .pvs-country-flag-back > span {
  max-width: 90%;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: #071177;
  overflow-wrap: anywhere;
}
.pvs-section-template-country-contact-mosaic [data-pvs-country-flag][data-pvs-flag-open] > :is(.pvs-country-flag-turn, .intl-flex-visual-background) {
  transform: perspective(450px) rotateY(180deg);
}
@media (prefers-reduced-motion: reduce) {
  .pvs-section-template-country-contact-mosaic [data-pvs-country-flag] > :is(.pvs-country-flag-turn, .intl-flex-visual-background) {
    transition: none;
  }
}
