/* =========================================================
   MiaTrust Stage 6.6.1 — My Account
   ========================================================= */

body.woocommerce-account .mt-woo-main{
    background:
        radial-gradient(circle at 8% 18%, rgba(225,96,171,.07), transparent 28%),
        radial-gradient(circle at 92% 75%, rgba(112,48,158,.06), transparent 30%),
        #fff;
}

body.woocommerce-account .mt-woo-content{
    max-width:1280px;
    padding-top:52px;
    padding-bottom:72px;
}

body.woocommerce-account .mt-commerce-title{
    margin:0 0 32px;
    color:#573160;
    font-size:36px;
    font-weight:800;
    line-height:1.4;
}

body.woocommerce-account .mt-commerce-content{
    width:100%;
}

/* Main Woo account shell */
body.woocommerce-account .woocommerce{
    display:grid;
    grid-template-columns:260px minmax(0,1fr);
    gap:30px;
    align-items:start;
    direction:rtl;
}

/* Account navigation */
body.woocommerce-account .woocommerce-MyAccount-navigation{
    width:100%;
    float:none;
    margin:0;
    padding:16px;
    background:rgba(255,255,255,.94);
    border:1px solid rgba(92,49,101,.10);
    border-radius:24px;
    box-shadow:0 14px 40px rgba(83,45,91,.07);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul{
    list-style:none;
    padding:0;
    margin:0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation li{
    margin:5px 0;
    padding:0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a{
    display:flex;
    align-items:center;
    min-height:48px;
    padding:10px 16px;
    border-radius:14px;
    color:#573160;
    text-decoration:none;
    font-weight:700;
    transition:.2s ease;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a:hover{
    background:#faf3fa;
    color:#9b3f91;
    transform:translateX(-2px);
}

body.woocommerce-account .woocommerce-MyAccount-navigation .is-active a{
    color:#fff;
    background:linear-gradient(135deg,#d64e9f,#7432a2);
    box-shadow:0 8px 20px rgba(167,63,157,.20);
}

/* Main content */
body.woocommerce-account .woocommerce-MyAccount-content{
    width:100%;
    float:none;
    min-width:0;
    padding:30px 34px;
    background:rgba(255,255,255,.96);
    border:1px solid rgba(92,49,101,.10);
    border-radius:24px;
    box-shadow:0 14px 40px rgba(83,45,91,.07);
    color:#342a35;
    line-height:2;
}

body.woocommerce-account .woocommerce-MyAccount-content > p:first-child{
    margin-top:0;
}

body.woocommerce-account .woocommerce-MyAccount-content a{
    color:#8c3d91;
    font-weight:700;
}

/* Notices */
body.woocommerce-account .woocommerce-notices-wrapper{
    grid-column:1 / -1;
}

body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info,
body.woocommerce-account .woocommerce-error{
    margin:0 0 24px !important;
    padding:16px 20px !important;
    border:1px solid rgba(180,79,177,.18) !important;
    border-radius:16px !important;
    background:#fff8fc !important;
    color:#573160 !important;
    box-shadow:0 8px 24px rgba(83,45,91,.05);
}

body.woocommerce-account .woocommerce-message::before,
body.woocommerce-account .woocommerce-info::before{
    color:#b44fb1 !important;
}

body.woocommerce-account .woocommerce-message .button,
body.woocommerce-account .woocommerce-info .button{
    border:0 !important;
    border-radius:12px !important;
    background:linear-gradient(135deg,#d64e9f,#7432a2) !important;
    color:#fff !important;
    padding:9px 18px !important;
}

/* Tables */
body.woocommerce-account table.shop_table{
    border:1px solid rgba(92,49,101,.10);
    border-radius:16px;
    overflow:hidden;
}

body.woocommerce-account table.shop_table th{
    color:#573160;
    font-weight:800;
}

/* Forms */
body.woocommerce-account .woocommerce-MyAccount-content input.input-text,
body.woocommerce-account .woocommerce-MyAccount-content input[type="text"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="email"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="password"],
body.woocommerce-account .woocommerce-MyAccount-content input[type="tel"],
body.woocommerce-account .woocommerce-MyAccount-content select,
body.woocommerce-account .woocommerce-MyAccount-content textarea{
    width:100%;
    min-height:48px;
    border:1px solid #ded5df;
    border-radius:13px;
    background:#fff;
    padding:10px 14px;
    box-sizing:border-box;
}

body.woocommerce-account .woocommerce-MyAccount-content input:focus,
body.woocommerce-account .woocommerce-MyAccount-content select:focus,
body.woocommerce-account .woocommerce-MyAccount-content textarea:focus{
    border-color:#b44fb1;
    outline:none;
    box-shadow:0 0 0 3px rgba(180,79,177,.09);
}

body.woocommerce-account .woocommerce-MyAccount-content button.button,
body.woocommerce-account .woocommerce-MyAccount-content a.button{
    border:0;
    border-radius:13px;
    background:linear-gradient(135deg,#d64e9f,#7432a2);
    color:#fff;
    padding:11px 20px;
    font-weight:800;
}

/* Address cards */
body.woocommerce-account .woocommerce-Address{
    padding:22px;
    border:1px solid rgba(92,49,101,.10);
    border-radius:18px;
    background:#fff;
}

/* Responsive */
@media (max-width:800px){
    body.woocommerce-account .mt-woo-content{
        padding-top:32px;
    }

    body.woocommerce-account .mt-commerce-title{
        font-size:29px;
        margin-bottom:24px;
    }

    body.woocommerce-account .woocommerce{
        display:block;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation{
        margin-bottom:20px;
        padding:10px;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation ul{
        display:flex;
        overflow-x:auto;
        gap:7px;
        padding-bottom:3px;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation li{
        flex:0 0 auto;
        margin:0;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation a{
        min-height:42px;
        white-space:nowrap;
        padding:8px 13px;
    }

    body.woocommerce-account .woocommerce-MyAccount-content{
        padding:22px 18px;
    }
}

/* =========================================================
   MiaTrust Stage 6.6.2 — Account Layout Fix
   ========================================================= */

@media (min-width:801px){

    body.woocommerce-account .mt-commerce-content > .woocommerce{
        display:grid !important;
        grid-template-columns:minmax(0,1fr) 260px !important;
        grid-template-areas:
            "notice notice"
            "content nav" !important;
        gap:28px !important;
        align-items:start !important;
        width:100% !important;
    }

    body.woocommerce-account .woocommerce-notices-wrapper{
        grid-area:notice !important;
        width:100% !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation{
        grid-area:nav !important;
        width:260px !important;
        float:none !important;
        margin:0 !important;
        box-sizing:border-box !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-content{
        grid-area:content !important;
        width:100% !important;
        max-width:none !important;
        min-width:0 !important;
        float:none !important;
        margin:0 !important;
        box-sizing:border-box !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation ul{
        display:block !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation li{
        display:block !important;
        width:100% !important;
    }

    body.woocommerce-account .woocommerce-MyAccount-navigation a{
        width:100% !important;
        box-sizing:border-box !important;
    }
}


/* =========================================================
   MiaTrust Stage 6.7.1
   Guest My Account — Login + Registration
   ========================================================= */

/* IMPORTANT:
   Logged-out users must NOT inherit the dashboard
   navigation/content grid used for logged-in accounts.
*/
@media (min-width:801px){

    body.woocommerce-account:not(.logged-in)
    .mt-commerce-content > .woocommerce{
        display:block !important;
        width:100% !important;
        max-width:1120px !important;
        margin:0 auto !important;
    }

    body.woocommerce-account:not(.logged-in)
    .woocommerce .u-columns{
        display:grid !important;
        grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
        gap:32px !important;
        width:100% !important;
        max-width:none !important;
        margin:0 !important;
    }

    body.woocommerce-account:not(.logged-in)
    .woocommerce .u-column1,

    body.woocommerce-account:not(.logged-in)
    .woocommerce .u-column2{
        display:block !important;
        float:none !important;
        width:100% !important;
        max-width:none !important;
        min-width:0 !important;
        margin:0 !important;
        padding:0 !important;
    }
}

/* Guest headings */
body.woocommerce-account:not(.logged-in)
.woocommerce .u-column1 > h2,

body.woocommerce-account:not(.logged-in)
.woocommerce .u-column2 > h2{
    margin:0 0 16px !important;
    color:#573160 !important;
    font-size:25px !important;
    font-weight:800 !important;
    line-height:1.5 !important;
}

/* Guest cards */
body.woocommerce-account:not(.logged-in)
form.woocommerce-form-login,

body.woocommerce-account:not(.logged-in)
form.woocommerce-form-register{
    box-sizing:border-box !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:30px !important;

    border:1px solid rgba(87,49,96,.12) !important;
    border-radius:24px !important;

    background:#fff !important;

    box-shadow:
        0 18px 48px rgba(87,49,96,.07) !important;
}

/* Labels */
body.woocommerce-account:not(.logged-in)
form.woocommerce-form-login label,

body.woocommerce-account:not(.logged-in)
form.woocommerce-form-register label{
    display:block !important;
    margin:0 0 8px !important;
    color:#43284b !important;
    font-weight:700 !important;
}

/* Fields */
body.woocommerce-account:not(.logged-in)
form.woocommerce-form-login input.input-text,

body.woocommerce-account:not(.logged-in)
form.woocommerce-form-register input.input-text,

body.woocommerce-account:not(.logged-in)
form.woocommerce-form-login input[type="text"],

body.woocommerce-account:not(.logged-in)
form.woocommerce-form-login input[type="password"],

body.woocommerce-account:not(.logged-in)
form.woocommerce-form-register input[type="email"]{
    box-sizing:border-box !important;
    width:100% !important;
    max-width:none !important;
    min-height:52px !important;

    padding:10px 14px !important;

    border:1px solid #e4dce6 !important;
    border-radius:13px !important;

    background:#fff !important;
    color:#342538 !important;

    font-size:15px !important;
}

/* Woo password wrapper */
body.woocommerce-account:not(.logged-in)
.password-input{
    display:block !important;
    width:100% !important;
}

/* Main buttons */
body.woocommerce-account:not(.logged-in)
button.woocommerce-button,

body.woocommerce-account:not(.logged-in)
button.button{
    min-height:48px !important;
    padding:10px 28px !important;

    border:0 !important;
    border-radius:13px !important;

    background:
        linear-gradient(135deg,#d846a2 0%,#8237b4 100%) !important;

    color:#fff !important;
    font-weight:800 !important;

    box-shadow:
        0 10px 25px rgba(151,55,167,.18) !important;
}

/* Remember me must not stretch */
body.woocommerce-account:not(.logged-in)
.woocommerce-form-login__rememberme{
    display:inline-flex !important;
    align-items:center !important;
    gap:7px !important;
    width:auto !important;
    margin:0 0 14px !important;
}

body.woocommerce-account:not(.logged-in)
.woocommerce-form-login__rememberme input{
    width:auto !important;
    min-height:0 !important;
}

/* Links */
body.woocommerce-account:not(.logged-in)
.woocommerce-LostPassword{
    margin:18px 0 0 !important;
}

body.woocommerce-account:not(.logged-in)
.woocommerce-LostPassword a,

body.woocommerce-account:not(.logged-in)
form.woocommerce-form-register a{
    color:#87368f !important;
    font-weight:700 !important;
}

/* Registration explanation */
body.woocommerce-account:not(.logged-in)
form.woocommerce-form-register > p{
    color:#66556a;
    line-height:2;
}

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

    body.woocommerce-account:not(.logged-in)
    .mt-commerce-content > .woocommerce{
        display:block !important;
        width:100% !important;
    }

    body.woocommerce-account:not(.logged-in)
    .woocommerce .u-columns{
        display:grid !important;
        grid-template-columns:1fr !important;
        gap:28px !important;
        width:100% !important;
    }

    body.woocommerce-account:not(.logged-in)
    .woocommerce .u-column1,

    body.woocommerce-account:not(.logged-in)
    .woocommerce .u-column2{
        width:100% !important;
        float:none !important;
        margin:0 !important;
    }

    body.woocommerce-account:not(.logged-in)
    form.woocommerce-form-login,

    body.woocommerce-account:not(.logged-in)
    form.woocommerce-form-register{
        padding:22px !important;
        border-radius:20px !important;
    }
}


/* =========================================================
   MiaTrust Stage 6.7.2
   Guest Login/Register — Force Same Row
   ========================================================= */

@media (min-width:801px){

    body.woocommerce-account:not(.logged-in)
    .woocommerce .u-columns{
        display:grid !important;
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        grid-template-rows:auto !important;
        column-gap:34px !important;
        row-gap:0 !important;
        align-items:start !important;
    }

    /* Login — left */
    body.woocommerce-account:not(.logged-in)
    .woocommerce .u-column1{
        grid-column:1 !important;
        grid-row:1 !important;
        align-self:start !important;
        clear:none !important;
        margin-top:0 !important;
    }

    /* Register — right */
    body.woocommerce-account:not(.logged-in)
    .woocommerce .u-column2{
        grid-column:2 !important;
        grid-row:1 !important;
        align-self:start !important;
        clear:none !important;
        margin-top:0 !important;
    }
}

