/* AL Shop Online — Out of stock + back-in-stock notification */
.alshop-out-stock-panel{
    width:100%;
    margin-top:14px;
    padding:18px;
    border:1px solid #ffd9c8;
    border-radius:16px;
    background:linear-gradient(180deg,#fffdfb 0%,#fff6f1 100%);
    box-shadow:0 12px 30px rgba(40,45,55,.07);
    color:#20242d;
}
.alshop-out-stock-panel.d-none{display:none!important}
.alshop-out-stock-status{
    display:flex;
    align-items:flex-start;
    gap:13px;
    margin-bottom:15px;
}
.alshop-out-stock-icon{
    flex:0 0 42px;
    width:42px;
    height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:#fff0e8;
    color:#f4471f;
    font-size:23px;
}
.alshop-out-stock-label{
    display:block;
    margin:1px 0 4px;
    color:#252934;
    font-size:15px;
    line-height:1.3;
    font-weight:800;
}
.alshop-out-stock-status p{
    margin:0;
    color:#6b7280;
    font-size:13px;
    line-height:1.55;
}
.alshop-stock-alert-btn,
.alshop-stock-alert-submit{
    width:100%;
    min-height:48px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    padding:0 18px;
    border:1px solid #f4471f;
    border-radius:11px;
    background:linear-gradient(180deg,#ff6a2b 0%,#f4471f 100%);
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    font-size:14px;
    font-weight:800;
    line-height:1;
    box-shadow:0 11px 22px rgba(244,71,31,.22);
    transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
    cursor:pointer;
}
.alshop-stock-alert-btn:hover,
.alshop-stock-alert-submit:hover{
    background:linear-gradient(180deg,#ff5e1c 0%,#dd3a15 100%);
    border-color:#dd3a15;
    color:#fff!important;
    transform:translateY(-1px);
    box-shadow:0 14px 26px rgba(244,71,31,.28);
}
.alshop-stock-alert-btn i,
.alshop-stock-alert-submit i{font-size:19px}
.alshop-stock-alert-destination{
    margin-top:9px;
    color:#7a808c;
    font-size:11.5px;
    line-height:1.45;
    text-align:center;
    overflow-wrap:anywhere;
}
.alshop-stock-alert-modal{
    position:relative;
    overflow:hidden;
    border:0!important;
    border-radius:20px!important;
    box-shadow:0 30px 90px rgba(19,25,35,.25)!important;
}
.alshop-stock-alert-modal .modal-body{padding:34px 34px 30px;text-align:center}
.alshop-stock-alert-close{
    position:absolute;
    top:11px;
    right:13px;
    z-index:2;
    width:34px;
    height:34px;
    padding:0!important;
    border:0;
    border-radius:50%;
    background:#f3f5f7!important;
    color:#565d68!important;
    font-size:24px!important;
    line-height:32px!important;
    opacity:1!important;
}
.alshop-stock-alert-modal-icon{
    width:58px;
    height:58px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-bottom:15px;
    border-radius:17px;
    background:linear-gradient(145deg,#fff0e8,#ffe1d2);
    color:#f4471f;
    font-size:28px;
}
.alshop-stock-alert-modal h4{
    margin:0 0 9px;
    color:#222630;
    font-size:21px;
    font-weight:800;
}
.alshop-stock-alert-modal p{
    margin:0 0 22px;
    color:#6d7480;
    font-size:13px;
    line-height:1.6;
}
.alshop-stock-alert-guest-form{text-align:left}
.alshop-stock-alert-guest-form label{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:7px;
    color:#343a46;
    font-size:13px;
    font-weight:700;
}
.alshop-stock-alert-guest-form label span{
    padding:3px 7px;
    border-radius:999px;
    background:#f2f4f7;
    color:#818896;
    font-size:10px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.03em;
}
.alshop-stock-alert-guest-form .form-control{
    height:47px;
    border:1px solid #dfe4ea;
    border-radius:10px;
    background:#fff;
    color:#242933;
    box-shadow:none!important;
    font-size:14px;
}
.alshop-stock-alert-guest-form .form-control:focus{
    border-color:#f4471f;
    box-shadow:0 0 0 3px rgba(244,71,31,.10)!important;
}
.alshop-stock-alert-or{
    position:relative;
    height:22px;
    margin:2px 0 10px;
    text-align:center;
}
.alshop-stock-alert-or:before{
    content:"";
    position:absolute;
    left:0;
    right:0;
    top:50%;
    height:1px;
    background:#eceff3;
}
.alshop-stock-alert-or span{
    position:relative;
    z-index:1;
    display:inline-block;
    padding:0 10px;
    background:#fff;
    color:#9aa1ad;
    font-size:11px;
    line-height:22px;
}
.alshop-stock-alert-form-error{
    margin:-2px 0 12px;
    padding:9px 11px;
    border-radius:8px;
    background:#fff1f1;
    color:#c83f3f;
    font-size:12px;
    font-weight:600;
}
.alshop-stock-alert-guest-form small{
    display:block;
    margin-top:10px;
    color:#9299a5;
    font-size:11px;
    line-height:1.45;
    text-align:center;
}
@media(max-width:575.98px){
    .alshop-out-stock-panel{padding:15px;border-radius:14px}
    .alshop-stock-alert-modal .modal-body{padding:30px 20px 24px}
    .alshop-stock-alert-modal{border-radius:17px!important}
}
.alshop-stock-alert-server-error{
    margin:0 0 14px;
    padding:10px 12px;
    border:1px solid #f2c9c9;
    border-radius:9px;
    background:#fff3f3;
    color:#bd3c3c;
    font-size:12px;
    font-weight:700;
    line-height:1.45;
}

/* v14: AJAX success state */
.alshop-stock-alert-btn.alshop-stock-alert-saved,
.alshop-stock-alert-submit.alshop-stock-alert-saved{
    background:linear-gradient(180deg,#23a66b 0%,#178653 100%)!important;
    border-color:#178653!important;
    color:#fff!important;
    box-shadow:0 10px 22px rgba(23,134,83,.20)!important;
    cursor:default!important;
    opacity:1!important;
}

/* ===== v15 stability fix: solid product-page header + local toast ===== */
html body > .agm-header.agm-sticky-header.alshop-header-portal-fixed,
html body > .agm-header.agm-sticky-header.alshop-header-portal-fixed.is-scrolled,
html body > .agm-header.agm-sticky-header.alshop-header-portal-fixed .container,
html body > .agm-header.agm-sticky-header.alshop-header-portal-fixed .agm-header-main,
html body > .agm-header.agm-sticky-header.alshop-header-portal-fixed .agm-mobile-search{
    background:#ffffff!important;
    background-image:none!important;
    opacity:1!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
}
html body > .agm-header.agm-sticky-header.alshop-header-portal-fixed{
    border-bottom:1px solid #e7ebf0!important;
}
html body > .agm-header.agm-sticky-header.alshop-header-portal-fixed.is-scrolled{
    box-shadow:0 9px 26px rgba(20,28,38,.11)!important;
}

.alshop-stock-alert-toast{
    position:fixed;
    top:92px;
    left:50%;
    z-index:2147483600;
    min-width:280px;
    max-width:min(520px,calc(100vw - 32px));
    padding:13px 17px;
    border-radius:11px;
    color:#fff;
    font-size:13px;
    font-weight:700;
    line-height:1.45;
    text-align:center;
    box-shadow:0 16px 38px rgba(18,26,38,.22);
    opacity:0;
    pointer-events:none;
    transform:translate(-50%,-12px);
    transition:opacity .2s ease,transform .2s ease;
}
.alshop-stock-alert-toast.is-visible{
    opacity:1;
    transform:translate(-50%,0);
}
.alshop-stock-alert-toast.is-success{background:#168a59}
.alshop-stock-alert-toast.is-error{background:#c53d35}

/* Never allow this feature to create a full-page blocking layer. */
.alshop-stock-alert-btn[aria-busy="true"],
.alshop-stock-alert-submit[aria-busy="true"]{
    pointer-events:none!important;
    opacity:.82!important;
}
@media(max-width:767.98px){
    .alshop-stock-alert-toast{top:76px;min-width:0;width:calc(100vw - 28px)}
}

/* ===== v18: unavailable status must be visibly red, not in-stock green ===== */
.alshop-out-stock-panel{
    border-color:#fecaca!important;
    background:linear-gradient(180deg,#fffdfd 0%,#fff7f7 100%)!important;
}
.alshop-out-stock-icon{
    background:#feecec!important;
    color:#d92d20!important;
}
.alshop-out-stock-label{
    color:#d92d20!important;
}
