
.jami-transfer-message,
.jami-transfer-window,
.jami-transfer-window *,
.jami-program-message,
.jami-program-message * {
    font-family:
        Arial,
        Helvetica,
        sans-serif !important;

    font-style: normal !important;
    text-transform: none !important;
    letter-spacing: normal;
}

.jami-transfer-title {
    letter-spacing: 0.6px !important;
}

.jami-program-message-title {
    letter-spacing: 0.45px !important;
}

.jami-transfer-message {
    box-sizing: border-box;

    width: 100%;
    max-width: 318px;

    margin-top: 3px;

    color: #111;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 12px;
    line-height: 1;

    image-rendering: pixelated;
}

.jami-transfer-window {
    position: relative;

    box-sizing: border-box;
    overflow: hidden;

    width: 100%;

    border: 1px solid #f7f9fa;
    border-radius: 0;

    background: #e9eef1;

    box-shadow:
        1px 1px 0 #4a4d50;

    color: #111;
}

.jami-transfer-titlebar {
    display: grid;

    grid-template-columns:
        22px
        minmax(0, 1fr)
        22px
        22px;

    align-items: stretch;

    box-sizing: border-box;

    height: 21px;

    margin: 1px 1px 0;

    border: 0;

    background: #252c36;

    color: #f5f5f3;
}

.jami-transfer-title {
    display: flex;

    min-width: 0;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #252c36;

    color: #f5f5f3;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    line-height: 1;

    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;

    text-shadow: none;
}

.jami-transfer-caption-button {
    position: relative;

    display: block;

    box-sizing: border-box;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 0;

    background: #dce6ed;

    box-shadow: none;

    pointer-events: none;
}

.jami-transfer-minimize {
    border-right: 1px solid #6b7075;
}

.jami-transfer-arrow-down,
.jami-transfer-arrow-up {
    border-left: 1px solid #6b7075;
}

.jami-transfer-minimize span {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 11px;
    height: 1px;

    background: #34373a;

    transform:
        translate(
            -50%,
            -50%
        );
}

.jami-transfer-arrow-down span {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 0;
    height: 0;

    border-left:
        4px solid transparent;

    border-right:
        4px solid transparent;

    border-top:
        6px solid #34373a;

    transform:
        translate(
            -50%,
            -42%
        );
}

.jami-transfer-arrow-up span {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 0;
    height: 0;

    border-left:
        4px solid transparent;

    border-right:
        4px solid transparent;

    border-bottom:
        6px solid #34373a;

    transform:
        translate(
            -50%,
            -58%
        );
}

.jami-transfer-body {
    box-sizing: border-box;

    padding:
        9px
        8px
        8px;

    background: #e9eef1;
}

.jami-transfer-progress-frame {
    box-sizing: border-box;

    height: 20px;

    padding:
        2px
        3px;

    border: 1px solid #484b4f;
    border-radius: 0;

    background: #dbe5ec;

    box-shadow:
        inset
        0
        1px
        0
        rgba(
            255,
            255,
            255,
            0.28
        );
}

.jami-transfer-progress {
    position: relative;

    box-sizing: border-box;

    height: 100%;

    overflow: hidden;

    border: 0;
    border-radius: 0;

    background: #d8e3eb;

    box-shadow: none;
}

.jami-transfer-progress-fill {
    width: 0%;
    height: 100%;

    background: #a83238;

    box-shadow: none;

    transition:
        width 90ms linear;
}

.jami-transfer-bottom {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        68px;

    align-items: center;

    column-gap: 8px;

    margin-top: 11px;
}

.jami-transfer-copy {
    min-width: 0;

    padding-left: 7px;
    padding-top: 4px;
}

.jami-transfer-file {
    display: none;
}

.jami-transfer-status {
    display: flex;

    min-width: 0;
    min-height: 15px;

    align-items: center;

    gap: 5px;

    overflow: hidden;

    color: #151515;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 10px;
    line-height: 15px;
    white-space: nowrap;
}

.jami-transfer-status-label {
    flex: none;

    font-weight: 700;
}

.jami-transfer-status
[data-jami-transfer-status] {
    min-width: 0;

    overflow: hidden;

    text-overflow: clip;
    white-space: nowrap;
}

.jami-transfer-cancel {
    box-sizing: border-box;

    width: 70px;
    min-width: 70px;
    height: 22px;

    margin: 0;
    padding: 0 6px;

    border-top: 1px solid #f8fafc;
    border-left: 1px solid #f8fafc;
    border-right: 1px solid #666c72;
    border-bottom: 1px solid #666c72;

    border-radius: 2px;

    background: #dce6ed;

    color: #111;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 10px;
    font-weight: 400;
    line-height: 18px;
    text-align: center;

    box-shadow:
        1px 1px 0 #6a7076;

    cursor: pointer;
}

.jami-transfer-cancel:hover {
    background: #e2eaf0;
}

.jami-transfer-cancel:active {
    transform:
        translate(
            1px,
            1px
        );

    box-shadow: none;
}

.jami-transfer-cancel:disabled {
    color: #757575;

    cursor: default;
    opacity: 1;
}

.jami-transfer-image {
    display: block;

    width: auto;

    max-width:
        min(
            100%,
            318px
        );

    max-height: 360px;

    margin-top: 4px;

    border: 0;

    object-fit: contain;
}

.chatMessage[
    data-image-upload-status="failed"
]
.jami-transfer-progress-fill {
    width: 100% !important;

    background: #70252a;
}

.chatMessage[
    data-image-upload-status="failed"
]
.jami-transfer-cancel {
    display: none;
}


.jami-transfer-completion-host {
    position: relative;

    min-height: 132px;

    overflow: visible;
}

.jami-program-message {
    position: absolute;

    z-index: 3;

    left: 50%;
    top: 50%;

    box-sizing: border-box;

    width:
        min(
            292px,
            calc(100% - 8px)
        );

    overflow: hidden;

    border:
        3px solid
        #252934;

    border-radius: 0;

    background: #e8edef;

    box-shadow:
        inset
        0
        0
        0
        1px
        #f4f6f7,
        2px
        2px
        0
        #34343a;

    color: #111;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

   opacity: 1;

transform:
    translate(
        -50%,
        -50%
    );

transition:
    opacity 180ms ease-out,
    transform 180ms
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}

.jami-program-message:not(
    .jami-program-message-opening
) {
    z-index: 5;
}

.jami-program-message-opening {
    opacity: 0;

    transform:
        translate(
            -50%,
            calc(-50% + 18px)
        );
}

.jami-program-message-closing {
    opacity: 0;

    transform:
        translate(
            -50%,
            calc(-50% - 3px)
        );

    transition:
        opacity 90ms linear,
        transform 90ms ease-in;
}

.jami-program-message-titlebar {
    display: grid;

    grid-template-columns:
        24px
        minmax(0, 1fr);

    align-items: stretch;

    box-sizing: border-box;

    height: 25px;

    margin:
        1px
        1px
        0;

    background: #252b36;

    color: #f5f5f3;
}

.jami-program-message-caption-button {
    position: relative;

    box-sizing: border-box;

    width: 100%;
    height: 100%;

    border-right:
        1px solid
        #60656a;

    background: #dce6ed;
}

.jami-program-message-minimize span {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 11px;
    height: 1px;

    background: #34373a;

    transform:
        translate(
            -50%,
            -50%
        );
}

.jami-program-message-title {
    display: flex;

    min-width: 0;

    align-items: center;
    justify-content: center;

    padding-right: 24px;

    overflow: hidden;

    background: #252b36;

    color: #f5f5f3;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.45px;
    line-height: 1;

    text-align: center;
    white-space: nowrap;

    text-shadow: none;
}


.jami-program-message-body {
    box-sizing: border-box;

    min-height: 101px;

    padding:
        17px
        13px
        9px
        15px;

    background: #e8edef;
}

.jami-program-message-main {
    display: flex;

    min-height: 49px;

    align-items: center;

    gap: 18px;
}

.jami-program-message-icon {
    position: relative;

    box-sizing: border-box;

    width: 37px;
    height: 37px;

    flex: none;

    margin-left: -1px
    0
    0
    1px;

    border:
        1px solid
        #756729;

    border-radius: 50%;

    background: #cdb64a;

    box-shadow: none;
}

.jami-program-message-exclamation {
    position: static;

    display: block;

    width: 100%;
    height: 100%;

    color: transparent;

    font-size: 0;
    line-height: 0;
}

.jami-program-message-exclamation::before {
    position: absolute;

    left: 50%;
    top: 4px;

    width: 7px;
    height: 18px;

    background: #352126;

    content: "";

    transform:
        translateX(
            -50%
        );
}

.jami-program-message-exclamation::after {
    position: absolute;

    left: 50%;
    bottom: 3px;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #352126;

    content: "";

    transform:
        translateX(-50%);
}

.jami-program-message-symbol {
    display: none;
}

.jami-program-message-text {
    min-width: 0;

    padding-top: 2px;

    color: #181518;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2px;
    line-height: 1.1;

    white-space: nowrap;
}

.jami-program-message-actions {
    display: flex;

    justify-content: flex-end;

    margin-top: 11px;

    margin-right: -4px;
}

.jami-program-message-ok {
    box-sizing: border-box;

    width: 50px;
    min-width: 52px;
    height: 21px;

    margin: 0;
    padding: 0 4px;

    border-top:
        1px solid
        #f8fafc;

    border-left:
        1px solid
        #f8fafc;

    border-right:
        1px solid
        #666c72;

    border-bottom:
        1px solid
        #666c72;

    border-radius: 2px;

    background: #dce6ed;

    color: #171417;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;

    box-shadow:
        1px
        1px
        0
        #676d73;

    cursor: pointer;
}

.jami-program-message-ok:hover {
    background: #e2eaf0;
}

.jami-program-message-ok:active {
    transform:
        translate(
            1px,
            1px
        );

    box-shadow: none;
}
