/*
 * Donatech Donor Panel — apresentação.
 * Segue os tokens do Donatech UI (1.4.0). Todo var() traz como fallback o valor
 * do token 1.4.0, para que o painel fique igual com ou sem o plugin Donatech UI.
 * Verde só para impacto/ativo/pago; vermelho só para erro.
 */

/* Shell */
.dtdp-wrap.dtdp-shell {
  margin: 20px 0;
  padding: 0;
  color: var(--dtc-color-text, #101828);
  font-family: var(--dtc-font-sans, inherit);
  font-size: .9375rem;
  line-height: var(--dtc-line-height-normal, 1.5);
  overflow-x: hidden;
  overflow-x: clip; /* não corta a sombra inferior dos cards */
  overflow-clip-margin: 24px;
  overflow-wrap: break-word;
}
.dtdp-wrap.dtdp-shell.dtc-ui { background: transparent; }
.dtdp-shell * { box-sizing: border-box; min-width: 0; }
.dtdp-shell h2 {
  margin: 0 0 6px;
  color: var(--dtc-color-text, #101828);
  font-size: clamp(1.375rem, 4.6vw, var(--dtc-font-size-2xl, 1.9375rem));
  font-weight: var(--dtc-font-weight-extrabold, 800);
  line-height: var(--dtc-line-height-tight, 1.15);
  letter-spacing: -.01em;
}
.dtdp-shell h3,
.dtdp-shell .dtdp-section-title {
  margin: 28px 0 12px;
  color: var(--dtc-color-text, #101828);
  font-size: var(--dtc-font-size-lg, 1.25rem);
  font-weight: var(--dtc-font-weight-bold, 700);
  line-height: 1.25;
}
.dtdp-shell a:not(.button) { color: var(--dtc-color-primary, #1e3a5f); text-underline-offset: 2px; }
.dtdp-shell a:not(.button):hover { color: var(--dtc-color-primary-600, #102a43); }
.dtdp-shell :focus-visible { outline: 2px solid var(--dtc-color-primary, #1e3a5f); outline-offset: 2px; }
.dtdp-shell .screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Cabeçalho (page header) */
.dtdp-hero {
  margin: 0 0 20px;
  padding: 24px;
  border: 1px solid var(--dtc-color-primary-100, #d5e4f0);
  border-radius: var(--dtc-radius-card, 1.125rem);
  background: var(--dtc-color-primary-50, #eaf2f8);
}
.dtdp-hero h2 { margin-bottom: 6px; color: var(--dtc-color-primary, #1e3a5f); }
.dtdp-hero .dtdp-intro { margin-bottom: 0; color: var(--dtc-color-text-subtle, #475467); }
.dtdp-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--dtc-color-primary, #1e3a5f);
  font-size: var(--dtc-font-size-xs, .75rem);
  font-weight: var(--dtc-font-weight-bold, 700);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dtdp-intro { margin: 6px 0 20px; max-width: 47rem; color: var(--dtc-color-text-muted, #667085); }

/* Cards de métricas */
.dtdp-cards { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0 0 24px; }
.dtdp-card,
.dtdp-subscription-card,
.dtdp-order-card {
  position: relative;
  overflow: hidden;
  padding: var(--dtc-space-5, 1.25rem);
  border: 1px solid var(--dtc-color-border, #e4e7ec);
  border-radius: var(--dtc-radius-card, 1.125rem);
  background: var(--dtc-color-surface, #fff);
  box-shadow: var(--dtc-shadow-soft, 0 12px 28px rgba(16, 24, 40, .05));
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: border-color var(--dtc-transition-base, 180ms ease), box-shadow var(--dtc-transition-base, 180ms ease);
}
.dtdp-order-card:hover,
.dtdp-subscription-card:hover { border-color: var(--dtc-color-border-strong, #cbd5e1); }
.dtdp-order-card:focus-within,
.dtdp-subscription-card:focus-within { box-shadow: var(--dtc-shadow-soft, 0 12px 28px rgba(16, 24, 40, .05)), var(--dtc-focus-ring, 0 0 0 3px rgba(30, 58, 95, .28)); }
.dtdp-card {
  display: flex;
  flex-direction: column;
  min-height: 7.5rem;
  background: linear-gradient(180deg, var(--dtc-color-surface, #fff) 0%, var(--dtc-color-surface-subtle, #f8fafc) 100%);
}
.dtdp-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--dtc-color-primary, #1e3a5f); }
.dtdp-card--donation::before,
.dtdp-card--active::before { background: var(--dtc-color-success, #15803d); }
.dtdp-card--single::before,
.dtdp-card--recurring::before { background: var(--dtc-color-primary, #1e3a5f); }
.dtdp-card--campaign::before { background: var(--dtc-color-accent, #0f766e); }
.dtdp-card--purchase::before,
.dtdp-card--products::before { background: var(--dtc-color-border-strong, #cbd5e1); }
.dtdp-card-label {
  display: block;
  margin-bottom: 6px;
  color: var(--dtc-color-text-muted, #667085);
  font-size: var(--dtc-font-size-xs, .75rem);
  font-weight: var(--dtc-font-weight-bold, 700);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dtdp-card-value {
  color: var(--dtc-color-text, #101828);
  font-size: clamp(1.375rem, 5.2vw, 1.75rem);
  font-weight: var(--dtc-font-weight-extrabold, 800);
  line-height: var(--dtc-line-height-tight, 1.15);
  overflow-wrap: anywhere;
}
.dtdp-card--donation .dtdp-card-value { color: var(--dtc-color-success, #15803d); }
.dtdp-card-hint { margin-top: auto; padding-top: 10px; color: var(--dtc-color-text-subtle, #475467); font-size: var(--dtc-font-size-xs, .75rem); }
.dtdp-latest-donation { margin: 0 0 20px; }

/* Listas de pedidos e assinaturas (entity cards) */
.dtdp-list-grid,
.dtdp-subscription-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.dtdp-order-head,
.dtdp-subscription-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dtc-color-border, #e4e7ec);
}
.dtdp-order-head .dtdp-card-label { margin-bottom: 2px; }
.dtdp-order-head strong,
.dtdp-subscription-title {
  display: block;
  color: var(--dtc-color-text, #101828);
  font-size: var(--dtc-font-size-lg, 1.25rem);
  font-weight: var(--dtc-font-weight-bold, 700);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.dtdp-subscription-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px dashed var(--dtc-color-border, #e4e7ec);
  color: var(--dtc-color-text, #101828);
  overflow-wrap: anywhere;
}
.dtdp-subscription-meta strong { color: var(--dtc-color-text-muted, #667085); font-weight: var(--dtc-font-weight-semibold, 600); }
.dtdp-subscription-meta .woocommerce-Price-amount { font-weight: var(--dtc-font-weight-bold, 700); }

/* Ações */
.dtdp-actions,
.dtdp-card-actions,
.dtdp-subscription-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 24px 0 0; }
.dtdp-card-actions,
.dtdp-subscription-actions { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--dtc-color-border, #e4e7ec); }
.dtdp-subscription-card .dtdp-actions { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--dtc-color-border, #e4e7ec); }
.dtdp-inline-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 4px 4px 10px;
  border: 1px solid var(--dtc-color-border, #e4e7ec);
  border-radius: var(--dtc-radius-control, .75rem);
  background: var(--dtc-color-surface-subtle, #f8fafc);
}
.dtdp-inline-action input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--dtc-color-primary, #1e3a5f);
  cursor: pointer;
}

/* Badges / status */
.dtdp-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  max-width: 100%;
  padding: .3rem .65rem;
  border: 1px solid transparent;
  border-radius: var(--dtc-radius-pill, 999px);
  font-size: var(--dtc-font-size-xs, .75rem);
  font-weight: var(--dtc-font-weight-bold, 700);
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}
.dtdp-badge::before { content: ""; flex: 0 0 auto; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.dtdp-badge-single,
.dtdp-badge-recurring { border-color: var(--dtc-color-primary-100, #d5e4f0); background: var(--dtc-color-info-bg, #eaf2f8); color: var(--dtc-color-info, #1e3a5f); }
.dtdp-badge-recurring.dtdp-badge-status-active { border-color: #bbf7d0; background: var(--dtc-color-success-bg, #ecfdf3); color: var(--dtc-color-success, #15803d); }
.dtdp-badge-status-paused,
.dtdp-badge-status-pausada,
.dtdp-badge-status-unknown,
.dtdp-badge-cancelled { border-color: #d1d5db; background: var(--dtc-color-neutral-bg, #f3f4f6); color: var(--dtc-color-neutral, #374151); }
.dtdp-badge-products { border-color: #99f6e4; background: var(--dtc-color-accent-bg, #f0fdfa); color: var(--dtc-color-accent, #0f766e); }
.dtdp-badge-warning { border-color: #fed7aa; background: var(--dtc-color-warning-bg, #fff7ed); color: var(--dtc-color-warning, #9a3412); }

/* Produtos no pedido */
.dtdp-products-notice {
  margin: 14px 0 0;
  padding: 14px;
  border: 1px solid var(--dtc-color-border, #e4e7ec);
  border-radius: var(--dtc-radius-control, .75rem);
  background: var(--dtc-color-surface-subtle, #f8fafc);
  color: var(--dtc-color-text, #101828);
  overflow-wrap: anywhere;
}
.dtdp-products-notice > strong { display: block; color: var(--dtc-color-text-subtle, #475467); font-size: var(--dtc-font-size-sm, .875rem); }
.dtdp-products-list { display: grid; gap: 0; margin: 10px 0 0; padding: 0; list-style: none; }
.dtdp-order-card-products .dtdp-products-list { margin-top: 14px; }
.dtdp-products-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 9px 0;
  border-top: 1px solid var(--dtc-color-border, #e4e7ec);
  overflow-wrap: anywhere;
}
.dtdp-products-list li:first-child { border-top: 0; padding-top: 0; }
.dtdp-products-list li > span { min-width: 0; max-width: 100%; }
.dtdp-products-list li > span:last-child { flex: 0 0 auto; font-weight: var(--dtc-font-weight-semibold, 600); text-align: right; }
.dtdp-products-list small { display: block; margin-top: 2px; color: var(--dtc-color-text-muted, #667085); font-size: 11px; overflow-wrap: anywhere; }

/* Empty state */
.dtdp-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: var(--dtc-space-8, 2rem) var(--dtc-space-5, 1.25rem);
  border: 1px dashed var(--dtc-color-border-strong, #cbd5e1);
  border-radius: var(--dtc-radius-card, 1.125rem);
  background: var(--dtc-color-surface-subtle, #f8fafc);
  color: var(--dtc-color-text-muted, #667085);
  text-align: center;
}
.dtdp-empty::before {
  content: "";
  display: block;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--dtc-color-primary, #1e3a5f) 0 .32rem, transparent .34rem),
    var(--dtc-color-primary-50, #eaf2f8);
}
.dtdp-empty p { margin: 0; }
.dtdp-latest-donation .dtdp-empty { padding-top: var(--dtc-space-6, 1.5rem); padding-bottom: var(--dtc-space-6, 1.5rem); }

/* Histórico de ciclos */
.dtdp-renewal-list {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--dtc-color-border, #e4e7ec);
  border-radius: var(--dtc-radius-control, .75rem);
  background: var(--dtc-color-surface, #fff);
  list-style: none;
  overflow-wrap: anywhere;
}
.dtdp-renewal-list li { margin: 0; padding: 12px 14px; border-top: 1px solid var(--dtc-color-border, #e4e7ec); }
.dtdp-renewal-list li:first-child { border-top: 0; }
.dtdp-renewal-list li:hover { background: var(--dtc-color-primary-50, #eaf2f8); }
.dtdp-renewal-list a { font-weight: var(--dtc-font-weight-bold, 700); }

/* Botões */
.dtdp-wrap.dtdp-shell .button.dtdp-button,
.dtdp-wrap.dtdp-shell a.button.dtdp-button,
.dtdp-wrap.dtdp-shell button.dtdp-button,
.woocommerce-account .woocommerce-MyAccount-content a.button.dtdp-new-donation-button {
  appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 2.625rem;
  margin: 0;
  padding: .65rem 1.1rem;
  border: 1px solid var(--dtc-color-primary, #1e3a5f);
  border-radius: var(--dtc-radius-control, .75rem);
  background: var(--dtc-color-primary, #1e3a5f);
  color: #fff;
  font: inherit;
  font-size: var(--dtc-font-size-sm, .875rem);
  font-weight: var(--dtc-font-weight-bold, 700);
  line-height: 1.2;
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
  box-shadow: var(--dtc-shadow-xs, 0 1px 2px rgba(16, 24, 40, .05));
  transition: background var(--dtc-transition-base, 180ms ease), border-color var(--dtc-transition-base, 180ms ease), box-shadow var(--dtc-transition-base, 180ms ease), transform var(--dtc-transition-fast, 120ms ease);
}
.dtdp-wrap.dtdp-shell a.button.dtdp-button:link,
.dtdp-wrap.dtdp-shell a.button.dtdp-button:visited { color: #fff; }
.dtdp-wrap.dtdp-shell .button.dtdp-button:hover,
.dtdp-wrap.dtdp-shell .button.dtdp-button:focus,
.dtdp-wrap.dtdp-shell a.button.dtdp-button:hover,
.dtdp-wrap.dtdp-shell a.button.dtdp-button:focus,
.woocommerce-account .woocommerce-MyAccount-content a.button.dtdp-new-donation-button:hover,
.woocommerce-account .woocommerce-MyAccount-content a.button.dtdp-new-donation-button:focus {
  transform: translateY(-1px);
  border-color: var(--dtc-color-primary-600, #102a43);
  background: var(--dtc-color-primary-600, #102a43);
  color: #fff;
}
.dtdp-wrap.dtdp-shell .button.dtdp-button:focus-visible,
.woocommerce-account .woocommerce-MyAccount-content a.button.dtdp-new-donation-button:focus-visible { outline: 0; box-shadow: var(--dtc-focus-ring, 0 0 0 3px rgba(30, 58, 95, .28)); }
.dtdp-wrap.dtdp-shell .button.dtdp-button:active,
.woocommerce-account .woocommerce-MyAccount-content a.button.dtdp-new-donation-button:active {
  transform: none;
  border-color: var(--dtc-color-primary-700, #0a1f33);
  background: var(--dtc-color-primary-700, #0a1f33);
  color: #fff;
}

/* Secundário: contorno (Ver recorrentes, Voltar, Pausar, Reativar) */
.dtdp-wrap.dtdp-shell .button.dtdp-button.dtdp-button-outline,
.dtdp-wrap.dtdp-shell a.button.dtdp-button.dtdp-button-outline:link,
.dtdp-wrap.dtdp-shell a.button.dtdp-button.dtdp-button-outline:visited,
.dtdp-wrap.dtdp-shell .button.dtdp-button.dtdp-button-secondary {
  border-color: var(--dtc-color-border-strong, #cbd5e1);
  background: var(--dtc-color-surface, #fff);
  color: var(--dtc-color-text, #101828);
}
.dtdp-wrap.dtdp-shell .button.dtdp-button.dtdp-button-outline:hover,
.dtdp-wrap.dtdp-shell .button.dtdp-button.dtdp-button-outline:focus,
.dtdp-wrap.dtdp-shell .button.dtdp-button.dtdp-button-secondary:hover,
.dtdp-wrap.dtdp-shell .button.dtdp-button.dtdp-button-secondary:focus {
  border-color: var(--dtc-color-primary, #1e3a5f);
  background: var(--dtc-color-primary-50, #eaf2f8);
  color: var(--dtc-color-primary, #1e3a5f);
}
.dtdp-wrap.dtdp-shell .button.dtdp-button.dtdp-button-outline:active,
.dtdp-wrap.dtdp-shell .button.dtdp-button.dtdp-button-secondary:active {
  border-color: var(--dtc-color-primary-700, #0a1f33);
  background: var(--dtc-color-primary-100, #d5e4f0);
  color: var(--dtc-color-primary-700, #0a1f33);
}

/* Cancelar assinatura: ação destrutiva discreta (vermelho só no texto, sem bloco vermelho) */
.dtdp-wrap.dtdp-shell .button.dtdp-button.dtdp-button-danger {
  border-color: var(--dtc-color-border-strong, #cbd5e1);
  background: var(--dtc-color-surface, #fff);
  color: var(--dtc-color-danger, #b42318);
}
.dtdp-wrap.dtdp-shell .button.dtdp-button.dtdp-button-danger:hover,
.dtdp-wrap.dtdp-shell .button.dtdp-button.dtdp-button-danger:focus,
.dtdp-wrap.dtdp-shell .button.dtdp-button.dtdp-button-danger:active {
  border-color: #fecdca;
  background: var(--dtc-color-danger-bg, #fef3f2);
  color: var(--dtc-color-danger, #b42318);
}

/* Navegação da Minha conta (tabs/nav) */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 0 0 22px;
  padding: 8px;
  border: 1px solid var(--dtc-color-border, #e4e7ec);
  border-radius: var(--dtc-radius-card, 1.125rem);
  background: var(--dtc-color-surface, #fff);
  box-shadow: var(--dtc-shadow-xs, 0 1px 2px rgba(16, 24, 40, .05));
  list-style: none;
}
.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0; padding: 0; list-style: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li::marker { content: ""; }
.woocommerce-account .woocommerce-MyAccount-navigation a {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--dtc-radius-control, .75rem);
  background: transparent;
  color: var(--dtc-color-text-subtle, #475467);
  font-family: var(--dtc-font-sans, inherit);
  font-size: var(--dtc-font-size-sm, .875rem);
  font-weight: var(--dtc-font-weight-bold, 700);
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  transition: background var(--dtc-transition-base, 180ms ease), border-color var(--dtc-transition-base, 180ms ease), color var(--dtc-transition-base, 180ms ease);
}
.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation a:focus {
  background: var(--dtc-color-surface-subtle, #f8fafc);
  color: var(--dtc-color-primary, #1e3a5f);
}
.woocommerce-account .woocommerce-MyAccount-navigation a:focus-visible { outline: 0; box-shadow: var(--dtc-focus-ring, 0 0 0 3px rgba(30, 58, 95, .28)); }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a[aria-current="page"] {
  border-color: var(--dtc-color-primary, #1e3a5f);
  background: var(--dtc-color-primary, #1e3a5f);
  color: #fff;
}
.woocommerce-account .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--dtc-color-text-muted, #667085); }

/* Tabelas e campos nativos da Minha conta (somente aparência) */
.woocommerce-account .woocommerce-MyAccount-content table.shop_table {
  width: 100%;
  border: 1px solid var(--dtc-color-border, #e4e7ec);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--dtc-radius-control, .75rem);
  background: var(--dtc-color-surface, #fff);
  overflow: hidden;
}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table th,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td {
  padding: .8rem .9rem;
  border-top: 0;
  border-bottom: 1px solid var(--dtc-color-border, #e4e7ec);
  text-align: left;
  vertical-align: top;
}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table thead th {
  background: var(--dtc-color-surface-subtle, #f8fafc);
  color: var(--dtc-color-text-subtle, #475467);
  font-size: var(--dtc-font-size-xs, .75rem);
  font-weight: var(--dtc-font-weight-bold, 700);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody tr:hover { background: var(--dtc-color-primary-50, #eaf2f8); }
.woocommerce-account .woocommerce-MyAccount-content table.shop_table tr:last-child > * { border-bottom: 0; }
.woocommerce-account .woocommerce-MyAccount-content .input-text,
.woocommerce-account .woocommerce-MyAccount-content select,
.woocommerce-account .woocommerce-MyAccount-content textarea {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 2.625rem;
  padding: .65rem .75rem;
  border: 1px solid var(--dtc-color-border-strong, #cbd5e1);
  border-radius: var(--dtc-radius-control, .75rem);
  background: #fff;
  color: var(--dtc-color-text, #101828);
  transition: border-color var(--dtc-transition-base, 180ms ease), box-shadow var(--dtc-transition-base, 180ms ease);
}
.woocommerce-account .woocommerce-MyAccount-content .input-text:focus,
.woocommerce-account .woocommerce-MyAccount-content select:focus,
.woocommerce-account .woocommerce-MyAccount-content textarea:focus {
  outline: 0;
  border-color: var(--dtc-color-primary, #1e3a5f);
  box-shadow: var(--dtc-focus-ring, 0 0 0 3px rgba(30, 58, 95, .28));
}

/* Responsivo */
@media (min-width: 360px) {
  .dtdp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dtdp-latest-donation { grid-column: 1 / -1; }
  .dtdp-cards > .dtdp-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (min-width: 360px) and (max-width: 959px) {
  .woocommerce-account .woocommerce-MyAccount-navigation ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 700px) {
  .dtdp-cards { gap: 16px; }
  .dtdp-list-grid,
  .dtdp-subscription-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .woocommerce-account .woocommerce-MyAccount-navigation ul { grid-template-columns: 1fr; }
}

@media (min-width: 1100px) {
  .dtdp-cards { grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); }
  .dtdp-cards > .dtdp-card:last-child:nth-child(odd) { grid-column: auto; }
}

@media (max-width: 782px) {
  .dtdp-wrap.dtdp-shell { margin: 12px 0; }
  .dtdp-hero { padding: 18px; }
  .dtdp-card,
  .dtdp-subscription-card,
  .dtdp-order-card { padding: 16px; }
  .dtdp-card { min-height: 0; }
  .dtdp-wrap.dtdp-shell .dtdp-actions .button,
  .dtdp-wrap.dtdp-shell .dtdp-card-actions .button,
  .dtdp-wrap.dtdp-shell .dtdp-subscription-actions .button { width: 100%; text-align: center; }
  .dtdp-inline-action { display: flex; width: 100%; }
  .dtdp-wrap.dtdp-shell .dtdp-inline-action .button { flex: 1 1 auto; width: auto; }
  .dtdp-products-list li { display: block; }
  .dtdp-products-list li > span:last-child { display: block; margin-top: 4px; text-align: left; }
}

@media (max-width: 359px) {
  .dtdp-card,
  .dtdp-subscription-card,
  .dtdp-order-card,
  .dtdp-hero { padding-left: 14px; padding-right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .dtdp-shell *,
  .woocommerce-account .woocommerce-MyAccount-navigation a { transition: none !important; transform: none !important; }
}
