/* Dialog */
.streaming__dialog-overlay {
    position: fixed;
    z-index: 70;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 0 20px;
    box-sizing: border-box;
    overflow: auto;
}

.streaming__dialog {
    background: #F0F7FD;
    color: #0659A9;
    display: flex;
    gap: 15px;
    flex-direction: column;
    padding: 25px 20px;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    min-width: 300px;
    min-height: min-content;
    box-sizing: border-box;
    position: relative;
    padding-top: 14px;
}

.streaming__dialog--confirm {
    min-width: min(425px, 95%);
}

.streaming__dialog--prompt {
    min-width: min(425px, 95%);
}

.streaming__dialog-title {
    font-weight: 600;
    text-align: center;
    font-size: 16px;
    line-height: 1.2;
}

.streaming__dialog-content {
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    font-weight: 500;
}

.streaming__dialog-btns {
    display: flex;
    gap: 10px;
}

.streaming__dialog-btns--alert {
    justify-content: center;
}

.streaming__dialog-btns--confirm {
    justify-content: center;
}

.streaming__dialog-btns--choice {
    flex-direction: column;
}

.streaming__dialog-btn {
    background: #0659A9;
    border: none;
    color: #fff;
    padding: 0 10px;
    border-radius: 4px;
    line-height: 37px;
    text-align: center;
    cursor: pointer;
}

.streaming__dialog-btns--alert .streaming__dialog-btn {
    min-width: 130px;
}

.streaming__dialog-btns--confirm .streaming__dialog-btn {
    flex: 1;
}

.streaming__dialog-btns--prompt .streaming__dialog-btn {
    min-width: 77px;
}

.streaming__dialog-btns--prompt .streaming__dialog-input {
    flex: 1;
    border: 1px solid #8D8D8D;
    background: #fff;
    border-radius: 4px;
}

.streaming__dialog-btns--confirm .streaming__dialog-btn--no {
    border: 1px solid #0659A9;
    background: none;
    color: #0659A9;
}

.streaming__dialog--close-btn {
    position: absolute;
    top: 0;
    right: 0;
    background: url('../x-circle.svg');
    background-size: cover;
    width: 30px;
    height: 30px;
    transform: translate(50%, -50%);
    border: none;
}

.streaming__dialog-btns--choice .streaming__dialog-btn {
    background: #229CEC;
}
/* File dialog */
.streaming__dialog--file {
    padding: 20px;
    font-size: 1.14em;
    min-width: 0;
    width: min(373px, 90vw);
}
.streaming__dialog--virtual-gift-send {
    width: min(430px, 90vw);
}

.streaming__file-dialog__step--choice {
    display: flex;
    gap: 1em;
    align-items: center;
    flex-direction: column;
}

.streaming__file-dialog__choice-title {
    font-weight: 600;
    line-height: 1.4;
}

.streaming__file-dialog__choice-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    align-self: stretch;
}

.streaming__file-dialog__choice-button {
    border: 1px solid currentColor;
    border-radius: 4px;
    padding: 0.5em;
    font-size: 0.875em;
    display: flex;
    align-items: center;
    font-weight: 500;
    justify-content: center;
    gap: 1ex;
    position: relative;
}
.streaming__file-dialog__choice-input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.streaming__file-dialog__picture-block {
    position: relative;
    padding-top: 100%;
    border-radius: 4px;
    overflow: hidden;
}
.streaming__file-dialog__picture-btns {
    position: absolute;
    inset: auto 0 10px 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 3ex;
}

.streaming__file-dialog__picture-img, .streaming__file-dialog__selfie-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #434343;
}

.streaming__file-dialog--vg .streaming__file-dialog__picture-img {
    background-color: transparent;
}

.streaming__file-dialog__selfie-video--selfie-taken {
    animation: 0.5s flash;
}

.streaming__file-dialog__step--pre-send {
    display: grid;
    gap: 0.75em;
}

.streaming__file-dialog__gallery-title {
    font-weight: 600;
    text-align: center;
}

.streaming__file-dialog__gallery-subtitle {
    text-align: center;
}

.streaming__file-dialog__picture-btn {
    background-color: #D9D9D9;
    font-size: 0.875em;
    font-weight: 600;
    border-radius: 4px;
    line-height: 2;
    padding: 0 1.5ex;
    box-shadow: 0 0 10px #000;
    position: relative;
}

.streaming__file-dialog__submit {
    background-color: #0659A9;
    color: #fff;
    appearance: none;
    border: none;
    border-radius: 4px;
    padding: 0.75em;
    font-weight: 600;
    overflow: hidden;
    background-image: linear-gradient(to right, #074989);
    background-size: 0% 100%;
    background-repeat: no-repeat;
}
.streaming__file-dialog__price {
    color: #838484;
    font-size: 0.9em;
    text-align: center;
}
/* File dialog */
.streaming__file-dialog__input {
    width: 100%;
    box-sizing: border-box;
    border: none;
    border-radius: 4px;
    padding: 0 1ex;
    line-height: 2.5;
}
.streaming__file-dialog--vg .streaming__file-dialog__gallery-subtitle {
    color: #848484;
    font-size: 0.875em;
}
.streaming__file-dialog__animated-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 17.5%;
    height: 17.5%;
    background: url(../play-circle.svg) no-repeat center;
    background-size: contain;
    z-index: 1;
    filter: drop-shadow(0 0 4px rgba(255, 149, 0, 1));
}
.streaming__file-dialog__play-btn {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
    border-radius: 16px;
    background: #fff;
    color: #2A6CBF;
    border: 2px solid currentColor;
    line-height: 2.2;
    padding: 0 20px;
    min-width: 120px;
    font-size: 1.25em;
    z-index: 1;
}
.streaming__file-dialog__picture-img--hidden {
    opacity: 0;
}
/* Preview */
.chat-virtual-gift-preview {
    position: fixed;
    inset: 0;
    z-index: 8000;
    background-color: rgba(0,0,0,0.25);
    display: grid;
    align-items: center;
    justify-content: center;
}
.chat-virtual-gift-preview--loading {
    background-image: url(../../../i/spinners/spinner-1s-84px.svg);
    background-position: center center;
    background-size: 42px;
    background-repeat: no-repeat;
}
.chat-virtual-gift-preview__video {
    width: auto;
    height: auto;
    max-height: 100dvh;
    background: transparent;
}
.streaming__file-dialog--vg .streaming__file-dialog__picture-block {
    overflow: visible;
}
.streaming__file-dialog__message {
    margin-top: 0.5em;
}
