/* ── Minha Conta (Convert) — CdA Ferramentas ─────────────────────────────── */

.cdaf-mcc-wrap {
    width: 100%;
    font-family: inherit;
}

/* ── Banner "complete seu cadastro" (contas via Login com Google) ──────────── */
.cdaf-mcc-google-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fffbeb;
    color: #92400e;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.4;
}
.cdaf-mcc-google-banner span { flex: 1; }
.cdaf-mcc-google-banner-btn {
    flex-shrink: 0;
    background: #d97706;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.cdaf-mcc-google-banner-btn:hover { background: #b45309; }
@media (max-width: 520px) {
    .cdaf-mcc-google-banner { flex-wrap: wrap; }
    .cdaf-mcc-google-banner-btn { width: 100%; }
}

/* ── Card do usuário ─────────────────────────────────────────────────────── */
.cdaf-mcc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px 20px;
}

.cdaf-mcc-card-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cdaf-mcc-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
    line-height: 1;
    overflow: hidden; /* garante que a foto respeita o border-radius */
}

/* Foto de perfil real */
.cdaf-mcc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Fallback: se a foto falhar (onerror), exibe a inicial via ::before usando data-initial */
.cdaf-mcc-avatar--fallback::before {
    content: attr(data-initial);
    font-size: 20px;
    font-weight: 600;
    color: #6b7280;
}

.cdaf-mcc-card-info { flex: 1; min-width: 0; }

.cdaf-mcc-name {
    font-size: 15px;
    color: #111827;
    margin: 0 0 6px;
    line-height: 1.3;
}
.cdaf-mcc-name strong { font-weight: 600; }

.cdaf-mcc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}
.cdaf-mcc-meta span {
    font-size: 12px;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.cdaf-mcc-meta svg { flex-shrink: 0; }

.cdaf-mcc-btn-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #111827;
    color: #fff;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .15s;
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1;
}
.cdaf-mcc-btn-edit:hover {
    opacity: .85;
    color: #fff;
    text-decoration: none;
}

/* ── Menu de abas ────────────────────────────────────────────────────────── */
.cdaf-mcc-menu {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-top: 16px;
}
.cdaf-mcc-menu::-webkit-scrollbar { display: none; }

.cdaf-mcc-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
    flex-shrink: 0;
    margin-bottom: -1px;
    line-height: 1;
}
.cdaf-mcc-tab:hover { color: #374151; }
.cdaf-mcc-tab.is-active { color: #111827; border-bottom-color: #111827; }
.cdaf-mcc-tab svg { flex-shrink: 0; }

/* ── Painéis ─────────────────────────────────────────────────────────────── */
.cdaf-mcc-panel { padding: 20px 0 4px; }
.cdaf-mcc-panel[hidden] { display: none; }

.cdaf-mcc-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px;
}

/* ── Dashboard — métricas ────────────────────────────────────────────────── */
.cdaf-mcc-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.cdaf-mcc-metric {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cdaf-mcc-metric-label {
    font-size: 11px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}
.cdaf-mcc-metric-value {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    line-height: 1;
}

/* Dashboard — bottom row */
.cdaf-mcc-dash-bottom {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 14px;
    align-items: start;
}
.cdaf-mcc-chart-wrap, .cdaf-mcc-top-items {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
}
.cdaf-mcc-chart { width: 100% !important; height: 160px !important; display: block; }
.cdaf-mcc-top-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cdaf-mcc-top-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: #374151;
    line-height: 1.3;
}
.cdaf-mcc-top-list li .cdaf-mcc-top-qty {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    background: #e5e7eb;
    border-radius: 20px;
    padding: 2px 7px;
    flex-shrink: 0;
}

/* Loading */
.cdaf-mcc-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #9ca3af;
    padding: 24px 0;
}

/* ── Pedidos ─────────────────────────────────────────────────────────────── */
.cdaf-mcc-orders-filters { margin-bottom: 14px; }
.cdaf-mcc-status-filter {
    padding: 7px 12px;
    font-size: 13px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    outline: none;
}

/* Grid 3 colunas */
.cdaf-mcc-orders-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    align-items: start;
}
@media (max-width: 900px) { .cdaf-mcc-orders-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cdaf-mcc-orders-list { grid-template-columns: 1fr; } }

.cdaf-mcc-order-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    transition: border-color .12s;
    box-sizing: border-box;
}
.cdaf-mcc-order-card:hover { border-color: #d1d5db; }

.cdaf-mcc-order-main { flex: 1; min-width: 0; }

.cdaf-mcc-order-num {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 3px;
}
.cdaf-mcc-order-meta { font-size: 12px; color: #6b7280; margin: 0 0 4px; }
.cdaf-mcc-order-items {
    font-size: 11px;
    color: #9ca3af;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    max-height: 2.8em;
}

.cdaf-mcc-order-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.cdaf-mcc-order-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
    margin-top: auto;
}

.cdaf-mcc-status-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
}
.cdaf-mcc-status-badge.s-completed  { background: #dcfce7; color: #15803d; }
.cdaf-mcc-status-badge.s-processing { background: #dbeafe; color: #1d4ed8; }
.cdaf-mcc-status-badge.s-on-hold    { background: #fef9c3; color: #a16207; }
.cdaf-mcc-status-badge.s-pending    { background: #f3f4f6; color: #6b7280; }
.cdaf-mcc-status-badge.s-cancelled  { background: #fee2e2; color: #b91c1c; }
.cdaf-mcc-status-badge.s-refunded   { background: #f3e8ff; color: #7c3aed; }
.cdaf-mcc-status-badge.s-failed     { background: #fee2e2; color: #b91c1c; }

.cdaf-mcc-btn-order {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: #f3f4f6;
    color: #111827;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background .12s;
    white-space: nowrap;
    line-height: 1;
}
.cdaf-mcc-btn-order:hover { background: #e5e7eb; text-decoration: none; }

.cdaf-mcc-btn-refund { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.cdaf-mcc-btn-refund:hover { background: #ffedd5 !important; color: #9a3412 !important; }

.cdaf-mcc-btn-reorder { background: #f0fdf4; color: #166534; font-weight: 600; }
.cdaf-mcc-btn-reorder:hover { background: #dcfce7 !important; color: #14532d !important; }
.cdaf-mcc-btn-reorder:disabled { opacity: .6; cursor: not-allowed; }

.cdaf-mcc-btn-pay { background: #fef2f2; color: #dc2626; border-color: transparent; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; }
.cdaf-mcc-btn-pay:hover { background: #fee2e2 !important; color: #b91c1c !important; text-decoration: none; }

.cdaf-mcc-load-more { margin-top: 14px; text-align: center; }
.cdaf-mcc-btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    transition: background .12s;
}
.cdaf-mcc-btn-load-more:hover { background: #f3f4f6; }

/* ── Meus Dados ──────────────────────────────────────────────────────────── */
.cdaf-mcc-mydata-grid {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.cdaf-mcc-mydata-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid #f3f4f6;
}
.cdaf-mcc-mydata-row:last-child { border-bottom: none; }
.cdaf-mcc-mydata-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    flex-shrink: 0;
    white-space: nowrap;
}
.cdaf-mcc-mydata-label::after { content: ':'; }
.cdaf-mcc-mydata-value {
    font-size: 13px;
    color: #111827;
    font-weight: 500;
    word-break: break-word;
    flex: 1;
}

/* ── Endereços ───────────────────────────────────────────────────────────── */
.cdaf-mcc-addresses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}
.cdaf-mcc-address-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.cdaf-mcc-address-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    background: #f9fafb;
}
.cdaf-mcc-address-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cdaf-mcc-btn-addr-edit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 5px;
    border: 1px solid #e5e7eb;
    background: #fff;
    transition: color .12s, border-color .12s;
    cursor: pointer;
}
.cdaf-mcc-btn-addr-edit:hover { color: #111827; border-color: #d1d5db; text-decoration: none; }
.cdaf-mcc-address-body {
    font-size: 13px;
    color: #374151;
}
.cdaf-mcc-address-body .cdaf-mcc-mydata-row:last-child { border-bottom: none; }
.cdaf-mcc-address-body p { margin: 0; padding: 10px 16px; }
.cdaf-mcc-addr-empty { color: #9ca3af; font-style: italic; }

/* ── Rastreio ────────────────────────────────────────────────────────────── */
.cdaf-mcc-tracking { max-width: 520px; }
.cdaf-mcc-track-hint { font-size: 13px; color: #6b7280; margin: 0 0 12px; }
.cdaf-mcc-track-field { display: flex; gap: 8px; align-items: center; }
.cdaf-mcc-track-input {
    flex: 1;
    padding: 9px 12px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #111827;
    transition: border-color .15s;
}
.cdaf-mcc-track-input:focus { border-color: #9ca3af; }
.cdaf-mcc-btn-track { flex-shrink: 0; }
.cdaf-mcc-track-result {
    margin-top: 16px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 13px;
    color: #374151;
}

/* ── Atendimento ─────────────────────────────────────────────────────────── */
.cdaf-mcc-support-desc { font-size: 13px; color: #6b7280; margin: 0 0 16px; }
.cdaf-mcc-support-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cdaf-mcc-support-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 28px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #111827;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    min-width: 120px;
    transition: background .12s, border-color .12s;
    cursor: pointer;
}
.cdaf-mcc-support-btn:hover { background: #f3f4f6; border-color: #d1d5db; color: #111827; text-decoration: none; }

/* ── Modal overlay ───────────────────────────────────────────────────────── */
.cdaf-mcc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.cdaf-mcc-modal-overlay.is-open { display: flex; }
.cdaf-mcc-modal {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
}
.cdaf-mcc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}
.cdaf-mcc-modal-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cdaf-mcc-modal-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #6b7280;
    line-height: 0;
    border-radius: 6px;
    transition: background .12s;
}
.cdaf-mcc-modal-close:hover { background: #f3f4f6; }
.cdaf-mcc-modal-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 16px; }
.cdaf-mcc-modal-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 8px;
}
.cdaf-mcc-modal-items {
    display: flex;
    flex-direction: column;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
}
.cdaf-mcc-modal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-bottom: 1px solid #f9fafb;
    font-size: 13px;
    color: #374151;
}
.cdaf-mcc-modal-item:last-child { border-bottom: none; }
.cdaf-mcc-modal-item-name { flex: 1; min-width: 0; }
.cdaf-mcc-modal-item-qty { font-size: 11px; color: #9ca3af; flex-shrink: 0; }
.cdaf-mcc-modal-item-total { font-size: 13px; font-weight: 500; color: #111827; flex-shrink: 0; text-align: right; }
.cdaf-mcc-modal-info-grid {
    display: flex;
    flex-direction: column;
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    overflow: hidden;
}
.cdaf-mcc-modal-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-bottom: 1px solid #f9fafb;
    font-size: 13px;
}
.cdaf-mcc-modal-info-row:last-child { border-bottom: none; }
.cdaf-mcc-modal-info-label { color: #6b7280; }
.cdaf-mcc-modal-info-value { font-weight: 500; color: #111827; text-align: right; }
.cdaf-mcc-modal-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

/* Bloco de instruções Pix (QR/copia-e-cola) dentro do modal "Ver Detalhes" */
.cdaf-mcc-modal-pix {
    border: 1px solid #f3f4f6;
    border-radius: 10px;
    padding: 4px 4px 8px;
}
.cdaf-mcc-modal-pix .cdap-pix-thankyou { margin: 0; }
.cdaf-mcc-modal-pix .cdap-pix-thankyou h2 { font-size: 15px; margin: 0 0 6px; }

/* ── Código de rastreio inline / chip ────────────────────────────────────── */
.cdaf-mcc-track-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 2px;
}
.cdaf-mcc-track-code-row[hidden] { display: none; }
.cdaf-mcc-track-code-label { font-size: 11px; color: #6b7280; white-space: nowrap; font-weight: 500; }
.cdaf-mcc-track-code-value {
    font-family: monospace;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    letter-spacing: .04em;
    background: none;
    border: none;
    padding: 0;
    flex: 1;
    word-break: break-all;
}
.cdaf-mcc-btn-copy-code {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
    transition: background .12s, border-color .12s;
    flex-shrink: 0;
}
.cdaf-mcc-btn-copy-code:hover { background: #f3f4f6; border-color: #d1d5db; }
.cdaf-mcc-track-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px 4px 7px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    font-family: monospace;
    color: #15803d;
    cursor: pointer;
    transition: background .12s, border-color .12s;
    white-space: nowrap;
    letter-spacing: .02em;
    line-height: 1;
}
.cdaf-mcc-track-chip:hover { background: #dcfce7; border-color: #86efac; }
.cdaf-mcc-track-chip svg { flex-shrink: 0; stroke: #16a34a; }

/* ── Formulários WC dentro do modal ─────────────────────────────────────── */
.cdaf-mcc-wc-form { padding: 4px 0; }
.cdaf-mcc-wc-form .woocommerce-form,
.cdaf-mcc-wc-form form { margin: 0; padding: 0; }
.cdaf-mcc-wc-form .woocommerce-form-row,
.cdaf-mcc-wc-form .form-row { margin-bottom: 14px; }
.cdaf-mcc-wc-form label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 4px;
}
.cdaf-mcc-wc-form input[type="text"],
.cdaf-mcc-wc-form input[type="email"],
.cdaf-mcc-wc-form input[type="tel"],
.cdaf-mcc-wc-form input[type="password"],
.cdaf-mcc-wc-form select,
.cdaf-mcc-wc-form textarea {
    width: 100%;
    padding: 9px 12px;
    font-size: 13px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    outline: none;
    box-sizing: border-box;
    transition: border-color .15s;
}
.cdaf-mcc-wc-form input:focus,
.cdaf-mcc-wc-form select:focus { border-color: #9ca3af; }
.cdaf-mcc-wc-form .button,
.cdaf-mcc-wc-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity .15s;
    margin-top: 8px;
}
.cdaf-mcc-wc-form .button:hover,
.cdaf-mcc-wc-form button[type="submit"]:hover { opacity: .85; }
.cdaf-mcc-wc-form .woocommerce-error { background: #fee2e2; color: #b91c1c; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.cdaf-mcc-wc-form .woocommerce-message { background: #dcfce7; color: #15803d; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; }
.cdaf-mcc-modal-body--loading { min-height: 120px; }

/* ── Formulário de endereço customizado ─────────────────────────────────── */
.cdaf-mcc-addr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.cdaf-mcc-addr-field { display: flex; flex-direction: column; gap: 4px; }
.cdaf-mcc-addr-field.half { grid-column: span 1; }
.cdaf-mcc-addr-field:not(.half) { grid-column: span 2; }
.cdaf-mcc-addr-input {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    background: #fff;
    color: #111827;
    outline: none;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
}
.cdaf-mcc-addr-input:focus { border-color: #9ca3af; box-shadow: 0 0 0 3px rgba(156,163,175,.15); }
.cdaf-mcc-addr-submit {
    margin-top: 16px;
    width: 100%;
    padding: 10px 16px;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .15s;
}
.cdaf-mcc-addr-submit:hover:not(:disabled) { opacity: .88; }
.cdaf-mcc-addr-submit:disabled { opacity: .45; cursor: not-allowed; }
.cdaf-mcc-addr-msg { font-size: 12px; margin: 0; min-height: 16px; }
.cdaf-mcc-cep-input { padding-right: 100px; }

/* ── Força da senha ──────────────────────────────────────────────────────── */
.cdaf-mcc-pw-strength { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.cdaf-mcc-pw-strength-bar { flex: 1; height: 4px; background: #f3f4f6; border-radius: 4px; overflow: hidden; }
.cdaf-mcc-pw-strength-bar span { display: block; height: 100%; width: 0; border-radius: 4px; transition: width .3s ease, background .3s ease; }
.cdaf-mcc-pw-strength-label { font-size: 11px; font-weight: 600; min-width: 36px; transition: color .3s ease; }

/* ── Badge confirmação de senha ─────────────────────────────────────────── */
.cdaf-mcc-pw-match-badge {
    display: none;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none;
    line-height: 1.4;
    align-items: center;
    gap: 3px;
}
.cdaf-mcc-pw-match-badge.match    { display: inline-flex; background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.cdaf-mcc-pw-match-badge.no-match { display: inline-flex; background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .cdaf-mcc-dash-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .cdaf-mcc-card-inner { flex-wrap: wrap; }
    .cdaf-mcc-btn-edit { width: 100%; justify-content: center; }
    .cdaf-mcc-metrics { grid-template-columns: 1fr 1fr; }
    .cdaf-mcc-order-actions { gap: 6px; }
    .cdaf-mcc-btn-order { flex: 1; justify-content: center; }
}
@media (max-width: 480px) {
    .cdaf-mcc-addr-grid { grid-template-columns: 1fr; }
    .cdaf-mcc-addr-field.half,
    .cdaf-mcc-addr-field:not(.half) { grid-column: span 1; }
}

/* ── Formulário WC: Recuperação de senha ────────────────────────────────── */
.cdaf-mcc-lostpw-wrap {
    padding: 24px 0;
    display: flex;
    justify-content: center;
    width: 100%;
}
.cdaf-mcc-lostpw-wrap .woocommerce-ResetPassword,
.cdaf-mcc-lostpw-wrap form.lost_reset_password {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 28px;
    box-sizing: border-box;
    width: 100%;
    max-width: 480px;
    display: block;
    overflow: hidden;
}
/* Texto descritivo — primeiro <p> direto no form */
.cdaf-mcc-lostpw-wrap .woocommerce-ResetPassword > p:first-child,
.cdaf-mcc-lostpw-wrap form.lost_reset_password > p:first-child {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 20px !important;
    line-height: 1.6;
    float: none !important;
    width: 100% !important;
    clear: both;
}
/* Bloco label+input e bloco botão — anula float/width do WC */
.cdaf-mcc-lostpw-wrap .woocommerce-form-row,
.cdaf-mcc-lostpw-wrap .form-row {
    float: none !important;
    width: 100% !important;
    clear: both !important;
    padding: 0 !important;
    margin: 0 0 20px !important;
    box-sizing: border-box;
    display: block;
}
.cdaf-mcc-lostpw-wrap .form-row:last-of-type { margin-bottom: 0 !important; }
.cdaf-mcc-lostpw-wrap label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}
/* Input — anula float e width do WC */
.cdaf-mcc-lostpw-wrap input[type="text"],
.cdaf-mcc-lostpw-wrap input[type="email"],
.cdaf-mcc-lostpw-wrap input[type="password"],
.cdaf-mcc-lostpw-wrap .woocommerce-Input {
    width: 100% !important;
    padding: 9px 12px !important;
    font-size: 13px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    outline: none;
    box-sizing: border-box !important;
    transition: border-color .15s;
    margin: 0 !important;
    font-family: inherit;
    display: block;
    float: none !important;
}
.cdaf-mcc-lostpw-wrap input:focus { border-color: #9ca3af; }
/* Botão — mesmo tamanho do input */
.cdaf-mcc-lostpw-wrap button[type="submit"],
.cdaf-mcc-lostpw-wrap input[type="submit"],
.cdaf-mcc-lostpw-wrap .woocommerce-Button,
.cdaf-mcc-lostpw-wrap .button {
    display: block !important;
    width: 100% !important;
    text-align: center;
    padding: 10px 20px;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s, color .15s, opacity .15s;
    margin: 0 !important;
    box-sizing: border-box !important;
    text-decoration: none;
    float: none !important;
}
.cdaf-mcc-lostpw-wrap button[type="submit"]:hover,
.cdaf-mcc-lostpw-wrap input[type="submit"]:hover,
.cdaf-mcc-lostpw-wrap .woocommerce-Button:hover,
.cdaf-mcc-lostpw-wrap .button:hover { opacity: .85; color: #fff; text-decoration: none; }
/* Mensagens WC */
.cdaf-mcc-lostpw-wrap .woocommerce-error,
.cdaf-mcc-lostpw-wrap .woocommerce-message,
.cdaf-mcc-lostpw-wrap .woocommerce-info {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    list-style: none;
    border-left: none;
    float: none !important;
    width: 100% !important;
    box-sizing: border-box;
    clear: both;
}
.cdaf-mcc-lostpw-wrap .woocommerce-error   { background: #fee2e2; color: #b91c1c; }
.cdaf-mcc-lostpw-wrap .woocommerce-message { background: #dcfce7; color: #15803d; }
.cdaf-mcc-lostpw-wrap .woocommerce-info    { background: #dbeafe; color: #1d4ed8; }

/* ── Badge de validação CNPJ — formulário Meus Dados ───────────────────── */
.cdaf-mcc-edit-cnpj-badge {
    display: none;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 4px;
    width: fit-content;
    white-space: nowrap;
    line-height: 1.5;
}

/* ── Texto livre — aba Minhas Regras ────────────────────────────────────── */
.cdaf-mcc-rules-text {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: inherit;
}
.cdaf-mcc-rules-text h1,
.cdaf-mcc-rules-text h2,
.cdaf-mcc-rules-text h3,
.cdaf-mcc-rules-text h4 { margin: 1em 0 .5em; font-weight: 600; }
.cdaf-mcc-rules-text p  { margin: 0 0 .75em; }
.cdaf-mcc-rules-text ul,
.cdaf-mcc-rules-text ol { padding-left: 1.4em; margin: 0 0 .75em; }
.cdaf-mcc-rules-text a  { color: var(--cdaf-primary, #f97316); text-decoration: underline; }
