/* Social proof notification toast — high specificity to override Elementor */

.sp-toast {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9990;
    width: 320px;
    max-width: calc(100vw - 48px);
    pointer-events: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.sp-toast .sp-toast__card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 36px 14px 14px;
    background: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
    pointer-events: auto;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    fill: none;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    margin: 0;
    letter-spacing: normal;
    text-transform: none;
    font-weight: normal;
}

.sp-toast .sp-toast__card:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.08);
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: none;
}

.sp-toast .sp-toast__card:focus,
.sp-toast .sp-toast__card:active,
.sp-toast .sp-toast__card:visited {
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: none;
    outline: none;
}

.sp-toast .sp-toast__card--visible {
    transform: translateY(0);
    opacity: 1;
}

.sp-toast .sp-toast__card--exit {
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.25s ease-in,
                opacity 0.25s ease-in;
}

/* Icon */
.sp-toast .sp-toast__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.sp-toast .sp-toast__icon--new_job_submitted {
    background: #e8f5e9;
}

.sp-toast .sp-toast__icon--customer_review_submitted {
    background: #fff8e1;
}

.sp-toast .sp-toast__icon--bid_accepted {
    background: #e3f2fd;
}

.sp-toast .sp-toast__icon--job_completed {
    background: #f3e5f5;
}

/* Text content */
.sp-toast .sp-toast__body {
    flex: 1;
    min-width: 0;
}

.sp-toast .sp-toast__text {
    font-size: 13px;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: left;
}

.sp-toast .sp-toast__text strong {
    font-weight: 600;
}

.sp-toast .sp-toast__time {
    font-size: 11px;
    color: #888;
    margin-top: -4px;
    display: block;
    text-align: left;
}

/* Close button — extra specificity to beat Elementor button styles */
.sp-toast button.sp-toast__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    min-height: 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #999;
    fill: none;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    padding: 0;
    margin: 0;
    pointer-events: auto;
    transition: background 0.15s, color 0.15s;
    text-transform: none;
    letter-spacing: normal;
    font-weight: normal;
    box-shadow: none;
}

.sp-toast button.sp-toast__close:hover,
.sp-toast button.sp-toast__close:focus-visible {
    background: #f0f0f0;
    color: #555;
    border: none;
    box-shadow: none;
}

.sp-toast button.sp-toast__close:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 1px;
}

/* Mobile adjustments — stay left to avoid chat widget launcher on the right */
@media (max-width: 480px) {
    .sp-toast {
        left: 12px;
        right: auto;
        bottom: 12px;
        width: auto;
        max-width: calc(100vw - 100px);
    }

    .sp-toast button.sp-toast__close {
        width: 28px;
        height: 28px;
        font-size: 18px;
        top: 6px;
        right: 6px;
    }

    .sp-toast .sp-toast__card {
        padding-right: 42px;
    }
}
