/* Shared bounds for localized content and ISO currency amounts. */
.lang-switch { flex-shrink: 0; }
.lang-switch a { white-space: nowrap; }
.currency-totals { display: grid; gap: .2rem; }
.currency-totals strong { max-width: 100%; overflow-wrap: anywhere; }
.bilingual-block { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.offer-currencies { margin: 1rem 0; padding: .75rem 1rem; border: 1px solid var(--line); }
.offer-currencies legend { font-weight: 700; }
.offer-currencies small { display: block; margin-bottom: .5rem; }

@media (max-width: 1100px) {
  .bilingual-block { grid-template-columns: 1fr; }
}

html[lang="it"] .landing-copy h1,
html[lang="it"] .product-gateway-card h2 {
  overflow-wrap: break-word;
}
html[lang="it"] .landing-copy h1 { text-wrap: balance; }

@media (min-width: 981px) and (max-width: 1250px) {
  html[lang="it"] .desktop-nav { gap: 2px !important; }
  html[lang="it"] .desktop-nav a { padding-inline: 7px !important; }
  html[lang="it"] .header-inner { gap: 12px !important; }
}
@media (max-width: 560px) {
  .verify-actions > .lang-switch { justify-self: center; }
  .site-header .lang-switch a { padding-inline: 4px !important; }
}

@media (max-width: 820px) {
  html[lang="it"] .landing-hero-image span {
    background: linear-gradient(90deg, rgba(244,245,249,.98), rgba(244,245,249,.94) 54%, rgba(244,245,249,.72)) !important;
  }
  html[lang="it"][data-theme="dark"] .landing-hero-image span {
    background: linear-gradient(90deg, rgba(4,8,23,.98), rgba(4,8,23,.94) 54%, rgba(4,8,23,.72)) !important;
  }
}

.admin-star-rating label { position: relative; }
.admin-star-rating input { inset: 0 auto auto 0; width: 1px; height: 1px; padding: 0; }
.admin-star-rating input:focus-visible + span { outline: 2px solid currentColor; outline-offset: 2px; }

@media (max-width: 980px) {
  .admin-sidebar:not(.open) { visibility: hidden; }
}
@media (max-width: 820px) {
  .calculator-page-section .calc-grid { grid-template-columns: minmax(0, 1fr); }
  .calculator-page-section .calc-grid > * { min-width: 0; }
}

.verification-card > .brand { display: inline-flex; margin-bottom: .65rem; }
.verification-card > .micro { display: block; }
.verify-actions > .lang-switch { margin-top: .45rem; }
.offer-currencies .check-row { color: var(--ink); }

@media (max-width: 560px) {
  .amount-control output {
    min-width: 0;
    white-space: nowrap;
    font-size: clamp(1.25rem, 6.7vw, 1.75rem) !important;
  }
  .calculator-page-section .term-scale span { font-size: 10px; }
  .calculator-result strong {
    font-size: clamp(1.55rem, 7vw, 2.4rem) !important;
    overflow-wrap: anywhere;
  }
  .calculator-result b { overflow-wrap: anywhere; }
}
