/* ActivateX public marketplace: hard guard for very narrow mobile viewports. */
@media (max-width: 379px) {
  html,
  body,
  #root,
  .app-shell {
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    overflow-x: clip;
  }

  .catalog-page {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip !important;
    padding-top: 14px;
  }

  .catalog-page > .app-container {
    width: calc(100% - 16px) !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-inline: auto !important;
  }

  .catalog-page .marketplace-workspace,
  .catalog-page .workspace-pane,
  .catalog-page .catalog-intro,
  .catalog-page .supplier-search-card,
  .catalog-page .catalog-live-layout,
  .catalog-page .nested-catalog-panel,
  .catalog-page .active-numbers-panel,
  .catalog-page .service-picker,
  .catalog-page .service-picker-popover,
  .catalog-page .service-quick-panel,
  .catalog-page .nested-country-drawer,
  .catalog-page .nested-country-list,
  .catalog-page .country-card,
  .catalog-page .provider-table,
  .catalog-page .active-number-list,
  .catalog-page .number-card {
    width: 100%;
    min-width: 0 !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  .catalog-page .marketplace-workspace > .workspace-switcher {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
  }

  .catalog-page .marketplace-workspace .workspace-switcher button {
    min-width: 0;
    min-height: 48px;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 6px;
    padding-inline: 7px;
  }

  .catalog-page .workspace-switcher-icon {
    width: 28px;
    height: 28px;
  }

  .catalog-page .workspace-switcher strong {
    overflow: hidden;
    font-size: 11px;
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-overflow: ellipsis;
  }

  .catalog-page .workspace-switcher b {
    min-width: 20px;
    height: 20px;
    font-size: 8px;
  }

  .catalog-page .workspace-pane .catalog-intro {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
    padding: 18px 14px !important;
    border-radius: 18px;
  }

  .catalog-page .catalog-intro > div,
  .catalog-page .catalog-intro > div:first-child {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .catalog-page .eyebrow {
    width: auto;
    max-width: 100%;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 13px;
    font-size: 9px;
    line-height: 1.25;
    text-align: left;
    white-space: normal;
  }

  .catalog-page .workspace-pane .catalog-intro h1 {
    width: 100%;
    max-width: 100%;
    margin: 12px 0 8px;
    font-size: clamp(24px, 7.8vw, 28px) !important;
    line-height: 1.06;
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .catalog-page .workspace-pane .catalog-intro p {
    width: 100%;
    max-width: 100%;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .catalog-page .market-stats {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .catalog-page .market-stats span {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    grid-template-columns: 26px minmax(0, 1fr);
    column-gap: 7px;
    padding: 8px;
    overflow: hidden;
  }

  .catalog-page .market-stats span svg {
    width: 26px;
    height: 26px;
    padding: 6px;
  }

  .catalog-page .market-stats small {
    min-width: 0;
    font-size: 7.5px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .catalog-page .market-stats strong {
    min-width: 0;
    max-width: 100%;
    font-size: clamp(12px, 3.8vw, 14px);
    line-height: 1.08;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
  }

  .catalog-page .supplier-search-card {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px;
    padding: 12px;
    overflow: hidden;
    border-radius: 16px;
  }

  .catalog-page .supplier-search-heading {
    min-width: 0;
    gap: 9px;
    align-items: flex-start;
  }

  .catalog-page .supplier-search-heading > span {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 11px;
  }

  .catalog-page .supplier-search-heading strong,
  .catalog-page .supplier-search-heading small {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .catalog-page .supplier-search-field,
  .catalog-page .supplier-search-field input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .catalog-page .catalog-live-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px;
  }

  .catalog-page .nested-catalog-panel,
  .catalog-page .active-numbers-panel {
    overflow: hidden;
    border-radius: 16px;
  }

  .catalog-page .nested-catalog-head,
  .catalog-page .active-numbers-head {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 7px;
  }

  .catalog-page .nested-catalog-head strong,
  .catalog-page .active-numbers-head strong {
    overflow-wrap: anywhere;
  }

  .catalog-page .service-picker-library-trigger {
    min-width: 0;
    grid-template-columns: 28px minmax(0, 1fr) 18px;
    gap: 7px;
    padding-inline: 8px;
  }

  .catalog-page .service-picker-popover {
    right: 0 !important;
    left: 0 !important;
    overflow: hidden;
  }

  .catalog-page .service-picker-option {
    min-width: 0;
    grid-template-columns: 34px minmax(0, 1fr) auto 18px;
    gap: 6px;
  }

  .catalog-page .service-picker-option strong,
  .catalog-page .service-picker-option small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .catalog-page .service-quick-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .catalog-page .service-quick-row,
  .catalog-page .service-picker-row {
    grid-template-columns: minmax(0, 1fr) 32px 32px;
  }

  .catalog-page .nested-service-summary {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .catalog-page .nested-service-summary > span,
  .catalog-page .nested-service-summary .service-summary-limit,
  .catalog-page .nested-service-summary .service-auto-buy {
    grid-column: 1 !important;
    min-width: 0;
  }

  .catalog-page .nested-service-summary > span + span {
    border-top: 1px solid #e5eaf2;
    border-left: 0;
  }

  .catalog-page .nested-results-toolbar {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .catalog-page .nested-results-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .catalog-page .nested-catalog-panel .country-card-row {
    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
    gap: 5px;
  }

  .catalog-page .nested-catalog-panel .country-main {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    grid-template-columns: 34px minmax(0, 1fr) minmax(54px, 68px) 18px !important;
    gap: 5px;
    padding: 7px 3px 7px 7px;
  }

  .catalog-page .nested-catalog-panel .country-main > .country-flag {
    width: 34px;
    height: 28px;
  }

  .catalog-page .nested-catalog-panel .country-name,
  .catalog-page .nested-catalog-panel .country-low {
    min-width: 0;
    max-width: 100%;
  }

  .catalog-page .nested-catalog-panel .country-name strong {
    overflow-wrap: anywhere;
  }

  .catalog-page .nested-catalog-panel .country-card-row > .service-limit-trigger {
    grid-column: 1;
  }

  .catalog-page .nested-catalog-panel .country-auto-buy {
    grid-column: 2;
    width: 100%;
    min-width: 0;
    margin-block: 0;
  }

  .catalog-page .nested-catalog-panel .country-card-row > .favorite-button {
    position: static;
    grid-column: 3;
    align-self: stretch;
  }

  .catalog-page .nested-catalog-panel .provider-row {
    grid-template-columns: minmax(0, 1fr) 48px 44px 60px !important;
    gap: 4px !important;
    padding-inline: 3px;
  }

  .catalog-page .nested-catalog-panel .provider-name,
  .catalog-page .nested-catalog-panel .provider-price,
  .catalog-page .nested-catalog-panel .provider-stock,
  .catalog-page .provider-actions {
    min-width: 0;
    max-width: 100%;
  }

  .catalog-page .nested-catalog-panel .provider-name strong,
  .catalog-page .nested-catalog-panel .provider-price,
  .catalog-page .nested-catalog-panel .provider-stock strong {
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
  }

  .catalog-page .provider-actions {
    grid-template-columns: 28px 28px !important;
    gap: 4px;
  }

  .catalog-page .active-number-table-head {
    display: none !important;
  }

  .catalog-page .active-number-list {
    grid-template-columns: minmax(0, 1fr) !important;
    overflow-x: hidden;
    padding-right: 0;
  }

  .catalog-page :is(.active-numbers-panel, .workspace-numbers) .number-card.number-row-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "head"
      "phone"
      "code"
      "meta"
      "footer" !important;
    overflow: hidden;
  }

  .catalog-page :is(.active-numbers-panel, .workspace-numbers) .number-row-card > * {
    min-width: 0;
    max-width: 100%;
    border-left: 0 !important;
  }

  .catalog-page :is(.active-numbers-panel, .workspace-numbers) .number-row-card .number-card-head,
  .catalog-page :is(.active-numbers-panel, .workspace-numbers) .number-row-card .number-value,
  .catalog-page :is(.active-numbers-panel, .workspace-numbers) .number-row-card .number-meta,
  .catalog-page :is(.active-numbers-panel, .workspace-numbers) .number-row-card footer {
    width: 100%;
    box-sizing: border-box;
  }

  .catalog-page :is(.active-numbers-panel, .workspace-numbers) .number-row-card .number-value,
  .catalog-page :is(.active-numbers-panel, .workspace-numbers) .number-row-card .number-value.code-value,
  .catalog-page :is(.active-numbers-panel, .workspace-numbers) .number-row-card .number-meta,
  .catalog-page :is(.active-numbers-panel, .workspace-numbers) .number-row-card footer {
    border-top: 1px solid var(--line);
  }

  .catalog-page :is(.active-numbers-panel, .workspace-numbers) .number-row-card .number-value strong,
  .catalog-page :is(.active-numbers-panel, .workspace-numbers) .number-row-card .number-meta dd,
  .catalog-page :is(.active-numbers-panel, .workspace-numbers) .number-row-card footer {
    overflow-wrap: anywhere;
  }

  .catalog-page :is(.active-numbers-panel, .workspace-numbers) .number-row-card .number-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-page :is(.active-numbers-panel, .workspace-numbers) .number-row-card footer {
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  .catalog-page .pagination-bar {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 5px;
  }

  .catalog-page .pagination-pages {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .catalog-page .pagination-bar > button,
  .catalog-page .pagination-pages > button {
    min-width: 30px;
    height: 32px;
    padding-inline: 7px;
  }
}
