/* ==========================================================================
   Gentora Jewels - Premium Mobile & Storefront Toast Notification System
   ========================================================================== */

.gentora-toast-container {
    position: fixed;
    z-index: 1075;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: bottom 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

/* Mobile Screens (< 768px):
   Centered horizontally, width calc(100% - 32px), max-width 380px.
   Default bottom: clears mobile bottom nav (56px) + safe-area.
   When sticky add-to-cart bar active on product page: bottom 90px.
   When cart drawer is open: bottom calc(148px + safe-area) to float cleanly ABOVE the sticky checkout footer! */
@media (max-width: 767.98px) {
    .gentora-toast-container {
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 32px);
        max-width: 380px;
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    body.sticky-bar-active .gentora-toast-container {
        bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.gentora-drawer-open .gentora-toast-container {
        bottom: calc(148px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

/* Tablet & Desktop (>= 768px):
   Positioned at bottom-left (24px, 24px) away from the right slide-out cart drawer! */
@media (min-width: 768px) {
    .gentora-toast-container {
        bottom: 24px;
        left: 24px;
        width: 360px;
        max-width: 360px;
        align-items: flex-start;
    }

    body.sticky-bar-active .gentora-toast-container {
        bottom: 90px;
    }
}

/* Toast Card Component */
.gentora-toast {
    pointer-events: auto;
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #ECE5DC;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 10px 28px -4px rgba(44, 30, 22, 0.12), 0 3px 8px -2px rgba(44, 30, 22, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 11px;
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    will-change: transform, opacity;
}

.gentora-toast.gentora-toast-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gentora-toast.gentora-toast-exit {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
    pointer-events: none;
}

/* Status Icon Badge */
.gentora-toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Text Content */
.gentora-toast-body {
    flex-grow: 1;
    min-width: 0;
    padding-right: 4px;
}

.gentora-toast-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1F1F1F;
    line-height: 1.25;
    letter-spacing: -0.15px;
}

.gentora-toast-msg {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #555555;
    line-height: 1.35;
    margin-top: 2px;
    word-break: break-word;
}

/* Dismiss / Close Button */
.gentora-toast-close {
    background: transparent;
    border: none;
    padding: 4px;
    margin: -4px -4px 0 0;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8C827A;
    flex-shrink: 0;
    transition: color 0.15s, background-color 0.15s;
    line-height: 1;
}

.gentora-toast-close:hover {
    color: #1F1F1F;
    background-color: #F7F3EE;
}

.gentora-toast-close:focus {
    outline: none;
}

/* Suppress old bootstrap-notify alert panels if ever invoked */
.aiz-notify {
    display: none !important;
    visibility: hidden !important;
}
