/* Important declarations in the home theme have elevated specificity. */
@layer ro-mobile-labels {
  @media (max-width: 767px) {
    html[lang="ro"] main .hp-guide-shortcuts > a {
      white-space: normal !important;
    }

    html[lang="ro"] :is(main .pfx-app-promo, main .regional-stores, #pf-site-footer)
        a.pf-store-link[href="/ro/app/ios/"] .pf-store-copy strong {
      font-size: clamp(10px, 3vw, 12px) !important;
      white-space: normal !important;
      overflow-wrap: normal !important;
      word-break: normal !important;
    }
  }
}

@media (max-width: 767px) {
  html[lang="ro"] main .hp-guide-shortcuts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  html[lang="ro"] main .hp-guide-shortcuts > a {
    min-width: 0;
    padding-inline: 6px;
    line-height: 1.2;
    text-align: center;
  }

  html[lang="ro"] :is(main .pfx-app-promo, main .regional-stores, #pf-site-footer)
      a.pf-store-link[href="/ro/app/ios/"] {
    gap: 6px;
    padding-inline: 8px;
  }

  html[lang="ro"] :is(main .pfx-app-promo, main .regional-stores, #pf-site-footer)
      a.pf-store-link[href="/ro/app/ios/"] .pf-store-copy {
    min-width: 0;
  }

  html[lang="ro"] .pf-country-picker a[aria-current="page"] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 1px;
  }

  html[lang="ro"] .pf-country-picker a[aria-current="page"] .pf-country-row-flag {
    grid-area: 1 / 1 / 3;
    align-self: center;
  }

  html[lang="ro"] .pf-country-picker a[aria-current="page"] .pf-country-name {
    grid-area: 1 / 2;
  }

  html[lang="ro"] .pf-country-picker a[aria-current="page"] .pf-country-current {
    grid-area: 2 / 2;
    justify-self: start;
  }
}
