/**
 * Frontend Styles for Live Order Sales Notification
 */

:root {
    --wsn-accent-color: #10b981;
    --wsn-bg-color: #ffffff;
    --wsn-text-primary: #0f172a;
    --wsn-text-secondary: #64748b;
    --wsn-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
}

.wsn-toast-container {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    max-width: 360px;
    width: calc(100% - 32px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Positions */
.wsn-toast-container.wsn-pos-bottom_left {
    bottom: 20px;
    left: 20px;
}

.wsn-toast-container.wsn-pos-bottom_right {
    bottom: 20px;
    right: 20px;
}

.wsn-toast-container.wsn-pos-top_left {
    top: 20px;
    left: 20px;
}

.wsn-toast-container.wsn-pos-top_right {
    top: 20px;
    right: 20px;
}

/* Card Structure */
.wsn-toast-card {
    background: var(--wsn-bg-color);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: var(--wsn-shadow);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    position: relative;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.wsn-toast-container.wsn-pos-top_left .wsn-toast-card,
.wsn-toast-container.wsn-pos-top_right .wsn-toast-card {
    transform: translateY(-20px) scale(0.96);
}

.wsn-toast-card.wsn-active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Icon / Avatar */
.wsn-toast-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--wsn-accent-color);
}

.wsn-toast-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Content Area */
.wsn-toast-content {
    flex: 1;
    min-width: 0;
    padding-right: 14px;
}

.wsn-toast-title {
    margin: 0 0 2px 0 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: var(--wsn-text-primary) !important;
    line-height: 1.35 !important;
    word-break: break-word;
}

.wsn-customer-name {
    font-weight: 700;
    color: var(--wsn-accent-color);
}

.wsn-toast-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--wsn-text-secondary);
}

.wsn-toast-meta .wsn-verified {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--wsn-accent-color);
    font-weight: 600;
}

.wsn-toast-meta .wsn-verified svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.wsn-toast-meta .wsn-dot {
    font-size: 8px;
    opacity: 0.6;
}

/* Close Button */
.wsn-toast-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 16px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.wsn-toast-close:hover {
    color: #334155;
}

/* Mobile */
@media (max-width: 480px) {
    .wsn-toast-container {
        left: 12px !important;
        right: 12px !important;
        width: calc(100% - 24px) !important;
        bottom: 12px !important;
    }
    .wsn-toast-card {
        padding: 10px 12px;
    }
}
