/* ============================================================================
 * CRAZYSTORE ACCOUNT PROFILE — /mi-perfil/
 * Single-column edit page. Visual language mirrors the checkout (Inter font,
 * same color tokens, Webyansh-derived layout).
 * ============================================================================ */

:root {
    --bim-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.custom-account-page #page,
.custom-account-page header,
.custom-account-page footer,
.custom-account-page .site-header,
.custom-account-page .site-footer,
.custom-account-page .widget-area,
.custom-account-page .sidebar {
    display: none !important;
}

body.custom-account-page {
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

#custom-account-wrapper-machi {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--bim-font);
}
#custom-account-wrapper-machi * {
    font-family: var(--bim-font) !important;
    box-sizing: border-box;
}

/* === LOGO === */
.account_logo {
    text-align: center;
    padding: 24px 0 8px;
}
.account_logo img {
    height: 56px;
    max-width: 180px;
    width: auto;
}

/* === CONTAINER === */
.account_container {
    background: #fff;
    color: #333;
    line-height: 1.55;
    max-width: 720px;
    margin: 16px auto;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    padding: 40px 44px 36px;
}

.account_back-link {
    display: inline-block;
    color: #6b7280;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
}
.account_back-link:hover { color: #ff0000; }

.account_title {
    font-size: 28px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.account_subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin: 0 0 24px;
    line-height: 1.5;
}

/* === SECTIONS === */
.account_block {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #eee;
}
.account_block:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.account_section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}
.account_section-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin: 0 0 16px;
    line-height: 1.5;
}

/* === FORM === */
.account_form-group { margin-bottom: 16px; }
.account_form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}
.account_form-input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.account_form-input:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}
.account_form-input[readonly] {
    background: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}
.account_form-hint {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}
select.account_form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 38px;
}
.account_form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.account_form-row-2 { grid-template-columns: 1fr 1fr; }

.account_error {
    color: #e11;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

/* === RADIO ROW === */
.account_radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.account_radio-group-vertical {
    flex-direction: column;
}
.account_radio-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
}
.account_radio-option:has(input:checked) {
    border-color: #ff0000;
    background: #fff7f7;
}
.account_radio-option input[type="radio"] { accent-color: #ff0000; }

.account_radio-option-store {
    background: #fafafa;
    padding: 14px;
    border-radius: 8px;
    border: 2px solid #e5e5e5;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: border-color 0.15s;
}
.account_radio-option-store:has(input:checked) {
    border-color: #ff0000;
    background: #fff7f7;
}
.account_radio-option-store input[type="radio"] {
    margin-top: 4px;
    flex-shrink: 0;
    accent-color: #ff0000;
}
.account_store-name {
    font-weight: 700;
    color: #222;
    margin-bottom: 4px;
}
.account_store-details {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

/* === ACTIONS === */
.account_actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.account_save-button {
    background: #111;
    color: #fff;
    border: none;
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    min-height: 48px;
    transition: background 0.15s, transform 0.1s;
}
.account_save-button:hover { background: #000; }
.account_save-button:active { transform: translateY(1px); }
.account_save-button:disabled {
    background: #555;
    cursor: not-allowed;
    opacity: 0.6;
}
.account_logout-link {
    color: #6b7280;
    text-decoration: underline;
    font-size: 13px;
    font-weight: 500;
}
.account_logout-link:hover { color: #e11; }

/* === TOAST === */
.account_toast {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}
.account_toast[hidden] { display: none; }
.account_toast--success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}
.account_toast--error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* === RESPONSIVE === */
@media (max-width: 720px) {
    .account_container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 28px 18px;
    }
    .account_form-row-2 { grid-template-columns: 1fr; }
    .account_actions { flex-direction: column; align-items: stretch; }
    .account_save-button { width: 100%; }
    .account_logout-link { text-align: center; padding: 8px; }
}

/* === Touch targets === */
@media (pointer: coarse) {
    .account_form-input,
    .account_radio-option,
    .account_radio-option-store { min-height: 44px; }
    .account_save-button { min-height: 50px; }
}
