/* ========================================
   MYPROT ORDER STATUS BADGES
======================================== */

.myprot-order-status{
    --status-color:#667085;
    --status-background:#f2f4f7;
    --status-border:#e4e7ec;

    display:inline-flex;
    align-items:center;
    gap:7px;
    min-height:30px;
    padding:5px 11px;
    border: none;
    border-radius:999px;
    background:var(--status-background);
    color:var(--status-color);
    font-size:12px;
    font-weight:700;
    line-height:1;
    white-space:nowrap;
}

.myprot-order-status-dot{
    display:block;
    flex:0 0 auto;
    width:7px;
    height:7px;
    border-radius:50%;
    background:currentColor;
    box-shadow:0 0 0 3px rgba(102, 112, 133, .10);
}


.myprot-order-status-label{
    display:block;
}

/* Terminée */
.myprot-status-completed{
    --status-color:#16803b;
    --status-background:#ecfdf3;
    --status-border:#abefc6;
}

.myprot-status-completed .myprot-order-status-dot{
    box-shadow:0 0 0 3px rgba(22, 128, 59, .12);
}

/* En attente */
.myprot-status-pending,
.myprot-status-on-hold{
    --status-color:#b54708;
    --status-background:#fffaeb;
    --status-border:#fedf89;
}

.myprot-status-pending .myprot-order-status-dot,
.myprot-status-on-hold .myprot-order-status-dot{
    box-shadow:0 0 0 3px rgba(181, 71, 8, .12);
}

/* En cours */
.myprot-status-processing{
    --status-color:#175cd3;
    --status-background:#eff8ff;
    --status-border:#b2ddff;
}

.myprot-status-processing .myprot-order-status-dot{
    box-shadow:0 0 0 3px rgba(23, 92, 211, .12);
}

/* Annulée / Échouée */
.myprot-status-cancelled,
.myprot-status-failed{
    --status-color:#b42318;
    --status-background:#fef3f2;
    --status-border:#fecdca;
}

.myprot-status-cancelled .myprot-order-status-dot,
.myprot-status-failed .myprot-order-status-dot{
    box-shadow:0 0 0 3px rgba(180, 35, 24, .12);
}

/* Remboursée */
.myprot-status-refunded{
    --status-color:#6941c6;
    --status-background:#f4f3ff;
    --status-border:#d9d6fe;
}

.myprot-status-refunded .myprot-order-status-dot{
    box-shadow:0 0 0 3px rgba(105, 65, 198, .12);
}

.myprot-orders {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.myprot-order-card {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.myprot-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 18px;
    border-bottom: 1px solid #ececec;
}

.myprot-order-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 13px;
    color: #666;
}

.myprot-order-number {
    font-weight: 700;
    color: #222;
}

.myprot-order-total {
    color: #333;
}

.myprot-order-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
    border-radius: 999px;
    background: transparent;
    color: #28bd1a;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    
}

.myprot-status-completed {
    background: transparent;
    color: #27821f;
}

.myprot-status-processing {
    background: #fff5d9;
    color: #946500;
}

.myprot-status-cancelled,
.myprot-status-failed,
.myprot-status-refunded {
    background: transparent;
    color: #bb2727;
}

.myprot-order-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 25px;
    padding: 18px;
}

.myprot-order-products {
    display: flex;
    flex-direction: column;
}

.myprot-order-product {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.myprot-order-product:first-child {
    padding-top: 0;
}

.myprot-order-product:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.myprot-order-product-image img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
}

.myprot-order-product-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    min-width: 0;
}

.myprot-order-product-name {
    color: #222;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}

.myprot-order-product-name:hover {
    color: #e62429;
}

.myprot-order-product-quantity,
.myprot-order-product-meta {
    color: #777;
    font-size: 12px;
}

.myprot-order-product-meta p {
    margin: 0;
}

.myprot-order-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.myprot-order-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid #222;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition: 0.2s ease;
}

.myprot-order-button:hover {
    background: #111;
    color: #fff;
}

.myprot-order-button-pay {
    border-color: #e62429;
    background: #e62429;
    color: #fff;
}

.myprot-order-button-cancel {
    border-color: #ddd;
    color: #777;
}

/* ========================================
   MYPROT ADDRESS BOOK - COMPACT STYLE
======================================== */

.myprot-address-book{
    width:100%;
    max-width:900px;
}

.myprot-address-heading{
    margin-bottom:18px;
}

.myprot-address-breadcrumb{
    display:flex;
    align-items:center;
    gap:7px;
    margin-bottom:8px;
    color:#8a8a8a;
    font-size:12px;
}

.myprot-address-breadcrumb a{
    color:#8a8a8a;
    text-decoration:none;
}

.myprot-address-heading h2{
    margin:0;
    color:#111;
    font-size:24px;
    font-weight:700;
}

.myprot-address-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:16px;
    align-items:stretch;
}

.myprot-address-card{
    position:relative;
    display:flex;
    flex-direction:column;
    min-height:240px;
    padding:20px;
    border:1px solid #d7d7d7;
    border-radius:8px;
    background:#fff;
}

.myprot-address-card-saved{
    border:1.5px solid #e7e7e7;
}

.myprot-address-card-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
    margin-bottom:10px;
}

.myprot-address-card-header h3{
    margin:0;
    color:#222;
    font-size:15px;
    font-weight:700;
    line-height:1.3;
    text-transform:uppercase;
}

.myprot-address-badge{
    color:#4c9500;
    font-size:11px;
    font-weight:700;
    white-space:nowrap;
}

.myprot-address-type{
    margin-bottom:10px;
    color:#999;
    font-size:11px;
}

.myprot-address-content{
    margin:0;
    color:#333;
    font-size:13px;
    font-style:normal;
    line-height:1.55;
}

.myprot-address-actions{
    display:flex;
    gap:8px;
    margin-top:auto;
    padding-top:18px;
}

.myprot-address-edit-button,
.myprot-address-add-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    padding:0 18px;
    border:1px solid #d5d5d5;
    border-radius:6px;
    background:#fff;
    color:#222;
    font-size:12px;
    font-weight:600;
    text-decoration:none;
    transition:.2s ease;
}

.myprot-address-edit-button:hover,
.myprot-address-add-button:hover{
    border-color:#111;
    background:#111;
    color:#fff;
}

.myprot-address-card-empty{
    align-items:center;
    justify-content:center;
    text-align:center;
    border:1px solid #dedede;
}

.myprot-address-plus{
    display:flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    margin:0 auto 12px;
    border-radius:50%;
    background:#f1f7ed;
    color:#4c9500;
    font-size:26px;
}

.myprot-address-card-empty h3{
    margin:0 0 8px;
    color:#4c9500;
    font-size:15px;
}

.myprot-address-card-empty p{
    max-width:250px;
    margin:0 0 16px;
    color:#777;
    font-size:12px;
    line-height:1.5;
}

/* ========================================
   MYPROT EDIT ADDRESS FORM
======================================== */

.woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-content{
    max-width:760px;
}

.woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-content > h3{
    margin:0 0 14px;
    color:#111;
    font-size:26px;
    font-weight:700;
    line-height:1.3;
}

.woocommerce-account.woocommerce-edit-address .woocommerce-address-fields{
    max-width:620px;
    padding:24px;
    border:1px solid #dedede;
    border-radius:10px;
    background:#fff;
}

.woocommerce-account.woocommerce-edit-address .woocommerce-address-fields::before{
    content:"* Champs obligatoires";
    display:block;
    margin-bottom:20px;
    color:#555;
    font-size:12px;
}

.woocommerce-account.woocommerce-edit-address .woocommerce-address-fields__field-wrapper{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.woocommerce-account.woocommerce-edit-address .form-row{
    float:none !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
}

.woocommerce-account.woocommerce-edit-address .form-row-first,
.woocommerce-account.woocommerce-edit-address .form-row-last{
    width:100% !important;
}

.woocommerce-account.woocommerce-edit-address .form-row label{
    display:none;
}

.woocommerce-account.woocommerce-edit-address .input-text,
.woocommerce-account.woocommerce-edit-address select,
.woocommerce-account.woocommerce-edit-address .select2-selection--single{
    width:100%;
    min-height:46px;
    padding:0 15px;
    border:1px solid #d8d8d8;
    border-radius:8px;
    background:#fff;
    color:#222;
    font-size:14px;
    box-shadow:none;
    outline:none;
}

.woocommerce-account.woocommerce-edit-address textarea.input-text{
    min-height:110px;
    padding-top:13px;
    resize:vertical;
}

.woocommerce-account.woocommerce-edit-address .input-text:focus,
.woocommerce-account.woocommerce-edit-address select:focus,
.woocommerce-account.woocommerce-edit-address .select2-container--focus .select2-selection--single{
    border-color:#777;
    box-shadow:0 0 0 1px #777;
}

.woocommerce-account.woocommerce-edit-address .select2-container{
    width:100% !important;
}

.woocommerce-account.woocommerce-edit-address .select2-selection--single{
    display:flex;
    align-items:center;
    height:46px;
}

.woocommerce-account.woocommerce-edit-address .select2-selection__rendered{
    padding:0 !important;
    color:#222 !important;
    line-height:44px !important;
}

.woocommerce-account.woocommerce-edit-address .select2-selection__arrow{
    top:9px !important;
    right:10px !important;
}

.woocommerce-account.woocommerce-edit-address .woocommerce-address-fields p:last-child{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin:20px 0 0;
}

.woocommerce-account.woocommerce-edit-address button.button{
    width:100%;
    min-height:46px;
    margin:0;
    border:0;
    border-radius:8px;
    background:#111;
    color:#fff;
    font-size:14px;
    font-weight:700;
}

.woocommerce-account.woocommerce-edit-address button.button:hover{
    background:#e00000;
    color:#fff;
}

.woocommerce-account.woocommerce-edit-address .myprot-address-cancel{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    border:1px solid #d8d8d8;
    border-radius:8px;
    background:#fff;
    color:#222;
    font-size:14px;
    font-weight:600;
    text-decoration:none;
}

.woocommerce-account.woocommerce-edit-address .myprot-address-cancel:hover{
    border-color:#111;
    color:#111;
}

/* ========================================
   MYPROT DASHBOARD
======================================== */

.myprot-dashboard{
    width:100%;
    max-width:1100px;
    color:#202124;
}

.myprot-dashboard *,
.myprot-dashboard *::before,
.myprot-dashboard *::after{
    box-sizing:border-box;
}

.myprot-dashboard-breadcrumb{
    display:flex;
    align-items:center;
    gap:7px;
    margin-bottom:22px;
    color:#8a8a8a;
    font-size:12px;
}

.myprot-dashboard-breadcrumb a{
    color:#8a8a8a;
    text-decoration:none;
}

.myprot-dashboard-breadcrumb a:hover{
    color:#111;
}

.myprot-dashboard-top{
    display:grid;
    grid-template-columns:minmax(0, 1.05fr) minmax(320px, .95fr) !important;
    gap:18px;
}

.myprot-dashboard-profile,
.myprot-dashboard-points{
    min-height:160px;
    border:1px solid #e1e1e1;
    border-radius:10px;
    background:#fff;
}

.myprot-dashboard-profile{
    display:flex;
    align-items:center;
    gap:20px;
    padding:24px;
}

.myprot-dashboard-avatar{
    flex:0 0 auto;
}

.myprot-dashboard-avatar img{
    display:block;
    width:86px;
    height:86px;
    border-radius:50%;
    object-fit:cover;
}

.myprot-dashboard-profile-label{
    display:block;
    margin-bottom:4px;
    color:#777;
    font-size:12px;
}

.myprot-dashboard-profile h1{
    margin:0 0 6px;
    color:#171717;
    font-size:24px;
    font-weight:700;
    line-height:1.2;
}

.myprot-dashboard-profile p{
    margin:0 0 11px;
    color:#777;
    font-size:12px;
}

.myprot-dashboard-text-link{
    color:#df0101;
    font-size:12px;
    font-weight:600;
    text-decoration:none;
}

.myprot-dashboard-text-link:hover{
    text-decoration:underline;
}

.myprot-dashboard-points{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:24px;
    background:#f5f5f5;
}

.myprot-dashboard-points-label{
    display:block;
    margin-bottom:8px;
    color:#333;
    font-size:13px;
    font-weight:700;
}

.myprot-dashboard-points-content strong{
    display:inline-block;
    color:#111;
    font-size:32px;
    line-height:1;
}

.myprot-dashboard-points-content small{
    display:block;
    margin-top:5px;
    color:#777;
    font-size:11px;
}

.myprot-dashboard-points-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    padding:0 17px;
    border-radius:7px;
    background:#111;
    color:#fff;
    font-size:12px;
    font-weight:700;
    text-decoration:none;
    white-space:nowrap;
}

.myprot-dashboard-points-button:hover{
    background:#e00000;
    color:#fff;
}

.myprot-dashboard-section{
    margin-top:30px;
    padding-top:27px;
    border-top:1px solid #e5e5e5;
}

.myprot-dashboard-section-heading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
}

.myprot-dashboard-section-heading h2{
    margin:0;
    color:#151515;
    font-size:21px;
    font-weight:700;
    line-height:1.3;
}

.myprot-dashboard-section-heading > a{
    color:#000;
    font-size:12px;
    font-weight:600;
    text-decoration:none;
}

.myprot-dashboard-products{
    display:grid;
    grid-template-columns:repeat(6, minmax(0, 1fr));
    gap:13px;
}

.myprot-dashboard-product{
    display:flex;
    flex-direction:column;
    min-width:0;
    padding:12px;
    background:#fff;
}

.myprot-dashboard-product-image{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:115px;
    margin-bottom:10px;
}

.myprot-dashboard-product-image img{
    display:block;
    width:100%;
    height:100%;
    object-fit:contain;
}

.myprot-dashboard-product-name{
    display:-webkit-box;
    min-height:36px;
    overflow:hidden;
    color:#333;
    font-size:12px;
    font-weight:600;
    line-height:1.45;
    text-decoration:none;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
}

.myprot-dashboard-product-name:hover{
    color:#e00000;
}

.myprot-dashboard-product-price{
    margin:8px 0 10px;
    color:#e00000;
    font-size:13px;
    font-weight:700;
}

.myprot-dashboard-product-button{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:35px;
    margin-top:auto;
    padding:0 10px;
    border-radius:6px;
    background:#111;
    color:#fff;
    font-size:11px;
    font-weight:700;
    text-align:center;
    text-decoration:none;
}

.myprot-dashboard-product-button:hover{
    background:#e00000;
    color:#fff;
}

.myprot-dashboard-links-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
    gap:14px;
}

.myprot-dashboard-link-card{
    display:flex;
    align-items:flex-start;
    gap:14px;
    min-height:112px;
    padding:18px;
    border:1px solid #dfdfdf;
    border-radius:9px;
    background:#fff;
    color:#222;
    text-decoration:none;
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.myprot-dashboard-link-card:hover{
    border-color:#aaa;
    box-shadow:0 5px 16px rgba(0, 0, 0, .06);
    transform:translateY(-2px);
}

.myprot-dashboard-link-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    width:38px;
    height:38px;
    border-radius:8px;
    background:#f2f4f0;
    color:#377d00;
    font-size:18px;
    font-weight:700;
}

.myprot-dashboard-link-content strong{
    display:block;
    margin-bottom:5px;
    color:#222;
    font-size:15px;
    line-height:1.3;
}

.myprot-dashboard-link-content small{
    display:block;
    color:#666;
    font-size:12px;
    line-height:1.5;
}

.myprot-dashboard-recent-orders{
    overflow:hidden;
    border:1px solid #e1e1e1;
    border-radius:9px;
    background:#fff;
}

.myprot-dashboard-recent-order{
    display:grid;
    grid-template-columns:minmax(190px, 1fr) auto auto auto;
    align-items:center;
    gap:18px;
    padding:16px 18px;
    border-bottom:1px solid #ededed;
}

.myprot-dashboard-recent-order:last-child{
    border-bottom:0;
}

.myprot-dashboard-order-reference strong{
    display:block;
    margin-bottom:4px;
    color:#222;
    font-size:13px;
}

.myprot-dashboard-order-reference span{
    color:#777;
    font-size:11px;
}

.myprot-dashboard-order-total{
    color:#111;
    font-size:13px;
    white-space:nowrap;
}

.myprot-dashboard-order-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:35px;
    padding:0 14px;
    border:1px solid #d7d7d7;
    border-radius:6px;
    background:#fff;
    color:#222;
    font-size:11px;
    font-weight:600;
    text-decoration:none;
    white-space:nowrap;
}

.myprot-dashboard-order-button:hover{
    border-color:#111;
    background:#111;
    color:#fff;
}

@media (max-width: 1100px){

    .myprot-dashboard-products{
        grid-template-columns:repeat(4, minmax(0, 1fr));
    }

}


@media (max-width: 991px){

    .myprot-order-details-page{
        grid-template-columns: minmax(0, 1fr) 230px !important;
        
    }

    .myprot-order-details-sidebar{
        position:static;
    }

    .myprot-address-grid{
        grid-template-columns:1fr;
    }

    .myprot-address-book{
        max-width:none;
    }
}

.myprot-dashboard-top{
        grid-template-columns:1fr;
    }

    .myprot-dashboard-links-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .myprot-dashboard-recent-order{
        grid-template-columns:minmax(180px, 1fr) auto;
    }

    .myprot-dashboard-order-total{
        grid-column:1;
    }


/* ========================================
   MYPROT ACCOUNT DETAILS FORM
======================================== */

.woocommerce-account.woocommerce-edit-account .woocommerce-MyAccount-content{
    width:100%;
    max-width:760px;
}

.woocommerce-account.woocommerce-edit-account .woocommerce-MyAccount-content form{
    max-width:620px;
    padding:24px;
    border:1px solid #dedede;
    border-radius:10px;
    background:#fff;
}

.woocommerce-account.woocommerce-edit-account .woocommerce-MyAccount-content form::before{
    content:"Informations du compte";
    display:block;
    margin-bottom:20px;
    color:#111;
    font-size:24px;
    font-weight:700;
    line-height:1.3;
}

.woocommerce-account.woocommerce-edit-account .woocommerce-form-row{
    float:none !important;
    width:100% !important;
    margin:0 0 14px !important;
    padding:0 !important;
}

.woocommerce-account.woocommerce-edit-account .woocommerce-form-row label{
    display:block;
    margin-bottom:7px;
    color:#222;
    font-size:13px;
    font-weight:600;
}

.woocommerce-account.woocommerce-edit-account .woocommerce-form-row input.input-text{
    width:100%;
    min-height:46px;
    padding:0 15px;
    border:1px solid #d8d8d8;
    border-radius:8px;
    background:#fff;
    color:#222;
    font-size:14px;
    box-shadow:none;
    outline:none;
}

.woocommerce-account.woocommerce-edit-account .woocommerce-form-row input.input-text:focus{
    border-color:#777;
    box-shadow:0 0 0 1px #777;
}

.woocommerce-account.woocommerce-edit-account .woocommerce-form-row span em{
    display:block;
    margin-top:7px;
    color:#777;
    font-size:12px;
    font-style:normal;
    line-height:1.5;
}

.woocommerce-account.woocommerce-edit-account fieldset{
    margin:24px 0 0;
    padding:22px 0 0;
    border:0;
    border-top:1px solid #e5e5e5;
}

.woocommerce-account.woocommerce-edit-account fieldset legend{
    width:auto;
    margin:0 0 18px;
    padding:0;
    color:#111;
    font-size:17px;
    font-weight:700;
}

.woocommerce-account.woocommerce-edit-account .password-input{
    display:block;
    position:relative;
    width:100%;
}

.woocommerce-account.woocommerce-edit-account .password-input input{
    padding-right:48px !important;
}

.woocommerce-account.woocommerce-edit-account .show-password-input{
    position:absolute;
    top:50%;
    right:15px;
    transform:translateY(-50%);
}

.woocommerce-account.woocommerce-edit-account form > p:last-child{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
    margin:22px 0 0;
}

.woocommerce-account.woocommerce-edit-account button.button{
    width:100%;
    min-height:46px;
    margin:0;
    border:0;
    border-radius:8px;
    background:#111;
    color:#fff;
    font-size:14px;
    font-weight:700;
}

.woocommerce-account.woocommerce-edit-account button.button:hover{
    background:#e00000;
    color:#fff;
}

.woocommerce-account.woocommerce-edit-account .myprot-account-cancel{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    border:1px solid #d8d8d8;
    border-radius:8px;
    background:#fff;
    color:#222;
    font-size:14px;
    font-weight:600;
    text-decoration:none;
}

.woocommerce-account.woocommerce-edit-account .myprot-account-cancel:hover{
    border-color:#111;
    color:#111;
}

@media (max-width: 767px) {
    
    .myprot-dashboard-top{
        grid-template-columns:1fr !important;
    }
    
    .myprot-dashboard-links-grid{
        grid-template-columns:1fr !important;
    }
    
    .myprot-order-details-page{
        grid-template-columns:1fr !important;
    }

    .myprot-order-header {
        align-items: flex-start;
    }

    .myprot-order-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .myprot-order-body {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 15px;
    }

    .myprot-order-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .myprot-order-product {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 12px;
    }

    .myprot-order-product-image img {
        width: 60px;
        height: 60px;
    }
}

    .myprot-review-link{
        display:inline-flex;
        align-items:center;
        justify-content:center;
        gap:6px;
        margin-top:10px;
        padding:8px 14px;
        border:1px solid #ddd;
        border-radius:8px;
        background:#fff;
        color:#222;
        font-size:12px;
        font-weight:600;
        text-decoration:none;
        transition:.25s;
    }
    
    .myprot-review-link:hover{
        background:#111;
        color:#fff;
        border-color:#111;
    }
    
    .myprot-order-details-page{
    display:grid;
    grid-template-columns:minmax(0, 1fr) 340px;
    gap:22px;
    align-items:start;
    width:100%;
}

.myprot-order-details-main{
    min-width:0;
}

.myprot-order-back{
    display:inline-flex;
    margin-bottom:14px;
    color:#777;
    font-size:13px;
    text-decoration:none;
}

.myprot-order-back:hover{
    color:#111;
}

.myprot-order-details-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    margin-bottom:18px;
}

.myprot-order-details-header h2{
    margin:0 0 8px;
    font-size:22px;
    line-height:1.3;
    color:#111;
}

.myprot-order-details-header-meta{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;
    font-size:13px;
    color:#555;
}


.myprot-order-information-card,
.myprot-order-products-card,
.myprot-order-note-card,
.myprot-order-summary-card,
.myprot-order-payment-card,
.myprot-order-billing-card{
    border:1px solid #e2e2e2;
    border-radius:10px;
    background:#fff;
}

.myprot-order-information-card{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
    margin-bottom:18px;
    padding:20px;
}

.myprot-order-information-column h3,
.myprot-order-summary-card h3,
.myprot-order-payment-card h3,
.myprot-order-billing-card h3,
.myprot-order-note-card h3{
    margin:0 0 12px;
    font-size:15px;
    color:#111;
}

.myprot-order-information-column p,
.myprot-order-information-column address,
.myprot-order-billing-card address{
    margin:0;
    color:#444;
    font-size:13px;
    line-height:1.7;
    font-style:normal;
}

.myprot-order-products-card{
    padding:20px;
}

.myprot-order-delivery-heading{
    margin-bottom:18px;
}

.myprot-order-delivery-heading h3{
    margin:0 0 5px;
    color:#000;
    font-size:17px;
}

.myprot-order-delivery-heading p{
    margin:0;
    font-size:13px;
    font-weight:600;
    color:#222;
}

.myprot-order-details-products{
    display:flex;
    flex-direction:column;
}

.myprot-order-details-product{
    display:grid;
    grid-template-columns:82px minmax(0, 1fr);
    gap:18px;
    padding:18px 0;
    border-top:1px solid #ededed;
}

.myprot-order-details-product:first-child{
    border-top:0;
    padding-top:0;
}

.myprot-order-details-product-image img{
    display:block;
    width:82px;
    height:82px;
    object-fit:contain;
}

.myprot-order-details-product-name{
    display:inline-block;
    margin-bottom:7px;
    color:#333;
    font-size:14px;
    font-weight:600;
    line-height:1.45;
    text-decoration:none;
}

.myprot-order-details-product-name:hover{
    color:#e00000;
}

.myprot-order-details-product-meta{
    margin-bottom:7px;
    color:#777;
    font-size:12px;
}

.myprot-order-details-product-meta p{
    margin:0;
}

.myprot-order-details-product-price,
.myprot-order-details-product-quantity,
.myprot-order-details-product-total{
    margin:4px 0;
    font-size:13px;
    color:#333;
}

.myprot-order-details-product-price strong,
.myprot-order-details-product-total strong{
    color:#e00000;
}

.myprot-order-details-product-actions{
    display:flex;
    gap:10px;
    margin-top:10px;
}

.myprot-order-details-review-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    padding:0 16px;
    border:1px solid #d5d5d5;
    border-radius:7px;
    background:#fff;
    color:#222;
    font-size:12px;
    font-weight:600;
    text-decoration:none;
}

.myprot-order-details-review-button:hover{
    border-color:#111;
    background:#111;
    color:#fff;
}

.myprot-order-details-sidebar{
    position:sticky;
    top:110px;
    display:flex;
    flex-direction:column;
    gap:14px;
}

.myprot-order-sidebar-actions{
    display:flex;
    flex-direction:column;
    gap:9px;
}

.myprot-order-sidebar-button{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:0 18px;
    border:1px solid #d9d9d9;
    border-radius:8px;
    background:#fff;
    color:#111;
    font-size:13px;
    font-weight:700;
    text-decoration:none;
}

.myprot-order-sidebar-button:hover{
    border-color:#111;
    background:#111;
    color:#fff;
}

.myprot-sidebar-action-cancel{
    color:#c62828;
}

.myprot-order-summary-card,
.myprot-order-payment-card,
.myprot-order-billing-card,
.myprot-order-note-card{
    padding:20px;
}

.myprot-order-summary-lines{
    display:flex;
    flex-direction:column;
}

.myprot-order-summary-line{
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:10px 0;
    border-bottom:1px solid #ededed;
    font-size:13px;
}

.myprot-order-summary-line:last-child{
    border-bottom:0;
}

.myprot-order-summary-line span{
    color:#333;
}

.myprot-order-summary-line strong{
    color:#111;
    text-align:right;
}

.myprot-summary-order_total{
    padding-top:15px;
    font-size:15px;
}

.myprot-summary-order_total span,
.myprot-summary-order_total strong{
    font-weight:800;
}

.myprot-order-payment-row{
    display:flex;
    justify-content:space-between;
    gap:15px;
    font-size:13px;
}

.myprot-order-payment-row strong{
    color:#111;
}

.myprot-order-note-card{
    margin-top:18px;
}

.myprot-order-note-card p{
    margin:0;
    font-size:13px;
    line-height:1.7;
}

.woocommerce-account.woocommerce-edit-address .woocommerce-address-fields{
        max-width:none;
        padding:18px;
    }

    .woocommerce-account.woocommerce-edit-address .woocommerce-address-fields p:last-child{
        grid-template-columns:1fr;
    }

    .woocommerce-account.woocommerce-edit-address .woocommerce-MyAccount-content > h3{
        font-size:22px;
    }

.woocommerce-account.woocommerce-edit-account .woocommerce-MyAccount-content form{
        max-width:none;
        padding:18px;
    }

    .woocommerce-account.woocommerce-edit-account .woocommerce-MyAccount-content form::before{
        font-size:21px;
    }

    .woocommerce-account.woocommerce-edit-account form > p:last-child{
        grid-template-columns:1fr;
    }


@media (max-width: 600px){
    
        .myprot-address-card{
        min-height:220px;
        padding:17px;
    }

    .myprot-address-heading h2{
        font-size:21px;
    }
    }

    .myprot-order-information-card{
        grid-template-columns:1fr;
        gap:20px;
        padding:16px;
    }

    .myprot-order-products-card{
        padding:16px;
    }

    .myprot-order-details-product{
        grid-template-columns:70px minmax(0, 1fr);
        gap:12px;
    }

    .myprot-order-details-product-image img{
        width:70px;
        height:70px;
    }

    .myprot-order-details-header h2{
        font-size:19px;
    }

.myprot-dashboard-profile,
    .myprot-dashboard-points{
        padding:17px;
    }

    .myprot-dashboard-profile{
        align-items:flex-start;
    }

    .myprot-dashboard-avatar img{
        width:65px;
        height:65px;
    }

    .myprot-dashboard-profile h1{
        font-size:19px;
    }

    .myprot-dashboard-points{
        align-items:flex-start;
        flex-direction:column;
    }

    .myprot-dashboard-products{
        display:flex;
        gap:12px;
        overflow-x:auto;
        padding-bottom:8px;
        scroll-snap-type:x mandatory;
    }

    .myprot-dashboard-product{
        flex:0 0 158px;
        scroll-snap-align:start;
    }


    .myprot-dashboard-recent-order{
        display:flex;
        align-items:flex-start;
        flex-direction:column;
        gap:11px;
    }

    .myprot-dashboard-order-button{
        width:100%;
    }



@media (max-width: 420px) {
    .myprot-order-actions {
        grid-template-columns: 1fr;
    }
}