/*
 * FileFish Alerts v2.0.4
 * Compact square FileFish alert styles.
 */

:root {
    --ff-alert-primary: #14786d;
    --ff-alert-primary-hover: #10645b;
    --ff-alert-navy: #163a55;
    --ff-alert-error: #d9534f;
    --ff-alert-warning: #d89b18;
    --ff-alert-text: #243443;
    --ff-alert-muted: #5f6f7d;
    --ff-alert-border: #cfd8de;
    --ff-alert-bg: #ffffff;
    --ff-alert-cancel: #e6e9ec;
    --ff-alert-cancel-hover: #d9dde1;
    --ff-alert-overlay: rgba(11, 24, 33, .46);
}

#filefish-toast-container {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 999999;
    width: min(315px, calc(100vw - 28px));
    display: flex;
    flex-direction: column;
    gap: 7px;
    pointer-events: none;
}

.ff-toast {
    position: relative;
    display: flex;
    align-items: flex-start;
    min-height: 42px;
    padding: 9px 30px 9px 11px;
    background: var(--ff-alert-bg);
    color: var(--ff-alert-text);
    border: 1px solid var(--ff-alert-border);
    border-left: 3px solid var(--ff-alert-primary);
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .14s ease, transform .14s ease;
    pointer-events: auto;
    box-sizing: border-box;
    overflow: hidden;
}

.ff-toast.ff-show {
    opacity: 1;
    transform: translateY(0);
}

.ff-toast-success,
.ff-toast-info {
    border-left-color: var(--ff-alert-primary);
}

.ff-toast-error {
    border-left-color: var(--ff-alert-error);
}

.ff-toast-warning {
    border-left-color: var(--ff-alert-warning);
}

.ff-toast-icon {
    display: none !important;
}

.ff-toast-content {
    flex: 1;
    min-width: 0;
}

.ff-toast-title {
    margin: 0 0 2px;
    color: var(--ff-alert-navy);
    font-size: 12px;
    font-weight: 700;
}

.ff-toast-message {
    color: var(--ff-alert-muted);
    font-size: 11px;
    line-height: 1.35;
    word-break: break-word;
}

.ff-toast-close {
    position: absolute;
    top: 5px;
    right: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #7b8892;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
}

.ff-toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    transform-origin: left center;
    background: var(--ff-alert-primary);
    opacity: .5;
}

.ff-toast-error .ff-toast-progress {
    background: var(--ff-alert-error);
}

.ff-toast-warning .ff-toast-progress {
    background: var(--ff-alert-warning);
}

#filefish-alert-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: var(--ff-alert-overlay);
    box-sizing: border-box;
}

#filefish-alert-modal.ff-open {
    display: flex;
}

.ff-alert-dialog {
    width: min(350px, 100%);
    max-height: calc(100vh - 28px);
    overflow: auto;
    background: var(--ff-alert-bg);
    color: var(--ff-alert-text);
    border: 1px solid #b9c6ce;
    border-radius: 0;
    box-shadow: 0 10px 24px rgba(0,0,0,.20);
    animation: ffAlertIn .12s ease-out;
}

@keyframes ffAlertIn {
    from {
        opacity: 0;
        transform: translateY(-2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ff-alert-body {
    padding: 0;
    text-align: center;
}

.ff-alert-symbol {
    display: none !important;
}

.ff-alert-title {
    margin: 0;
    padding: 9px 12px;
    background: var(--ff-alert-navy);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}

.ff-alert-message {
    max-width: 320px;
    margin: 0 auto;
    padding: 15px 15px 10px;
    color: var(--ff-alert-text);
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
    white-space: pre-line;
    word-break: break-word;
}

.ff-alert-message p {
    margin: 0 0 10px;
}

.ff-alert-message label {
    display: block;
    margin: 8px 0 0;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
}

.ff-alert-message input[type="checkbox"] {
    margin: 0 6px 0 0;
    vertical-align: middle;
}

.ff-alert-input-wrap {
    padding: 0 15px 10px;
}

.ff-alert-input {
    width: 100%;
    height: 28px;
    box-sizing: border-box;
    padding: 4px 7px;
    border: 1px solid #bfcbd2;
    border-radius: 0;
    background: #fff;
    color: var(--ff-alert-text);
    font-size: 11px;
    outline: none;
}

.ff-alert-input:focus {
    border-color: var(--ff-alert-primary);
    box-shadow: 0 0 0 1px rgba(20,120,109,.12);
}

.ff-alert-validation {
    display: none;
    margin: 0 15px 10px;
    padding: 7px 9px;
    border: 1px solid #e1bebe;
    background: #fff4f4;
    color: #a94442;
    font-size: 11px;
    line-height: 1.35;
    text-align: left;
}

.ff-alert-validation.ff-show {
    display: block;
}

.ff-alert-actions {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 2px 14px 14px;
}

.ff-alert-btn {
    min-width: 78px;
    padding: 5px 11px;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

.ff-alert-btn-primary {
    background: var(--ff-alert-primary);
    color: #fff;
    border-color: var(--ff-alert-primary);
}

.ff-alert-btn-primary:hover,
.ff-alert-btn-primary:focus {
    background: var(--ff-alert-primary-hover);
    border-color: var(--ff-alert-primary-hover);
    color: #fff;
    outline: none;
}

.ff-alert-btn-secondary {
    background: var(--ff-alert-cancel);
    color: var(--ff-alert-navy);
    border-color: #cfd5da;
}

.ff-alert-btn-secondary:hover,
.ff-alert-btn-secondary:focus {
    background: var(--ff-alert-cancel-hover);
    border-color: #c3c9ce;
    outline: none;
}

body.ff-alert-open {
    overflow: hidden;
}

@media (max-width: 600px) {

    #filefish-toast-container {
        top: 10px;
        left: 10px;
        right: 10px;
        width: auto;
    }

    #filefish-alert-modal {
        padding: 10px;
    }

    .ff-alert-dialog {
        width: 100%;
    }

    .ff-alert-actions {
        flex-direction: column-reverse;
    }

    .ff-alert-btn {
        width: 100%;
    }
}
