/* =========================================================================
 * My Account for Elementor — estilos base. Todo es themable con variables y los
 * controles de Elementor sobrescriben color/typo/espaciado vía {{WRAPPER}}.
 * ========================================================================= */
.wcma-root {
	--wcma-accent: #2563eb;
	--wcma-bg: #ffffff;
	--wcma-panel: #ffffff;
	--wcma-soft: #f8fafc;
	--wcma-border: #e5e7eb;
	--wcma-text: #111827;
	--wcma-muted: #6b7280;
	--wcma-ok: #16a34a;
	--wcma-warn: #d97706;
	--wcma-danger: #dc2626;
	--wcma-radius: 14px;
	color: var(--wcma-text);
	box-sizing: border-box;
}
.wcma-root *,
.wcma-root *::before,
.wcma-root *::after { box-sizing: border-box; }

.wcma-greeting {
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 20px;
	color: var(--wcma-text);
}

/* ---- Estructura ---- */
.wcma-shell {
	--wcma-sidebar-w: 240px;
	display: grid;
	grid-template-columns: var(--wcma-sidebar-w) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}
.wcma-layout--right .wcma-shell { grid-template-columns: minmax(0, 1fr) var(--wcma-sidebar-w); }
.wcma-layout--right .wcma-sidebar { order: 2; }
.wcma-layout--top .wcma-shell { grid-template-columns: 1fr; }
.wcma-shell--sticky .wcma-sidebar { position: sticky; top: 24px; }

/* ---- Barra lateral ---- */
.wcma-sidebar {
	background: var(--wcma-panel);
	border: 1px solid var(--wcma-border);
	border-radius: var(--wcma-radius);
	padding: 14px;
}
.wcma-user {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 8px 14px;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--wcma-border);
}
.wcma-user-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.wcma-user-meta { display: flex; flex-direction: column; min-width: 0; }
.wcma-user-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcma-user-email { font-size: 12.5px; color: var(--wcma-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wcma-nav { display: flex; flex-direction: column; gap: 2px; }
.wcma-layout--top .wcma-nav { flex-direction: row; flex-wrap: wrap; }
.wcma-nav-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 12px;
	border-radius: 8px;
	color: var(--wcma-text);
	text-decoration: none;
	font-size: 14.5px;
	line-height: 1.2;
	transition: background-color .15s, color .15s;
}
.wcma-nav-item:hover { background: var(--wcma-soft); color: var(--wcma-accent); }
.wcma-nav-item.is-active { background: color-mix(in srgb, var(--wcma-accent) 10%, transparent); color: var(--wcma-accent); font-weight: 600; }
.wcma-nav-icon { display: inline-flex; flex: none; }
.wcma-nav-icon .wcma-icon { width: 20px; height: 20px; }
.wcma-nav-label { flex: 1 1 auto; }
.wcma-nav-count {
	flex: none;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--wcma-accent) 14%, transparent);
	color: var(--wcma-accent);
	font-size: 12px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.wcma-nav--customer-logout { color: var(--wcma-muted); }

/* ---- Contenido / bloques ---- */
.wcma-content { min-width: 0; }
.wcma-section-title { font-size: 20px; font-weight: 700; margin: 0 0 16px; }
.wcma-block {
	background: var(--wcma-panel);
	border: 1px solid var(--wcma-border);
	border-radius: var(--wcma-radius);
	padding: 20px;
}
.wcma-block + .wcma-block, .wcma-grid + .wcma-block, .wcma-stats + .wcma-grid { margin-top: 20px; }
.wcma-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.wcma-block-title { font-size: 16px; font-weight: 700; margin: 0; }
.wcma-link { color: var(--wcma-accent); text-decoration: none; font-weight: 500; background: none; border: 0; cursor: pointer; padding: 0; font: inherit; }
.wcma-link:hover { text-decoration: underline; }
.wcma-link--danger { color: var(--wcma-danger); }

/* ---- Tarjetas de estadística ---- */
.wcma-stats {
	--wcma-card-min: 220px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(var(--wcma-card-min), 1fr));
	gap: 16px;
	margin-bottom: 20px;
}
.wcma-stat {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--wcma-panel);
	border: 1px solid var(--wcma-border);
	border-radius: var(--wcma-radius);
	padding: 18px;
	transition: box-shadow .18s, transform .18s;
}
.wcma-stat:hover { transform: translateY(-2px); }
.wcma-stat-icon {
	flex: none;
	width: 52px; height: 52px;
	border-radius: 12px;
	display: inline-flex; align-items: center; justify-content: center;
	background: color-mix(in srgb, var(--wcma-accent) 12%, transparent);
	color: var(--wcma-accent);
}
.wcma-stat-icon .wcma-icon { width: 26px; height: 26px; }
.wcma-stat--encamino  .wcma-stat-icon { background: #eef2ff; color: #4f46e5; }
.wcma-stat--completed .wcma-stat-icon { background: #ecfdf5; color: #059669; }
.wcma-stat--wishlist  .wcma-stat-icon { background: #fef2f2; color: #e11d48; }
.wcma-stat-body { display: flex; flex-direction: column; min-width: 0; }
.wcma-stat-label { font-size: 13.5px; color: var(--wcma-muted); order: 1; }
.wcma-stat-num { font-size: 28px; font-weight: 700; line-height: 1.1; order: 2; margin: 2px 0 4px; }
.wcma-stat-link { order: 3; font-size: 12.5px; color: var(--wcma-accent); text-decoration: none; }
.wcma-stat-link:hover { text-decoration: underline; }

/* ---- Rejilla escritorio ---- */
.wcma-grid--2 { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }

/* ---- Tabla ---- */
.wcma-table-wrap { overflow-x: auto; }
.wcma-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wcma-table th { text-align: left; font-weight: 600; color: var(--wcma-muted); font-size: 12.5px; text-transform: none; padding: 0 12px 10px; white-space: nowrap; }
.wcma-table td { padding: 14px 12px; border-top: 1px solid var(--wcma-border); vertical-align: middle; }
.wcma-table tbody tr { transition: background-color .12s; }
.wcma-table tbody tr:hover { background: var(--wcma-soft); }
.wcma-td-actions { text-align: right; }

/* ---- Badges de estado ---- */
.wcma-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
	background: #f1f5f9;
	color: #475569;
	white-space: nowrap;
}
.wcma-badge--completed { background: #ecfdf5; color: #047857; }
.wcma-badge--processing { background: #eff6ff; color: #1d4ed8; }
.wcma-badge--on-hold { background: #fffbeb; color: #b45309; }
.wcma-badge--pending { background: #f1f5f9; color: #475569; }
.wcma-badge--cancelled, .wcma-badge--failed { background: #fef2f2; color: #b91c1c; }
.wcma-badge--refunded { background: #f5f3ff; color: #6d28d9; }
.wcma-badge--en-camino { background: color-mix(in srgb, var(--wcma-badge, var(--wcma-accent)) 14%, transparent); color: var(--wcma-badge, var(--wcma-accent)); }

/* ---- Información de la cuenta ---- */
.wcma-info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.wcma-info-row { display: flex; gap: 12px; }
.wcma-info-ic { flex: none; color: var(--wcma-muted); }
.wcma-info-ic .wcma-icon { width: 20px; height: 20px; margin-top: 2px; }
.wcma-info-row strong { display: block; font-size: 14px; }
.wcma-info-sub { display: block; font-size: 13px; color: var(--wcma-muted); line-height: 1.5; }
.wcma-info-name { font-weight: 600; }

/* ---- Ayuda ---- */
.wcma-help { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; background: var(--wcma-soft); }
.wcma-help-col { display: flex; align-items: center; gap: 14px; flex: 1 1 320px; }
.wcma-help-ic { color: var(--wcma-accent); flex: none; }
.wcma-help-ic .wcma-icon { width: 34px; height: 34px; }
.wcma-help-faq { justify-content: flex-end; text-align: left; }
.wcma-help-text { display: flex; flex-direction: column; }
.wcma-help-text strong { font-size: 14.5px; }
.wcma-help-text span { font-size: 13px; color: var(--wcma-muted); }
.wcma-help-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Botones ---- */
.wcma-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 18px;
	border-radius: 10px;
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	text-decoration: none;
	transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.wcma-btn--sm { padding: 8px 14px; font-size: 13px; }
.wcma-btn--block { width: 100%; }
.wcma-btn--primary { background: var(--wcma-accent); border-color: var(--wcma-accent); color: #fff; }
.wcma-btn--primary:hover { filter: brightness(.94); color: #fff; }
.wcma-btn--ghost { background: #fff; border-color: var(--wcma-border); color: var(--wcma-text); }
.wcma-btn--ghost:hover { border-color: var(--wcma-accent); color: var(--wcma-accent); }
.wcma-btn[disabled] { opacity: .6; cursor: default; }
.wcma-btn.is-loading .wcma-btn-label { visibility: hidden; }
.wcma-btn.is-loading .wcma-spinner { display: inline-block; }

.wcma-spinner { display: none; position: absolute; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: wcma-spin .7s linear infinite; }
.wcma-btn { position: relative; }
@keyframes wcma-spin { to { transform: rotate(360deg); } }

/* ---- Estado vacío ---- */
.wcma-empty { text-align: center; padding: 32px 16px; color: var(--wcma-muted); }
.wcma-empty p { margin: 0 0 14px; }

/* ---- Ver pedido / timeline ---- */
.wcma-back { display: inline-block; margin-bottom: 12px; color: var(--wcma-muted); text-decoration: none; font-size: 14px; }
.wcma-back:hover { color: var(--wcma-accent); }
.wcma-order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.wcma-order-date { color: var(--wcma-muted); font-size: 13.5px; }
.wcma-track { margin-bottom: 20px; }
.wcma-timeline { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; position: relative; }
.wcma-timeline::before { content: ""; position: absolute; top: 9px; left: 6%; right: 6%; height: 2px; background: var(--wcma-border); }
.wcma-step { position: relative; flex: 1 1 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; z-index: 1; }
.wcma-step-dot { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--wcma-border); }
.wcma-step-label { font-size: 12.5px; color: var(--wcma-muted); max-width: 110px; }
.wcma-step.is-done .wcma-step-dot { background: var(--wcma-accent); border-color: var(--wcma-accent); }
.wcma-step.is-current .wcma-step-dot { border-color: var(--wcma-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wcma-accent) 18%, transparent); }
.wcma-step.is-done .wcma-step-label, .wcma-step.is-current .wcma-step-label { color: var(--wcma-text); font-weight: 600; }
.wcma-track-num { margin: 16px 0 0; font-size: 13.5px; }

/* ---- Métodos de pago ---- */
.wcma-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.wcma-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.wcma-card { display: flex; flex-direction: column; gap: 8px; }
.wcma-card-face {
	position: relative;
	border-radius: 14px;
	padding: 18px;
	min-height: 150px;
	color: #fff;
	background: linear-gradient(135deg, #334155, #0f172a);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: 0 8px 20px rgba(2, 6, 23, .18);
}
.wcma-brand--visa { background: linear-gradient(135deg, #1a1f71, #2b3a9e); }
.wcma-brand--mastercard { background: linear-gradient(135deg, #c0392b, #e67e22); }
.wcma-brand--amex { background: linear-gradient(135deg, #0f766e, #06b6d4); }
.wcma-card-brand { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; }
.wcma-card-num { font-size: 17px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.wcma-card-foot { display: flex; justify-content: space-between; align-items: flex-end; font-size: 12.5px; opacity: .92; }
.wcma-card-holder { text-transform: uppercase; }
.wcma-card-default { position: absolute; top: 14px; right: 14px; background: rgba(255,255,255,.22); padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.wcma-card-actions { display: flex; gap: 14px; padding: 0 4px; }
.wcma-ref-add { margin-top: 20px; }
.wcma-ref-form { margin-top: 14px; }
.wcma-exp { display: flex; gap: 8px; }

/* ---- Formularios ---- */
.wcma-form { max-width: 640px; }
.wcma-fields { display: flex; flex-wrap: wrap; gap: 16px; }
.wcma-field { display: flex; flex-direction: column; flex: 1 1 100%; min-width: 0; }
.wcma-w-50 { flex-basis: calc(50% - 8px); }
.wcma-w-100 { flex-basis: 100%; }
.wcma-field--check { justify-content: flex-end; }
.wcma-label { font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--wcma-text); }
.wcma-req { color: var(--wcma-danger); }
.wcma-input {
	width: 100%;
	padding: 11px 13px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--wcma-text);
	background: #fff;
	border: 1px solid var(--wcma-border);
	border-radius: 10px;
	transition: border-color .15s, box-shadow .15s;
}
.wcma-input:focus { outline: none; border-color: var(--wcma-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wcma-accent) 18%, transparent); }
.wcma-field.has-error .wcma-input { border-color: var(--wcma-danger); }
.wcma-field-error { color: var(--wcma-danger); font-size: 12.5px; margin-top: 5px; min-height: 0; }
.wcma-fieldset { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--wcma-border); }
.wcma-fieldset .wcma-block-title { margin-bottom: 14px; }
.wcma-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--wcma-muted); cursor: pointer; }
.wcma-form .wcma-btn { margin-top: 18px; }
.wcma-msg { font-size: 13.5px; margin-top: 14px; }
.wcma-msg.is-error { color: var(--wcma-danger); }
.wcma-msg.is-ok { color: var(--wcma-ok); }
.wcma-note { color: var(--wcma-muted); font-size: 13.5px; margin-top: 16px; }

/* Password toggle + fuerza + disponibilidad + honeypot */
.wcma-pass-wrap { position: relative; }
.wcma-pass-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: none; cursor: pointer; opacity: .55; }
.wcma-pass-toggle::before { content: ""; display: block; width: 20px; height: 20px; margin: 0 auto; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 5c-7 0-10 7-10 7s3 7 10 7 10-7 10-7-3-7-10-7zm0 11a4 4 0 110-8 4 4 0 010 8z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 5c-7 0-10 7-10 7s3 7 10 7 10-7 10-7-3-7-10-7zm0 11a4 4 0 110-8 4 4 0 010 8z'/></svg>") center/contain no-repeat; }
.wcma-pass-toggle.is-on { opacity: .9; }
.wcma-strength { height: 5px; border-radius: 999px; background: var(--wcma-border); margin-top: 8px; overflow: hidden; }
.wcma-strength i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--wcma-danger); transition: width .2s, background .2s; }
.wcma-strength[data-score="2"] i { background: var(--wcma-warn); }
.wcma-strength[data-score="3"] i { background: #eab308; }
.wcma-strength[data-score="4"] i { background: var(--wcma-ok); }
.wcma-availability { font-size: 12.5px; margin-top: 5px; }
.wcma-availability.is-ok { color: var(--wcma-ok); }
.wcma-availability.is-bad { color: var(--wcma-danger); }
.wcma-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---- Avatar editor ---- */
.wcma-avatar-edit { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.wcma-avatar-preview { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 1px solid var(--wcma-border); }
.wcma-avatar-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wcma-avatar-status { font-size: 12.5px; color: var(--wcma-muted); }

/* ---- Acceso (login/registro) ---- */
.wcma-auth { max-width: 440px; margin: 0 auto; background: var(--wcma-panel); border: 1px solid var(--wcma-border); border-radius: var(--wcma-radius); padding: 26px; }
.wcma-auth-tabs { display: flex; gap: 6px; background: var(--wcma-soft); padding: 5px; border-radius: 12px; margin-bottom: 22px; }
.wcma-auth-tab { flex: 1; padding: 10px; border: 0; border-radius: 8px; background: none; font-size: 14px; font-weight: 600; color: var(--wcma-muted); cursor: pointer; }
.wcma-auth-tab.is-active { background: #fff; color: var(--wcma-text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.wcma-auth-form { max-width: none; }
.wcma-auth-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 13.5px; }
.wcma-turnstile { margin-top: 14px; }

/* ---- Envoltura de contenido nativo de WooCommerce ---- */
.wcma-native .woocommerce-MyAccount-content,
.wcma-native > .woocommerce { padding: 0; margin: 0; width: 100%; }
.wcma-native table.shop_table { border-radius: 10px; }

/* ---- Toasts ---- */
.wcma-toasts { position: fixed; z-index: 99999; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; }
.wcma-toast { background: #111827; color: #fff; padding: 12px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; max-width: 320px; }
.wcma-toast.is-in { opacity: 1; transform: none; }
.wcma-toast.is-error { background: var(--wcma-danger); }
.wcma-toast.is-ok { background: var(--wcma-ok); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
	.wcma-shell,
	.wcma-layout--right .wcma-shell { grid-template-columns: 1fr; }
	.wcma-layout--right .wcma-sidebar { order: 0; }
	.wcma-shell--sticky .wcma-sidebar { position: static; }
	.wcma-grid--2 { grid-template-columns: 1fr; }
	.wcma-nav { flex-direction: row; flex-wrap: wrap; }
	.wcma-nav-item { flex: 1 1 auto; }
}
@media (max-width: 600px) {
	.wcma-greeting { font-size: 22px; }
	.wcma-block { padding: 16px; }
	.wcma-w-50 { flex-basis: 100%; }
	.wcma-timeline { flex-direction: column; gap: 14px; align-items: flex-start; }
	.wcma-timeline::before { left: 8px; right: auto; top: 6%; bottom: 6%; width: 2px; height: auto; }
	.wcma-step { flex-direction: row; text-align: left; }
	/* Tabla → tarjetas apiladas */
	.wcma-table--orders thead { display: none; }
	.wcma-table--orders, .wcma-table--orders tbody, .wcma-table--orders tr, .wcma-table--orders td { display: block; width: 100%; }
	.wcma-table--orders tr { border: 1px solid var(--wcma-border); border-radius: 10px; margin-bottom: 12px; padding: 6px 12px; }
	.wcma-table--orders td { border: 0; display: flex; justify-content: space-between; align-items: center; padding: 8px 0; text-align: right; }
	.wcma-table--orders td::before { content: attr(data-th); font-weight: 600; color: var(--wcma-muted); font-size: 12.5px; }
	.wcma-td-actions { text-align: right; }
}

/* =========================================================================
 * Secciones a medida: descargas, direcciones, formulario de dirección,
 * artículos/totales del pedido, y restyle de restos nativos de WooCommerce.
 * ========================================================================= */

/* ---- Descargas ---- */
.wcma-download-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.wcma-download { display: flex; align-items: center; gap: 14px; background: var(--wcma-panel); border: 1px solid var(--wcma-border); border-radius: var(--wcma-radius); padding: 16px; }
.wcma-download-ic { flex: none; width: 44px; height: 44px; border-radius: 10px; background: color-mix(in srgb, var(--wcma-accent) 12%, transparent); color: var(--wcma-accent); display: inline-flex; align-items: center; justify-content: center; }
.wcma-download-ic .wcma-icon { width: 22px; height: 22px; }
.wcma-download-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.wcma-download-name { font-weight: 600; font-size: 14.5px; }
.wcma-download-product { font-size: 12.5px; color: var(--wcma-muted); }
.wcma-download-meta { font-size: 12px; color: var(--wcma-muted); display: flex; gap: 12px; flex-wrap: wrap; margin-top: 3px; }

/* ---- Direcciones ---- */
.wcma-address-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.wcma-address-card .wcma-block-title { display: flex; align-items: center; gap: 8px; }
.wcma-address-card .wcma-block-title .wcma-info-ic .wcma-icon { width: 18px; height: 18px; }
.wcma-address { font-style: normal; line-height: 1.65; font-size: 14px; color: var(--wcma-text); }
.wcma-address-empty { color: var(--wcma-muted); font-size: 14px; margin: 0; }
.wcma-address-form { max-width: 720px; }
.wcma-state-control { display: block; }

/* ---- Artículos / totales / notas del pedido ---- */
.wcma-items { list-style: none; margin: 0; padding: 0; }
.wcma-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--wcma-border); }
.wcma-item:first-child { border-top: 0; }
.wcma-item-thumb img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; display: block; }
.wcma-item-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.wcma-item-name { font-weight: 600; font-size: 14px; }
.wcma-item-qty { font-size: 12.5px; color: var(--wcma-muted); }
.wcma-item-price { font-weight: 600; white-space: nowrap; }
.wcma-totals { margin: 14px 0 0; border-top: 1px solid var(--wcma-border); padding-top: 12px; }
.wcma-total-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.wcma-total-row dt { color: var(--wcma-muted); font-weight: 500; margin: 0; }
.wcma-total-row dd { margin: 0; font-weight: 600; }
.wcma-total--order_total dt, .wcma-total--order_total dd { font-size: 16px; color: var(--wcma-text); }
.wcma-order-items .wcma-btn { margin-top: 16px; }
.wcma-order-addresses { margin-top: 20px; }
.wcma-order-notes .wcma-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.wcma-note-item { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 2px solid var(--wcma-accent); }
.wcma-note-date { font-size: 12px; color: var(--wcma-muted); }
.wcma-note-text { font-size: 14px; }
.wcma-note-text p { margin: 0; }

/* ---- Restyle de restos nativos de WooCommerce dentro del widget ----
 * (p. ej. el formulario de la pasarela en «Añadir método de pago»). */
.wcma-root .woocommerce { color: inherit; }
.wcma-root .woocommerce form .form-row { padding: 0; margin: 0 0 16px; }
.wcma-root .woocommerce .input-text,
.wcma-root .woocommerce input[type="text"],
.wcma-root .woocommerce input[type="email"],
.wcma-root .woocommerce input[type="tel"],
.wcma-root .woocommerce input[type="password"],
.wcma-root .woocommerce select,
.wcma-root .woocommerce textarea {
	width: 100%; padding: 11px 13px; font-size: 15px; line-height: 1.4;
	border: 1px solid var(--wcma-border); border-radius: 10px;
	background: #fff; color: var(--wcma-text); box-sizing: border-box;
}
.wcma-root .woocommerce .input-text:focus,
.wcma-root .woocommerce select:focus,
.wcma-root .woocommerce textarea:focus { outline: none; border-color: var(--wcma-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wcma-accent) 18%, transparent); }
.wcma-root .woocommerce label { font-size: 13.5px; font-weight: 600; margin-bottom: 6px; display: block; color: var(--wcma-text); }
.wcma-root .woocommerce .button,
.wcma-root .woocommerce button.button,
.wcma-root .woocommerce a.button {
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--wcma-accent); border: 1px solid var(--wcma-accent); color: #fff;
	border-radius: 10px; padding: 11px 18px; font-weight: 600; font-size: 14px;
	line-height: 1; cursor: pointer; text-decoration: none; transition: filter .15s;
}
.wcma-root .woocommerce .button:hover,
.wcma-root .woocommerce button.button:hover,
.wcma-root .woocommerce a.button:hover { filter: brightness(.94); color: #fff; }
.wcma-root .woocommerce-message,
.wcma-root .woocommerce-info,
.wcma-root .woocommerce-error {
	border-radius: 10px; border: 1px solid var(--wcma-border); background: var(--wcma-soft);
	padding: 12px 16px; margin: 0 0 16px; list-style: none; font-size: 14px;
}
.wcma-root .woocommerce-error { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.wcma-root .woocommerce table.shop_table { border: 1px solid var(--wcma-border); border-radius: 12px; border-collapse: separate; overflow: hidden; }
