/* =============================================================================
   DomShop · My Account 2026
   File: assets/css/account.css
   Scope: caricato solo su pagine my-account (is_account_page()).

   Componenti:
   - Layout shell .ds-account / .ds-account__nav / .ds-account__content
   - Sidebar moderna con avatar, menu items, badge notifiche, logout danger
   - Welcome hero con avatar grande + saluto personalizzato + badge fedeltà
   - Stats row (4 stat card)
   - Lastorder card con timeline visuale
   - Quick actions grid (3 col)
   - Orders list (filter chips + order rows)
   - Address cards (shipping/billing + add-new dashed)
   - Payment cards (visual brand gradient)
   - Account details form sections (info / email / password / danger zone)
   - Notification list (unread state, action chips)
   - Discount / video review (banner + review row + uploader)
   - Login split (brand panel + form panel, no social)
   - Mobile responsive helpers
   ============================================================================= */

/* ----------------------------- TOKENS LOCAL ------------------------------ */
.ds-account-wrap {
  --acc-bg: #ffffff;
  --acc-card: #ffffff;
  --acc-text: #0f172a;
  --acc-muted: #64748b;
  --acc-border: rgba(15, 23, 42, .08);
  --acc-border-strong: rgba(15, 23, 42, .14);
  --acc-shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 1px rgba(15, 23, 42, .04);
  --acc-shadow: 0 4px 16px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --acc-radius: 16px;
  --acc-radius-sm: 10px;
  --acc-blue: #2563eb;
  --acc-blue-bg: rgba(37, 99, 235, .10);
  --acc-green: #16a34a;
  --acc-green-bg: rgba(22, 163, 74, .10);
  --acc-purple: #7c3aed;
  --acc-purple-bg: rgba(124, 58, 237, .10);
  --acc-pink: #ec4899;
  --acc-pink-bg: rgba(236, 72, 153, .10);
  --acc-orange: #f97316;
  --acc-red: #ef4444;
  --acc-red-bg: rgba(239, 68, 68, .10);
  --acc-yellow: #FFC107;

  background: var(--acc-bg);
  color: var(--acc-text);
  min-height: 60vh;
  padding: 28px 0 60px;
}
.ds-account-wrap > .ds-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------ SHELL LAYOUT ----------------------------- */
.ds-account {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.ds-account__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* ------------------------------ SIDEBAR ---------------------------------- */
.ds-account__nav {
  background: var(--acc-card);
  border-radius: var(--acc-radius);
  border: 1px solid var(--acc-border);
  padding: 18px;
  box-shadow: var(--acc-shadow-sm);
  position: sticky;
  top: 16px;
}

.ds-account__user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--acc-border);
  margin-bottom: 12px;
}
.ds-account__user-info { min-width: 0; flex: 1; }
.ds-account__user-name {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--acc-text);
}
.ds-account__user-email {
  font-size: 11px;
  color: var(--acc-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Avatar */
.ds-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFC107 0%, #f97316 100%);
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  flex-shrink: 0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.ds-avatar--lg { width: 64px; height: 64px; font-size: 22px; }
.ds-avatar--sm { width: 30px; height: 30px; font-size: 11px; }

/* Menu items (override WC navigation markup) */
.ds-account__nav .woocommerce-MyAccount-navigation {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ds-account__nav .woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ds-account__nav .woocommerce-MyAccount-navigation li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ds-account__nav .woocommerce-MyAccount-navigation li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--acc-radius-sm);
  text-decoration: none;
  color: var(--acc-text);
  font-size: 13px;
  font-weight: 500;
  transition: background .12s, color .12s;
  position: relative;
}
.ds-account__nav .woocommerce-MyAccount-navigation li a:hover {
  background: #f5f6f8;
}
.ds-account__nav .woocommerce-MyAccount-navigation li.is-active > a,
.ds-account__nav .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--is-active > a {
  background: #2b2b2b;
  color: #fff;
  font-weight: 700;
}
.ds-account__nav .woocommerce-MyAccount-navigation li a > .ds-nav-icon {
  width: 16px;
  height: 16px;
  color: var(--acc-muted);
  flex-shrink: 0;
}
.ds-account__nav .woocommerce-MyAccount-navigation li.is-active > a .ds-nav-icon,
.ds-account__nav .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--is-active > a .ds-nav-icon {
  color: var(--acc-yellow);
}
.ds-account__nav .woocommerce-MyAccount-navigation li a .ds-nav-badge {
  margin-left: auto;
  background: var(--acc-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  line-height: 1.4;
}
.ds-account__nav .woocommerce-MyAccount-navigation li.is-active > a .ds-nav-badge,
.ds-account__nav .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--is-active > a .ds-nav-badge {
  background: var(--acc-yellow);
  color: #1e293b;
}

/* Separator before logout */
.ds-account__nav .woocommerce-MyAccount-navigation-link--customer-logout {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--acc-border);
}
.ds-account__nav .woocommerce-MyAccount-navigation-link--customer-logout > a {
  color: var(--acc-red);
}
.ds-account__nav .woocommerce-MyAccount-navigation-link--customer-logout > a:hover {
  background: var(--acc-red-bg);
}
.ds-account__nav .woocommerce-MyAccount-navigation-link--customer-logout > a .ds-nav-icon {
  color: var(--acc-red);
}

/* --------------- MOBILE: sidebar -> horizontal tile rail ----------------- */

/* --------------------------- ENDPOINT HEADER ----------------------------- */
.ds-acc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 8px;
}
.ds-acc-head__title { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: -0.02em; color: var(--acc-text); }
.ds-acc-head__sub { font-size: 13px; color: var(--acc-muted); margin-top: 2px; }
.ds-acc-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Mobile back row */
.ds-acc-mobile-head { display: none; }

/* ------------------------------- BUTTONS --------------------------------- */
.ds-acc-btn-primary {
  background: var(--acc-yellow);
  color: var(--acc-text);
  border: 0;
  border-radius: 99px;
  padding: 12px 22px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255,193,7,.35);
  transition: transform .15s, box-shadow .15s;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.ds-acc-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,193,7,.4); }
.ds-acc-btn-secondary {
  background: #fff;
  border: 1px solid var(--acc-border-strong);
  border-radius: 99px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s;
  color: var(--acc-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.ds-acc-btn-secondary:hover { background: #f5f6f8; }
.ds-acc-btn-dark {
  background: #2b2b2b;
  color: #fff;
  border: 0;
  border-radius: 99px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: background .12s;
}
.ds-acc-btn-dark:hover { background: #1a1a1a; color: #fff; }
.ds-acc-btn-ghost {
  background: transparent;
  border: 0;
  padding: 6px 10px;
  color: var(--acc-muted);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ds-acc-btn-ghost:hover { color: var(--acc-text); }
.ds-acc-btn-danger {
  background: var(--acc-red-bg);
  color: var(--acc-red);
  border: 0;
  border-radius: 99px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.ds-acc-btn-danger:hover { background: rgba(239,68,68,.18); }
.ds-acc-btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ds-acc-btn-primary svg, .ds-acc-btn-secondary svg, .ds-acc-btn-dark svg, .ds-acc-btn-ghost svg {
  width: 14px; height: 14px;
}

/* -------------------------------- PILLS ---------------------------------- */
.ds-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
}
.ds-pill--blue { background: var(--acc-blue-bg); color: var(--acc-blue); }
.ds-pill--green { background: var(--acc-green-bg); color: var(--acc-green); }
.ds-pill--yellow { background: rgba(255,193,7,.18); color: #92400e; }
.ds-pill--red { background: var(--acc-red-bg); color: var(--acc-red); }
.ds-pill--gray { background: #f1f5f9; color: var(--acc-muted); }
.ds-pill--purple { background: var(--acc-purple-bg); color: var(--acc-purple); }

/* -------------------------------- ICONS ---------------------------------- */
/* Icon backgrounds for action cards / stat cards / notif rows */
.ds-icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.ds-icon-tile--sm { width: 32px; height: 32px; border-radius: 10px; }
.ds-icon-tile--md { width: 40px; height: 40px; }
.ds-icon-tile--lg { width: 56px; height: 56px; border-radius: 16px; }
.ds-icon-tile svg { width: 50%; height: 50%; }
.ds-icon-tile--blue { background: var(--acc-blue-bg); color: var(--acc-blue); }
.ds-icon-tile--yellow { background: rgba(255,193,7,.18); color: #92400e; }
.ds-icon-tile--purple { background: var(--acc-purple-bg); color: var(--acc-purple); }
.ds-icon-tile--green { background: var(--acc-green-bg); color: var(--acc-green); }
.ds-icon-tile--pink { background: var(--acc-pink-bg); color: var(--acc-pink); }
.ds-icon-tile--gray { background: #f1f5f9; color: var(--acc-muted); }
.ds-icon-tile--red { background: var(--acc-red-bg); color: var(--acc-red); }
.ds-icon-tile--orange { background: rgba(249,115,22,.10); color: var(--acc-orange); }

/* ------------------------------ WELCOME ---------------------------------- */
.ds-welcome {
  background:
    radial-gradient(circle at 90% 20%, rgba(255,193,7,.18) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(124,58,237,.10) 0%, transparent 40%),
    linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius);
  padding: 24px;
  box-shadow: var(--acc-shadow-sm);
  display: flex;
  align-items: center;
  gap: 18px;
}
.ds-welcome__text { flex: 1; min-width: 0; }
.ds-welcome__hello { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; }
.ds-welcome__meta { font-size: 13px; color: var(--acc-muted); }
.ds-welcome__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,193,7,.15);
  color: #92400e;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-top: 8px;
}
@keyframes ds-wave {
  0%, 60%, 100% { transform: rotate(0); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}
.ds-wave {
  display: inline-block;
  animation: ds-wave 2s ease-in-out infinite;
  transform-origin: 70% 70%;
}

/* -------------------------------- STATS ---------------------------------- */
.ds-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.ds-stat {
  background: #fff;
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius);
  padding: 16px;
  box-shadow: var(--acc-shadow-sm);
}
.ds-stat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ds-stat__delta {
  font-size: 10px;
  font-weight: 700;
  color: var(--acc-green);
  background: var(--acc-green-bg);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.ds-stat__value {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}
.ds-stat__label {
  font-size: 11px;
  color: var(--acc-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* ------------------------------ LASTORDER -------------------------------- */
.ds-lastorder {
  background: #fff;
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius);
  padding: 20px;
  box-shadow: var(--acc-shadow-sm);
}
.ds-lastorder__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.ds-lastorder__title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acc-muted);
}
.ds-lastorder__viewall {
  font-size: 12px;
  font-weight: 700;
  color: var(--acc-text);
  text-decoration: none;
}
.ds-lastorder__viewall:hover { text-decoration: underline; }

.ds-lastorder__order {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.ds-lastorder__items { display: flex; }
.ds-lastorder__thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #f1f5f9;
  border: 2px solid #fff;
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acc-muted);
  overflow: hidden;
  flex-shrink: 0;
}
.ds-lastorder__thumb:first-child { margin-left: 0; }
.ds-lastorder__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ds-lastorder__thumb svg { width: 24px; height: 24px; }
.ds-lastorder__thumb--more {
  background: #fde68a;
  color: #92400e;
  font-weight: 900;
  font-size: 13px;
}

.ds-lastorder__info { flex: 1; min-width: 0; }
.ds-lastorder__id { font-size: 13px; font-weight: 700; margin-bottom: 2px; display: flex; align-items: center; gap: 8px; }
.ds-lastorder__date { font-size: 12px; color: var(--acc-muted); }
.ds-lastorder__total { font-size: 16px; font-weight: 900; letter-spacing: -0.01em; white-space: nowrap; }

.ds-lastorder__actions { display: flex; gap: 8px; }
.ds-lastorder__actions > * { flex: 1; }

/* -------------------------------- TIMELINE ------------------------------- */
.ds-timeline {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 8px 0;
}
.ds-timeline__step { flex: 1; text-align: center; position: relative; min-width: 0; }
.ds-timeline__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--acc-border);
  z-index: 0;
}
.ds-timeline__step.is-done:not(:last-child)::after { background: var(--acc-green); }
.ds-timeline__step.is-current:not(:last-child)::after {
  background: linear-gradient(to right, var(--acc-green) 50%, var(--acc-border) 50%);
}
.ds-timeline__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--acc-border);
  border: 2px solid #fff;
  margin: 0 auto 6px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.ds-timeline__step.is-done .ds-timeline__dot { background: var(--acc-green); }
.ds-timeline__step.is-current .ds-timeline__dot {
  background: var(--acc-blue);
  box-shadow: 0 0 0 6px rgba(37,99,235,.12);
}
.ds-timeline__dot svg { width: 10px; height: 10px; }
.ds-timeline__label { font-size: 10px; font-weight: 700; color: var(--acc-muted); letter-spacing: 0.02em; }
.ds-timeline__step.is-done .ds-timeline__label,
.ds-timeline__step.is-current .ds-timeline__label { color: var(--acc-text); }

/* ----------------------------- QUICK ACTIONS ----------------------------- */
.ds-acc-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ds-action {
  background: #fff;
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius);
  padding: 18px;
  text-decoration: none;
  color: var(--acc-text);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  box-shadow: var(--acc-shadow-sm);
  position: relative;
}
.ds-action:hover {
  transform: translateY(-2px);
  box-shadow: var(--acc-shadow);
  border-color: var(--acc-border-strong);
  color: var(--acc-text);
}
.ds-action__title { font-weight: 800; font-size: 14px; letter-spacing: -0.01em; }
.ds-action__desc { font-size: 12px; color: var(--acc-muted); line-height: 1.4; }
.ds-action__chevron {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--acc-muted);
  transition: transform .15s, color .15s;
}
.ds-action__chevron svg { width: 16px; height: 16px; }
.ds-action:hover .ds-action__chevron { color: var(--acc-text); transform: translateX(2px); }
.ds-action__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--acc-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ------------------------------ FILTER CHIPS ----------------------------- */
.ds-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.ds-chip {
  background: #fff;
  border: 1px solid var(--acc-border-strong);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .12s;
  color: var(--acc-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ds-chip:hover { background: #f5f6f8; color: var(--acc-text); }
.ds-chip.is-active { background: #2b2b2b; color: #fff; border-color: #2b2b2b; }
.ds-chip__count { font-size: 10px; opacity: .7; }

/* ------------------------------- CARDS ----------------------------------- */
.ds-card {
  background: #fff;
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius);
  padding: 20px;
  box-shadow: var(--acc-shadow-sm);
}
.ds-card__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ds-card__title small {
  font-size: 11px;
  font-weight: 600;
  color: var(--acc-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --------------------------- ORDERS LIST --------------------------------- */
.ds-orders { display: flex; flex-direction: column; gap: 10px; }
.ds-order-row {
  background: #fff;
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  box-shadow: var(--acc-shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.ds-order-row:hover { transform: translateY(-1px); box-shadow: var(--acc-shadow); }
.ds-order-row__thumbs { display: flex; }
.ds-order-row__info { min-width: 0; }
.ds-order-row__id {
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ds-order-row__meta { font-size: 12px; color: var(--acc-muted); margin-top: 2px; }
.ds-order-row__total { font-weight: 900; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; }
.ds-order-row__actions { display: flex; gap: 6px; flex-wrap: nowrap; }

/* Empty state */
.ds-empty-state {
  background: #fff;
  border: 1px dashed var(--acc-border-strong);
  border-radius: var(--acc-radius);
  padding: 40px 24px;
  text-align: center;
}
.ds-empty-state__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--acc-blue-bg);
  color: var(--acc-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.ds-empty-state__icon svg { width: 28px; height: 28px; }
.ds-empty-state__title { font-size: 16px; font-weight: 800; margin: 0 0 6px; }
.ds-empty-state__desc { font-size: 13px; color: var(--acc-muted); margin: 0 0 16px; }

/* ----------------------------- ADDRESS CARDS ----------------------------- */
.ds-addr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ds-addr {
  background: #fff;
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius);
  padding: 20px;
  box-shadow: var(--acc-shadow-sm);
  position: relative;
}
.ds-addr > .ds-pill { position: absolute; top: 16px; right: 16px; }
.ds-addr__type {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acc-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ds-addr__type svg { width: 14px; height: 14px; }
.ds-addr__name { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.ds-addr__lines { color: var(--acc-muted); font-size: 13px; line-height: 1.6; margin-bottom: 16px; }
.ds-addr__actions { display: flex; gap: 8px; }
.ds-addr__empty {
  color: var(--acc-muted);
  font-style: italic;
  font-size: 13px;
  margin-bottom: 16px;
}

/* -------------------------- PAYMENT METHOD CARDS ------------------------- */
.ds-pay-list { display: flex; flex-direction: column; gap: 10px; }
.ds-pay {
  background: #fff;
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius);
  padding: 18px;
  box-shadow: var(--acc-shadow-sm);
  display: flex;
  gap: 14px;
  align-items: center;
}
.ds-pay__visual {
  width: 60px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 11px;
  color: #fff;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1e293b 0%, #475569 100%); /* fallback */
}
.ds-pay--visa .ds-pay__visual { background: linear-gradient(135deg, #1a1f71 0%, #2a3197 100%); }
.ds-pay--mastercard .ds-pay__visual { background: linear-gradient(135deg, #eb001b 0%, #f79e1b 100%); }
.ds-pay--amex .ds-pay__visual { background: linear-gradient(135deg, #006fcf 0%, #0094ff 100%); }
.ds-pay--discover .ds-pay__visual { background: linear-gradient(135deg, #ff6b00 0%, #ff8c40 100%); }
.ds-pay__info { flex: 1; min-width: 0; }
.ds-pay__num { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ds-pay__meta { font-size: 12px; color: var(--acc-muted); margin-top: 2px; }
.ds-pay__actions { display: flex; gap: 6px; }

/* -------------------------------- FORMS ---------------------------------- */
.ds-input { margin-bottom: 14px; display: block; }
.ds-input > label,
.ds-account__content .woocommerce-form-row > label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1e293b;
  letter-spacing: 0.01em;
}
.ds-input > input, .ds-input > select, .ds-input > textarea,
.ds-account__content .woocommerce-Input,
.ds-account__content .woocommerce-form-row input.input-text,
.ds-account__content .woocommerce-form-row textarea,
.ds-account__content .woocommerce-form-row select,
.ds-account__content .select2-container .select2-selection--single {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--acc-border-strong);
  border-radius: var(--acc-radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: #fafbfc;
  transition: border-color .15s, background .15s;
  outline: none;
  color: var(--acc-text);
}
.ds-input > input:focus, .ds-input > select:focus, .ds-input > textarea:focus,
.ds-account__content .woocommerce-Input:focus,
.ds-account__content .woocommerce-form-row input.input-text:focus,
.ds-account__content .woocommerce-form-row textarea:focus,
.ds-account__content .woocommerce-form-row select:focus {
  border-color: #2b2b2b;
  background: #fff;
}
.ds-account__content .select2-container .select2-selection--single {
  height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
}
.ds-account__content .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 46px; padding: 0; }
.ds-account__content .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; right: 10px; }

.ds-formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Address form: full-width row classes (WC + theme) */
.ds-formgrid--address .form-row-wide,
.ds-formgrid--address .ds-formgrid__full,
.ds-formgrid--address .form-row.form-row-wide {
  grid-column: 1 / -1;
}
/* WC nasconde i field via display:none o hide; rispettiamolo */
.ds-formgrid--address .form-row[style*="display:none"],
.ds-formgrid--address .form-row[style*="display: none"] {
  display: none !important;
}

.ds-input--toggle { position: relative; }
.ds-input--toggle > .ds-input__toggle {
  position: absolute;
  right: 10px;
  top: 32px;
  background: transparent;
  border: 0;
  color: var(--acc-muted);
  cursor: pointer;
  padding: 4px;
}
.ds-input--toggle > .ds-input__toggle svg { width: 16px; height: 16px; }

.ds-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
  flex-wrap: wrap;
}

/* ----------------------------- NOTIFICATIONS ----------------------------- */
.ds-notif-list { display: flex; flex-direction: column; gap: 8px; }
.ds-notif {
  background: #fff;
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: var(--acc-shadow-sm);
  position: relative;
}
.ds-notif.is-unread {
  background: linear-gradient(to right, rgba(37,99,235,.04) 0%, #fff 30%);
  border-left: 3px solid var(--acc-blue);
  padding-left: 13px;
}
/* Notifiche: icon-tile MEDIO (non grande) */
.ds-notif__icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ds-notif__icon svg { width: 15px; height: 15px; }
.ds-notif__body { flex: 1; min-width: 0; }
.ds-notif__title { font-weight: 700; font-size: 14px; color: var(--acc-text); }
.ds-notif__desc { font-size: 12px; color: var(--acc-muted); margin-top: 2px; line-height: 1.5; }
.ds-notif__time { font-size: 11px; color: var(--acc-muted); margin-top: 6px; }
.ds-notif__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}
/* Notifiche: pulsanti compatti proporzionati */
.ds-notif__actions .ds-acc-btn-secondary,
.ds-notif__actions .ds-acc-btn-dark,
.ds-notif__actions .ds-acc-btn-ghost {
  font-size: 12px;
  padding: 6px 12px;
}
.ds-notif__actions .ds-acc-btn-icon {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
}
.ds-notif__actions .ds-acc-btn-icon svg { width: 13px; height: 13px; }


/* ------------------------- DISCOUNT / VIDEO REVIEW ----------------------- */
.ds-discount-banner {
  background: linear-gradient(135deg, rgba(255,193,7,.18) 0%, rgba(249,115,22,.10) 100%);
  border: 1px solid rgba(255,193,7,.30);
  border-radius: var(--acc-radius);
  padding: 22px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.ds-discount-banner__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #FFC107 0%, #f97316 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(255,193,7,.30);
}
.ds-discount-banner__icon svg { width: 26px; height: 26px; }
.ds-discount-banner__body { flex: 1; min-width: 0; }
.ds-discount-banner__title { margin: 0 0 4px; font-size: 18px; font-weight: 900; letter-spacing: -0.01em; }
.ds-discount-banner__text { margin: 0; font-size: 13px; color: var(--acc-muted); }

.ds-subhead {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.10em;
  color: var(--acc-muted);
  text-transform: uppercase;
  margin: 16px 0 8px;
}

.ds-review-row {
  background: #fff;
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius);
  padding: 14px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: var(--acc-shadow-sm);
  margin-bottom: 10px;
}
.ds-review-row__thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.ds-review-row__thumb svg { width: 24px; height: 24px; opacity: .9; }
.ds-review-row__info { flex: 1; min-width: 0; }
.ds-review-row__product { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.ds-review-row__meta { font-size: 12px; color: var(--acc-muted); }
.ds-review-row__meta code {
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--acc-text);
  font-weight: 700;
}

.ds-uploader {
  border: 2px dashed var(--acc-border-strong);
  border-radius: var(--acc-radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  background: #fafbfc;
  transition: background .15s, border-color .15s;
}
.ds-uploader:hover { background: #f5f6f8; border-color: #2b2b2b; }
.ds-uploader__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--acc-blue-bg);
  color: var(--acc-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.ds-uploader__icon svg { width: 22px; height: 22px; }
.ds-uploader__title { font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.ds-uploader__hint { font-size: 12px; color: var(--acc-muted); }

/* ------------------------------ LOGIN ------------------------------------ */
.ds-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #fff;
  border-radius: var(--acc-radius);
  overflow: hidden;
  box-shadow: var(--acc-shadow);
  max-width: 980px;
  margin: 28px auto 0;
}

.ds-login__brand {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 50%),
    linear-gradient(135deg, #2b2b2b 0%, #3a3a3a 100%);
  padding: 36px 32px;
  color: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.ds-login__brand::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,193,7,.30) 0%, transparent 70%);
  bottom: -150px;
  right: -120px;
  pointer-events: none;
}
.ds-login__brand h2 { font-size: 24px; font-weight: 900; margin: 0 0 6px; letter-spacing: -0.02em; position: relative; color: #fff; }
.ds-login__brand p { font-size: 14px; margin: 0 0 28px; color: rgba(255,255,255,.8); line-height: 1.55; position: relative; }
.ds-login__valueprops { display: flex; flex-direction: column; gap: 14px; margin-top: auto; position: relative; }
.ds-login__valueprop { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,.92); }
.ds-login__valueprop svg { width: 18px; height: 18px; color: var(--acc-yellow); flex-shrink: 0; }

.ds-login__form { padding: 32px 28px; }
.ds-login__form h3 { font-size: 20px; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.01em; color: var(--acc-text); }
.ds-login__form-sub { font-size: 13px; color: var(--acc-muted); margin: 0 0 22px; }
.ds-login__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 18px;
  font-size: 13px;
}
.ds-login__row label { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--acc-text); }
.ds-login__row a { color: #2b2b2b; text-decoration: none; font-weight: 600; }
.ds-login__row a:hover { text-decoration: underline; }
.ds-login__signup {
  text-align: center;
  font-size: 13px;
  color: var(--acc-muted);
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--acc-border);
}
.ds-login__signup a { color: var(--acc-text); font-weight: 700; text-decoration: none; }
.ds-login__signup a:hover { text-decoration: underline; }

/* Mobile login variant */
.ds-mlogin { padding: 8px 0; }
.ds-mlogin__hero { text-align: center; padding: 16px 12px; margin-bottom: 14px; }
.ds-mlogin__icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #FFC107 0%, #f97316 100%);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 30px rgba(255,193,7,.30);
}
.ds-mlogin__icon svg { width: 28px; height: 28px; }
.ds-mlogin__hero h2 { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; margin: 0 0 4px; }
.ds-mlogin__hero p { font-size: 13px; color: var(--acc-muted); margin: 0; line-height: 1.5; }

/* ------------------------------- DANGER ZONE ----------------------------- */
.ds-danger-zone {
  border-color: rgba(239, 68, 68, .20);
  background: linear-gradient(to right, rgba(239,68,68,.03), #fff);
}
.ds-danger-zone .ds-card__title { color: var(--acc-red); }

/* ---------------- Hide WC empty-state default messages we replace -------- */
.woocommerce-MyAccount-content .woocommerce-message:has(.button[href*="orders"]),
.woocommerce-MyAccount-content .woocommerce-info { /* generic info we re-style */
  background: #fff;
  border: 1px solid var(--acc-border);
  border-radius: var(--acc-radius);
  padding: 16px;
  color: var(--acc-text);
  font-size: 13px;
  box-shadow: var(--acc-shadow-sm);
}
.woocommerce-MyAccount-content .woocommerce-info::before { display: none; }

/* WC table reset for orders/downloads visual safety */
.woocommerce-MyAccount-content table.shop_table,
.woocommerce-MyAccount-content table.shop_table_responsive {
  background: transparent;
  border: 0;
}

/* Hidden helper */
.ds-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================================
   ============== MOBILE OVERRIDES — UNICA SEZIONE (<=900px) ===============
   ============ Tutto isolato, nessun negative-margin, no overflow body ====
   ========================================================================= */
@media (max-width: 900px) {

  /* ---- Container globali: clipping difensivo per impedire qualsiasi
          elemento di sfondare il body. overflow-x:clip non crea contesto
          di scroll (a differenza di hidden), quindi non interferisce con
          position:sticky né con drawer fissi. ---- */
  .ds-account-wrap {
    padding: 16px 0 80px;
    overflow-x: clip;
  }
  .ds-account-wrap > .ds-container {
    padding: 0 16px;
    overflow-x: clip;
  }

  /* ---- Layout shell: stack verticale ---- */
  .ds-account {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
  }

  .ds-account__content {
    gap: 14px;
    min-width: 0;
    overflow-x: clip;
  }

  /* ---- Sidebar card ---- */
  .ds-account__nav {
    padding: 14px;
    position: static;
    overflow: hidden;       /* contiene il rail orizzontale */
  }

  .ds-account__user {
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  /* ---- NAVIGATION = rail orizzontale di tile icona+label ---- */
  /* Container scorrevole: NESSUN negative-margin. Lo scroll è
     completamente locale a questo ul, isolato dal documento. */
  .ds-account__nav .woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .ds-account__nav .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
    display: none;
  }

  /* Tile singolo */
  .ds-account__nav .woocommerce-MyAccount-navigation li {
    flex: 0 0 auto;
    width: 92px;
    margin: 0;
    padding: 0;
  }
  .ds-account__nav .woocommerce-MyAccount-navigation li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 92px;
    height: 92px;
    padding: 12px 8px;
    border: 1px solid var(--acc-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--acc-shadow-sm);
    text-align: center;
    text-decoration: none;
    color: var(--acc-text);
    position: relative;
    font-size: 11px;
    font-weight: 600;
  }
  .ds-account__nav .woocommerce-MyAccount-navigation li.is-active > a,
  .ds-account__nav .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--is-active > a {
    background: #2b2b2b;
    color: #fff;
    border-color: #2b2b2b;
  }
  .ds-account__nav .woocommerce-MyAccount-navigation li a > .ds-nav-icon {
    width: 22px;
    height: 22px;
    color: var(--acc-text);
    flex-shrink: 0;
  }
  .ds-account__nav .woocommerce-MyAccount-navigation li.is-active > a .ds-nav-icon,
  .ds-account__nav .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--is-active > a .ds-nav-icon {
    color: var(--acc-yellow);
  }
  .ds-account__nav .woocommerce-MyAccount-navigation li a .ds-nav-label {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    max-width: 100%;
  }
  .ds-account__nav .woocommerce-MyAccount-navigation li a .ds-nav-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    margin: 0;
    padding: 2px 6px;
    font-size: 10px;
    line-height: 1.2;
    min-width: 16px;
  }
  .ds-account__nav .woocommerce-MyAccount-navigation-link--customer-logout {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .ds-account__nav .woocommerce-MyAccount-navigation-link--customer-logout > a {
    border-color: rgba(239,68,68,.30);
    color: var(--acc-red);
  }

  /* ---- Mobile head (back arrow + titolo pagina endpoint) ---- */
  .ds-acc-mobile-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0 12px;
  }
  .ds-acc-mobile-head .ds-acc-back {
    background: #fff;
    border: 1px solid var(--acc-border);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--acc-text);
    text-decoration: none;
    flex-shrink: 0;
  }
  .ds-acc-mobile-head .ds-acc-back svg { width: 16px; height: 16px; }
  .ds-acc-mobile-head h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -0.02em;
  }
  /* Su mobile nasconde l'head desktop duplicato (dashboard non lo usa) */
  .ds-acc-head { display: none; }

  /* ---- WELCOME card ---- */
  .ds-welcome {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px;
  }
  .ds-welcome .ds-avatar.ds-avatar--lg { width: 48px; height: 48px; font-size: 14px; }
  .ds-welcome__hello { font-size: 16px; }
  .ds-welcome__meta { font-size: 11px; }

  /* ---- STATS: 2 colonne pulite (no overflow) ---- */
  .ds-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    gap: 10px;
    overflow: visible;
    margin: 0;
    padding: 0;
  }
  .ds-stat { padding: 12px; min-width: 0; }
  .ds-stat__value { font-size: 20px; }
  .ds-stat__label { font-size: 11px; }

  /* ---- LAST ORDER ---- */
  .ds-lastorder { padding: 14px; }
  .ds-lastorder__order {
    flex-wrap: wrap;
    gap: 10px;
  }
  .ds-lastorder__info { min-width: 0; flex: 1 1 100%; }
  .ds-lastorder__id { font-size: 14px; flex-wrap: wrap; gap: 6px; }
  .ds-lastorder__total { font-size: 16px; flex-shrink: 0; }
  .ds-lastorder__actions { flex-direction: column; gap: 8px; }
  .ds-lastorder__actions > * { width: 100%; justify-content: center; }
  .ds-timeline { gap: 4px; }
  .ds-timeline__label { font-size: 9px; }

  /* ---- QUICK ACTIONS: 1 colonna ---- */
  .ds-acc-actions { grid-template-columns: 1fr; gap: 10px; }
  .ds-action { padding: 14px; }

  /* ---- CHIPS FILTRO (orders/notifiche): scroll orizzontale ISOLATO ---- */
  /* Niente negative-margin: il container ha il suo scroll, non sfora. */
  .ds-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 0 12px;
    padding: 2px 0 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .ds-chips::-webkit-scrollbar { display: none; }
  .ds-chips .ds-chip { flex-shrink: 0; }

  /* ---- ORDERS list ---- */
  .ds-order-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    align-items: stretch;
  }
  .ds-order-row__thumbs { flex-shrink: 0; }
  .ds-order-row__total { font-size: 14px; align-self: flex-end; }
  .ds-order-row__actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .ds-order-row__actions > * { flex: 1 1 auto; justify-content: center; }

  /* ---- ADDRESS grid → 1 col ---- */
  .ds-addr-grid { grid-template-columns: 1fr; }
  .ds-addr { padding: 16px; }

  /* ---- PAYMENT methods ---- */
  .ds-pay {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }
  .ds-pay__visual { width: 100%; height: 56px; flex-shrink: 0; }
  .ds-pay__info { width: 100%; }
  .ds-pay__actions {
    width: 100%;
    flex-direction: row;
    gap: 8px;
  }
  .ds-pay__actions > * { flex: 1 1 auto; justify-content: center; }

  /* ---- FORMS (edit-account, edit-address) ---- */
  .ds-formgrid { grid-template-columns: 1fr; gap: 12px; }
  .ds-form-actions { flex-direction: column; }
  .ds-form-actions > * { width: 100%; justify-content: center; }
  .ds-input input,
  .ds-input select,
  .ds-input textarea { font-size: 16px; }  /* 16px evita zoom Safari */

  /* ---- NOTIFICHE list ---- */
  .ds-notif {
    padding: 12px;
    align-items: flex-start;
    gap: 10px;
  }
  .ds-notif.is-unread { padding-left: 11px; }
  .ds-notif__icon { width: 32px; height: 32px; flex-shrink: 0; }
  .ds-notif__icon svg { width: 15px; height: 15px; }
  .ds-notif__body { min-width: 0; flex: 1 1 auto; }
  .ds-notif__title { font-size: 13px; }
  .ds-notif__desc { font-size: 11px; }
  .ds-notif__actions {
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    align-items: stretch;
  }
  .ds-notif__actions > * { width: auto; }

  /* ---- DISCOUNT BANNER ---- */
  .ds-discount-banner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 16px;
  }
  .ds-discount-banner__icon { width: 48px; height: 48px; }
  .ds-discount-banner__icon svg { width: 22px; height: 22px; }
  .ds-discount-banner__title { font-size: 16px; }
  .ds-discount-banner__body { text-align: center; }

  /* ---- REVIEW row ---- */
  .ds-review-row {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
  }
  .ds-review-row__thumb { width: 48px; height: 48px; flex-shrink: 0; }
  .ds-review-row__info { min-width: 0; flex: 1 1 calc(100% - 60px); }

  /* ---- UPLOADER ---- */
  .ds-uploader { padding: 24px 16px; }

  /* ---- EMPTY STATE ---- */
  .ds-empty-state { padding: 32px 16px; }
  .ds-empty-state__icon { width: 56px; height: 56px; }

  /* ---- ENDPOINT HEAD action buttons ---- */
  .ds-acc-head__actions {
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }
  .ds-acc-head__actions > * { flex: 0 1 auto; }
  .ds-acc-head__actions form { flex: 0 1 auto; }
  .ds-acc-head__actions form button { width: 100%; justify-content: center; }

  /* ---- LOGIN page: stack brand + form ---- */
  .ds-login { grid-template-columns: 1fr; }
  .ds-login__brand { padding: 24px 20px; }
  .ds-login__brand h2 { font-size: 20px; }
  .ds-login__form { padding: 24px 20px; }

  /* ---- BUTTONS larghi sufficienti per touch ---- */
  .ds-acc-btn-primary,
  .ds-acc-btn-secondary,
  .ds-acc-btn-dark {
    min-height: 40px;
  }
}

/* =========================================================================
   ============= END MOBILE OVERRIDES ======================================
   ========================================================================= */
