@media (max-width: 700px) {
  .home-page details[data-home-steam][open] {
    background: var(--surface);
  }

  .catalog-page.home-page details.home-steam-details[data-home-steam][open] > summary {
    min-height: 60px !important;
    gap: 10px;
    padding: 10px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    border-radius: 15px 15px 0 0;
    background: var(--surface-soft) !important;
    transition: none;
  }

  .home-page details[data-home-steam][open] .home-steam-body { padding: 0 !important; }

  /* Match the homepage layer that applies the generic widget border. */
  @layer shop-front-page {
    .home-page [data-home-steam][open] #steam-topup.steam-widget {
      margin: 0 !important;
      padding: 0 !important;
      border: 0 !important;
      border-radius: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
      transition: none !important;
    }
  }

  .home-page details[data-home-steam] .steam-widget-head { display: none; }
  .home-page details[data-home-steam] #steam-topup .steam-widget-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px !important;
    padding: 14px 14px 16px !important;
    margin: 0 !important;
  }

  .home-page details[data-home-steam] #steam-topup :is(.steam-widget-setup, .steam-widget-fields) {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px !important;
  }

  .home-page details[data-home-steam] #steam-topup .steam-widget-label-row {
    min-height: 0;
    margin-bottom: 6px;
  }

  .home-page details[data-home-steam] #steam-topup .steam-widget-field > label {
    min-height: 0;
    margin-bottom: 6px;
  }

  .home-page details[data-home-steam] #steam-topup .steam-widget-help-link { min-height: 28px; }
  .home-page details[data-home-steam] #steam-topup.steam-widget .steam-widget-field input {
    height: 48px !important;
    font-size: 16px !important;
  }

  .home-page details[data-home-steam] #steam-topup :is(.steam-widget-login-status, .steam-widget-range) {
    min-height: 0;
    margin-top: 6px;
  }

  .home-page details[data-home-steam] #steam-topup .steam-widget-payments { margin: 0 !important; }
  .home-page details[data-home-steam] #steam-topup .steam-widget-payments legend { margin-bottom: 8px; }

  .home-page details[data-home-steam] #steam-topup .steam-widget-methods {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .home-page details[data-home-steam] #steam-topup .steam-widget-payments .steam-widget-method {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    gap: 4px;
    min-height: 80px !important;
    padding: 7px !important;
  }

  .home-page details[data-home-steam] #steam-topup .steam-widget-method-top {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: 18px;
    margin: 0;
  }

  .home-page details[data-home-steam] #steam-topup .steam-widget-method-top > :is(img, i) {
    font-size: 16px;
    width: 18px;
    height: 18px;
    object-fit: contain;
  }

  .home-page details[data-home-steam] #steam-topup .steam-widget-method-top .steam-widget-selected {
    width: 14px;
    height: 14px;
  }

  .home-page details[data-home-steam] #steam-topup .steam-widget-method > strong { font-size: 11px !important; }
  .home-page details[data-home-steam] #steam-topup .steam-widget-method > small {
    margin: 0;
    max-width: none;
    line-height: 1.25;
    text-align: start !important;
    overflow-wrap: normal;
  }

  .home-page details[data-home-steam] #steam-topup .steam-widget-fee-label {
    position: static;
    display: block !important;
    width: auto;
    height: auto;
    overflow: visible;
    clip-path: none;
  }

  .home-page details[data-home-steam] #steam-topup .steam-widget-summary { padding: 12px !important; }
  .home-page details[data-home-steam] #steam-topup .steam-widget-summary h2 { margin-bottom: 8px; }
  .home-page details[data-home-steam] #steam-topup .steam-widget-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
  }

  .home-page details[data-home-steam] #steam-topup .steam-widget-total > strong { font-size: 24px !important; }
  .home-page details[data-home-steam] #steam-topup .steam-widget-submit {
    margin-top: 12px;
    scroll-margin-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}
