/* Account orders: keep legacy cart and configurator styles outside this view. */
.orders-page { color: #302b27; font-family: 'DM Sans', sans-serif;margin-top:50px }
.orders-page, .orders-page .orders-shell { background: #fff; }
.orders-page .orders-modern table th { background: #f9fafb; color: #675747; }
.orders-page .orders-modern table tbody tr:hover { background: rgb(248 249 252 / 1); }
.orders-page *, .orders-page *::before, .orders-page *::after { box-sizing: border-box; }
.orders-page .orders-layout { width: min(1440px, calc(100% - 64px)); grid-template-columns: 320px minmax(0, 1fr); }
.orders-page .orders-modern .orders-card { border-radius: 18px; box-shadow: 0 3px 14px rgba(50, 35, 25, .025); }
.orders-page .orders-modern table .order-amount { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.orders-page .orders-sidebar { min-width: 0; }
.orders-page .orders-details.info { padding: 26px !important; }
.orders-page button { font-family: inherit; cursor: pointer; }
.orders-page .address__edit { background: #fff; }
.orders-page :is(button, a, summary):focus-visible { outline: 3px solid #9b6c49; outline-offset: 4px; }
.orders-page #recap_commande { display: block; color: #302b27; }
.orders-page #recap_commande .cart-summary__title { padding: 8px 0 24px; font-size: 30px; }
.orders-page .order-recap > ul { display: flow-root; }
.orders-page .order-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; margin: 20px 0; }
.orders-page .order-status { display: inline-block; padding: 5px 10px; border-radius: 6px; background: #f6f0e7; color: #695a46; font-size: 13px; line-height: 1.4; }
.orders-page .order-status--shipped { background: #eaf0e8; color: #3c5438; }
.orders-page .order-meta > div { padding: 14px; background: rgb(248 249 252 / 1); border-radius: 8px; }
.orders-page .order-meta dt { margin-bottom: 6px; color: #81756a; font-size: 12px; }
.orders-page .order-meta dd { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.orders-page .order-meta .order-delivery-address { font-weight: 400; line-height: 1.6; }
.orders-page .order-tracking { margin: 0 0 20px; padding: 16px; border: none; border-radius: 8px; background: rgb(248 249 252 / 1); font-size: 13px; line-height: 1.6; }
.orders-page .order-tracking strong { display: block; margin-bottom: 5px; }
.orders-page .order-tracking a { color: rgb(54 63 114/1); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.orders-page .order-addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.orders-page .order-addresses section { padding: 16px; border: 1px solid #f0e8dc; border-radius: 8px; }
.orders-page .order-addresses h3 { margin: 0 0 8px; font-size: 14px; }
.orders-page .order-addresses p { margin: 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.orders-page .order-recap .cart-item { display: block; margin: 24px 0; padding: 24px; border: 1px solid #eee; border-radius: 14px; background: #fff; }
.orders-page .order-recap .product-line-grid { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.orders-page .order-recap .product-line-grid > div { float: none; width: auto; min-width: 0; margin: 0; padding: 0 !important; }
.orders-page .order-recap .product-line-grid-left { grid-row: span 2; }
.orders-page .order-recap .product-image { display: block; width: 100%; height: auto; overflow: hidden; border-radius: 10px; background: rgb(248 249 252 / 1); }
.orders-page .order-recap .product-image img { display: block; width: 80px; height: 96px; object-fit: contain; }
.orders-page .order-recap .product-line-grid-body { grid-row: span 2; align-self: center; line-height: 1.6; overflow-wrap: anywhere; }
.orders-page .order-product-name { display: inline; font-size: 18px; white-space: normal; overflow: visible; text-overflow: clip; -webkit-line-clamp: unset; }
.orders-page .order-recap .product-line-grid-body > br { display: none; }
.orders-page .order-product-reference { display: block; margin-top: 8px; color: #81756a; font-size: 12px; }
.orders-page .order-product-quantity { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 10px; border: 1px solid #eee; border-radius: 6px; background: rgb(248 249 252 / 1); color: #302b27; font-size: 13px; line-height: 1.4; }
.orders-page .order-recap .product-line-actions { text-align: right; }
.orders-page .order-recap .product-line-actions .value { font-size: 22px; font-weight: 600; white-space: nowrap; }
.orders-page .order-recap .product-line-actions:last-child { grid-column: 3; align-self: start; justify-self: end; }
.orders-page .order-recap .product-line-actions .btn { display: inline-flex; align-items: center; justify-content: center; width: auto !important; max-width: 100%; height: auto; min-height: 44px; margin: 0; padding: 12px 18px; border: 1px solid #282522; border-radius: 8px; background: #282522; color: #fff; line-height: 1.4; text-align: center; white-space: normal; transition: background .15s ease, border-color .15s ease; }
.orders-page .order-recap .product-line-actions .btn:hover { background: #45403b; border-color: #45403b; }
.orders-page .order-recap .product-line-actions .btn:active { background: #191715; border-color: #191715; }
.orders-page .order-customizations { margin-top: 24px; border-top: 1px solid #f0e8dc; }
.orders-page .order-customizations > summary { padding: 18px 0; cursor: pointer; font-weight: 600; color: rgb(54 63 114/1); }
.orders-page .order-options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.orders-page .order-options-grid > div { margin: 0 !important; padding: 14px; border: 1px solid #f0e8dc !important; border-radius: 9px; background: #fffefb; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.orders-page .order-options-grid .title-recap { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 13px; color: #625549; }
.orders-page .order-options-grid .title-recap img { flex: 0 0 26px; width: 26px !important; height: 26px !important; margin: 0 !important; object-fit: contain; }
.orders-page .order-options-grid span { margin-left: 0 !important; }
.orders-page .order-recap .order-totals-heading { width: min(100%, 460px); margin: 28px 0 0 auto; padding: 22px 24px 16px; border: 1px solid #eee; border-bottom: 0; border-radius: 14px 14px 0 0; background: rgb(248 249 252 / 1); color: #302b27; font-size: 16px; font-weight: 600; }
.orders-page .order-recap .cart-item1 { width: min(100%, 460px); margin: 0 0 0 auto; padding: 14px 24px; border-right: 1px solid #eee; border-left: 1px solid #eee; border-bottom: 1px solid #f0e8dc; background: rgb(248 249 252 / 1); color: #70665c; font-size: 14px; }
.orders-page .order-recap .cart-item1 .product-line-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
.orders-page .order-recap .cart-item1 .product-line-grid > div { grid-column: auto; grid-row: auto; }
.orders-page .order-recap .cart-item1 .value { font-size: 16px; color: #302b27; font-variant-numeric: tabular-nums; }
.orders-page .order-recap .cart-item1:last-child { margin-top: 0; padding: 22px 24px; background: #fff3df; color: #593c2c; border: 1px solid #eee0c8; border-radius: 0 0 14px 14px; font-weight: 600; }
.orders-page .order-recap .cart-item1:last-child .value { font-size: 26px; color: rgb(54 63 114/1); }
.orders-page .orders-feedback { padding: 28px; border-radius: 10px; background: rgb(248 249 252 / 1); }
.orders-page .orders-history-card table td:first-child { width: 132px; }
.orders-page .orders-history-card table td:first-child img { width: 96px !important; height: 112px !important; object-fit: contain; background: rgb(248 249 252 / 1); }
@media (max-width: 1100px) {
  .orders-page .orders-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; width: calc(100% - 32px); }
  .orders-page .order-recap .product-line-grid { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; }
  .orders-page .order-recap .product-image img { width: 72px; height: 86px; }
}
@media (max-width: 767px) {
  .orders-page .orders-layout { grid-template-columns: minmax(0, 1fr); }
  .orders-page .orders-details.info { padding: 16px !important; }
  .orders-page #recap_commande .cart-summary__title { font-size: 24px; }
  .orders-page .order-recap .cart-item { padding: 14px; margin: 18px 0; }
  .orders-page .order-recap .product-line-grid { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .orders-page .order-recap .product-image img { width: 64px; height: 78px; }
  .orders-page .order-recap .product-line-grid-left, .orders-page .order-recap .product-line-grid-body { grid-row: auto; }
  .orders-page .order-recap .product-line-actions { grid-column: 2; text-align: right; }
  .orders-page .order-recap .product-line-actions:last-child { grid-column: 1 / -1; justify-self: end; }
  .orders-page .order-options-grid { grid-template-columns: 1fr; }
  .orders-page .order-meta, .orders-page .order-addresses { grid-template-columns: 1fr; gap: 8px; }
  .orders-page .order-recap .cart-item1 .product-line-actions { text-align: right; }
}
/* Modern account form — scoped so orders.css/sidebar stay unchanged */
.orders-content .orders-panel.info{
    padding: 24px 50px;
}
.orders-content .orders-panel.info > .title{
    margin: 0 0 28px;
    padding: 0 0 20px;
    border-bottom: 1px solid #ece8e3;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 100;
    color: #222;
}
.orders-content .orders-panel.info form{
    margin: 0;
}
.orders-content .orders-panel.info form > div{
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    column-gap: 28px;
    row-gap: 20px;
}
.orders-content .orders-panel.info .form-group.row{
    display: block;
    margin: 0;
    min-width: 0;
}
.orders-content .orders-panel.info .form-group.row > label,
.orders-content .orders-panel.info .form-group.row > div{
    float: none;
    width: 100%;
    max-width: none;
    padding: 0;
}
.orders-content .orders-panel.info .form-control-label{
    display: block;
    margin: 0 0 8px;
    color: #3a3734;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
}
.orders-content .orders-panel.info .form-control-label.required:after{
    content: " *";
    color: #8b433b;
}
.orders-content .orders-panel.info .form-control{
    box-sizing: border-box;
    width: 100% !important;
    min-height: 48px;
    margin: 0 !important;
    padding: 11px 14px;
    border: 1px solid #d9d4cf;
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
    color: #262321;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.orders-content .orders-panel.info .form-control:focus{
    border-color: #8b433b;
    box-shadow: 0 0 0 3px rgba(139,67,59,.09);
    outline: 0;
}
.orders-content .orders-panel.info select.form-control{
    cursor: pointer;
}
.orders-content .orders-panel.info .form-control:disabled{
    background: rgb(248 249 252 / 1);
    color: #77716d;
    cursor: not-allowed;
}
.orders-content .orders-panel.info textarea.form-control{
    min-height: 110px;
    resize: vertical;
}
/* Existing telephone/VAT markup uses inline widths; flex overrides that cleanly */
.orders-content .orders-panel.info .form-group.row > div:has(#prefix_tel),
.orders-content .orders-panel.info .form-group.row > div:has(#prefix_gsm),
.orders-content .orders-panel.info .form-group.row > div:has(#prefix_tva){
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex-wrap: wrap;
}
.orders-content .orders-panel.info #prefix_tel,
.orders-content .orders-panel.info #prefix_gsm,
.orders-content .orders-panel.info #prefix_tva{
    box-sizing: border-box;
    flex: 0 0 78px;
    width: 78px !important;
    min-height: 48px;
    margin: 0 !important;
    padding: 11px 10px;
    border: 1px solid #d9d4cf;
    border-radius: 6px;
    background: rgb(248 249 252 / 1);
}
.orders-content .orders-panel.info #telephone,
.orders-content .orders-panel.info #gsm,
.orders-content .orders-panel.info #nr_tva{
    flex: 1 1 150px;
    width: auto !important;
}
.orders-content .orders-panel.info #changepassword{
    grid-column: 1 / -1;
    padding: 20px;
    border: 1px solid #e6e1dc;
    border-radius: 8px;
    background: #faf9f7;
}
.orders-content .orders-panel.info #changepassword .form-group + .form-group{
    margin-top: 18px;
}
.orders-content .orders-panel.info input[type="checkbox"]{
    width: 19px;
    height: 19px;
    margin-top: 5px;
    accent-color: #6d2a23;
}
.orders-content .orders-panel.info .bg-warn2{
    display: block;
    margin-top: 6px;
    font-size: 12px;
}
.orders-content .orders-panel.info form > .btn,
.orders-content .orders-panel.info form > a.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    min-height: 46px;
    margin-top: 28px;
    padding: 12px 24px;
    border: 0;
    border-radius: 4px;
    background: #222;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}
.orders-content .orders-panel.info form > .btn:hover,
.orders-content .orders-panel.info form > a.btn:hover{
    background: #6d2a23;
    color: #fff;
}
.orders-content .orders-panel.info .bg-succ,
.orders-content .orders-panel.info .bg-warn{
    margin: 0 0 20px;
    border-radius: 6px;
}
@media (max-width: 767px){
    .orders-content .orders-panel.info form > div{
        grid-template-columns: 1fr;
        row-gap: 16px;
    }
    .orders-content .orders-panel.info #changepassword{
        grid-column: auto;
    }
    .orders-content .orders-panel.info > .title{
        font-size: 21px;
        margin-bottom: 22px;
    }
    .orders-content .orders-panel.info form > .btn,
    .orders-content .orders-panel.info form > a.btn{
        width: 100%;
    }
}
.orders-page .orders-empty{padding:42px 24px 48px;text-align:center}.orders-empty-icon{display:inline-flex;align-items:center;justify-content:center;width:68px;height:68px;border-radius:50%;background:#edf2ee;color:#3a5b47;margin-bottom:18px}.orders-page .orders-empty h1{font-family:'DM Serif Display',serif;font-size:30px;font-weight:400;margin:0 0 18px}.orders-page .orders-empty p{margin:8px 0;color:#504f4b;font-size:15px;line-height:1.6}.orders-page .orders-empty .orders-empty-description{color:#81847e;font-size:13px;max-width:440px;margin:8px auto 26px}.orders-page .orders-empty-action{display:inline-flex;align-items:center;justify-content:center;gap:24px;min-height:46px;padding:12px 24px;border:1px solid #315642;border-radius:6px;background:#315642;color:white;text-decoration:none;font-size:13px;font-weight:600}.orders-page .orders-empty-action:hover{background:#243e31}.orders-page .orders-empty-action span{font-size:18px}@media(max-width:600px){.orders-page .orders-empty{padding:28px 16px 34px}.orders-page .orders-empty h1{font-size:26px}}
.orders-page .account-welcome{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding-bottom:24px;margin-bottom:28px;border-bottom:1px solid #e7e9e5}
.orders-page .account-welcome-title{margin:0 0 10px;font-family:'DM Serif Display',serif;font-size:28px;font-weight:400;line-height:1.25;overflow-wrap:anywhere}
.orders-page .account-welcome p{margin:0;max-width:560px;color:#78817c;font-size:14px;line-height:1.7}
.orders-page .account-welcome-logout{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;min-height:40px;padding:9px 14px;border:1px solid #dce4de;border-radius:6px;color:#315642;background:#f5f8f5;text-decoration:none;font-size:13px;line-height:1.4}
.orders-page .account-welcome-logout:hover{background:#e9f0ea;border-color:#315642}
.orders-page .account-welcome-logout:focus-visible{outline:2px solid #315642;outline-offset:3px}
@media(max-width:700px){.orders-page .account-welcome{flex-direction:column;gap:16px}.orders-page .account-welcome-title{font-size:25px}}

/* Consistent empty states across the customer account. */
.orders-page .orders-empty .orders-empty-action { width:auto; max-width:100%; margin:26px 0 0!important; }
.orders-page .orders-empty .orders-empty-description + .orders-empty-action { margin-top:0!important; }
@media(max-width:600px) {
  .orders-page .orders-empty .orders-empty-action { width:100%; }
}

/* Archived orders: compact desktop table, labelled cards on small screens. */
.orders-page .orders-history-card .orders-history-table{table-layout:fixed;min-width:0;width:100%;}
.orders-page .orders-history-card .orders-history-table th:first-child,
.orders-page .orders-history-card .orders-history-table td:first-child{width:116px;}
.orders-page .orders-history-table th:nth-child(2){width:28%;}
.orders-page .orders-history-table td{overflow-wrap:anywhere;}
.orders-page .orders-history-table .history-produit{font-weight:600;}
.orders-page .orders-history-table .history-prix,
.orders-page .orders-history-table .history-qte,
.orders-page .orders-history-table .history-devise{font-variant-numeric:tabular-nums;}
.orders-page .orders-history-card .orders-history-table .history-photo img{display:block;width:88px!important;height:104px!important;max-width:100%;object-fit:contain;border-radius:8px;}
.orders-page .orders-history-card .orders-history-action{padding:24px;}
.orders-page .orders-history-card .orders-history-action h2{font-family:inherit;font-size:18px;line-height:1.5;margin-bottom:16px;}
@media(max-width:767px){
 .orders-page .orders-history-card .orders-table-wrap{overflow:visible;}
 .orders-page .orders-history-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
 .orders-page .orders-history-table tbody{display:block;padding:0 16px 16px;}
 .orders-page .orders-history-table tr{display:grid;grid-template-columns:80px minmax(0,1fr);gap:10px 16px;padding:18px 0;border-bottom:1px solid #ece8e3;}
 .orders-page .orders-history-table tr:last-child{border-bottom:0;}
 .orders-page .orders-history-card .orders-history-table td{display:block;width:auto;padding:0;border:0;text-align:left;min-width:0;}
 .orders-page .orders-history-card .orders-history-table td.history-photo{grid-column:1;grid-row:1 / span 5;width:80px;}
 .orders-page .orders-history-card .orders-history-table .history-photo img{width:80px!important;height:96px!important;}
 .orders-page .orders-history-table td[data-label]{grid-column:2;}
 .orders-page .orders-history-table td[data-label]::before{content:attr(data-label);display:block;margin-bottom:3px;color:#777;font-size:11px;font-weight:400;}
 .orders-page .orders-history-table td span{display:block;line-height:1.5;}
}

/* Keep archived orders in normal flow, isolated from configurator decoration. */
.orders-page .orders-history-card{position:static;width:100%;height:auto;min-width:0;}
.orders-page .orders-history-card .orders-history-table{min-width:640px;}
@media(max-width:767px){.orders-page .orders-history-card .orders-history-table{min-width:0;}}
