/* ADLR Compte client 1.5.4 - dashboard harmonise avec la page Commandes. */
.adlr-account-dashboard-shell{display:grid;gap:18px;margin:0 0 4px}
.adlr-account-dashboard-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:112px;padding:24px 26px;border-radius:14px;background:linear-gradient(135deg,var(--adlr-dashboard-accent,#045cb4) 0%,#0a76d4 100%);color:#fff;box-shadow:0 10px 24px rgba(0,0,0,.22)}
.adlr-account-dashboard-hero:after{content:"";position:absolute;width:180px;height:180px;border:28px solid rgba(255,255,255,.09);border-radius:50%;right:-58px;top:-62px;pointer-events:none}
.adlr-account-dashboard-hero-copy{position:relative;z-index:1;display:flex;flex-wrap:wrap;align-items:baseline;gap:8px 10px}
.adlr-account-dashboard-hero .bonjour,.adlr-account-dashboard-hero .user-name{color:#fff!important;line-height:1.15}
.adlr-account-dashboard-hero .bonjour{font-size:24px!important;font-weight:500!important}
.adlr-account-dashboard-hero .user-name{font-size:30px!important;font-weight:800!important}
.adlr-account-dashboard-hero-mark{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;min-width:74px;height:42px;padding:0 13px;border:1px solid rgba(255,255,255,.42);border-radius:999px;background:rgba(255,255,255,.12);font-size:13px;font-weight:800;letter-spacing:.09em;box-shadow:inset 0 1px 0 rgba(255,255,255,.18)}
.adlr-account-dashboard-card{background:#fff;border:1px solid rgba(4,92,180,.16);border-radius:12px;box-shadow:0 6px 16px rgba(0,0,0,.14);padding:18px 20px;box-sizing:border-box}
.adlr-account-dashboard-card-heading{display:flex;align-items:center;gap:10px;color:#1f2937;margin-bottom:10px}
.adlr-account-dashboard-card-icon{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;background:rgba(4,92,180,.1);color:var(--adlr-dashboard-accent,#045cb4);font-weight:800;flex:0 0 34px}
.adlr-account-dashboard-points .wps_wpr_shortcode_wrapper{margin:0!important;font-size:22px}
.adlr-account-dashboard-section{padding-top:16px}
.adlr-account-dashboard-section-title{display:flex;align-items:center;gap:9px;margin:0 0 14px;padding-bottom:10px;border-bottom:2px solid rgba(4,92,180,.14)}
.adlr-account-dashboard-section-title>span{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;background:var(--adlr-dashboard-accent,#045cb4);color:#fff;font-weight:700}
.adlr-account-dashboard-section-title h3{margin:0!important;font-size:20px;line-height:1.25}

/* Commandes recentes : cartes horizontales compactes, responsive et actions tierces conservees. */
.adlr-recent-orders-list{display:grid;gap:10px}
.adlr-recent-order{display:grid;grid-template-columns:minmax(210px,1.35fr) minmax(130px,.7fr) minmax(220px,1fr);align-items:center;gap:16px;padding:14px 16px;border:1px solid rgba(4,92,180,.17);border-radius:11px;background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);box-shadow:0 3px 9px rgba(0,0,0,.09)}
.adlr-recent-order-main{min-width:0}
.adlr-recent-order-number{display:inline-block;color:var(--adlr-dashboard-accent,#045cb4)!important;font-weight:800;text-decoration:none!important;margin-bottom:5px}
.adlr-recent-order-number:hover{text-decoration:underline!important}
.adlr-recent-order-meta{display:flex;flex-wrap:wrap;gap:7px 10px;align-items:center;font-size:13px;color:#64748b}
.adlr-recent-order-status{display:inline-flex;align-items:center;min-height:24px;padding:2px 9px;border-radius:999px;background:rgba(4,92,180,.08);color:#334155;font-weight:700}
.adlr-recent-order--pending .adlr-recent-order-status,.adlr-recent-order--on-hold .adlr-recent-order-status{background:#fff7e8;color:#9a5b00}
.adlr-recent-order--cancelled .adlr-recent-order-status,.adlr-recent-order--refunded .adlr-recent-order-status,.adlr-recent-order--failed .adlr-recent-order-status{background:#fff0f0;color:#a43636}
.adlr-recent-order--completed .adlr-recent-order-status,.adlr-recent-order--processing .adlr-recent-order-status{background:#ecf8f0;color:#187642}
.adlr-recent-order-total{display:flex;flex-direction:column;gap:2px;min-width:0}
.adlr-recent-order-total strong,.adlr-recent-order-total strong .amount,.adlr-recent-order-total strong .woocommerce-Price-currencySymbol{font-size:16px;color:#111827!important}
.adlr-recent-order-total span{font-size:13px;color:#64748b}
.adlr-recent-order-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}
.adlr-recent-order-actions .button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:auto!important;min-width:68px!important;max-width:100%!important;flex:0 0 auto!important;margin:0!important;text-align:center!important;white-space:nowrap!important}
.adlr-recent-order-actions .button.pay{background:var(--adlr-dashboard-pay-bg,#eaf8ef)!important;color:var(--adlr-dashboard-pay-color,#187642)!important;border-color:var(--adlr-dashboard-pay-border,#b9dfc8)!important;font-weight:800!important;box-shadow:0 1px 3px rgba(15,23,42,.08)!important}
.adlr-recent-order-actions .button.pay:hover,.adlr-recent-order-actions .button.pay:focus-visible{background:var(--adlr-dashboard-pay-hover-bg,#dff3e7)!important;color:var(--adlr-dashboard-pay-hover-color,#145f37)!important;border-color:var(--adlr-dashboard-pay-hover-border,#95cfac)!important;box-shadow:0 2px 5px rgba(15,23,42,.10)!important}
.adlr-recent-order-actions .button.cancel{background:#fff5f5!important;color:#a43838!important;border-color:#f0cccc!important}
.adlr-recent-order-actions .button.cancel:hover,.adlr-recent-order-actions .button.cancel:focus-visible{background:#fdeaea!important;color:#8f2f2f!important;border-color:#e7b4b4!important}
.adlr-recent-order-actions a.woocommerce-button.button.view{width:auto!important}
.adlr-recent-orders-footer{display:flex;justify-content:flex-end;margin-top:12px}
.adlr-account-text-link{font-weight:700;color:var(--adlr-dashboard-accent,#045cb4)!important;text-decoration:none!important}
.adlr-account-text-link:hover{text-decoration:underline!important}

/* Produits recemment consultes : on conserve content-product.php et ses hooks, mais on compacte la grille. */
.adlr-account-dashboard-section ul.products.adlr-recently-viewed-products{display:grid!important;grid-template-columns:repeat(var(--adlr-recent-columns,4),minmax(0,1fr))!important;gap:14px!important;margin:0!important;padding:0!important}
.adlr-account-dashboard-section ul.products.adlr-recently-viewed-products:before,.adlr-account-dashboard-section ul.products.adlr-recently-viewed-products:after{display:none!important}
.adlr-account-dashboard-section ul.products.adlr-recently-viewed-products li.product{float:none!important;width:auto!important;max-width:none!important;min-width:0!important;margin:0!important;padding:12px!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;border:1px solid rgba(4,92,180,.15)!important;border-radius:11px!important;background:#fff!important;box-shadow:0 4px 11px rgba(0,0,0,.12)!important;box-sizing:border-box!important}
.adlr-account-dashboard-section ul.products.adlr-recently-viewed-products li.product>a:first-child{display:flex!important;flex-direction:column!important;min-width:0!important;text-decoration:none!important}
.adlr-account-dashboard-section ul.products.adlr-recently-viewed-products li.product img{display:block!important;width:100%!important;height:var(--adlr-recent-image-height,160px)!important;object-fit:contain!important;object-position:center!important;margin:0 0 10px!important;padding:0!important;background:#fff!important}
.adlr-account-dashboard-section ul.products.adlr-recently-viewed-products .woocommerce-loop-product__title{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:var(--adlr-recent-title-lines,3)!important;overflow:hidden!important;min-height:calc(1.38em * var(--adlr-recent-title-lines,3))!important;max-height:calc(1.38em * var(--adlr-recent-title-lines,3))!important;margin:0 0 7px!important;padding:0!important;font-size:15px!important;line-height:1.38!important;font-weight:700!important}
.adlr-account-dashboard-section ul.products.adlr-recently-viewed-products .adlr-recent-product-rating{display:block!important;float:none!important;clear:both!important;margin:0 0 7px!important;line-height:1!important;min-height:24px}
/* Note issue directement des donnees Société des Avis Garantis : aucun shortcode, logo, badge ou widget tiers n'est rendu ici. */
.adlr-account-dashboard-section .adlr-sag-rating{display:flex!important;align-items:center!important;gap:0!important;min-height:24px!important}
.adlr-account-dashboard-section .adlr-sag-stars{position:relative!important;display:inline-block!important;width:101px!important;height:21px!important;overflow:hidden!important;white-space:nowrap!important;font-size:21px!important;line-height:21px!important;letter-spacing:0!important;font-family:Arial,sans-serif!important}
.adlr-account-dashboard-section .adlr-sag-stars-base,.adlr-account-dashboard-section .adlr-sag-stars-value{position:absolute!important;left:0!important;top:0!important;display:block!important;width:101px!important;height:21px!important;line-height:21px!important;white-space:nowrap!important}
.adlr-account-dashboard-section .adlr-sag-stars-base{color:#d8dde3!important}
.adlr-account-dashboard-section .adlr-sag-stars-value{width:var(--adlr-sag-fill,0%)!important;overflow:hidden!important;color:var(--adlr-sag-color,#0068bd)!important}
.adlr-account-dashboard-section .adlr-sag-count{display:inline-flex!important;align-items:center!important;align-self:center!important;height:21px!important;margin-left:-10px!important;font-size:12px!important;line-height:21px!important;color:#111!important;white-space:nowrap!important;transform:translateY(-5px)!important}
.adlr-account-dashboard-section ul.products.adlr-recently-viewed-products .price{margin:0 0 9px!important;font-size:15px!important;line-height:1.35!important}
.adlr-account-dashboard-section ul.products.adlr-recently-viewed-products .button{align-self:flex-start!important;margin:auto 0 0!important}
.adlr-account-dashboard-section ul.products.adlr-recently-viewed-products .added_to_cart{margin-top:7px!important;font-size:13px!important}

@media(max-width:980px){.adlr-recent-order{grid-template-columns:minmax(190px,1fr) minmax(120px,.65fr)}.adlr-recent-order-actions{grid-column:1/-1;justify-content:flex-start}.adlr-account-dashboard-section ul.products.adlr-recently-viewed-products{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){.adlr-account-dashboard-shell{gap:14px}.adlr-account-dashboard-hero{min-height:96px;padding:20px;border-radius:12px}.adlr-account-dashboard-hero .bonjour{font-size:20px!important}.adlr-account-dashboard-hero .user-name{font-size:25px!important}.adlr-account-dashboard-hero-mark{display:none}.adlr-account-dashboard-card{padding:15px}.adlr-account-dashboard-section-title h3{font-size:18px}.adlr-recent-order{grid-template-columns:1fr;gap:9px;padding:13px}.adlr-recent-order-actions{grid-column:auto;justify-content:flex-start}.adlr-account-dashboard-section ul.products.adlr-recently-viewed-products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.adlr-account-dashboard-section ul.products.adlr-recently-viewed-products li.product{padding:9px!important}.adlr-account-dashboard-section ul.products.adlr-recently-viewed-products li.product img{height:min(var(--adlr-recent-image-height,160px),135px)!important}.adlr-account-dashboard-section ul.products.adlr-recently-viewed-products .woocommerce-loop-product__title{font-size:13px!important}.adlr-account-dashboard-section ul.products.adlr-recently-viewed-products .price{font-size:13px!important}.adlr-account-dashboard-section ul.products.adlr-recently-viewed-products .button{}}


/* ADLR Compte client 1.16.1 - le bloc points reprend le meme langage d icone
 * que les autres sections du dashboard pour eviter une etoile visuellement a part. */
.adlr-account-dashboard-points .adlr-account-dashboard-card-heading{margin-bottom:12px!important}
.adlr-account-dashboard-points .adlr-account-dashboard-card-icon{
 background:var(--adlr-dashboard-accent,#045cb4)!important;
 color:#fff!important;
 border-radius:9px!important;
 box-shadow:0 4px 10px rgba(4,92,180,.18)!important;
}
.adlr-account-dashboard-points .adlr-account-dashboard-card-icon svg,
.adlr-account-dashboard-points .adlr-account-dashboard-card-icon i{color:inherit!important;fill:currentColor!important}
