/**
 * Estilos do wizard de Dados Pessoais (sem Tailwind).
 * Todos os seletores ficam sob .dp-wizard-scope para não vazar para o restante do tema.
 */
.dp-wizard-scope.page-bg {
    background-color: #f3f4f6;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.dp-wizard-scope {
    --dp-gray-50: #f9fafb;
    --dp-gray-100: #f3f4f6;
    --dp-gray-200: #e5e7eb;
    --dp-gray-300: #d1d5db;
    --dp-gray-400: #9ca3af;
    --dp-gray-500: #6b7280;
    --dp-gray-600: #4b5563;
    --dp-gray-700: #374151;
    --dp-gray-800: #1f2937;
    --dp-blue-50: #eff6ff;
    --dp-blue-500: #3b82f6;
    --dp-blue-600: #2563eb;
    --dp-blue-700: #1d4ed8;
    --dp-green-600: #16a34a;
    --dp-green-700: #15803d;
    --dp-red-500: #ef4444;
    --dp-amber-600: #d97706;
    --dp-orange-600: #ea580c;
    box-sizing: border-box;
}

.dp-wizard-scope *,
.dp-wizard-scope *::before,
.dp-wizard-scope *::after {
    box-sizing: inherit;
}

/* Layout */
.dp-wizard-scope .flex { display: flex; }
.dp-wizard-scope .inline-block { display: inline-block; }
.dp-wizard-scope .block { display: block; }
.dp-wizard-scope .hidden { display: none; }
.dp-wizard-scope .grid { display: grid; }
.dp-wizard-scope .text-left { text-align: left; }
.dp-wizard-scope .text-center { text-align: center; }
.dp-wizard-scope .uppercase { text-transform: uppercase; }

.dp-wizard-scope .flex-1 { flex: 1 1 0%; }
.dp-wizard-scope .flex-shrink-0 { flex-shrink: 0; }
.dp-wizard-scope .flex-grow { flex: 1 1 auto; }
.dp-wizard-scope .flex-col { flex-direction: column; }
.dp-wizard-scope .flex-row { flex-direction: row; }
.dp-wizard-scope .items-start { align-items: flex-start; }
.dp-wizard-scope .items-center { align-items: center; }
.dp-wizard-scope .justify-center { justify-content: center; }
.dp-wizard-scope .justify-between { justify-content: space-between; }
.dp-wizard-scope .justify-end { justify-content: flex-end; }

.dp-wizard-scope .gap-2 { gap: 0.5rem; }
.dp-wizard-scope .gap-4 { gap: 1rem; }
.dp-wizard-scope .gap-6 { gap: 1.5rem; }

.dp-wizard-scope .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.dp-wizard-scope .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.dp-wizard-scope .space-y-4 > * + * { margin-top: 1rem; }
.dp-wizard-scope .space-x-3 > * + * { margin-left: 0.75rem; }

/* Tipografia */
.dp-wizard-scope .text-xs { font-size: 0.75rem; line-height: 1rem; }
.dp-wizard-scope .text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.dp-wizard-scope .text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.dp-wizard-scope .text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.dp-wizard-scope .text-2xl { font-size: 1.5rem; line-height: 2rem; }
.dp-wizard-scope .text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.dp-wizard-scope .font-medium { font-weight: 500; }
.dp-wizard-scope .font-semibold { font-weight: 600; }
.dp-wizard-scope .font-bold { font-weight: 700; }
.dp-wizard-scope .italic { font-style: italic; }
.dp-wizard-scope .tracking-wider { letter-spacing: 0.05em; }
.dp-wizard-scope .whitespace-nowrap { white-space: nowrap; }
.dp-wizard-scope .underline { text-decoration: underline; }

/* Tamanhos */
.dp-wizard-scope .container {
    width: 100%;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
}

.dp-wizard-scope .max-w-5xl { max-width: 64rem; }

.dp-wizard-scope .p-4 { padding: 1rem; }

.dp-wizard-scope .w-full { width: 100%; }
.dp-wizard-scope .w-10 { width: 2.5rem; }
.dp-wizard-scope .h-1 { height: 0.25rem; }
.dp-wizard-scope .h-6 { height: 1.5rem; }
.dp-wizard-scope .h-10 { height: 2.5rem; }
.dp-wizard-scope .h-24 { height: 6rem; }
.dp-wizard-scope .w-24 { width: 6rem; }
.dp-wizard-scope .min-w-full { min-width: 100%; }
.dp-wizard-scope .max-w-xs { max-width: 20rem; }
.dp-wizard-scope .max-h-48 { max-height: 12rem; }

/* Espaçamento */
/* stylelint-disable-next-line - nome espelha utilitário antigo */
.dp-wizard-scope .mt-\[-1\.75rem\] { margin-top: -1.75rem; }
.dp-wizard-scope .mx-auto { margin-left: auto; margin-right: auto; }
.dp-wizard-scope .mt-1 { margin-top: 0.25rem; }
.dp-wizard-scope .mt-2 { margin-top: 0.5rem; }
.dp-wizard-scope .mt-3 { margin-top: 0.75rem; }
.dp-wizard-scope .mt-4 { margin-top: 1rem; }
.dp-wizard-scope .mt-6 { margin-top: 1.5rem; }
.dp-wizard-scope .mt-8 { margin-top: 2rem; }
.dp-wizard-scope .mt-10 { margin-top: 2.5rem; }
.dp-wizard-scope .mb-1 { margin-bottom: 0.25rem; }
.dp-wizard-scope .mb-2 { margin-bottom: 0.5rem; }
.dp-wizard-scope .mb-3 { margin-bottom: 0.75rem; }
.dp-wizard-scope .mb-4 { margin-bottom: 1rem; }
.dp-wizard-scope .mb-6 { margin-bottom: 1.5rem; }
.dp-wizard-scope .mb-8 { margin-bottom: 2rem; }
.dp-wizard-scope .mb-10 { margin-bottom: 2.5rem; }
.dp-wizard-scope .ml-3 { margin-left: 0.75rem; }
.dp-wizard-scope .ml-4 { margin-left: 1rem; }
.dp-wizard-scope .mr-2 { margin-right: 0.5rem; }
.dp-wizard-scope .pt-6 { padding-top: 1.5rem; }
.dp-wizard-scope .p-2 { padding: 0.5rem; }
.dp-wizard-scope .p-3 { padding: 0.75rem; }
.dp-wizard-scope .p-4 { padding: 1rem; }
.dp-wizard-scope .p-5 { padding: 1.25rem; }
.dp-wizard-scope .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.dp-wizard-scope .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.dp-wizard-scope .py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.dp-wizard-scope .py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.dp-wizard-scope .px-8 { padding-left: 2rem; padding-right: 2rem; }

/* Bordas e fundo */
.dp-wizard-scope .rounded { border-radius: 0.25rem; }
.dp-wizard-scope .rounded-lg { border-radius: 0.5rem; }
.dp-wizard-scope .rounded-full { border-radius: 9999px; }
.dp-wizard-scope .rounded-md { border-radius: 0.375rem; }
.dp-wizard-scope .rounded-2xl { border-radius: 1rem; }
.dp-wizard-scope .border { border-width: 1px; border-style: solid; border-color: var(--dp-gray-300); }
.dp-wizard-scope .border-2 { border-width: 2px; border-style: solid; }
.dp-wizard-scope .border-t { border-top-width: 1px; border-top-style: solid; }
.dp-wizard-scope .border-l-4 { border-left-width: 4px; border-left-style: solid; }
.dp-wizard-scope .border-gray-200 { border-color: var(--dp-gray-200); }
.dp-wizard-scope .border-gray-300 { border-color: var(--dp-gray-300); }

.dp-wizard-scope .text-right { text-align: right; }

.dp-wizard-scope .text-blue-600 { color: var(--dp-blue-600); }
.dp-wizard-scope .text-indigo-600 { color: #4f46e5; }
.dp-wizard-scope .text-red-600 { color: #dc2626; }
.dp-wizard-scope .hover\:text-blue-800:hover { color: #1e40af; }
.dp-wizard-scope .hover\:text-indigo-900:hover { color: #312e81; }
.dp-wizard-scope .hover\:text-red-900:hover { color: #7f1d1d; }

.dp-wizard-scope .space-y-6 > * + * { margin-top: 1.5rem; }

.dp-wizard-scope .whitespace-nowrap { white-space: nowrap; }

.dp-wizard-scope .p-6 { padding: 1.5rem; }

.dp-wizard-scope .divide-y > * + * {
    border-top-width: 1px;
    border-top-style: solid;
    border-color: var(--dp-gray-200);
}

.dp-wizard-scope .bg-white { background-color: #fff; }
.dp-wizard-scope .bg-gray-50 { background-color: var(--dp-gray-50); }
.dp-wizard-scope .bg-gray-200 { background-color: var(--dp-gray-200); }
.dp-wizard-scope .bg-gray-600 { background-color: #4b5563; }
.dp-wizard-scope .bg-blue-50 { background-color: var(--dp-blue-50); }
.dp-wizard-scope .bg-blue-600 { background-color: var(--dp-blue-600); }
.dp-wizard-scope .bg-green-600 { background-color: var(--dp-green-600); }

.dp-wizard-scope .text-gray-500 { color: var(--dp-gray-500); }
.dp-wizard-scope .text-gray-600 { color: var(--dp-gray-600); }
.dp-wizard-scope .text-gray-700 { color: var(--dp-gray-700); }
.dp-wizard-scope .text-gray-800 { color: var(--dp-gray-800); }
.dp-wizard-scope .text-gray-400 { color: var(--dp-gray-400); }
.dp-wizard-scope .text-blue-500 { color: var(--dp-blue-500); }
.dp-wizard-scope .text-blue-600 { color: var(--dp-blue-600); }
.dp-wizard-scope .text-blue-700 { color: #1d4ed8; }
.dp-wizard-scope .text-green-500 { color: #22c55e; }
.dp-wizard-scope .text-green-600 { color: #16a34a; }
.dp-wizard-scope .text-red-500 { color: var(--dp-red-500); }
.dp-wizard-scope .text-amber-600 { color: var(--dp-amber-600); }
.dp-wizard-scope .text-orange-600 { color: var(--dp-orange-600); }
.dp-wizard-scope .text-white { color: #fff; }

.dp-wizard-scope .border-blue-500 { border-color: var(--dp-blue-500); }

.dp-wizard-scope .shadow-lg {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.dp-wizard-scope .object-cover { object-fit: cover; }

.dp-wizard-scope .overflow-x-auto { overflow-x: auto; }
.dp-wizard-scope .overflow-y-auto { overflow-y: auto; }

/* Modal / overlay */
.dp-wizard-scope.dp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: rgba(75, 85, 99, 0.5);
}

.dp-wizard-scope.fixed {
    position: fixed;
}
.dp-wizard-scope .fixed { position: fixed; }
.dp-wizard-scope .relative { position: relative; }
.dp-wizard-scope .absolute { position: absolute; }
.dp-wizard-scope .inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.dp-wizard-scope .top-20 { top: 5rem; }
.dp-wizard-scope .z-50 { z-index: 50; }
.dp-wizard-scope .h-full { height: 100%; }

.dp-wizard-scope .dp-modal-dialog {
    position: relative;
    top: 5rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1.25rem;
    border: 1px solid var(--dp-gray-200);
    width: 91.666%;
    max-width: 42rem;
    border-radius: 0.375rem;
    background: #fff;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

@media (min-width: 768px) {
    .dp-wizard-scope .dp-modal-dialog { width: 66.666%; }
}

@media (min-width: 1024px) {
    .dp-wizard-scope .dp-modal-dialog { width: 50%; }
}

/* Transições */
.dp-wizard-scope .transition { transition-property: color, background-color, border-color, box-shadow; transition-duration: 150ms; }
.dp-wizard-scope .transition-all { transition-property: all; transition-duration: 150ms; }
.dp-wizard-scope .transition-colors { transition-property: color, background-color, border-color; transition-duration: 300ms; }
.dp-wizard-scope .duration-300 { transition-duration: 300ms; }
.dp-wizard-scope .duration-500 { transition-duration: 500ms; }

/* Hover (nomes de classe iguais aos do Tailwind antigo) */
.dp-wizard-scope .hover\:bg-blue-700:hover { background-color: var(--dp-blue-700); }
.dp-wizard-scope .hover\:bg-green-700:hover { background-color: var(--dp-green-700); }
.dp-wizard-scope .hover\:bg-gray-300:hover { background-color: var(--dp-gray-300); }
.dp-wizard-scope .hover\:text-gray-600:hover { color: var(--dp-gray-600); }

/* Foco em campos */
.dp-wizard-scope input:not([type="file"]):focus,
.dp-wizard-scope select:focus,
.dp-wizard-scope textarea:focus {
    outline: none;
    border-color: var(--dp-blue-500);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

/* Botão de arquivo */
.dp-wizard-scope .dp-file-input {
    width: 100%;
    font-size: 0.875rem;
    color: var(--dp-gray-500);
}

.dp-wizard-scope .dp-file-input::file-selector-button {
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 0;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: var(--dp-blue-50);
    color: #1d4ed8;
    cursor: pointer;
}

.dp-wizard-scope .dp-file-input:hover::file-selector-button {
    background-color: #dbeafe;
}

/* step-line: hidden no mobile, visível em md+ */
.dp-wizard-scope .hidden.md\:block {
    display: none;
}

/* Responsivo md: (>=768px) */
@media (min-width: 768px) {
    .dp-wizard-scope .hidden.md\:block {
        display: block;
    }

    .dp-wizard-scope .md\:block { display: block; }
    .dp-wizard-scope .md\:flex-row { flex-direction: row; }
    .dp-wizard-scope .md\:justify-between { justify-content: space-between; }
    .dp-wizard-scope .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dp-wizard-scope .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dp-wizard-scope .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .dp-wizard-scope .md\:col-span-1 { grid-column: span 1 / span 1; }
    .dp-wizard-scope .md\:col-span-2 { grid-column: span 2 / span 2; }
    .dp-wizard-scope .md\:col-span-3 { grid-column: span 3 / span 3; }
    .dp-wizard-scope .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .dp-wizard-scope .md\:p-8 { padding: 2rem; }
    .dp-wizard-scope .md\:p-10 { padding: 2.5rem; }
}

/* --------------------------------------------------------------------------
   Botões: o tema / browser aplicam aparência padrão em <button>, anulando
   só cor de texto (ex.: text-indigo-600). Lista de endereços + rodapé do wizard.
   -------------------------------------------------------------------------- */

.dp-wizard-scope button.edit-address,
.dp-wizard-scope button.delete-address {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    padding: 0.35rem 0.75rem;
    margin: 0;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dp-wizard-scope button.edit-address {
    color: #4f46e5;
}

.dp-wizard-scope button.edit-address:hover {
    background-color: rgba(79, 70, 229, 0.1);
    color: #312e81;
}

.dp-wizard-scope button.delete-address {
    color: #dc2626;
}

.dp-wizard-scope button.delete-address:hover {
    background-color: rgba(220, 38, 38, 0.1);
    color: #7f1d1d;
}

/* Botões sólidos do wizard (Voltar, Avançar, Validar, modal, etc.) */
.dp-wizard-scope button.bg-blue-600,
.dp-wizard-scope button.bg-gray-200,
.dp-wizard-scope button.bg-green-600 {
    appearance: none;
    -webkit-appearance: none;
    display: inline-block;
    margin: 0;
    font: inherit;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    border-style: solid;
    border-width: 1px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dp-wizard-scope button.bg-blue-600 {
    background-color: var(--dp-blue-600);
    border-color: var(--dp-blue-600);
    color: #fff;
}

.dp-wizard-scope button.bg-blue-600:hover {
    background-color: var(--dp-blue-700);
    border-color: var(--dp-blue-700);
}

.dp-wizard-scope button.bg-gray-200 {
    background-color: var(--dp-gray-200);
    border-color: #d1d5db;
    color: var(--dp-gray-800);
}

.dp-wizard-scope button.bg-gray-200:hover {
    background-color: var(--dp-gray-300);
    border-color: #cbd5e1;
}

.dp-wizard-scope button.bg-green-600 {
    background-color: var(--dp-green-600);
    border-color: var(--dp-green-600);
    color: #fff;
}

.dp-wizard-scope button.bg-green-600:hover {
    background-color: var(--dp-green-700);
    border-color: var(--dp-green-700);
}

/* Select “tipo” na tabela de endereços (injectado via JS) */
.dp-wizard-scope select.select-change-address-type {
    margin: 0;
    font: inherit;
    font-size: 0.875rem;
    line-height: 1.25;
    color: var(--dp-gray-800);
    background-color: #fff;
    border: 1px solid var(--dp-gray-300);
    border-radius: 0.5rem;
    padding: 0.375rem 0.75rem;
    min-height: 2.25rem;
    cursor: pointer;
}
