﻿/* Account auth cards (login/register) */
.woocommerce-account:not(.logged-in){ background:#f5f5f5; }
.auth-cards {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none !important;
    border: none !important;
}
.auth-card {
    background: #fff;
    padding: 48px 44px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.auth-card--login,
.auth-card--register {
    border: none !important;
    box-shadow: none !important;
}
.auth-card__title {
    color: #111;
    letter-spacing: .5px;
}
.auth-card__content { height: 100%; }
.auth-card__body { flex: 1; }
.auth-card__intro { color: #1f1f1f; }
.auth-benefits { list-style: none; padding: 0; margin: 0; }
.auth-benefits li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #222; }
.auth-benefits__icon { display: inline-flex; width: 18px; height: 18px; color: #198754; }
.auth-card__submit,
.auth-card__cta { border-radius: 0; font-weight: 600; text-transform: uppercase; }

/* Force primary red for submit/CTA (override Woo defaults) */
.auth-card__submit,
.auth-card__cta,
button.auth-card__submit.button,
button.auth-card__cta.button,
input[type="submit"].auth-card__submit,
input[type="submit"].auth-card__cta {
    background: var(--custom-red1, #dc3545) !important;
    border-color: var(--custom-red1, #dc3545) !important;
    color: #fff !important;
    border-radius: 0 !important;
}
.auth-card__submit:hover,
.auth-card__submit:focus,
.auth-card__submit:active,
.auth-card__cta:hover,
.auth-card__cta:focus,
.auth-card__cta:active {
    background: #b02a37 !important;
    border-color: #b02a37 !important;
    color: #fff !important;
}
.auth-card--login .auth-card__cta,
.auth-card--register .auth-card__cta{
    background:#111 !important;
    border-color:#111 !important;
    color:#fff !important;
    border-radius:0 !important;
}
.auth-card--login .auth-card__cta:hover,
.auth-card--login .auth-card__cta:focus,
.auth-card--login .auth-card__cta:active,
.auth-card--register .auth-card__cta:hover,
.auth-card--register .auth-card__cta:focus,
.auth-card--register .auth-card__cta:active{
    background:#000 !important;
    border-color:#000 !important;
}
button.auth-card__submit:disabled,
button.auth-card__cta:disabled,
input[type="submit"].auth-card__submit:disabled,
input[type="submit"].auth-card__cta:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.auth-card__link{ color:var(--custom-grey2,#6c757d); text-decoration:underline; }
.auth-card__link:hover{ color:var(--custom-red1,#dc3545); }
.auth-card--register { background: #f8f9fa; }
.auth-card--register .auth-card__title,
.auth-card--register .auth-card__intro,
.auth-card--register .auth-benefits { color: #111; }

/* Form fields: no borders, flat look */
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"],
.auth-card input[type="tel"],
.auth-card input[type="number"],
.auth-card select,
.auth-card textarea,
.auth-card .form-control {
    border: 1px solid #e6e6e6 !important;
    box-shadow: none !important;
    background: #fff;
    border-radius: 0;
}
.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus,
.auth-card .form-control:focus {
    outline: none;
    box-shadow: none !important;
    background: #fff;
}

/* Dashboard icons */
.bg-icon-heart{ background:url(../images/heart.svg) center/contain no-repeat; }
.bg-icon-box{   background:url(../images/shopping_bag.svg) center/contain no-repeat; }
.bg-icon-doc{   border:2px solid #111; position:relative; }
.bg-icon-doc::after{ content:''; position:absolute; top:6px; left:6px; right:6px; height:2px; background:#111; box-shadow:0 6px 0 #111,0 12px 0 #111; }
.bg-icon-avatar{ background:url(../images/user.svg) center/contain no-repeat; filter:grayscale(1) opacity(.7); }

/* Profile edit toggle */
.profile-card .profile-edit-field,
.profile-card .profile-edit-only,
.profile-card .profile-actions{ display:none; }
.profile-card.is-editing .profile-edit-field,
.profile-card.is-editing .profile-edit-only,
.profile-card.is-editing .profile-actions{ display:block !important; }
.profile-card.is-editing .profile-view{ display:none; }

/* Force-hide Woo password meter/hint (belt & suspenders) */
.woocommerce-password-strength,
.woocommerce-password-hint{ display:none !important; visibility:hidden !important; }

/* Account sidebar + inner pages */
.mc-account-sidebar{ padding:8px 0; }
.mc-account-menu{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin:0 !important;
    padding:0 !important;
}
.mc-account-menu__item{ list-style:none; }
.mc-account-menu__link{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 12px;
    border-radius:6px;
    color:#111;
    text-decoration:none;
    background:transparent;
    transition:background .2s ease,color .2s ease;
    font-weight:500;
}
.mc-account-menu__icon{
    width:24px;
    height:24px;
    background-position:center;
    background-repeat:no-repeat;
    background-size:contain;
    flex-shrink:0;
}
.mc-account-menu__link:hover{ background:#f3f3f3; color:#000; }
.mc-account-menu__link.is-active{ background:#f6e1e5; color:#111; font-weight:700; }
.mc-account-panel{
    background:#fff;
    border:1px solid #ededed;
    border-radius:12px;
    padding:24px 26px;
    box-shadow:none;
    font-family:"Poppins Regular", Arial, sans-serif;
}
.mc-account-panel--profile-edit{
    border:0;
    box-shadow:none;
    padding:0;
}
.mc-account-placeholder{ padding:16px 0; }
.mc-account-sidebar{ padding-left:0 !important; padding-right:0 !important; margin-left:0 !important; margin-right:0 !important; }
.mc-account-sidebar .mc-account-hello{ font-size:24px !important; font-weight:600; color:#111; margin-bottom:16px; }
.mc-panel-header{ margin-top:-8px; }
.mc-account-logout{
    font-size:16px !important;
    font-weight:700 !important;
}
.mc-profile-card{ border:1px solid #e8e8e8; border-radius:12px; box-shadow:none; background:#fff; font-family:"Poppins Regular", Arial, sans-serif; }
.mc-profile-avatar{ width:140px; height:140px; border-radius:50%; background:#f6f6f6; overflow:hidden; }
.mc-profile-label{ font-size:14px; color:#606060; margin-bottom:2px; font-weight:600; }
.mc-profile-value{ font-size:15px; font-weight:600; color:#111; letter-spacing:0.1px; }
.mc-edit-link{ font-size:14px; font-weight:600; color:#111; text-decoration:underline; }
.mc-address-card{ border:1px solid #e8e8e8; border-radius:12px; background:#fff; font-family:"Poppins Regular", Arial, sans-serif; }
.mc-profile-field{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:8px 0;
    border-bottom:1px solid #f0f0f0;
}
.mc-profile-field:last-child{ border-bottom:none; }
.mc-profile-input{
    max-width:240px;
    font-weight:600;
}
.mc-profile-form{ display:none; }
.mc-profile-card-shell .mc-profile-view{ display:block; }
.mc-profile-card-shell.is-editing .mc-profile-view{ display:none; }
.mc-profile-card-shell.is-editing .mc-profile-form{ display:block; }

@media (max-width: 991px){
    .mc-profile-field{ flex-direction:column; align-items:flex-start; }
    .mc-profile-input{ max-width:100%; width:100%; }
    .mc-profile-card{ padding:12px; }
    .mc-profile-avatar{ width:110px; height:110px; }
}

/* My account profile layout tweaks */
.mc-card-header{
    padding-bottom:12px;
}
.mc-edit-icon{
    width:32px;
    height:32px;
    border:0;
    border-radius:0;
    background:transparent url('../images/icon-pencil.svg') center/16px 16px no-repeat;
    padding:0;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    transition:transform .1s ease, opacity .2s ease;
}
.mc-edit-icon:hover,
.mc-edit-icon:focus{
    opacity:0.8;
    outline:none;
}
.mc-edit-icon:active{ transform:scale(0.97); }
.mc-profile-card .mc-profile-view{ padding-top:6px; }
.mc-address-card .mc-profile-card-shell + .mc-profile-card-shell{
    border-left:1px solid #ededed;
    padding-left:24px;
}
.mc-address-card .mc-profile-card-shell:first-child{ padding-right:24px; }
.mc-address-card .mc-profile-card-shell h6{
    font-size:15px;
    font-weight:700;
    margin-bottom:8px !important;
}
.mc-profile-view .mc-profile-field{
    border-bottom:0;
    padding:6px 0;
}
.mc-profile-field--password-row{
    align-items:flex-start;
}
.mc-password-link{
    margin-top:4px;
    text-align:left;
    font-weight:600;
}
.mc-profile-form .mc-profile-field{
    align-items:flex-start;
}
.mc-profile-form .mc-profile-label{
    min-width:120px;
    padding-top:6px;
}
.mc-profile-form .mc-profile-input,
.mc-profile-form input,
.mc-profile-form .form-control{
    border:1px solid #e5e5e5 !important;
    border-radius:6px;
    box-shadow:none !important;
}
.mc-profile-form .btn,
.mc-profile-form button{
    border-radius:6px !important;
}
.mc-profile-form .btn.btn-dark,
.mc-profile-form .btn.btn-outline-dark{
    background:#000;
    border-color:#000;
    color:#fff;
}
.mc-profile-form .btn.btn-dark:hover,
.mc-profile-form .btn.btn-outline-dark:hover,
.mc-profile-form .btn.btn-dark:focus,
.mc-profile-form .btn.btn-outline-dark:focus{
    background:#111;
    border-color:#111;
    color:#fff;
}
.mc-profile-card-shell .mc-profile-form{ padding-top:8px; }

.mc-account-panel .mc-profile-card-shell .mc-profile-view,
.mc-account-panel .mc-profile-card-shell .mc-profile-form{
    font-size:15px;
    color:#191919;
    line-height:1.5;
}

@media (max-width: 991px){
    .mc-address-card .mc-profile-card-shell + .mc-profile-card-shell{
        border-left:0;
        padding-left:0;
        border-top:1px solid #ededed;
        padding-top:16px;
    }
    .mc-address-card .mc-profile-card-shell:first-child{
        padding-right:0;
    }
}

/* Documents list */
.mc-docs-list{
    display:flex;
    flex-direction:column;
    gap:8px;
}
.mc-doc-row{
    border:0;
    border-bottom:1px solid #e1e1e1;
    border-radius:0;
    padding:10px 12px;
    display:grid;
    grid-template-columns:1.8fr 1fr 0.9fr 46px;
    column-gap:12px;
    align-items:center;
    background:#fff;
    transition:border-color .15s ease, background-color .15s ease;
}
.mc-doc-row:last-child{ border-bottom:0; }
.mc-doc-row:hover{ background-color:#fcfcfc; }
.mc-doc-cell{
    font-size:15px;
    color:#111;
}
.mc-doc-cell--title{
    font-weight:700;
    letter-spacing:0.2px;
}
.mc-doc-cell--title a{
    color:inherit;
    text-decoration:none;
    display:inline-block;
}
.mc-doc-cell--title a:hover{ text-decoration:underline; }
.mc-doc-cell--total{
    text-align:center;
    font-weight:800;
}
.mc-doc-cell--date{
    text-align:left;
    color:#333;
    font-weight:600;
}
.mc-doc-cell--action{
    display:flex;
    justify-content:flex-end;
}
.mc-doc-download{
    width:32px;
    height:32px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:0;
    background:transparent;
    color:#111;
    transition:color .2s ease, transform .1s ease;
}
.mc-doc-download:hover,
.mc-doc-download:focus{
    color:#000;
    outline:none;
}
.mc-doc-download:active{ transform:scale(0.97); }
.mc-doc-download svg{
    width:18px;
    height:18px;
    color:inherit;
    fill:currentColor;
    display:block;
}

@media (max-width: 767px){
    .mc-doc-row{
        grid-template-columns:1fr 1fr;
        row-gap:6px;
    }
    .mc-doc-cell--total{ text-align:left; }
}
/* Responsive tweaks */
@media (max-width: 1199px){ .auth-card{ padding:36px 32px; } }
@media (max-width: 991px){ .auth-card{ padding:32px 28px; } }
@media (max-width: 767px){
    .auth-card{ padding:28px 24px; }
    .auth-card__body{ max-width:100% !important; }
}

@media (max-width: 991px){
    .mc-account-panel{ padding:20px; }
    .mc-account-menu__link{ padding:12px; }
}
@media (max-width: 575px){
    .mc-account-menu__link{ padding:10px 12px; }
}


.woocommerce-form{
    border:0 !important;
    box-shadow:0 !important;
}

.auth-card--register{
    background-color:#fff !important;
}

/* Dashboard tweaks */
.mc-dashboard-title{ font-size:32px; line-height:1.2; font-weight:700; }
.mc-dashboard-actions{ margin-left:0 !important; margin-right:0 !important; }
.mc-dashboard-action-col{ padding-left:0 !important; padding-right:0 !important; }
.mc-dashboard-action{ padding-left:18px; padding-right:18px; }

/* Orders list */
.mc-orders-list{ display:flex; flex-direction:column; gap:16px; }
.mc-order-card{
    border:1px solid #e5e5e5;
    border-radius:10px;
    padding:18px 20px;
    background:#fff;
}
.mc-order-row{
    display:grid;
    grid-template-columns:1fr 1fr auto 2fr auto;
    align-items:center;
    gap:16px;
}
.mc-order-col{ display:flex; flex-direction:column; gap:2px; }
.mc-order-col--products{ justify-content:center; }
.mc-order-col--cta{ align-items:flex-end; justify-content:center; justify-self:end; }
.mc-order-meta__label{ font-size:13px; color:#777; margin-bottom:2px; }
.mc-order-meta__value{ font-size:15px; color:#111; }
.mc-order-status{ font-weight:700; text-transform:lowercase; }
.mc-order-divider{
    width:1px;
    height:100%;
    min-height:68px;
    background:#f0f0f0;
    justify-self:stretch;
}
.mc-order-thumbs{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-start; }
.mc-order-thumb{
    width:48px;
    height:72px;
    border:1px solid #f0f0f0;
    border-radius:6px;
    overflow:hidden;
    background:#fafafa;
    display:inline-flex;
}
.mc-order-thumb img{ width:100%; height:100%; object-fit:cover; }
.mc-order-thumb-more{ font-weight:700; color:#666; }
.mc-order-details-btn{
    border-radius:4px;
    padding:10px 18px;
    font-weight:700;
}
.mc-orders-pagination ul{ display:flex; gap:6px; list-style:none; padding:0; margin:18px 0 0; }
.mc-orders-pagination li a,
.mc-orders-pagination li span{
    display:inline-block;
    padding:8px 12px;
    border:1px solid #e5e5e5;
    border-radius:4px;
    color:#111;
}
.mc-orders-pagination li .current{ background:#111; color:#fff; }

/* Order view */
.mc-order-view{ background:#fff; }
.mc-order-header{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:12px; }
.mc-order-summary-grid{
    border:0;
    border-radius:0;
    padding:16px 0 0;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:12px;
    background:transparent;
}
.mc-order-summary-grid--detailed{
    grid-template-columns:repeat(3,1fr);
    gap:0;
}
.mc-order-summary-block{ min-height:100%; }
.mc-order-summary-label{ font-size:14px; color:#555; margin-bottom:4px; display:block; font-weight:700; }
.mc-order-summary-value{ color:#111; font-weight:400; }
.mc-order-summary-value strong{ font-weight:400; }
.mc-order-payment-list li{ color:#111; }
.mc-order-table th{ font-size:14px; color:#666; font-weight:600; border:0; background:#f8f8f8; }
.mc-order-table td{ border:0; border-bottom:1px solid #f0f0f0; }
.mc-order-line-thumb{
    width:60px;
    height:80px;
    border:1px solid #f0f0f0;
    border-radius:6px;
    overflow:hidden;
    background:#fafafa;
    display:inline-flex;
}
.mc-order-line-thumb img{ width:100%; height:100%; object-fit:cover; }
.mc-order-invoice{ text-decoration:underline; color:#111; font-weight:600; }

/* Order view detailed styling */
.mc-order-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:16px;
    margin-bottom:18px;
}
.mc-order-title{ font-size:24px; }
.mc-order-meta-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    font-size:15px;
    margin-bottom:6px;
}
.mc-order-meta-label{ color:#777; }
.mc-order-meta-label{ font-weight:700; }
.mc-order-meta-value{ font-weight:400; color:#111; }
.mc-order-top-action .mc-order-invoice{ text-decoration:underline; font-weight:700; }
.mc-order-summary-grid--detailed .mc-order-summary-block{
    padding:12px 14px;
    border-right:1px solid #ededed;
}
.mc-order-summary-grid--detailed .mc-order-summary-block:last-child{ border-right:0; }
.mc-order-summary-grid--detailed .mc-order-summary-value{ font-weight:600; line-height:1.5; }
.mc-order-payment-list{
    display:flex;
    flex-direction:column;
    gap:8px;
}
.mc-order-payment-list li{
    display:flex;
    justify-content:space-between;
    gap:12px;
    font-weight:400;
}
.mc-order-payment-list li span:first-child{ font-weight:700; color:#555; }
.mc-order-payment-list li span:last-child{ font-weight:400; color:#111; }
.mc-order-payment-list .mc-order-summary-label{ margin-bottom:0; }

@media (max-width: 991px){
    .mc-order-summary-grid--detailed{
        grid-template-columns:1fr;
        gap:12px;
    }
    .mc-order-summary-grid--detailed .mc-order-summary-block{
        border-right:0;
        border-bottom:1px solid #ededed;
    }
    .mc-order-summary-grid--detailed .mc-order-summary-block:last-child{
        border-bottom:0;
    }
    .mc-order-meta-row{ flex-direction:column; align-items:flex-start; }
}

@media (max-width: 767px){
    .mc-order-row{ grid-template-columns:1fr 1fr; }
    .mc-order-divider{ display:none; }
    .mc-order-col--cta{ grid-column:1 / -1; align-items:flex-start; }
    .mc-order-summary-grid{ grid-template-columns:1fr; }
    .mc-order-table th, .mc-order-table td{ font-size:14px; }
}
