/**
 * V2 Toast - Notification toast styles
 *
 * Supports two modes:
 *   - Compact: title only (no .v2-toast-detailed class)
 *   - Detailed: title + description (.v2-toast-detailed class)
 *
 * Types: .success, .warning, .error
 */

/* ==================== Base Toast ==================== */
.v2-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    /* Above v2-vf-overlay (1100) and v2-ct-panel (1101) so the success
       toast surfaces over the visual-feedback modal when a task is
       created from a pin click. */
    z-index: var(--v2-z-toast, 1200);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: var(--v2-font);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
    pointer-events: none;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    max-width: 560px;
    min-width: 360px;
    box-sizing: border-box;
}

.v2-toast.visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

/* ==================== Compact Mode (title only) ==================== */
.v2-toast:not(.v2-toast-detailed) {
    max-width: 440px;
    min-width: 280px;
}

/* ==================== Type Variants ==================== */
.v2-toast.success {
    background: #F6FEF9;
}

.v2-toast.warning {
    background: #FFFCF5;
}

.v2-toast.error {
    background: #FFFBFA;
}

/* ==================== Icon ==================== */
.v2-toast-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== Body (Title + Description) ==================== */
.v2-toast-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.v2-toast-title {
    font-size: 14px;
    font-weight: 600;
    color: #101828;
    line-height: 20px;
    text-align: left;
}

.v2-toast-desc {
    font-size: 14px;
    font-weight: 400;
    color: #667085;
    line-height: 20px;
    display: none;
    text-align: left;
}

.v2-toast-detailed .v2-toast-desc {
    display: block;
}

/* ==================== Inline Action Button (e.g. "Up next ›") ==================== */
.v2-toast-action {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0 4px;
    margin: 0;
    cursor: pointer;
    font-family: var(--v2-font);
    font-size: 13px;
    font-weight: 600;
    color: #DC1759;
    white-space: nowrap;
    transition: opacity 0.15s ease;
    align-self: center;
}

.v2-toast-action:hover {
    opacity: 0.8;
}

/* ==================== Close Button ==================== */
.v2-toast-close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
    align-self: flex-start;
}

.v2-toast-close:hover {
    background: rgba(0, 0, 0, 0.06);
}

/* ------------------------------------------
   Add in common file remove the box in v2 files.
------------------------------------------ */
a:focus {
    outline: none !important;
}