/* SignDazzle mobile geometry: the theme's two-column rule otherwise wins
 * over header-modular-v1 and puts the full cart beside a 180px logo. */
@media (max-width: 640px) {
  body.deceti-2[data-deceti-header="header-v2"] .sd2-header .sd2-header-inner {
    width: calc(100% - 28px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }
  body.deceti-2[data-deceti-header="header-v2"] .sd2-header .sd2-brand {
    position: static;
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    max-width: 100%;
  }
  body.deceti-2[data-deceti-header="header-v2"] .sd2-header .sd2-header-actions {
    grid-column: 1;
    grid-row: 2;
    justify-content: center;
    flex-wrap: wrap;
    min-width: 0;
  }
  body.deceti-2[data-deceti-header="header-v2"] .sd2-header .sd2-main-nav {
    grid-column: 1;
    grid-row: 3;
    min-width: 0;
  }
  body.deceti-2[data-deceti-header="header-v2"] #alert {
    max-width: calc(100vw - 16px);
  }
}

/* Keep the full calculator action labels readable on phones. */
@media (max-width: 640px) {
  body.deceti-2 .deceti-v6-shell #form_upload #deceti-v6-live-summary .deceti-v6-actions { grid-template-columns: minmax(0, 1fr) !important; }
  body.deceti-2 .deceti-v6-actions > input { width: 100%; min-width: 0; }
}
