.account-page{
    max-width:1180px;
    margin:0 auto;
    padding:42px 24px 56px;
}

.account-page h1{
    margin:0 0 26px;
    font-size:36px;
    line-height:1.1;
    color:#223044;
}

.account-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px;
    align-items:start;
}

.account-grid .panel{
    background:#fff;
    border:1px solid #dbe7f4;
    border-radius:18px;
    padding:22px;
    box-shadow:0 10px 30px rgba(36,73,118,.06);
}

.account-grid .panel h2{
    margin:0 0 16px;
    font-size:22px;
    color:#223044;
}

.account-grid .line{
    display:flex;
    flex-direction:column;
    gap:4px;
    padding:12px 0;
    border-top:1px solid #edf2f7;
}

.account-grid .line:first-of-type{
    border-top:0;
    padding-top:0;
}

.account-grid .line span{
    font-size:14px;
    line-height:1.4;
    color:#27384e;
    overflow-wrap:anywhere;
}

.account-grid .line small{
    font-size:12px;
    color:#8190a5;
}

@media(max-width:900px){
    .account-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:600px){
    .account-page{
        padding:28px 16px 40px;
    }

    .account-page h1{
        font-size:30px;
    }

    .account-grid .panel{
        padding:18px;
    }
}

/* Historial de búsquedas clicable */
.account-history-link{
    text-decoration:none;
    color:inherit;
    margin-left:-10px;
    margin-right:-10px;
    padding-left:10px !important;
    padding-right:10px !important;
    border-radius:9px;
    transition:background .15s ease;
}

.account-history-link:hover{
    background:#f3f7fc;
}

.account-history-link:hover span{
    color:#1170CE;
}

.account-pagination{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    gap:10px;
    margin-top:18px;
    padding-top:14px;
    border-top:1px solid #edf2f7;
}

.account-pagination a{
    text-decoration:none;
    color:#1170CE;
    font-weight:700;
    font-size:13px;
}

.account-pagination a:last-child{
    text-align:right;
}

.account-pagination strong{
    font-size:12px;
    color:#718197;
}

.account-empty{
    margin:0;
    color:#8190a5;
    font-size:14px;
}

.account-profile-panel,
.account-store-panel{
    margin-bottom:22px;
}

.account-profile-panel h2,
.account-store-panel h3{
    margin-top:0;
}

.account-section-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    margin-bottom:16px;
}

.account-section-head h2,
.account-section-head h3,
.account-section-head p{
    margin-top:0;
}

.account-section-head p{
    margin-bottom:0;
    color:#718197;
    font-size:13px;
}

.account-form{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.account-form label{
    display:grid;
    gap:6px;
}

.account-form label span{
    font-size:13px;
    font-weight:700;
    color:#33465d;
}

.account-form input{
    width:100%;
    box-sizing:border-box;
    border:1px solid #ccd9e7;
    border-radius:10px;
    padding:11px 12px;
    font:inherit;
    background:#fff;
}

.account-form input:focus{
    outline:2px solid rgba(17,112,206,.14);
    border-color:#1170CE;
}

.account-form input:disabled{
    background:#f5f7fa;
    color:#718197;
}

.account-full{
    grid-column:1/-1;
}

.account-public-name{
    grid-column:1/-1;
    padding:14px;
    border-radius:12px;
    background:#f4f8fd;
    border:1px solid #d7e7f8;
}

.account-public-name strong,
.account-public-name span,
.account-public-name small{
    display:block;
}

.account-public-name span{
    margin:5px 0;
    font-size:18px;
    font-weight:800;
    color:#1170CE;
}

.account-public-name small{
    color:#66788e;
    line-height:1.45;
}

.account-btn{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    border:0;
    border-radius:9px;
    padding:10px 16px;
    background:#1170CE;
    color:#fff;
    text-decoration:none;
    font-weight:750;
    cursor:pointer;
}

.account-btn-secondary{
    background:#fff;
    color:#1170CE;
    border:1px solid #bad5f2;
}

.account-success{
    padding:10px 12px;
    border-radius:9px;
    background:#eef9f2;
    color:#237342;
    font-size:13px;
    font-weight:700;
}

.account-merchant-area{
    margin-top:34px;
}

.account-merchant-title{
    margin-bottom:18px;
}

.account-merchant-title span{
    display:block;
    color:#1170CE;
    font-size:11px;
    font-weight:800;
    letter-spacing:.08em;
}

.account-merchant-title h2{
    margin:5px 0 0;
    font-size:28px;
}

.account-store-top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:20px;
}

.account-store-top h3,
.account-store-top p{
    margin-top:0;
}

.account-store-top p{
    color:#718197;
}

.account-status{
    display:inline-flex;
    border-radius:999px;
    padding:6px 10px;
    background:#edf3f8;
    font-size:12px;
    font-weight:800;
}

.account-status-active{
    background:#eaf8ef;
    color:#237342;
}

.account-status-suspended_payment{
    background:#fff0ee;
    color:#a33b30;
}

.account-status-pending{
    background:#fff7e8;
    color:#916500;
}

.account-store-stats{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:10px;
    margin:18px 0;
}

.account-store-stats div{
    padding:12px;
    background:#f7f9fc;
    border-radius:10px;
}

.account-store-stats small,
.account-store-stats strong{
    display:block;
}

.account-store-stats small{
    color:#8190a5;
    margin-bottom:4px;
}

.account-payment-warning{
    display:grid;
    gap:3px;
    padding:12px 14px;
    border-radius:10px;
    background:#fff0ee;
    color:#9a342b;
    margin:15px 0;
}

.account-divider{
    border:0;
    border-top:1px solid #e6edf5;
    margin:25px 0;
}

.account-invoices-wrap{
    overflow-x:auto;
}

.account-invoices{
    width:100%;
    border-collapse:collapse;
    font-size:13px;
}

.account-invoices th,
.account-invoices td{
    padding:11px 10px;
    border-bottom:1px solid #edf2f7;
    text-align:left;
    vertical-align:middle;
}

.account-invoices th{
    color:#718197;
    font-size:11px;
    text-transform:uppercase;
}

.account-invoice-actions{
    white-space:nowrap;
}

.account-invoice-actions a{
    margin-left:8px;
    color:#1170CE;
    font-weight:700;
    text-decoration:none;
}

@media(max-width:800px){
    .account-form{
        grid-template-columns:1fr;
    }

    .account-full,
    .account-public-name{
        grid-column:auto;
    }

    .account-store-stats{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:520px){
    .account-store-stats{
        grid-template-columns:1fr;
    }
}

.account-email-warning{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin:0 0 22px;
    padding:16px 18px;
    border:1px solid #ead8a5;
    border-radius:12px;
    background:#fff9e9;
}

.account-email-warning strong{
    display:block;
    margin-bottom:4px;
    color:#745700;
}

.account-email-warning p{
    margin:0;
    color:#6d6040;
    line-height:1.5;
}

#resendVerificationMsg{
    font-size:13px;
    color:#596b80;
}

@media(max-width:700px){
    .account-email-warning{
        align-items:flex-start;
        flex-direction:column;
    }
}

/* ==========================================================
   Eliminar elementos de Mi cuenta
   ========================================================== */

.account-item-wrap{
    position:relative;
}

.account-item-wrap .account-history-link{
    padding-right:46px;
}

.account-delete-form{
    position:absolute;
    top:9px;
    right:9px;
    z-index:3;
    margin:0;
}

.account-delete-item{
    width:27px;
    height:27px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    border:0;
    border-radius:50%;
    background:#fff1f1;
    color:#d93025;
    font-family:Arial,sans-serif;
    font-size:20px;
    font-weight:400;
    line-height:1;
    cursor:pointer;
    transition:
        background .15s ease,
        color .15s ease,
        transform .15s ease;
}

.account-delete-item:hover{
    background:#d93025;
    color:#fff;
    transform:scale(1.06);
}

.account-delete-item:focus-visible{
    outline:2px solid #d93025;
    outline-offset:2px;
}


/* ===== Espacio correcto para botón eliminar en Mi cuenta ===== */

/* Cada elemento que tenga botón X reserva espacio a la derecha */
.account-deletable{
    position:relative;
    padding-right:52px !important;
}

/* La X queda fija arriba a la derecha */
.account-delete-btn{
    position:absolute !important;
    top:10px;
    right:10px;
    margin:0 !important;
    z-index:2;
}

/* El texto nunca invade la zona de la X */
.account-deletable > a,
.account-deletable > .account-history-link,
.account-deletable > .line{
    min-width:0;
}

/* Especialmente útil para nombres largos de producto */
.account-deletable span,
.account-deletable small{
    overflow-wrap:anywhere;
}


/* ===== Ajuste real de espacio para la X ===== */

.account-item-wrap{
    position:relative;
}

/* Reservamos bastante espacio a la derecha para que el texto
   nunca llegue debajo de la X */
.account-item-wrap .account-history-link{
    padding-right:58px !important;
}

/* X fija en la esquina superior derecha */
.account-delete-form{
    position:absolute !important;
    top:10px !important;
    right:10px !important;
    z-index:5;
    margin:0 !important;
}

/* Evita que nombres largos invadan la zona del botón */
.account-item-wrap .account-history-link span,
.account-item-wrap .account-history-link small{
    display:block;
    max-width:100%;
    overflow-wrap:anywhere;
    padding-right:4px;
}

/* Un poco más de separación vertical en productos largos */
.account-item-wrap .account-history-link{
    box-sizing:border-box;
    min-height:58px;
}


/* ===== Modal confirmación de borrado ===== */

.account-confirm-modal{
    position:fixed;
    inset:0;
    z-index:20000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.account-confirm-modal[hidden]{
    display:none;
}

.account-confirm-backdrop{
    position:absolute;
    inset:0;
    background:rgba(15,23,42,.48);
    backdrop-filter:blur(3px);
}

.account-confirm-dialog{
    position:relative;
    z-index:1;
    width:min(100%,430px);
    padding:28px;
    border-radius:18px;
    background:#fff;
    box-shadow:0 24px 70px rgba(15,23,42,.24);
}

.account-confirm-close{
    position:absolute;
    top:14px;
    right:14px;
    width:36px;
    height:36px;
    border:0;
    border-radius:10px;
    background:#f1f5f9;
    color:#64748b;
    font-size:22px;
    cursor:pointer;
}

.account-confirm-kicker{
    display:block;
    margin-bottom:8px;
    color:#d93025;
    font-size:11px;
    font-weight:800;
    letter-spacing:.09em;
}

.account-confirm-dialog h2{
    margin:0 42px 8px 0;
    color:#1f2937;
    font-size:23px;
    line-height:1.25;
}

.account-confirm-dialog p{
    margin:0;
    color:#64748b;
    font-size:14px;
    line-height:1.55;
}

.account-confirm-actions{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:24px;
}

.account-confirm-actions button{
    min-height:42px;
    padding:0 17px;
    border:0;
    border-radius:10px;
    font:inherit;
    font-weight:600;
    cursor:pointer;
}

.account-confirm-cancel{
    background:#eef2f6;
    color:#475569;
}

.account-confirm-delete{
    background:#d93025;
    color:#fff;
}

.account-confirm-delete:hover{
    background:#bd271f;
}

.account-confirm-delete:disabled{
    opacity:.55;
    cursor:not-allowed;
}

@media(max-width:520px){
    .account-confirm-dialog{
        padding:22px;
        border-radius:14px;
    }

    .account-confirm-actions{
        flex-direction:column-reverse;
    }

    .account-confirm-actions button{
        width:100%;
    }
}



/* =========================================================
   SEGURIDAD - CAMBIO DE CONTRASEÑA
   ========================================================= */

.account-security-section{
    max-width:1040px;
    margin:28px auto 40px;
}

.account-security-card{
    background:#fff;
    border:1px solid #d9e4f0;
    border-radius:18px;
    padding:28px;
    box-shadow:0 12px 30px rgba(35,65,100,.06);
}

.account-security-heading{
    margin-bottom:22px;
}

.account-security-kicker{
    display:block;
    margin-bottom:5px;
    color:#1170CE;
    font-size:12px;
    font-weight:700;
    letter-spacing:.08em;
}

.account-security-heading h2{
    margin:0 0 6px;
    font-size:24px;
    color:#24364b;
}

.account-security-heading p{
    margin:0;
    color:#6c7f96;
    font-size:14px;
}

.account-password-form{
    display:flex;
    flex-direction:column;
    gap:16px;
    max-width:720px;
}

.account-password-form label{
    display:flex;
    flex-direction:column;
    gap:7px;
    color:#26384d;
    font-size:14px;
    font-weight:600;
}

.account-password-form input{
    width:100%;
    height:46px;
    box-sizing:border-box;
    padding:0 13px;
    border:1px solid #d4e0ed;
    border-radius:10px;
    background:#fff;
    color:#26384d;
    font:inherit;
    outline:none;
}

.account-password-form input:focus{
    border-color:#1170CE;
    box-shadow:0 0 0 3px rgba(17,112,206,.08);
}

.account-password-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.account-password-submit{
    align-self:flex-start;
    min-height:44px;
    padding:0 18px;
    border:0;
    border-radius:9px;
    background:#1170CE;
    color:#fff;
    font:inherit;
    font-weight:600;
    cursor:pointer;
}

.account-password-submit:hover{
    background:#0d62b6;
}

.account-password-error{
    max-width:720px;
    box-sizing:border-box;
    margin:0 0 18px;
    padding:11px 14px;
    border-radius:9px;
    background:#fff1f1;
    color:#b42318;
    font-size:14px;
}

@media(max-width:700px){

    .account-security-section{
        margin:20px 14px 30px;
    }

    .account-security-card{
        padding:20px;
    }

    .account-password-grid{
        grid-template-columns:1fr;
    }

    .account-password-submit{
        width:100%;
    }
}


/* =========================================================
   ZONA DE RIESGO - ELIMINAR CUENTA
   ========================================================= */

.account-danger-section{
    max-width:1040px;
    margin:0 auto 45px;
}

.account-danger-card{
    padding:26px 28px;
    border:1px solid #f2cccc;
    border-radius:18px;
    background:#fff;
    box-shadow:0 12px 30px rgba(90,30,30,.04);
}

.account-danger-kicker{
    display:block;
    margin-bottom:5px;
    color:#c62828;
    font-size:12px;
    font-weight:700;
    letter-spacing:.08em;
}

.account-danger-card h2{
    margin:0 0 7px;
    color:#29394d;
    font-size:23px;
}

.account-danger-intro{
    max-width:720px;
    margin:0 0 18px;
    color:#6b7d92;
    font-size:14px;
    line-height:1.55;
}

.account-danger-open{
    min-height:42px;
    padding:0 16px;
    border:0;
    border-radius:9px;
    background:#fff0f0;
    color:#c62828;
    font:inherit;
    font-weight:600;
    cursor:pointer;
}

.account-danger-open:hover{
    background:#c62828;
    color:#fff;
}

.account-delete-account-form{
    display:grid;
    gap:15px;
    margin-top:22px;
}

.account-delete-account-form label{
    display:grid;
    gap:7px;
    color:#334155;
    font-size:13px;
    font-weight:600;
}

.account-delete-account-form input{
    width:100%;
    box-sizing:border-box;
    padding:12px 13px;
    border:1px solid #d6e0eb;
    border-radius:10px;
    outline:none;
    font:inherit;
}

.account-delete-account-form input:focus{
    border-color:#c62828;
    box-shadow:0 0 0 3px rgba(198,40,40,.08);
}

@media(max-width:700px){

    .account-danger-section{
        margin:0 14px 35px;
    }

    .account-danger-card{
        padding:20px;
    }
}


/* ===== Seguridad y zona de riesgo: mismo ancho que Mi cuenta ===== */

.account-security,
.account-danger-zone,
.account-security-panel,
.account-danger-panel{
    width:100% !important;
    max-width:none !important;
    box-sizing:border-box;
}

/* Si están dentro de un contenedor limitado, permitir ancho completo */
.account-security-area,
.account-settings,
.account-security-wrapper{
    width:100% !important;
    max-width:none !important;
}


/* ===== Seguridad y eliminar cuenta: mismo ancho que el contenido principal ===== */

.account-security-section,
.account-danger-section{
    width:100% !important;
    max-width:none !important;
    box-sizing:border-box;
    margin-left:0 !important;
    margin-right:0 !important;
}

.account-security-card,
.account-danger-card{
    width:100% !important;
    max-width:none !important;
    box-sizing:border-box;
}



/* =========================================================
   MI CUENTA · TARJETAS DE TIENDAS
   ========================================================= */

.account-merchant-area{
    margin-top:36px;
    width:100%;
}

.account-merchant-title{
    margin-bottom:20px;
}

/* Cada tienda es una tarjeta independiente */
.account-store-panel{
    display:block;
    width:100%;
    box-sizing:border-box;

    background:#fff !important;
    border:1px solid #dbe6f2 !important;
    border-radius:18px !important;

    padding:28px 30px !important;
    margin:0 0 28px 0 !important;

    box-shadow:
        0 12px 30px rgba(31,61,92,.07) !important;
}

/* Más separación cuando hay varias tiendas */
.account-store-panel + .account-store-panel{
    margin-top:30px !important;
}

/* Cabecera de cada tienda */
.account-store-top{
    padding-bottom:4px;
}

.account-store-top h3{
    margin:0 0 8px !important;
    font-size:20px;
}

.account-store-top p{
    margin:0 !important;
}

/* Bloques Servicio / Suscripción / Pago / Renovación */
.account-store-stats{
    margin:24px 0 26px !important;
    gap:12px !important;
}

.account-store-stats > div{
    background:#f7f9fc !important;
    border:1px solid #edf1f6;
    border-radius:12px !important;
    padding:15px 16px !important;
}

/* Separadores internos */
.account-store-panel .account-divider{
    border:0;
    border-top:1px solid #e5ebf2;
    margin:28px 0 !important;
}

/* Títulos internos */
.account-store-panel > h3{
    margin-bottom:18px !important;
}

/* Formulario de facturación */
.account-store-panel .account-form{
    margin-top:4px;
}

/* Facturas */
.account-store-panel .account-invoices-wrap{
    margin-top:12px;
}

/* Segunda tienda y posteriores:
   separación visual inequívoca */
.account-store-panel + .account-store-panel{
    position:relative;
}

/* Responsive */
@media(max-width:800px){

    .account-store-panel{
        padding:22px 20px !important;
        border-radius:16px !important;
        margin-bottom:22px !important;
    }

    .account-store-panel + .account-store-panel{
        margin-top:22px !important;
    }
}

@media(max-width:520px){

    .account-store-panel{
        padding:18px 16px !important;
        border-radius:14px !important;
    }

    .account-store-top{
        gap:12px;
    }
}


/* =========================================================
   MI CUENTA · TARJETA PRINCIPAL
   ========================================================= */

.account-main-card{
    width:100%;
    box-sizing:border-box;

    background:#fff;
    border:1px solid #dbe6f2;
    border-radius:18px;

    padding:28px 30px;
    margin-bottom:24px;

    box-shadow:0 12px 30px rgba(31,61,92,.06);
}

/* Quitamos margen sobrante del título dentro de la tarjeta */
.account-main-card > div:first-child,
.account-main-card h1:first-child{
    margin-top:0;
}

/* Responsive */
@media(max-width:800px){

    .account-main-card{
        padding:22px 20px;
        border-radius:16px;
    }
}

@media(max-width:520px){

    .account-main-card{
        padding:18px 16px;
        border-radius:14px;
    }
}



/* =========================================================
   TARJETA PRINCIPAL: MI CUENTA + MI PERFIL
   ========================================================= */

.account-profile-card{
    display:block;
    width:100%;
    box-sizing:border-box;

    background:#fff;
    border:1px solid #dbe6f2;
    border-radius:18px;

    padding:28px 30px;
    margin:0 0 24px 0;

    box-shadow:0 12px 30px rgba(31,61,92,.06);
}

/*
 * La tarjeta termina después de Guardar perfil.
 * Historial, visitados, guardados, alertas y opiniones
 * permanecen fuera de esta tarjeta.
 */

.account-profile-card h1{
    margin-top:0;
}

.account-profile-card form:last-child{
    margin-bottom:0;
}


/* Móvil */
@media(max-width:800px){

    .account-profile-card{
        padding:22px 20px;
        border-radius:16px;
        margin-bottom:22px;
    }
}

@media(max-width:520px){

    .account-profile-card{
        padding:18px 16px;
        border-radius:14px;
    }
}



/* =========================================================
   TARJETA PRINCIPAL: MI CUENTA + MI PERFIL
   ========================================================= */

.account-profile-card{
    display:block;
    width:100%;
    box-sizing:border-box;

    background:#fff;
    border:1px solid #dbe6f2;
    border-radius:18px;

    padding:28px 30px;
    margin:0 0 24px 0;

    box-shadow:0 12px 30px rgba(31,61,92,.06);
}

/*
 * La tarjeta termina después de Guardar perfil.
 * Historial, visitados, guardados, alertas y opiniones
 * permanecen fuera de esta tarjeta.
 */

.account-profile-card h1{
    margin-top:0;
}

.account-profile-card form:last-child{
    margin-bottom:0;
}


/* Móvil */
@media(max-width:800px){

    .account-profile-card{
        padding:22px 20px;
        border-radius:16px;
        margin-bottom:22px;
    }
}

@media(max-width:520px){

    .account-profile-card{
        padding:18px 16px;
        border-radius:14px;
    }
}


/* ===== PERFIL: tarjeta blanca independiente ===== */

.account-profile-card{
    width:100%;
    box-sizing:border-box;
    background:#fff;
    border:1px solid #dbe6f2;
    border-radius:18px;
    padding:28px 30px;
    margin:0 0 24px;
    box-shadow:0 12px 30px rgba(31,61,92,.06);
}

/* Las tarjetas de historial quedan completamente fuera */
.account-profile-card + .account-grid{
    margin-top:0;
}

@media(max-width:800px){
    .account-profile-card{
        padding:22px 20px;
        border-radius:16px;
    }
}


/* =========================================================
   CONTENEDOR GENERAL DE MI CUENTA
   No debe ser una tarjeta blanca.
   Las tarjetas interiores ya tienen su propio fondo.
   ========================================================= */

.account-page{
    background:transparent !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
}

/* Perfil = tarjeta independiente */
.account-profile-card{
    background:#fff !important;
    border:1px solid #dbe6f2 !important;
    border-radius:18px !important;
    box-shadow:0 12px 30px rgba(31,61,92,.06) !important;
    margin-bottom:24px !important;
}

/* El grid queda fuera de la tarjeta de perfil */
.account-grid{
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
}


/* =========================================================
   CORRECCIÓN: la tarjeta blanca es account-profile-panel
   ========================================================= */

/* Wrapper general: sin tarjeta */
.account-profile-card{
    background:transparent !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
    padding:0 !important;
    margin:0 0 24px 0 !important;
}

/* Tarjeta real de perfil */
.panel.account-profile-panel{
    width:100%;
    box-sizing:border-box;

    background:#fff !important;
    border:1px solid #dbe6f2 !important;
    border-radius:18px !important;

    padding:28px 30px !important;
    margin-bottom:24px !important;

    box-shadow:0 12px 30px rgba(31,61,92,.06) !important;
}

/* Responsive */
@media(max-width:800px){
    .panel.account-profile-panel{
        padding:22px 20px !important;
        border-radius:16px !important;
    }
}

@media(max-width:520px){
    .panel.account-profile-panel{
        padding:18px 16px !important;
        border-radius:14px !important;
    }
}



/* =========================================================
   GESTIÓN DE ALERTAS
   ========================================================= */

.account-alert-row{
    position:relative;
}

.account-alert-product{
    padding-right:58px !important;
}

.account-alert-status{
    margin-top:5px;
    font-weight:600;
}

.account-alert-status.is-active{
    color:#16803a;
}

.account-alert-status.is-disabled{
    color:#64748b;
}


.account-alert-controls{
    display:flex;
    align-items:flex-end;
    gap:10px;
    flex-wrap:wrap;

    padding:12px 58px 14px 14px;

    border-top:1px solid #edf2f7;
}


.account-alert-price-form{
    display:flex;
    align-items:flex-end;
    gap:8px;
    flex-wrap:wrap;
    margin:0;
}

.account-alert-price-form label{
    display:grid;
    gap:5px;

    color:#64748b;
    font-size:12px;
    font-weight:600;
}


.account-alert-price-input{
    display:flex;
    align-items:center;

    background:#fff;
    border:1px solid #d7e1eb;
    border-radius:9px;

    overflow:hidden;
}

.account-alert-price-input input{
    width:110px;
    border:0;
    outline:0;

    padding:9px 10px;

    font:inherit;
    color:#1f2937;
    background:transparent;
}

.account-alert-price-input span{
    padding:0 10px 0 4px;
    color:#64748b;
}


.account-alert-save,
.account-alert-toggle{
    border:0;
    border-radius:9px;

    padding:10px 14px;

    font:inherit;
    font-size:13px;
    font-weight:600;

    cursor:pointer;
}


.account-alert-save{
    background:#1170CE;
    color:#fff;
}

.account-alert-save:hover{
    filter:brightness(.94);
}


.account-alert-toggle.is-active{
    background:#eef2f6;
    color:#475569;
}

.account-alert-toggle.is-disabled{
    background:#e9f7ef;
    color:#16803a;
}


.account-alert-success{
    padding:10px 12px;
    margin:0 0 12px;

    border-radius:9px;

    background:#edf9f1;
    color:#16733a;

    font-size:13px;
    font-weight:600;
}

.account-alert-error{
    padding:10px 12px;
    margin:0 0 12px;

    border-radius:9px;

    background:#fff0f0;
    color:#c62828;

    font-size:13px;
    font-weight:600;
}


@media(max-width:600px){

    .account-alert-controls{
        padding-right:14px;
    }

    .account-alert-price-form{
        width:100%;
    }

    .account-alert-price-form label{
        flex:1;
    }

    .account-alert-price-input{
        width:100%;
    }

    .account-alert-price-input input{
        width:100%;
    }
}



/* =========================================================
   GESTIÓN DE OPINIONES
   ========================================================= */

.account-review-row{
    position:relative;
}

.account-review-product{
    padding-right:58px !important;
}

.account-review-editor{
    border-top:1px solid #edf2f7;
    padding:10px 14px 14px;
}

.account-review-editor summary{
    width:max-content;
    color:#1170CE;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
}

.account-review-form{
    display:grid;
    grid-template-columns:160px 1fr;
    gap:14px;
    margin-top:14px;
}

.account-review-form label{
    display:grid;
    gap:6px;
    color:#64748b;
    font-size:12px;
    font-weight:600;
}

.account-review-form input,
.account-review-form select,
.account-review-form textarea{
    width:100%;
    box-sizing:border-box;
    border:1px solid #d7e1eb;
    border-radius:9px;
    background:#fff;
    padding:10px 11px;
    outline:0;
    font:inherit;
    color:#1f2937;
}

.account-review-form input:focus,
.account-review-form select:focus,
.account-review-form textarea:focus{
    border-color:#1170CE;
    box-shadow:0 0 0 3px rgba(17,112,206,.08);
}

.account-review-full{
    grid-column:1 / -1;
}

.account-review-note{
    margin:0 0 10px;
    color:#718197;
    font-size:12px;
}

.account-review-save{
    border:0;
    border-radius:9px;
    background:#1170CE;
    color:#fff;
    padding:10px 15px;
    font:inherit;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
}

.account-review-save:hover{
    filter:brightness(.94);
}

.account-review-success{
    padding:10px 12px;
    margin:0 0 12px;
    border-radius:9px;
    background:#edf9f1;
    color:#16733a;
    font-size:13px;
    font-weight:600;
}

.account-review-error{
    padding:10px 12px;
    margin:0 0 12px;
    border-radius:9px;
    background:#fff0f0;
    color:#c62828;
    font-size:13px;
    font-weight:600;
}

@media(max-width:650px){

    .account-review-form{
        grid-template-columns:1fr;
    }

    .account-review-full{
        grid-column:auto;
    }
}

