/* The desktop select is unchanged. Phones use that same native select over
   a letter-language icon beside the wordmark; no separate label/select rows. */
.rv-mobile-language-icon,
.rv-mobile-review-wordmark { display: none; }

@media (max-width: 720px) {
  .rv-mobile-brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
  }
  .topbar.rv-mobile-language-host {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    gap: 10px;
  }
  .topbar.rv-mobile-language-host .rv-mobile-brand-row {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
  }
  .rv-mobile-language-host .rv-mobile-brand-row > .brand {
    grid-row: auto;
    grid-column: auto;
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100vw - 104px);
    justify-self: auto;
    white-space: nowrap;
    overflow-wrap: normal;
  }
  .rv-mobile-language-host .rv-mobile-brand-row > .brand,
  .rv-mobile-language-host .rv-mobile-brand-row > .entry-brand {
    font-size: 1.2rem;
    font-weight: 850;
    letter-spacing: .12em;
    white-space: nowrap;
  }
  .rv-mobile-language-host .rv-mobile-brand-row .brand-mark,
  .rv-mobile-language-host .rv-mobile-brand-row .rockvalid-brandmark {
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, .55))
            drop-shadow(0 0 16px rgba(125, 211, 252, .32));
  }
  .topbar.rv-mobile-language-host .mode-toggle,
  .site-header .topbar.rv-mobile-language-host .product-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    justify-content: center;
  }
  .entry-header.rv-mobile-language-host {
    padding-block: 16px;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
  }
  .review-header.rv-mobile-language-host .rv-mobile-brand-row { margin-bottom: 8px; }
  .rv-mobile-language-host .rv-mobile-brand-row > .review-brand {
    min-width: 0;
    gap: 9px;
  }
  .rv-mobile-language-host .rv-mobile-brand-row .review-brand .eyebrow,
  .rv-mobile-language-host .rv-mobile-brand-row .rv-mobile-language-control > label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  .rv-mobile-language-host .rv-mobile-brand-row .rv-mobile-review-wordmark {
    display: inline;
    color: #f7fbff;
    font-size: 1.2rem;
    font-weight: 850;
    letter-spacing: .12em;
    white-space: nowrap;
  }
  .rv-mobile-language-host .rv-mobile-brand-row .rv-mobile-language-control {
    position: relative;
    display: block;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    grid-row: auto;
    grid-column: auto;
    border: 0;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, .55);
    color: #e2e8f0;
    background: rgba(15, 23, 42, .65);
  }
  .rv-mobile-language-host .rv-mobile-brand-row .rv-mobile-language-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }
  .rv-mobile-language-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .rv-mobile-language-host .rv-mobile-brand-row .rv-mobile-language-control .select-wrap {
    position: absolute;
    inset: 0;
    width: 44px;
    height: 44px;
  }
  .rv-mobile-language-host .rv-mobile-brand-row .rv-mobile-language-control .select-wrap::after {
    display: none;
  }
  .rv-mobile-language-host .rv-mobile-brand-row .rv-mobile-language-control select {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    font-size: 16px;
    opacity: 0;
    cursor: pointer;
  }
  .rv-mobile-language-host .rv-mobile-brand-row .rv-mobile-language-control:focus-within {
    outline: 3px solid #7dd3fc;
    outline-offset: 3px;
  }
  .entry-header.rv-mobile-language-host .rv-mobile-language-control {
    box-shadow: inset 0 0 0 1px #888;
    background: #fff;
    color: #272626;
  }
  .entry-header.rv-mobile-language-host .rv-mobile-language-control:focus-within { outline-color: #007e73; }
}
