/**
 * BBToast — Notification toast styles
 *
 * @package BeachBooking
 */

#bb-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 340px;
    width: calc(100vw - 48px);
}

.bb-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--bb-radius, 8px);
    box-shadow: var(--bb-shadow, 0 4px 24px rgba(0,0,0,0.14));
    font-family: var(--bb-font-body, system-ui, sans-serif);
    font-size: 0.9rem;
    line-height: 1.4;
    pointer-events: all;
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    background: var(--bb-card, #FFFDF9);
    color: var(--bb-text, #2C1810);
    border-left: 4px solid var(--bb-primary, #8B2E3B);
}

.bb-toast--visible {
    opacity: 1;
    transform: translateX(0);
}

.bb-toast--leaving {
    opacity: 0;
    transform: translateX(32px);
}

/* Type variants */
.bb-toast--info {
    border-left-color: var(--bb-primary, #8B2E3B);
}

.bb-toast--info .bb-toast__icon {
    color: var(--bb-primary, #8B2E3B);
}

.bb-toast--success {
    border-left-color: var(--bb-success, #2F7A4A);
}

.bb-toast--success .bb-toast__icon {
    color: var(--bb-success, #2F7A4A);
}

.bb-toast--error {
    border-left-color: var(--bb-error, #C0392B);
}

.bb-toast--error .bb-toast__icon {
    color: var(--bb-error, #C0392B);
}

.bb-toast__icon {
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
}

.bb-toast__msg {
    flex: 1;
    word-break: break-word;
}

.bb-toast__close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--bb-text-muted, #6B5B52);
    padding: 2px;
    margin-top: 1px;
    display: flex;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.bb-toast__close:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    #bb-toast-container {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }
}
