.moze-summary{margin:0 0 22px;color:#252525;font:inherit}
.moze-summary__details{border:1px solid #e5e5e5;border-radius:9px;background:#fff;overflow:hidden}
.moze-summary__toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 19px;cursor:pointer;list-style:none}
.moze-summary__toggle::-webkit-details-marker{display:none}
.moze-summary__toggle-label,.moze-summary__toggle-right{display:flex;align-items:center;gap:10px}
.moze-summary__toggle-label{font-weight:650}
.moze-summary__toggle-right{white-space:nowrap}
.moze-summary__bag{font-size:16px}
.moze-summary__count{font-size:12px;color:#777;font-weight:400}
.moze-summary__amount{font-weight:650}
.moze-summary__chevron{width:8px;height:8px;border-bottom:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(45deg);transition:transform .2s;margin-left:5px;margin-top:-5px}
.moze-summary__details[open] .moze-summary__chevron{transform:rotate(225deg);margin-top:5px}
.moze-summary__toggle:focus-visible{outline:2px solid #4c4c4c;outline-offset:-3px}
.moze-summary__body{border-top:1px solid #eee;padding:6px 19px 15px}
.moze-summary__products{list-style:none;padding:0!important;margin:0!important}
.moze-summary__product{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:13px;align-items:start;border-bottom:1px solid #eee;padding:14px 0}
.moze-summary__picture img{display:block;max-width:64px;width:100%;height:auto;object-fit:cover;border-radius:4px}
.moze-summary__product-info{min-width:0}
.moze-summary__product-name{font-weight:600;line-height:1.35}
.moze-summary__meta,.moze-summary__quantity{font-size:12px;color:#777;margin-top:4px}
.moze-summary__meta dl,.moze-summary__meta p{margin:0}.moze-summary__meta dt,.moze-summary__meta dd{display:inline;margin:0 5px 0 0}
.moze-summary__line-total{font-weight:600;white-space:nowrap}
.moze-summary__totals{padding-top:10px}.moze-summary__totals>div{display:flex;justify-content:space-between;gap:14px;padding:5px 0;font-size:14px}
.moze-summary__total{margin-top:6px;padding-top:12px!important;border-top:1px solid #ddd;font-size:16px!important}
.moze-summary__hint{color:#888;font-size:11px;margin:10px 0 0}
@media(max-width:767px){.moze-summary__toggle{padding:14px}.moze-summary__body{padding:5px 14px 14px}.moze-summary__product{grid-template-columns:56px minmax(0,1fr);gap:10px}.moze-summary__picture img{max-width:56px}.moze-summary__line-total{grid-column:2}.moze-summary__count{display:none}.moze-summary__toggle-right{gap:7px}}

/* WoodMart side-login opener: keep the native WoodMart event class. */
.moze-auth{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:0 0 20px;padding:18px 20px;border:1px solid #e6e6e6;border-radius:10px;background:#fff;color:#252525;font:inherit}
.moze-auth__heading{display:flex;align-items:center;gap:13px;min-width:0}
.moze-auth__icon{flex:0 0 38px;height:38px;border:1px solid #ebebeb;border-radius:50%;display:grid;place-items:center;color:#333}
.moze-auth__copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.moze-auth__copy strong{font-size:15px;line-height:1.3;font-weight:650}
.moze-auth__copy small{font-size:13px;line-height:1.4;color:#777}
.moze-auth a.moze-auth__button{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex-shrink:0;border:1px solid #252525;border-radius:7px;padding:11px 15px;background:#fff;color:#252525!important;font-size:13px;font-weight:650;text-decoration:none!important;transition:background .15s ease,color .15s ease}
.moze-auth a.moze-auth__button:hover{background:#252525;color:#fff!important}
.moze-auth a.moze-auth__button:focus-visible{outline:2px solid #777;outline-offset:3px}
@media(max-width:640px){.moze-auth{align-items:stretch;flex-direction:column;gap:14px;padding:15px}.moze-auth a.moze-auth__button{width:100%;box-sizing:border-box}}

/* Editable product rows */
.moze-summary__actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:10px}
.moze-summary__qty-label{font-size:12px;color:#777}
.moze-summary input.moze-summary__qty{width:62px;height:34px;padding:4px 7px;border:1px solid #ddd;border-radius:7px;background:#fff;font-size:13px;text-align:center}
.moze-summary button.moze-summary__remove{border:0;background:transparent;padding:6px 3px;color:#666;text-decoration:underline;text-underline-offset:3px;font-size:12px;cursor:pointer}
.moze-summary button.moze-summary__remove:hover{color:#ad2b2b}
.moze-summary__feedback:not([hidden]){margin:12px 0;padding:10px;border-radius:6px;background:#fff3f3;color:#9b2222;font-size:13px}
.moze-summary--loading{opacity:.65;pointer-events:none}

/* v1.5 Undo confirmation lives OUTSIDE the collapsible summary. */
.moze-summary__notice:not([hidden]){display:flex;align-items:center;flex-wrap:wrap;gap:7px 11px;margin:0 0 10px;border:1px solid #d6e5da;border-radius:9px;background:#f4faf5;padding:11px 14px;color:#254b30;font-size:13px;line-height:1.45}
.moze-summary__notice--error:not([hidden]){border-color:#f0d1d1;background:#fff6f6;color:#a12f2f}
.moze-summary button.moze-summary__undo{border:0;background:transparent;color:inherit;font-size:13px;text-decoration:underline;text-underline-offset:3px;font-weight:700;cursor:pointer;padding:2px}

/* v1.6 native WooCommerce remove / undo links */
.moze-summary a.moze-summary__remove{display:inline-flex;align-items:center;padding:6px 3px;color:#666!important;text-decoration:underline!important;text-underline-offset:3px;font-size:12px;line-height:1.4}
.moze-summary a.moze-summary__remove:hover{color:#ad2b2b!important}
.woocommerce-checkout .woocommerce-message a.restore-item{font-weight:700;text-decoration:underline;text-underline-offset:3px}

/* v1.7.1: first-paint styling — no JS replacement/flash. :has() supported in modern Chrome, Safari and Firefox. */
body.woocommerce-checkout .woocommerce-message:has(a.restore-item){
    position:relative!important;display:block!important;clear:both;
    border:1px solid #e5e5e5!important;border-radius:10px!important;
    background:#fff!important;box-shadow:none!important;
    margin:0 0 16px!important;padding:35px 14px 13px 46px!important;
    color:#505050!important;font-size:13px!important;line-height:1.5!important;
}
body.woocommerce-checkout .woocommerce-message:has(a.restore-item)::before{
    content:"✓"!important;position:absolute!important;left:15px!important;top:14px!important;
    width:22px!important;height:22px!important;border:1px solid #dce7de!important;
    border-radius:50%!important;display:grid!important;place-items:center!important;
    background:#f4faf5!important;color:#286c3c!important;font-size:13px!important;
}
body.woocommerce-checkout .woocommerce-message:has(a.restore-item)::after{
    content:"Produs eliminat din coș"!important;position:absolute!important;
    display:block!important;left:46px!important;top:12px!important;
    background:transparent!important;color:#252525!important;font-size:14px!important;
    font-weight:700!important;line-height:20px!important;width:auto!important;height:auto!important;
    transform:none!important;border:0!important;
}
body.woocommerce-checkout .woocommerce-message:has(a.restore-item) a.restore-item{
    float:none!important;display:inline-block!important;width:auto!important;min-height:0!important;height:auto!important;
    margin:3px 0 0!important;padding:0!important;background:transparent!important;border:0!important;
    box-shadow:none!important;color:#262626!important;font-size:0!important;line-height:1.5!important;
    text-decoration:none!important;text-transform:none!important;
}
body.woocommerce-checkout .woocommerce-message:has(a.restore-item) a.restore-item::after{
    content:"Anulează ștergerea";font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:3px;
}

/* v1.7.8: Product image and name link to the product page in a new tab,
   preserving the currently completed checkout in its original tab. */
.moze-summary .moze-summary__image-link{display:block;width:100%;line-height:0;border-radius:5px;text-decoration:none!important}
.moze-summary .moze-summary__name-link{color:inherit!important;text-decoration:none!important;transition:color .15s ease}
.moze-summary .moze-summary__name-link:hover{text-decoration:underline!important;text-underline-offset:3px}
.moze-summary .moze-summary__product-link:focus-visible{outline:2px solid #252525;outline-offset:3px;border-radius:3px}
.moze-summary .moze-summary__image-link:hover img{opacity:.88;transition:opacity .15s ease}

/* v1.7.10: native WooCommerce remove/Undo notice directly below summary.
   Only its server-rendered location changes; never move live checkout errors. */
body.moze-checkout-enhanced .moze-summary__native-notices {
    margin:-10px 0 18px;
}
body.moze-checkout-enhanced .moze-summary__native-notices .woocommerce-message {
    margin:0!important;
}
@media (max-width:767px) {
    body.moze-checkout-enhanced .moze-summary__native-notices {margin:-9px 0 15px;}
}

/* v1.7.12 — the sale/gift price is presentation only; Woo calculates totals. */
.moze-summary .moze-summary__price-group {
    display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 9px;
}
.moze-summary .moze-summary__old-price {
    color:#858585; font-weight:400; font-size:.83em; text-decoration:line-through;
}
.moze-summary .moze-summary__old-price .amount,
.moze-summary .moze-summary__old-price .woocommerce-Price-amount {
    color:inherit!important;font-size:inherit!important;font-weight:inherit!important;
}
.moze-summary .moze-summary__new-price {color:#222;font-weight:700;white-space:nowrap}
.moze-summary .moze-summary__price-group--gift .moze-summary__new-price {color:#21643c}
.moze-summary .moze-summary__price-group .moze-summary__price-note {
    flex-basis:100%;color:#737373;font-weight:400;font-size:12px;line-height:1.35
}
