/* KlawoShop 0.6.132 — unified customer account width.
   Loaded only for /konto and /konto/* routes; no changes to catalog, cart or checkout.
   The outer content area always uses the existing .wrap width shared with the category menu.
*/
.main-content.wrap > .crumbs,
.main-content.wrap > .customer-titlebar,
.main-content.wrap > .account-landing-grid,
.main-content.wrap > .account-login-grid,
.main-content.wrap > .account-dashboard-grid,
.main-content.wrap > .account-address-layout,
.main-content.wrap > .ks85,
.main-content.wrap > .ks90-history,
.main-content.wrap > .ks90-detail,
.main-content.wrap > .klw-reg084-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
}

/* Remove the standalone account-login 960px limit. Fill the same content width as navigation. */
.main-content.wrap > .account-login-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* Three landing cards and two dashboard cards take all available desktop width. */
.main-content.wrap > .account-landing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.main-content.wrap > .account-dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

/* Legacy adjacent-section rule added extra top margins to cards inside CSS grids. */
.main-content.wrap > .account-landing-grid > .account-card,
.main-content.wrap > .account-login-grid > .account-card,
.main-content.wrap > .account-dashboard-grid > .account-card {
  margin-top: 0;
  min-width: 0;
}

/* Registration used max-width:1040px with automatic horizontal margins. */
.main-content.wrap > .klw-reg084-wrap {
  margin-top: 12px;
  margin-bottom: 60px;
}
.main-content.wrap .klw-reg084-layout {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .95fr);
  align-items: start;
}
.main-content.wrap .klw-reg084-layout > * { min-width: 0; }

/* Order list/detail can use the whole content area without changing their inner components. */
.main-content.wrap > .ks90-history { margin-top: 18px; margin-bottom: 55px; }
.main-content.wrap > .ks90-detail { margin-top: 18px; margin-bottom: 70px; }
.main-content.wrap > .ks85 { margin-bottom: 60px; }

/* Short token pages should still start at the shared left edge, with readable inputs. */
.main-content.wrap > section.account-card[style*="max-width"] {
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.main-content.wrap > section.account-card[style*="max-width"] > form,
.main-content.wrap > section.account-card[style*="max-width"] > .account-form {
  max-width: 620px;
}

@media (max-width: 1000px) {
  .main-content.wrap > .account-landing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .main-content.wrap .klw-reg084-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }
}
@media (max-width: 790px) {
  .main-content.wrap > .account-login-grid,
  .main-content.wrap .klw-reg084-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 680px) {
  .main-content.wrap > .account-landing-grid,
  .main-content.wrap > .account-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .main-content.wrap > .account-landing-grid,
  .main-content.wrap > .account-login-grid,
  .main-content.wrap > .account-dashboard-grid {
    gap: 14px;
  }
}
