/* ==========================================================================
   XLSOLAR — Professional Toast Notification Styles
   Overrides notify.min.js (bootstrap style) for modern, consistent UX
   across all 4 portals (storefront, /be, /ref, /ref/admin).
   ========================================================================== */

/* Corner container — fixed top-right with comfortable margin */
.notifyjs-corner {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    bottom: auto !important;
    left:  auto !important;
    margin: 0 !important;
    z-index: 999999 !important;
    max-width: 380px;
    width: 100%;
}

/* Individual toast wrapper */
.notifyjs-corner .notifyjs-wrapper,
.notifyjs-corner .notifyjs-container {
    position: relative !important;
    display: block !important;
    height: auto !important;
    width: 100% !important;
    margin: 0 0 10px 0 !important;
}

/* ---- Base toast style ---- */
.notifyjs-bootstrap-base {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 14px 18px !important;
    border-radius: 10px !important;
    border: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    color: #fff !important;
    text-shadow: none !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    backdrop-filter: blur(4px);
    cursor: pointer;
    min-width: 260px;
    word-break: break-word;
    background-repeat: no-repeat !important;
    background-image: none !important; /* remove the default icons (we use pseudo-elements) */
    padding-left: 18px !important;     /* reset notify's icon padding */
}

/* ---- Per-type colours ---- */
.notifyjs-bootstrap-success {
    background-color: #16a34a !important;
    border-left: 4px solid #bbf7d0 !important;
}

.notifyjs-bootstrap-error {
    background-color: #dc2626 !important;
    border-left: 4px solid #fecaca !important;
    color: #fff !important;
}

.notifyjs-bootstrap-info {
    background-color: #2563eb !important;
    border-left: 4px solid #bfdbfe !important;
    color: #fff !important;
}

.notifyjs-bootstrap-warn {
    background-color: #d97706 !important;
    border-left: 4px solid #fde68a !important;
    color: #fff !important;
}

/* Slide-in animation */
@keyframes xls-toast-in {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
.notifyjs-bootstrap-base {
    animation: xls-toast-in 0.25s ease-out both;
}

/* ---- Spinner for disabled submit buttons ---- */
.xls-spinner {
    display: inline-block;
    width: 13px;
    height: 13px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: xls-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 5px;
}
@keyframes xls-spin {
    to { transform: rotate(360deg); }
}

/* Responsive — full-width on small screens */
@media (max-width: 480px) {
    .notifyjs-corner {
        right: 10px !important;
        left:  10px !important;
        max-width: none;
    }
}
