/* -------------------------------------------------------------------------
   A2TDEV responsive foundation — upgrade 01 / 10
   Purpose: one final, page-wide small-device safety layer. It is loaded after
   page CSS so mobile pages share the same viewport, spacing, table, form,
   header, nav, notification and overflow contract.
   ------------------------------------------------------------------------- */

:root {
  --a2t-mobile-gutter: clamp(14px, 4.4vw, 20px);
  --a2t-mobile-gutter-sm: clamp(10px, 3.4vw, 14px);
  --a2t-mobile-radius-xl: 24px;
  --a2t-mobile-radius-lg: 20px;
  --a2t-mobile-radius-md: 16px;
  --a2t-mobile-header: 76px;
  --a2t-mobile-touch: 44px;
  --a2t-mobile-blue: #155dfc;
  --a2t-mobile-text: #07111f;
  --a2t-mobile-muted: #667085;
  --a2t-mobile-line: #e5eaf2;
  --a2t-mobile-soft: #f6f9fe;
  --a2t-mobile-surface: #ffffff;
  --a2t-mobile-shadow: 0 18px 44px rgba(15, 23, 42, .08);
}

html,
body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

.x-content,
main,
section,
article,
aside,
header,
footer,
nav,
form,
fieldset,
[class*="layout"],
[class*="grid"],
[class*="shell"],
[class*="container"],
[class*="wrapper"],
[class*="panel"],
[class*="card"] {
  min-width: 0;
}

@media (max-width: 760px) {
  html {
    font-size: 15px;
    scroll-padding-top: calc(var(--a2t-mobile-header) + 10px);
    overflow-x: hidden !important;
  }

  body {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
    background: var(--a2t-mobile-surface) !important;
    color: var(--a2t-mobile-text) !important;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 15px;
  }

  html[data-theme="dark"] body {
    background: #05070d !important;
    color: #f8fafc !important;
  }

  body.a2t-nav-open,
  body.a2t-modal-open,
  body.a2t-notification-open {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
  }

  .x-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding-inline: 0 !important;
    overflow-x: clip !important;
  }

  .container,
  .container-fluid,
  .a2t-container,
  .a2t-page-shell,
  .a2t-section-shell,
  .a2t-cart-shell,
  .a2t-account-page,
  .a2t-legal-page,
  .a2t-pr-shell,
  .a2t-pay-shell,
  .a2cw-layout,
  .dashboard-container,
  .profile-container,
  .search-container,
  .completed-projects-container,
  .edit-review-container,
  .payment-container,
  .order-confirmation-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-inline: auto !important;
    padding-left: var(--a2t-mobile-gutter) !important;
    padding-right: var(--a2t-mobile-gutter) !important;
  }

  .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
  }

  .row > * {
    min-width: 0 !important;
  }

  /* Top shell ------------------------------------------------------------- */
  .a2t-site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 3000 !important;
    width: 100% !important;
    min-width: 0 !important;
    background: rgba(255, 255, 255, .96) !important;
    border-bottom: 1px solid var(--a2t-mobile-line) !important;
    backdrop-filter: saturate(1.15) blur(16px) !important;
    -webkit-backdrop-filter: saturate(1.15) blur(16px) !important;
    transform: translateY(0) !important;
  }

  html[data-theme="dark"] .a2t-site-header {
    background: rgba(5, 8, 15, .96) !important;
    border-bottom-color: #1e293b !important;
  }

  .a2t-site-header.is-hidden:not(.is-menu-open) {
    transform: translateY(-100%) !important;
  }

  .a2t-nav-shell {
    width: 100% !important;
    max-width: 100% !important;
    min-height: var(--a2t-mobile-header) !important;
    padding: 0 var(--a2t-mobile-gutter) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
  }

  .a2t-brand,
  .a2t-footer-logo {
    flex: 0 0 auto !important;
    color: #050609 !important;
    font-size: clamp(24px, 7vw, 30px) !important;
    line-height: 1 !important;
    letter-spacing: -.08em !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  .a2t-brand span,
  .a2t-footer-logo span {
    color: var(--a2t-mobile-blue) !important;
  }

  html[data-theme="dark"] .a2t-brand,
  html[data-theme="dark"] .a2t-footer-logo {
    color: #f8fafc !important;
  }

  .a2t-nav-links,
  .a2t-nav-cta {
    display: none !important;
  }

  .a2t-nav-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    min-width: 0 !important;
  }

  .a2t-theme-toggle,
  .a2t-mobile-menu-btn,
  .a2t-icon-btn {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    border: 1px solid var(--a2t-mobile-line) !important;
    border-radius: 16px !important;
    background: #fff !important;
    color: #07111f !important;
    display: inline-grid !important;
    place-items: center !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .035) !important;
    text-decoration: none !important;
  }

  html[data-theme="dark"] .a2t-theme-toggle,
  html[data-theme="dark"] .a2t-mobile-menu-btn,
  html[data-theme="dark"] .a2t-icon-btn {
    background: #0d1422 !important;
    color: #f8fafc !important;
    border-color: #1f2a3d !important;
  }

  .a2t-mobile-menu-btn {
    gap: 4px !important;
    padding: 12px !important;
  }

  .a2t-mobile-menu-btn span {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: currentColor !important;
    transition: transform .22s ease, opacity .22s ease !important;
  }

  .a2t-mobile-menu-btn.is-open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg) !important;
  }

  .a2t-mobile-menu-btn.is-open span:nth-child(2) {
    opacity: 0 !important;
  }

  .a2t-mobile-menu-btn.is-open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg) !important;
  }

  /* Mobile nav ----------------------------------------------------------- */
  .a2t-mobile-menu {
    position: fixed !important;
    inset: var(--a2t-mobile-header) 0 0 !important;
    z-index: 2600 !important;
    width: 100% !important;
    height: calc(100dvh - var(--a2t-mobile-header)) !important;
    overflow: hidden !important;
    background: #fff !important;
    transform: translateY(-10px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity .2s ease, transform .2s ease !important;
  }

  .a2t-mobile-menu.is-open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  html[data-theme="dark"] .a2t-mobile-menu {
    background: #05070d !important;
  }

  .a2t-mobile-menu-inner {
    width: 100% !important;
    max-width: 480px !important;
    min-height: 100% !important;
    height: 100% !important;
    margin: 0 auto !important;
    padding: 16px var(--a2t-mobile-gutter) max(28px, env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
  }

  .a2t-mobile-nav-quick {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 58px !important;
    gap: 12px !important;
    align-items: stretch !important;
    margin-bottom: 14px !important;
  }

  .a2t-mobile-cart-link,
  .a2t-mobile-profile-link,
  .a2t-mobile-links a,
  .a2t-mobile-cta {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 60px !important;
    border: 1px solid var(--a2t-mobile-line) !important;
    border-radius: 18px !important;
    background: var(--a2t-mobile-soft) !important;
    color: var(--a2t-mobile-text) !important;
    text-decoration: none !important;
    box-shadow: none !important;
  }

  html[data-theme="dark"] .a2t-mobile-cart-link,
  html[data-theme="dark"] .a2t-mobile-profile-link,
  html[data-theme="dark"] .a2t-mobile-links a {
    background: #0d1422 !important;
    color: #f8fafc !important;
    border-color: #1e293b !important;
  }

  .a2t-mobile-cart-link {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    column-gap: 12px !important;
    padding: 12px 14px !important;
    color: var(--a2t-mobile-text) !important;
    font-size: 18px !important;
    font-weight: 950 !important;
    line-height: 1.05 !important;
  }

  .a2t-mobile-cart-link span {
    display: contents !important;
  }

  .a2t-mobile-cart-link span i {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 44px !important;
    height: 44px !important;
    margin-right: 0 !important;
    border-radius: 15px !important;
    background: #07111f !important;
    color: #fff !important;
    display: inline-grid !important;
    place-items: center !important;
    font-size: 18px !important;
  }

  .a2t-mobile-cart-link strong {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: block !important;
    min-width: 0 !important;
    color: var(--a2t-mobile-muted) !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .a2t-mobile-nav-notification,
  .a2t-mobile-nav-notification-icon,
  button.a2t-mobile-nav-notification-icon[data-notification-open] {
    width: 58px !important;
    min-width: 58px !important;
    height: 78px !important;
    min-height: 78px !important;
    padding: 8px !important;
    border: 1px solid #cfe0ff !important;
    border-radius: 18px !important;
    background: #f4f8ff !important;
    color: var(--a2t-mobile-blue) !important;
    display: grid !important;
    place-items: center !important;
    position: relative !important;
    box-shadow: none !important;
    appearance: none !important;
  }

  .a2t-mobile-nav-notification i,
  .a2t-mobile-nav-notification-icon i {
    width: 44px !important;
    height: 44px !important;
    border-radius: 15px !important;
    background: #eaf2ff !important;
    color: var(--a2t-mobile-blue) !important;
    display: grid !important;
    place-items: center !important;
    font-size: 18px !important;
    line-height: 1 !important;
  }

  .a2t-mobile-nav-notification strong,
  .a2t-mobile-nav-notification-icon strong {
    position: absolute !important;
    top: -9px !important;
    right: -5px !important;
    min-width: 30px !important;
    height: 24px !important;
    padding: 0 8px !important;
    border: 3px solid #fff !important;
    border-radius: 999px !important;
    background: var(--a2t-mobile-blue) !important;
    color: #fff !important;
    display: grid !important;
    place-items: center !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    box-shadow: none !important;
  }

  .a2t-mobile-nav-notification strong[hidden],
  .a2t-mobile-nav-notification-icon strong[hidden] {
    display: none !important;
  }

  html[data-theme="dark"] .a2t-mobile-nav-notification,
  html[data-theme="dark"] .a2t-mobile-nav-notification-icon {
    background: #10192a !important;
    border-color: #24436f !important;
  }

  html[data-theme="dark"] .a2t-mobile-nav-notification i,
  html[data-theme="dark"] .a2t-mobile-nav-notification-icon i {
    background: #0c2451 !important;
  }

  html[data-theme="dark"] .a2t-mobile-nav-notification strong,
  html[data-theme="dark"] .a2t-mobile-nav-notification-icon strong {
    border-color: #05070d !important;
  }

  .a2t-mobile-profile-link {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) 22px !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    margin-bottom: 12px !important;
  }

  .a2t-mobile-profile-avatar {
    width: 46px !important;
    height: 46px !important;
    border-radius: 15px !important;
    background: #eef5ff !important;
    color: var(--a2t-mobile-blue) !important;
    display: grid !important;
    place-items: center !important;
    font-weight: 950 !important;
  }

  .a2t-mobile-profile-link strong,
  .a2t-mobile-profile-link small {
    display: block !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .a2t-mobile-profile-link strong {
    color: inherit !important;
    font-size: 16px !important;
    font-weight: 950 !important;
    line-height: 1.15 !important;
  }

  .a2t-mobile-profile-link small {
    color: var(--a2t-mobile-muted) !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    letter-spacing: .05em !important;
    text-transform: uppercase !important;
  }

  .a2t-mobile-links {
    display: grid !important;
    gap: 12px !important;
  }

  .a2t-mobile-links a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 18px !important;
    font-size: 17px !important;
    font-weight: 950 !important;
  }

  .a2t-mobile-links a::after {
    content: "›" !important;
    color: #667085 !important;
    font-size: 30px !important;
    line-height: 1 !important;
  }

  .a2t-mobile-cta {
    min-height: 58px !important;
    margin-top: 12px !important;
    background: #07111f !important;
    border-color: #07111f !important;
    color: #fff !important;
    display: grid !important;
    place-items: center !important;
    font-size: 16px !important;
    font-weight: 950 !important;
  }

  /* Notifications -------------------------------------------------------- */
  .a2t-notification-modal[hidden] {
    display: none !important;
  }

  .a2t-notification-modal {
    position: fixed !important;
    inset: var(--a2t-mobile-header) 0 0 !important;
    z-index: 2700 !important;
    width: 100% !important;
    height: calc(100dvh - var(--a2t-mobile-header)) !important;
    overflow: hidden !important;
    background: #fff !important;
    padding: 0 !important;
  }

  html[data-theme="dark"] .a2t-notification-modal {
    background: #05070d !important;
  }

  .a2t-notification-dialog {
    width: 100% !important;
    max-width: 480px !important;
    min-width: 0 !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: 0 var(--a2t-mobile-gutter) max(28px, env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .a2t-notification-head {
    position: sticky !important;
    top: 0 !important;
    z-index: 6 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 12px !important;
    margin: 0 calc(var(--a2t-mobile-gutter) * -1) 14px !important;
    padding: 22px var(--a2t-mobile-gutter) 18px !important;
    background: rgba(255, 255, 255, .97) !important;
    border-bottom: 1px solid var(--a2t-mobile-line) !important;
    backdrop-filter: saturate(1.15) blur(16px) !important;
    -webkit-backdrop-filter: saturate(1.15) blur(16px) !important;
  }

  html[data-theme="dark"] .a2t-notification-head {
    background: rgba(5, 8, 15, .97) !important;
    border-bottom-color: #1e293b !important;
  }

  .a2t-notification-head h2 {
    margin: 10px 0 4px !important;
    color: var(--a2t-mobile-text) !important;
    font-size: clamp(28px, 8vw, 34px) !important;
    line-height: .96 !important;
    letter-spacing: -.055em !important;
    font-weight: 950 !important;
  }

  html[data-theme="dark"] .a2t-notification-head h2 {
    color: #f8fafc !important;
  }

  .a2t-notification-head p {
    margin: 0 !important;
    max-width: 270px !important;
    color: var(--a2t-mobile-muted) !important;
    font-size: 14.5px !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
  }

  .a2t-page-kicker {
    max-width: 100% !important;
    min-height: 34px !important;
    padding: 0 14px !important;
    border: 1px solid var(--a2t-mobile-line) !important;
    border-radius: 999px !important;
    background: #f7f9fd !important;
    color: var(--a2t-mobile-blue) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    letter-spacing: .08em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
  }

  .a2t-notification-actions {
    position: sticky !important;
    top: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .a2t-notification-actions strong {
    min-width: 32px !important;
    height: 28px !important;
    padding: 0 9px !important;
    border-radius: 999px !important;
    background: #eef5ff !important;
    color: var(--a2t-mobile-blue) !important;
    display: grid !important;
    place-items: center !important;
    font-size: 13px !important;
    font-weight: 950 !important;
  }

  .a2t-notification-actions strong[hidden] {
    display: none !important;
  }

  .a2t-notification-actions .a2t-icon-btn {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    border-radius: 16px !important;
    font-size: 20px !important;
  }

  .a2t-notification-list {
    display: grid !important;
    gap: 12px !important;
    padding-bottom: 24px !important;
  }

  .a2t-notification-item {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 18px !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px !important;
    border: 1px solid var(--a2t-mobile-line) !important;
    border-radius: 18px !important;
    background: #f8fbff !important;
    color: var(--a2t-mobile-text) !important;
    text-decoration: none !important;
    box-shadow: none !important;
  }

  html[data-theme="dark"] .a2t-notification-item {
    background: #0d1422 !important;
    color: #f8fafc !important;
    border-color: #1e293b !important;
  }

  .a2t-notification-item.is-viewed {
    opacity: .72 !important;
  }

  .a2t-notification-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 15px !important;
    background: #eef5ff !important;
    color: var(--a2t-mobile-blue) !important;
    display: grid !important;
    place-items: center !important;
  }

  .a2t-notification-copy {
    min-width: 0 !important;
    display: grid !important;
    gap: 3px !important;
  }

  .a2t-notification-copy small,
  .a2t-notification-copy strong,
  .a2t-notification-copy span,
  .a2t-notification-copy em {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  .a2t-notification-copy small {
    color: var(--a2t-mobile-muted) !important;
    font-size: 12px !important;
    font-weight: 850 !important;
  }

  .a2t-notification-copy strong {
    color: inherit !important;
    font-size: 15.5px !important;
    line-height: 1.2 !important;
    font-weight: 950 !important;
  }

  .a2t-notification-copy span {
    color: #344054 !important;
    font-size: 14px !important;
    line-height: 1.36 !important;
    font-weight: 700 !important;
  }

  html[data-theme="dark"] .a2t-notification-copy span {
    color: #cbd5e1 !important;
  }

  .a2t-notification-copy em {
    justify-self: start !important;
    max-width: 100% !important;
    margin-top: 4px !important;
    padding: 4px 9px !important;
    border-radius: 999px !important;
    background: #eaf2ff !important;
    color: var(--a2t-mobile-blue) !important;
    font-size: 12px !important;
    font-style: normal !important;
    font-weight: 950 !important;
  }

  .a2t-notification-empty {
    margin-top: 18px !important;
    padding: 24px !important;
    border: 1px dashed var(--a2t-mobile-line) !important;
    border-radius: 20px !important;
    background: var(--a2t-mobile-soft) !important;
    color: var(--a2t-mobile-muted) !important;
    text-align: center !important;
  }

  /* Typography ----------------------------------------------------------- */
  h1,
  .a2t-page-title,
  .a2t-section-heading h1,
  .a2t-section-head h1,
  .a2t-account-hero h1,
  .a2t-legal-hero h1,
  .a2t-pr-hero h1,
  .a2t-cart-hero h1,
  .a2cw-hero h1 {
    max-width: 100% !important;
    font-size: clamp(30px, 9vw, 42px) !important;
    line-height: 1 !important;
    letter-spacing: -.055em !important;
    overflow-wrap: anywhere !important;
  }

  h2,
  .a2t-section-heading h2,
  .a2t-section-head h2,
  .pm-standards-intro h2 {
    max-width: 100% !important;
    font-size: clamp(24px, 7vw, 34px) !important;
    line-height: 1.05 !important;
    letter-spacing: -.045em !important;
    overflow-wrap: anywhere !important;
  }

  h3,
  .a2t-card h3,
  .a2t-feature-card h3 {
    overflow-wrap: anywhere !important;
  }

  p,
  li,
  dd,
  .a2t-page-lead,
  .a2t-section-heading p,
  .a2t-section-head p,
  .a2t-cart-hero p,
  .a2cw-hero p {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  .a2t-page-lead,
  .a2t-section-heading p,
  .a2t-section-head p,
  .a2t-cart-hero p,
  .a2cw-hero p {
    font-size: clamp(15px, 4.2vw, 17px) !important;
    line-height: 1.55 !important;
  }

  /* Generic responsive layout ------------------------------------------- */
  .a2t-grid-2,
  .a2t-grid-3,
  .a2t-grid-4,
  .a2t-feature-grid,
  .a2t-stats-grid,
  .a2t-section-grid,
  .a2t-account-layout,
  .a2t-account-stats,
  .a2t-legal-layout,
  .a2t-cart-layout,
  .a2t-cart-hero,
  .a2t-pr-grid,
  .a2t-pr-choice-grid,
  .a2t-pr-layout,
  .a2t-pr-two-col,
  .a2t-pay-grid,
  .a2cw-content-grid,
  .a2cw-mini-facts,
  .a2cw-min-grid,
  .dashboard-grid,
  .dashboard-layout,
  .dashboard-stats,
  .dashboard-cards,
  .profile-grid,
  .search-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  .a2t-section,
  .a2t-service-section,
  .a2t-market-section,
  .a2t-legal-section,
  .a2t-pr-section,
  .a2t-cart-page,
  .a2t-account-page,
  .a2t-page-shell,
  .a2cw,
  .dashboard-page {
    padding-top: clamp(22px, 6vw, 36px) !important;
    padding-bottom: clamp(34px, 9vw, 58px) !important;
  }

  .a2t-card,
  .a2t-panel,
  .a2t-account-card,
  .a2t-feature-card,
  .a2t-selling-card,
  .a2t-portal-panel,
  .a2t-empty-state,
  .a2t-legal-card,
  .a2t-pr-section,
  .a2t-pr-choice-card,
  .a2t-pr-summary-card,
  .a2t-pay-card,
  .a2cw-card,
  .a2cw-min-card,
  .a2cw-side-card,
  .a2t-cart-panel,
  .dashboard-card,
  .profile-card,
  .search-card,
  .post-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border-radius: var(--a2t-mobile-radius-lg) !important;
    overflow-wrap: anywhere !important;
  }

  .a2t-card,
  .a2t-panel,
  .a2t-account-card,
  .a2t-feature-card,
  .a2t-portal-panel,
  .a2t-legal-card,
  .a2t-pr-section,
  .a2t-pay-card,
  .a2cw-card,
  .a2cw-min-card,
  .a2cw-side-card,
  .a2t-cart-panel {
    padding: clamp(16px, 4.8vw, 22px) !important;
  }

  .a2t-action-row,
  .a2t-auth-actions,
  .a2t-account-actions,
  .a2t-pr-step-actions,
  .a2t-cart-actions,
  .a2cw-actions,
  .pm-toolbar,
  .pm-controls,
  .pm-catalog-footer,
  .dashboard-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  .a2t-btn,
  .a2t-btn-dark,
  .a2t-btn-light,
  .a2t-auth-primary,
  .a2t-auth-secondary,
  .a2t-pr-btn,
  .a2t-cart-button,
  .a2cw-primary,
  .a2cw-outline,
  .btn,
  button[type="submit"] {
    min-height: var(--a2t-mobile-touch) !important;
    max-width: 100% !important;
    white-space: normal !important;
    line-height: 1.15 !important;
  }

  .a2t-action-row > *,
  .a2t-auth-actions > *,
  .a2t-account-actions > *,
  .a2t-pr-step-actions > *,
  .a2t-cart-actions > *,
  .a2cw-actions > *,
  .dashboard-actions > * {
    flex: 1 1 140px !important;
  }

  /* Forms --------------------------------------------------------------- */
  input,
  select,
  textarea,
  .form-control,
  .form-select,
  .a2t-pr-field input,
  .a2t-pr-field select,
  .a2t-pr-field textarea,
  .a2t-form-field input,
  .a2t-form-field select,
  .a2t-form-field textarea {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 46px !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
  }

  textarea,
  textarea.form-control {
    min-height: 118px !important;
  }

  label,
  legend {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
  }

  .input-group,
  .a2t-form-field,
  .a2t-pr-field,
  .a2t-card-field {
    width: 100% !important;
    min-width: 0 !important;
  }

  .input-group {
    flex-wrap: wrap !important;
  }

  .input-group > * {
    flex: 1 1 100% !important;
    min-width: 0 !important;
  }

  /* Tables and wide data ------------------------------------------------ */
  table {
    max-width: 100% !important;
  }

  .table-responsive,
  .a2t-table-wrap,
  .a2t-components-table-wrap,
  .a2t-cart-table-wrap,
  .dashboard-table-wrap,
  .dashboard-table,
  .a2cw-table-wrap,
  .pm-table-wrap,
  [class*="table-wrap"] {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-x: contain !important;
  }

  .a2t-cart-table,
  .a2t-components-table,
  .dashboard-table table,
  .dashboard-table-wrap table,
  .a2cw-table,
  [class*="table-wrap"] table {
    width: 100% !important;
    min-width: 640px !important;
  }

  .a2t-cart-table th,
  .a2t-cart-table td,
  .dashboard-table th,
  .dashboard-table td {
    white-space: normal !important;
  }

  /* Products foundation -------------------------------------------------- */
  #a2t-products {
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: clip !important;
  }

  #a2t-products .pm-layout,
  #a2t-products .pm-standards-shell {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: var(--a2t-mobile-gutter) !important;
    padding-right: var(--a2t-mobile-gutter) !important;
  }

  #a2t-products .pm-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    padding-top: 18px !important;
    padding-bottom: 42px !important;
  }

  #a2t-products .pm-sidebar {
    width: 100% !important;
    max-height: none !important;
    position: static !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }

  #a2t-products .pm-main,
  #a2t-products .pm-product,
  #a2t-products .pm-side-card,
  #a2t-products .pm-empty {
    width: 100% !important;
    min-width: 0 !important;
  }

  #a2t-products .pm-controls,
  #a2t-products .pm-toolbar,
  #a2t-products .pm-product-footer,
  #a2t-products .pm-catalog-footer {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  #a2t-products .pm-search,
  #a2t-products .pm-sort-tabs,
  #a2t-products .pm-search input {
    width: 100% !important;
    min-width: 0 !important;
  }

  #a2t-products .pm-sort-tabs {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 2px !important;
  }

  #a2t-products .pm-sort-tabs a {
    flex: 0 0 auto !important;
  }

  #a2t-products .pm-product-grid,
  #a2t-products .pm-standards-grid,
  #a2t-products .pm-standards-rail {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  /* Home visual safety --------------------------------------------------- */
  #wxa-homepage .a2t-hero,
  #wxa-homepage .a2t-hero-grid,
  #wxa-homepage .a2t-visual,
  #wxa-homepage .a2t-orbit {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #wxa-homepage .a2t-orbit {
    transform: none !important;
    height: auto !important;
    min-height: 360px !important;
  }

  #wxa-homepage .a2t-orbit-card,
  #wxa-homepage .a2t-reporting,
  #wxa-homepage .a2t-crm,
  #wxa-homepage .a2t-payments,
  #wxa-homepage .a2t-automation,
  #wxa-homepage .a2t-portal,
  #wxa-homepage .a2t-center-brand {
    max-width: calc(100vw - 42px) !important;
  }

  /* Auth/account --------------------------------------------------------- */
  .a2t-auth-layout,
  .a2t-auth-page {
    width: 100% !important;
    min-width: 0 !important;
  }

  .a2t-auth-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    padding: var(--a2t-mobile-gutter) !important;
    gap: 14px !important;
  }

  .a2t-auth-brand-panel,
  .a2t-auth-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .a2t-auth-card {
    padding: clamp(18px, 5vw, 24px) !important;
  }

  /* Footer --------------------------------------------------------------- */
  .a2t-footer {
    width: 100% !important;
    overflow-x: clip !important;
  }

  .a2t-footer-shell {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: var(--a2t-mobile-gutter) !important;
    padding-right: var(--a2t-mobile-gutter) !important;
  }

  .a2t-footer-top,
  .a2t-footer-grid,
  .a2t-footer-bottom {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  .a2t-footer-bottom {
    text-align: left !important;
  }

  .a2t-footer-bottom nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px 16px !important;
  }

  #snackbar {
    left: var(--a2t-mobile-gutter) !important;
    right: var(--a2t-mobile-gutter) !important;
    bottom: max(18px, env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
  }
}

@media (max-width: 380px) {
  :root {
    --a2t-mobile-gutter: 12px;
    --a2t-mobile-header: 72px;
  }

  .a2t-nav-shell {
    gap: 10px !important;
  }

  .a2t-brand {
    font-size: 24px !important;
  }

  .a2t-theme-toggle,
  .a2t-mobile-menu-btn,
  .a2t-icon-btn {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    border-radius: 15px !important;
  }

  .a2t-mobile-nav-quick {
    grid-template-columns: minmax(0, 1fr) 56px !important;
    gap: 10px !important;
  }

  .a2t-mobile-nav-notification,
  .a2t-mobile-nav-notification-icon,
  button.a2t-mobile-nav-notification-icon[data-notification-open] {
    width: 56px !important;
    min-width: 56px !important;
  }

  .a2t-mobile-cart-link span {
    font-size: 17px !important;
  }
}
