/* ModelScale3D customer account (account.js) */
.account-header-link { position: relative; }
.account-header-link.is-logged-in::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent, #176f5d);
  box-shadow: 0 0 0 2px var(--surface, #fff);
}
.account-page { display: block; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 22px; align-items: start; }
.account-card {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #dfe5df);
  border-radius: var(--radius, 14px);
  padding: 26px;
  box-shadow: var(--shadow, none);
}
.account-card h2 { margin: 0 0 16px; font-size: 1.35rem; }
.account-card h3 { margin: 0 0 12px; font-size: 1.05rem; }
.account-narrow { max-width: 520px; margin: 0 auto; }
.account-field { display: grid; gap: 6px; margin: 0 0 14px; font-size: .9rem; font-weight: 600; color: var(--ink, #14231c); }
.account-field input, .account-field select {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--line, #d9e3dc);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 400;
  color: var(--ink, #14231c);
}
.account-field input:focus, .account-field select:focus { outline: 2px solid var(--accent-soft, #dff1e9); border-color: var(--accent, #176f5d); }
.account-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.account-check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 4px 0 14px; font-size: .88rem; line-height: 1.45; color: var(--muted, #637168); }
.account-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent, #176f5d); }
.account-check a { color: var(--accent, #176f5d); font-weight: 600; }
.account-card .primary-shop-button, .account-card .secondary-shop-button { margin-top: 4px; }
.account-message { min-height: 1.2em; margin: 10px 0 0; font-size: .9rem; color: #b42318; }
.account-message.is-ok { color: var(--accent, #176f5d); }
.account-ok { margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--accent-soft, #dff1e9); color: var(--accent-dark, #0d4f41); line-height: 1.5; }
.account-muted { color: var(--muted, #637168); font-size: .92rem; line-height: 1.5; }
.account-switch { margin: 14px 0 0; }
.account-link-button { padding: 0; border: 0; background: none; color: var(--accent, #176f5d); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.account-benefits { list-style: none; margin: 0 0 18px; padding: 14px 16px; border-radius: 10px; background: var(--surface-soft, #eaf1ed); display: grid; gap: 7px; font-size: .9rem; }
.account-benefits li { position: relative; padding-left: 22px; }
.account-benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--accent, #176f5d); font-weight: 800; }
.account-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.account-head > div { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 1.15rem; }
.account-head small { flex-basis: 100%; color: var(--muted, #637168); font-size: .88rem; }
.account-notice { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: #fff7e6; border: 1px solid #f3d9a4; font-size: .92rem; }
.account-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.account-tabs button { padding: 10px 16px; border: 1px solid var(--line, #d9e3dc); border-radius: 999px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink, #14231c); }
.account-tabs button.is-active { background: var(--accent, #176f5d); border-color: var(--accent, #176f5d); color: #fff; }
.account-order { padding: 16px 0; border-bottom: 1px solid var(--line, #d9e3dc); }
.account-order:first-child { padding-top: 0; }
.account-order:last-child { border-bottom: 0; padding-bottom: 0; }
.account-order header { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; }
.account-order header > div { display: grid; gap: 2px; }
.account-order header small { color: var(--muted, #637168); }
.account-order ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted, #637168); font-size: .9rem; line-height: 1.55; }
.account-order-total { font-size: 1.05rem; white-space: nowrap; }
.account-status { padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--surface-soft, #eaf1ed); color: var(--ink, #14231c); white-space: nowrap; }
.account-status.is-shipped { background: var(--accent-soft, #dff1e9); color: var(--accent-dark, #0d4f41); }
.account-status.is-awaiting_payment { background: #fff3db; color: #8a5a00; }
.account-status.is-cancelled { background: #fde8e7; color: #9f1f17; }
.account-empty { text-align: center; padding: 20px 0; }
.account-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.account-form-actions, .account-wide { grid-column: 1 / -1; }
.account-settings-block { padding: 0 0 22px; margin: 0 0 22px; border-bottom: 1px solid var(--line, #d9e3dc); max-width: 520px; }
.account-settings-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.account-danger h3 { color: #9f1f17; }
.account-checkout-hint { margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: var(--accent-soft, #dff1e9); font-size: .92rem; }
.account-checkout-hint a { color: var(--accent-dark, #0d4f41); font-weight: 700; }
@media (max-width: 760px) {
  .account-grid, .account-form-grid, .account-row { grid-template-columns: 1fr; }
  .account-card { padding: 20px 16px; }
  .account-order header { grid-template-columns: 1fr auto; }
  .account-order header .account-status { grid-column: 1 / -1; justify-self: start; }
}

/* Header: room for the account icon on desktop (compact action buttons) */
@media (min-width: 1101px) {
  body .shop-actions { gap: 2px; padding-left: 10px; }
  body .shop-actions button,
  body .shop-actions .shop-action-link { width: 40px; height: 40px; }
  body .shop-actions .ms3d-lang-switch { min-width: 30px; padding: 0 6px; margin-right: 3px; }
}
@media (min-width: 1241px) {
  body .shop-nav { gap: 0; }
  body .shop-nav a,
  body .nav-dropdown-trigger { padding-left: 8px; padding-right: 8px; }
}
.account-empty .primary-shop-button { display: inline-flex; align-items: center; min-height: 46px; margin-top: 12px; padding: 0 22px; text-decoration: none; }
/* Phones: the header has no room for one more icon — "Moje konto" lives in the menu instead */
.account-mobile-link { display: none; }
@media (max-width: 420px) {
  body .shop-actions .account-header-link { display: none; }
  .mobile-menu .account-mobile-link { display: flex; }
}
