/* ALS Alerte — frontend */
/* Native product links; independent of ALS Product Page and theme button rules. */
.als-alerte-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px;margin:10px 0;justify-content:flex-start;--als-alerte-text:var(--alspdp-muted,#65736A);--als-alerte-accent:var(--alspdp-accent,var(--primary-color,#1e7a35))}
.sticky-add-to-cart .als-alerte-buttons,.product-sticky-bar .als-alerte-buttons{display:none!important}
.als-alerte-buttons .als-alert-btn{display:inline-flex!important;align-items:center;justify-content:flex-start;gap:4px;float:none!important;width:auto!important;min-width:0!important;min-height:32px;height:auto;margin:0!important;padding:4px 0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;cursor:pointer;font-family:inherit!important;font-size:12px!important;font-weight:400!important;text-transform:none!important;letter-spacing:normal!important;line-height:1.5!important;color:var(--als-alerte-text)!important;text-align:left;white-space:normal;transition:color .15s}
.als-alerte-buttons .als-alert-btn:hover{color:var(--als-alerte-accent)!important;text-decoration:underline;text-underline-offset:3px}
.als-alerte-buttons .als-alert-btn svg{width:12px;height:12px;flex:none;color:currentColor;stroke-width:1.5}
.als-alerte-buttons .als-alert-btn.active{color:var(--als-alerte-accent)!important}
.als-alerte-buttons .als-alert-btn:focus-visible{outline:2px solid var(--als-alerte-accent);outline-offset:3px}
.als-alerte-buttons .als-alert-btn:disabled{cursor:wait;opacity:.65}
.als-alerte-status{flex-basis:100%;font-size:12px;line-height:1.5;color:#a93226}
.als-alerte-status:empty{display:none}

/* Modal */
.als-alert-modal{position:fixed;top:0;left:0;width:100%;height:100%;z-index:100000;display:flex;align-items:center;justify-content:center}
.als-alert-modal-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5)}
.als-alert-modal-content{position:relative;background:#fff;border-radius:8px;padding:24px;max-width:420px;width:90%;box-shadow:0 4px 20px rgba(0,0,0,.15)}
.als-alert-modal-close{position:absolute;top:12px;right:12px;background:none;border:none;cursor:pointer;padding:4px;color:#999}
.als-alert-modal-close:hover{color:#333}
.als-alert-modal-close svg{width:20px;height:20px}
.als-alert-modal-title{margin:0 0 8px;font-size:18px;font-weight:600;color:#333}
.als-alert-modal-desc{margin:0 0 20px;font-size:14px;color:#666}
.als-alert-modal-form label{display:block;font-size:14px;font-weight:500;margin-bottom:6px;color:#333}
.als-alert-modal-form input[type=email]{width:100%;padding:10px 12px;border:1px solid #ddd;border-radius:4px;font-size:14px;font-family:inherit;box-sizing:border-box}
.als-alert-modal-form input[type=email]:focus{outline:none;border-color:#2da000}
.als-alert-modal-error{color:#c0392b;font-size:13px;margin-top:8px}
.als-alert-modal-submit{display:block;width:100%;padding:12px;margin-top:12px;background:#2da000;color:#fff;border:none;border-radius:4px;font-size:15px;font-family:inherit;cursor:pointer;transition:background .2s}
.als-alert-modal-submit:hover{background:#248700}
.als-alert-modal-submit:disabled{opacity:.6;cursor:not-allowed}
.als-alert-modal-confirm{padding:10px 0}
.als-alert-modal-confirm-text{margin:0 0 20px;font-size:15px;color:#333;line-height:1.5}
.als-alert-modal-confirm-actions{display:flex;gap:10px}
.als-alert-modal-confirm-actions button{flex:1;padding:12px;border-radius:4px;font-size:14px;font-family:inherit;cursor:pointer;border:1px solid #ddd;background:#fff;color:#333;transition:background .2s,border-color .2s}
.als-alert-modal-cancel:hover{background:#f5f5f5;border-color:#bbb}
.als-alert-modal-confirm-ok{background:#c0392b!important;color:#fff!important;border-color:#c0392b!important}
.als-alert-modal-confirm-ok:hover{background:#a93226!important;border-color:#a93226!important}
.als-alert-modal-success{text-align:center;padding:20px 0}
.als-alert-modal-success svg{width:48px;height:48px;margin-bottom:12px}
.als-alert-modal-success p{color:#2A3139;font-size:15px;font-weight:500}

/* My Account */
.als-my-alerts-table,.als-my-wishlist-table{width:100%;border-collapse:collapse}
.als-my-alerts-table th,.als-my-alerts-table td,.als-my-wishlist-table th,.als-my-wishlist-table td{padding:10px 12px;border-bottom:1px solid #eee;text-align:left;font-size:14px}
.als-my-alerts-table th,.als-my-wishlist-table th{font-weight:600;color:#333}
.als-out-of-stock{color:#999;font-size:13px;font-style:italic}
.als-wishlist-date{display:block;font-size:12px;color:#999;margin-top:4px}
.als-cancel-alert-btn,.als-remove-wishlist-btn{background:none;border:1px solid #c0392b;color:#c0392b;padding:4px 12px;border-radius:3px;cursor:pointer;font-size:13px}
.als-cancel-alert-btn:hover,.als-remove-wishlist-btn:hover{background:#c0392b;color:#fff}
.als-empty-state{text-align:center;padding:40px 20px;color:#999;font-size:15px}
.als-fading{opacity:0;transition:opacity .3s}

.als-alert-modal-content{box-sizing:border-box;max-height:calc(100dvh - 32px);overflow:auto}
.als-alert-modal .als-alert-modal-close{display:flex;align-items:center;justify-content:center;min-width:32px;width:32px;height:32px;min-height:32px;padding:6px;margin:0;line-height:1}
.als-alert-modal .als-alert-modal-title{padding-right:32px}
.als-alert-modal-form input[aria-invalid="true"]{border-color:#c0392b}
.als-alert-modal button:focus-visible{outline:2px solid #44505D;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.als-alert-btn,.als-fading{transition:none!important}}

.als-account-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.als-my-wishlist-table img{width:64px;max-width:64px;height:auto}

/* Confirmarea de la favorite (jos pe ecran) + inima care „pulsează”; butonul rămâne vizibil cât așteaptă serverul. */
.als-toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:100000;display:flex;align-items:center;gap:10px;width:max-content;max-width:calc(100% - 32px);padding:12px 18px;border-radius:8px;background:#2A3139;color:#fff;font:500 14px/1.4 Jost,sans-serif;box-shadow:0 10px 30px rgba(0,0,0,.2);opacity:0;visibility:hidden;transform:translate(-50%,12px);transition:opacity .2s,transform .2s,visibility .2s}
.als-toast.is-visible{opacity:1;visibility:visible;transform:translate(-50%,0)}
.als-toast svg{flex:none;color:#F2A8C4}
.als-toast a,.als-toast a:visited{color:#8FD46F!important;font-weight:600;text-decoration:underline;text-underline-offset:3px;white-space:nowrap;margin-left:4px}.als-toast a:hover,.als-toast a:focus-visible{color:#fff!important}
.als-toast.is-error{background:#8E2A2A}
body.has-pbar .als-toast{bottom:96px}
@media(max-width:781px){body.has-pbar .als-toast{bottom:126px}}
@keyframes als-heart-pop{0%{transform:scale(1)}40%{transform:scale(1.35)}100%{transform:scale(1)}}
.als-wishlist-btn.als-pop svg{animation:als-heart-pop .35s ease-out}
.als-wishlist-btn[aria-busy=true],.als-alerte-buttons .als-wishlist-btn:disabled[aria-busy=true]{opacity:1;cursor:progress}
@media(prefers-reduced-motion:reduce){.als-toast{transition:none}.als-wishlist-btn.als-pop svg{animation:none}}
