/* Main Container */
#gemely-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    gap: 16px;
    pointer-events: none;
    max-width: 400px;
    width: calc(100% - 48px);
}

/* Individual Toast */
.gemely-toast {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 16px;
    padding: 18px 24px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    pointer-events: auto;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gemelySlideIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes gemelySlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) translateX(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) translateX(0) scale(1);
    }
}

.gemely-toast.hiding {
    opacity: 0;
    transform: scale(0.9) translateX(20px);
    pointer-events: none;
}

/* Icon Container */
.gemely-toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Content */
.gemely-toast-content {
    flex-grow: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: #2D3748;
    padding-top: 1px;
}

/* Cleanup captured WC content from pseudo-icons */
.gemely-toast-content::before,
.gemely-toast-content *::before,
.gemely-toast-content::after,
.gemely-toast-content *::after {
    display: none !important;
    content: none !important;
}

.gemely-toast-content ul,
.gemely-toast-content ol {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
}

.gemely-toast-content li {
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
}

.gemely-toast-content li:last-child {
    margin-bottom: 0 !important;
}

.gemely-toast-content a {
    color: #4A5568;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: 10px !important;
    padding: 10px 13px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.2s;
}

.gemely-toast-content a:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #1A202C;
}


/* Close Button */
.gemely-toast-close {
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    transition: all 0.2s;
    border-radius: 6px;
    margin-right: -8px;
    margin-top: -2px;
}

.gemely-toast-close:hover {
    color: #4a5568;
    background: rgba(0, 0, 0, 0.05);
}

.gemely-toast-close svg {
    width: 16px;
    height: 16px;
}

/* Progress Bar (Timeline) */
.gemely-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.gemely-toast-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    background: #3182ce;
}

/* Types Styling */
.gemely-toast-success .gemely-toast-progress-bar {
    background: #48bb78;
}

.gemely-toast-error .gemely-toast-progress-bar {
    background: #f56565;
}

.gemely-toast-info .gemely-toast-progress-bar {
    background: #4299e1;
}

.gemely-toast-success .gemely-toast-icon {
    color: #48bb78;
}

.gemely-toast-error .gemely-toast-icon {
    color: #f56565;
}

.gemely-toast-info .gemely-toast-icon {
    color: #4299e1;
}

/* Hide standard WC notices */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info,
.wc-block-components-notice-banner {
    display: none !important;
}

/* Small adjustments for mobile */
@media (max-width: 480px) {
    #gemely-toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}