/*livetimer*/
.livetimer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85); /* sötét háttér */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.livetimer-modal-content {
  background-color: #242526;
  padding: 24px;
  border-radius: 10px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

.livetimer-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  transition: color 0.2s ease;
}

.livetimer-modal-content h2 {
  margin-bottom: 16px;
  font-size: 20px;
  color: white;
}

.livetimer-modal-content input[type="datetime-local"] {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.livetimer-modal-content button {
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.livetimer-modal-content button:first-of-type {
  background-color: #ddd;
  color: #333;
}

.livetimer-modal-content button:last-of-type {
  background-color: #2678e8; /* kért gombszín */
  color: white;
}

.livetimer-modal-content button:hover {
  opacity: 0.9;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/*livetimer*/
/*viewers modal*/
.viewer-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.viewer-modal {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    color: white;
}

.viewer-list {
    margin-top: 10px;
}

.viewer-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.viewer-name {
    flex: 1;
}

.viewer-avatar {
    width: 40px;
    height: 40px;
}

.viewer-close-button {
    margin-top: 20px;
    padding: 8px 16px;
    background: #6c63ff;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.viewer-close-button:hover {
    background: #5851d6;
}

/*viewers modal*/

.live-modal {
    position: fixed;
    z-index: 11;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.live-modal-content {
    background-color: #fefefe;
    margin: 0 auto;
    margin-top: 90px;
    width: 90%;
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 115px);
}

.live-close {
    color: #aaaaaa;
    font-size: 51px;
    font-weight: bold;
    right: -58px;
    top: -23px;
    position: absolute;
}

.live-close:hover,
.live-close:focus {
    text-decoration: none;
    cursor: pointer;
}

.stream-and-chat {
    display: flex;
    height: 100%;
}

.video-container {
    flex: 1;
    /* kitölti a maradék helyet */
    object-fit: cover;
    /* vagy contain, ha inkább kilógás nélkül akarod */
    display: block;
}

.chat-container {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ccc;
}

.donation-text-container {
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

@media screen and (min-width:992px) {
    .chat-container {
        width: 385px;
    }

    .video-container {
        width: 400px !important;
    }
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.chat-message {
    margin-bottom: 5px;
    padding: 5px;
    background: #f1f1f1;
    border-radius: 5px;
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ccc;
    flex-direction: column;
}

.chat-input input {
    flex: 1;
    padding: 8px;
    margin-right: 5px;
}

.chat-input button {
    padding: 8px 12px;
    margin-left: 5px;
}

video {
    width: 100%;
    display: block;
    max-height: unset !important;
}

.chat-widget-form {
    position: unset !important;
}

.chat-widget-form {
    border-top-left-radius: unset;
    border-top-right-radius: unset;
}

@media screen and (max-width:991px) {
    .stream-and-chat {
        flex-direction: column;
    }

    .video-container {
        width: unset;
        height: 300px;
    }

    .chat-container {
        height: 300px;
    }
}

/* Redesigned livestream studio */
.fo-live-studio-backdrop {
    z-index: 10010;
    display: grid;
    padding: 22px;
    place-items: center;
    overflow: hidden;
    background: rgba(16, 18, 32, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.fo-live-studio {
    width: min(1480px, 100%);
    height: min(860px, calc(100vh - 44px));
    margin: 0;
    overflow: hidden;
    border: 1px solid #dedee7;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 32px 90px rgba(10, 13, 31, 0.34);
    font-family: Poppins, sans-serif;
    animation: fo-live-studio-in 0.22s ease-out;
}

.fo-live-studio-header {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 18px 13px 20px;
    border-bottom: 1px solid #ececf2;
    background: #fff;
}

.fo-live-studio-heading,
.fo-live-studio-header-actions {
    display: flex;
    align-items: center;
}

.fo-live-studio-heading {
    min-width: 0;
    gap: 13px;
}

.fo-live-studio-header-actions {
    gap: 12px;
}

.fo-live-studio-logo {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #dedee7;
    border-radius: 15px;
    background: #f8f8fb;
    color: #ff5471;
}

.fo-live-studio-logo svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fo-live-studio-kicker,
.fo-live-chat-header span:first-child {
    display: block;
    margin-bottom: 2px;
    color: #ff4f70;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .09em;
    line-height: 1.2;
    text-transform: uppercase;
}

.fo-live-studio-header h2,
.fo-live-chat-header h3 {
    margin: 0;
    color: #202a4f;
    font-family: Poppins, sans-serif;
    font-weight: 700;
}

.fo-live-studio-header h2 {
    font-size: 19px;
    line-height: 1.25;
}

.fo-live-studio-status,
.fo-live-stage-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    background: #fff0f3;
    color: #ff4f70;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.fo-live-studio-status {
    height: 34px;
    padding: 0 13px;
}

.fo-live-studio-status i,
.fo-live-stage-badge i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ff4f70;
    box-shadow: 0 0 0 4px rgba(255, 79, 112, .12);
    animation: fo-live-status-pulse 1.8s ease-in-out infinite;
}

.fo-live-studio .live-close {
    position: static;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6a38, #ff4f78);
    box-shadow: 0 10px 22px rgba(255, 79, 112, .24);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease;
}

.fo-live-studio .live-close:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 13px 27px rgba(255, 79, 112, .32);
}

.fo-live-studio-layout {
    min-height: 0;
    flex: 1;
    background: #111522;
}

.fo-live-stage {
    position: relative;
    display: grid;
    min-width: 0;
    flex: 1;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 35%, rgba(62, 70, 104, .42), transparent 44%),
        #111522;
}

.fo-live-stage::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 25%;
    background: linear-gradient(transparent, rgba(5, 7, 14, .32));
    content: "";
    pointer-events: none;
}

.fo-live-stage .video-container {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain;
    background: transparent;
}

.fo-live-stage-controls {
    position: absolute;
    z-index: 3;
    top: 18px;
    right: 18px;
    left: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}

.fo-live-stage-badge,
.fo-live-viewers-button {
    height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(18, 22, 36, .72);
    box-shadow: 0 9px 24px rgba(0, 0, 0, .18);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.fo-live-stage-badge {
    border-radius: 999px;
}

.fo-live-viewers-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    pointer-events: auto;
    transition: background .16s ease, transform .16s ease;
}

.fo-live-donate-button {
    display: inline-flex;
    height: 38px;
    align-items: center;
    gap: 8px;
    padding: 0 15px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(100deg, #ff6939, #ff4f78);
    box-shadow: 0 10px 24px rgba(255, 79, 112, .28);
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    pointer-events: auto;
    transition: transform .16s ease, box-shadow .16s ease;
}

.fo-live-donate-button span {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

.fo-live-donate-button:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(255, 79, 112, .34);
}

.fo-live-viewers-button:hover {
    background: rgba(35, 40, 60, .9);
    transform: translateY(-1px);
}

.fo-live-viewers-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.fo-live-camera-state {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    flex-direction: column;
    color: #fff;
    text-align: center;
}

.fo-live-camera-state strong {
    margin-top: 18px;
    font-size: 15px;
    font-weight: 600;
}

.fo-live-camera-state p {
    margin-top: 7px;
    color: #9ba3bd;
    font-size: 11px;
}

.fo-live-camera-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(255, 255, 255, .16);
    border-top-color: #ff5471;
    border-radius: 50%;
    animation: fo-live-spin .8s linear infinite;
}

.fo-live-chat {
    display: flex;
    width: 390px;
    min-width: 340px;
    height: auto;
    min-height: 0;
    flex-direction: column;
    border-left: 0;
    background: #f8f8fb;
}

.fo-live-chat-header {
    display: flex;
    min-height: 68px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    padding: 13px 17px;
    border-bottom: 1px solid #e5e6ed;
    background: #fff;
}

.fo-live-chat-header h3 {
    font-size: 15px;
}

.fo-live-chat-count {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #fff0f3;
    color: #ff4f70;
    font-size: 10px;
    font-weight: 700;
}

.fo-live-chat .chat-messages {
    min-height: 0;
    padding: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #f8f8fb;
    scrollbar-color: #c8cada transparent;
    scrollbar-width: thin;
}

.fo-live-chat .chat-messages::-webkit-scrollbar {
    width: 7px;
}

.fo-live-chat .chat-messages::-webkit-scrollbar-thumb {
    border: 2px solid #f8f8fb;
    border-radius: 999px;
    background: #c8cada;
}

.fo-live-chat-empty {
    display: flex;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 24px;
    color: #202a4f;
    text-align: center;
}

.fo-live-chat-empty > div {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 13px;
    place-items: center;
    border: 1px solid #dedee7;
    border-radius: 16px;
    background: #fff;
    color: #ff5471;
}

.fo-live-chat-empty svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fo-live-chat-empty strong {
    font-size: 13px;
    font-weight: 600;
}

.fo-live-chat-empty p {
    max-width: 230px;
    margin-top: 5px;
    color: #969cb5;
    font-size: 10px;
    line-height: 1.55;
}

.fo-live-chat .chat-widget-speaker {
    position: relative;
    width: fit-content;
    max-width: 82%;
    margin-bottom: 14px;
}

.fo-live-chat .chat-widget-speaker.right {
    margin-left: auto;
}

.fo-live-chat .chat-widget-speaker.left {
    padding-left: 38px;
}

.fo-live-chat .chat-widget-speaker-message {
    margin: 0;
    padding: 10px 13px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(32, 42, 79, .06);
    color: #202a4f;
    font-size: 11px;
    line-height: 1.5;
}

.fo-live-chat .chat-widget-speaker.right .chat-widget-speaker-message {
    border-bottom-right-radius: 5px;
    background: linear-gradient(135deg, #ff6939, #ff4f78);
    color: #fff;
}

.fo-live-chat.chat-container .chat-messages.chat-widget-conversation .chat-widget-speaker.left .chat-widget-speaker-message {
    border: 1px solid #e5e6ee;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    background: #fff;
    color: #202a4f;
    box-shadow: 0 5px 15px rgba(32, 42, 79, .06);
}

.fo-live-chat .chat-widget-speaker-avatar {
    position: absolute;
    top: 18px;
    left: 0;
    width: 29px;
    height: 29px;
}

.fo-live-message-sender {
    margin: 0 0 4px 2px;
    color: #7c849f;
    font-size: 9px;
    font-weight: 600;
}

.fo-live-chat .donation-text-container {
    margin: 8px 0 14px;
    padding: 10px 12px;
    border: 1px solid #ffd9a8;
    border-radius: 12px;
    background: #fff9ed;
    color: #ad6c10;
    font-size: 11px;
    font-weight: 600;
}

.fo-live-chat .chat-widget-form {
    position: relative !important;
    flex: 0 0 auto;
    padding: 13px 14px 14px;
    border-top: 1px solid #e5e6ed;
    background: #fff;
}

.fo-live-chat .form-row.split {
    display: flex;
    align-items: flex-end;
    gap: 9px;
}

.fo-live-chat .form-row.split .form-item {
    width: auto !important;
    margin: 0 !important;
}

.fo-live-chat .form-item.mess {
    min-width: 0;
    flex: 1;
}

.fo-live-chat .chat-widget-send-message-box {
    position: relative;
    min-height: 48px;
    padding: 0 75px 0 13px;
    border: 1px solid #d8d9e2;
    border-radius: 14px;
    background: #f8f8fb;
}

.fo-live-chat .chat-widget-send-message-textarea textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    max-height: 100px;
    padding: 14px 0 10px;
    resize: none;
    background: transparent;
    color: #202a4f;
    font-family: Poppins, sans-serif;
    font-size: 11px;
    line-height: 1.5;
}

.fo-live-chat .chat-widget-send-message-textarea {
    position: static;
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
}

.fo-live-chat .chat-widget-send-message-textarea textarea::placeholder {
    color: #8f96ad;
    font-size: 11px !important;
    font-weight: 400 !important;
    opacity: 1;
}

.fo-live-chat .interactive-input-icon-wrap {
    position: absolute;
    top: 0;
    right: 9px;
    display: flex;
    height: 46px;
    align-items: center;
    gap: 7px;
}

.fo-live-chat .emoji-btn,
.fo-live-chat .tooltip-wrap {
    display: grid;
    width: 24px;
    height: 30px;
    place-items: center;
    cursor: pointer;
}

.fo-live-chat .interactive-input-icon-wrap.actionable > div {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: flex;
    width: 26px;
    height: 32px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 8px;
    transform: none !important;
}

.fo-live-chat .interactive-input-icon-wrap.actionable > div:hover {
    background: rgba(255, 79, 112, .09);
}

.fo-live-chat .emoji-btn img {
    display: block;
    width: 19px !important;
    height: 19px;
    margin: 0 !important;
}

.fo-live-chat .interactive-input-icon {
    display: block;
    position: static;
    width: 18px;
    height: 18px;
    margin: 0 !important;
    fill: #9ca2b8;
}

.fo-live-chat .interactive-input-action {
    display: none;
}

.fo-live-chat .form-item.auto-width {
    width: 48px;
    flex: 0 0 48px;
}

.fo-live-chat .message-send {
    display: grid;
    width: 48px;
    height: 48px;
    min-width: 48px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6939, #ff4f78);
    box-shadow: 0 9px 20px rgba(255, 79, 112, .22);
    cursor: pointer;
}

.fo-live-chat .message-send .button-icon {
    width: 19px;
    height: 19px;
    margin: 0;
    fill: #fff;
}

.fo-live-chat .emoji-picker-div {
    z-index: 8;
    top: auto !important;
    right: 8px !important;
    bottom: 66px;
    left: auto;
    float: none;
}

.fo-live-chat .emoji-picker-div .EmojiPickerReact {
    --epr-highlight-color: #ff4f78;
    --epr-bg-color: #fff;
    --epr-text-color: #202a4f;
    --epr-picker-border-color: #dedee7;
    --epr-search-input-bg-color: #f8f8fb;
    --epr-search-input-bg-color-active: #f8f8fb;
    --epr-search-input-text-color: #202a4f;
    --epr-search-input-placeholder-color: #8f96ad;
    --epr-category-label-bg-color: #fff;
    --epr-category-label-text-color: #202a4f;
    --epr-preview-border-color: #e7e7ee;
    --epr-preview-text-color: #202a4f;
    --epr-hover-bg-color: rgba(255, 79, 120, .1);
    --epr-focus-bg-color: rgba(255, 79, 120, .14);
    --epr-category-icon-active-color: #ff4f78;
    overflow: hidden;
    border: 1px solid #dedee7 !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 20px 48px rgba(26, 32, 53, .2);
}

.fo-live-chat .emoji-picker-div .EmojiPickerReact *,
.fo-live-chat .emoji-picker-div .EmojiPickerReact input {
    font-family: Poppins, sans-serif !important;
}

.fo-live-chat .emoji-picker-div .EmojiPickerReact .epr-search {
    border-color: #dedee7 !important;
    background: #f8f8fb !important;
    color: #202a4f !important;
}

.fo-live-chat .emoji-picker-div .EmojiPickerReact .epr-body {
    scrollbar-color: rgba(116, 123, 151, .4) transparent;
    scrollbar-width: thin;
}

.fo-live-chat .emoji-picker-div .EmojiPickerReact .epr-body::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}

.fo-live-chat .emoji-picker-div .EmojiPickerReact .epr-body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(116, 123, 151, .4);
    box-shadow: none;
}

.fo-dashboard--dark .fo-live-chat .emoji-picker-div .EmojiPickerReact {
    --epr-bg-color: #202337;
    --epr-text-color: #f5f6fc;
    --epr-picker-border-color: #3a3f59;
    --epr-search-input-bg-color: #292d43;
    --epr-search-input-bg-color-active: #292d43;
    --epr-search-input-text-color: #f5f6fc;
    --epr-search-input-placeholder-color: #aeb4ca;
    --epr-category-label-bg-color: #202337;
    --epr-category-label-text-color: #f5f6fc;
    --epr-preview-border-color: #353a52;
    --epr-preview-text-color: #f5f6fc;
    border-color: #3a3f59 !important;
    background: #202337 !important;
}

.fo-dashboard--dark .fo-live-chat .emoji-picker-div .EmojiPickerReact .epr-search {
    border-color: #3a3f59 !important;
    background: #292d43 !important;
    color: #f5f6fc !important;
}

.fo-live-chat .fo-live-upload-preview {
    width: 100%;
    max-width: 100%;
    padding-top: 8px;
    overflow: hidden;
}

.fo-live-chat .fo-live-upload-preview .upload-pictures-list {
    display: flex !important;
    width: 100%;
    max-width: 100%;
    gap: 9px;
    margin: 0 !important;
    padding: 9px 5px 11px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    scrollbar-color: rgba(116, 123, 151, .45) transparent;
    scrollbar-width: thin;
}

.fo-live-chat .fo-live-upload-preview .upload-pictures-list::-webkit-scrollbar {
    height: 6px;
    background: transparent;
}

.fo-live-chat .fo-live-upload-preview .upload-pictures-list::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(116, 123, 151, .1);
}

.fo-live-chat .fo-live-upload-preview .upload-pictures-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(116, 123, 151, .45);
    box-shadow: none;
}

.fo-live-chat .fo-live-upload-preview .picture-upload-box {
    position: relative;
    width: 82px !important;
    min-width: 82px;
    flex: 0 0 82px;
    margin: 0 !important;
    padding: 0 !important;
}

.fo-live-chat .fo-live-upload-preview .picture-upload-image.message {
    width: 82px !important;
    height: 82px !important;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid #dedee7 !important;
    border-radius: 13px !important;
    background: #f8f8fb !important;
    box-shadow: 0 6px 14px rgba(26, 32, 53, .07);
}

.fo-live-chat .fo-live-upload-preview .picture-upload-image.message img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
}

.fo-live-chat .fo-live-upload-preview .popup-close-button {
    position: absolute !important;
    z-index: 3;
    top: -5px !important;
    right: -5px !important;
    display: grid !important;
    width: 27px !important;
    height: 27px !important;
    padding: 0 !important;
    place-items: center;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #ff6939, #ff4f78) !important;
    box-shadow: 0 6px 14px rgba(255, 79, 112, .26) !important;
    cursor: pointer;
}

.fo-live-chat .fo-live-upload-preview .popup-close-button svg {
    width: 10px !important;
    height: 10px !important;
    margin: 0 !important;
    fill: #fff !important;
}

.fo-dashboard--dark .fo-live-chat .fo-live-upload-preview .picture-upload-image.message {
    border-color: #3a3f59 !important;
    background: #292d43 !important;
}

.fo-dashboard--dark .fo-live-chat .fo-live-upload-preview .popup-close-button {
    border-color: #202337 !important;
}

/* Current viewers dialog */
.viewer-modal-backdrop {
    z-index: 10040;
    padding: 18px;
    background: rgba(16, 18, 32, .78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.viewer-modal {
    width: min(440px, 100%);
    max-height: min(620px, calc(100vh - 36px));
    padding: 0;
    overflow: hidden;
    border: 1px solid #dedee7;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 75px rgba(10, 13, 31, .3);
    color: #202a4f;
    font-family: Poppins, sans-serif;
}

.viewer-modal-header {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid #ececf2;
}

.viewer-modal-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid #dedee7;
    border-radius: 15px;
    background: #f8f8fb;
    color: #ff5471;
}

.viewer-modal-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.viewer-modal-header span:not(.viewer-online-dot) {
    display: block;
    color: #ff4f70;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.viewer-modal-header h2 {
    margin: 2px 0 0;
    color: #202a4f;
    font-size: 18px;
    font-weight: 700;
}

.viewer-modal-x {
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6939, #ff4f78);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 23px;
    cursor: pointer;
}

.viewer-list {
    max-height: 390px;
    margin: 0;
    padding: 12px 18px;
    overflow-y: auto;
    scrollbar-color: #c8cada transparent;
    scrollbar-width: thin;
}

.viewer-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 8px;
    align-items: center;
    gap: 11px;
    min-height: 58px;
    margin: 0;
    border-bottom: 1px solid #eff0f4;
}

.viewer-item:last-child {
    border-bottom: 0;
}

.viewer-avatar {
    width: 38px;
    height: 38px;
}

.viewer-name {
    min-width: 0;
    overflow: hidden;
    color: #202a4f;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.viewer-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #27c76f;
    box-shadow: 0 0 0 4px rgba(39, 199, 111, .12);
}

.viewer-list-empty {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #969cb5;
    text-align: center;
}

.viewer-list-empty span {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 11px;
    place-items: center;
    border-radius: 50%;
    background: #fff0f3;
    color: #ff4f70;
    font-size: 15px;
    font-weight: 700;
}

.viewer-list-empty p {
    font-size: 11px;
}

.viewer-close-button {
    width: calc(100% - 36px);
    height: 44px;
    margin: 0 18px 18px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(100deg, #ff6939, #ff4f78);
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 600;
}

.viewer-close-button:hover {
    background: linear-gradient(100deg, #ff6939, #ff4f78);
    transform: translateY(-1px);
}

.fo-dashboard--dark .fo-live-studio,
.fo-dashboard--dark .fo-live-studio-header,
.fo-dashboard--dark .fo-live-chat-header,
.fo-dashboard--dark .fo-live-chat .chat-widget-form,
.fo-dashboard--dark .viewer-modal {
    border-color: #353a52;
    background: #202337;
}

.fo-dashboard--dark .fo-live-studio-header h2,
.fo-dashboard--dark .fo-live-chat-header h3,
.fo-dashboard--dark .fo-live-chat-empty,
.fo-dashboard--dark .viewer-modal-header h2,
.fo-dashboard--dark .viewer-name {
    color: #f5f6fc;
}

.fo-dashboard--dark .fo-live-studio-logo,
.fo-dashboard--dark .fo-live-chat-empty > div,
.fo-dashboard--dark .viewer-modal-icon {
    border-color: #3a3f59;
    background: #292d43;
}

.fo-dashboard--dark .fo-live-chat,
.fo-dashboard--dark .fo-live-chat .chat-messages {
    background: #1b1e30;
}

.fo-dashboard--dark .fo-live-chat-header,
.fo-dashboard--dark .fo-live-chat .chat-widget-form,
.fo-dashboard--dark .viewer-modal-header,
.fo-dashboard--dark .viewer-item {
    border-color: #353a52;
}

.fo-dashboard--dark .fo-live-chat .chat-widget-speaker-message,
.fo-dashboard--dark .fo-live-chat .chat-widget-send-message-box {
    border-color: #3a3f59;
    background: #292d43;
    color: #f5f6fc;
}

.fo-dashboard--dark .fo-live-chat .chat-widget-speaker.right .chat-widget-speaker-message {
    background: linear-gradient(135deg, #ff6939, #ff4f78);
}

.fo-dashboard--dark .fo-live-chat.chat-container .chat-messages.chat-widget-conversation .chat-widget-speaker.left .chat-widget-speaker-message {
    border-color: #3a3f59;
    background: #292d43;
    color: #f5f6fc;
}

.fo-dashboard--dark .fo-live-chat .chat-widget-send-message-textarea textarea {
    color: #f5f6fc;
}

@keyframes fo-live-studio-in {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fo-live-spin {
    to { transform: rotate(360deg); }
}

@keyframes fo-live-status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

@media screen and (max-width: 900px) {
    .fo-live-studio-backdrop {
        padding: 12px;
    }

    .fo-live-studio {
        height: calc(100vh - 24px);
        border-radius: 21px;
    }

    .fo-live-studio-layout {
        flex-direction: column;
    }

    .fo-live-stage {
        min-height: 42%;
        flex: 1 1 52%;
    }

    .fo-live-chat {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 310px;
        flex: 1 1 48%;
        border-top: 1px solid #e5e6ed;
    }

    .fo-live-chat-header {
        min-height: 56px;
        padding: 9px 14px;
    }

    .fo-live-chat .chat-messages {
        padding: 12px 14px;
    }
}

@media screen and (max-width: 560px) {
    .fo-live-studio-backdrop {
        padding: 0;
    }

    .fo-live-studio {
        width: 100%;
        height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .fo-live-studio-header {
        min-height: 64px;
        padding: 9px 12px;
    }

    .fo-live-studio-logo {
        width: 40px;
        height: 40px;
    }

    .fo-live-studio-header h2 {
        font-size: 16px;
    }

    .fo-live-studio-status {
        display: none;
    }

    .fo-live-studio .live-close {
        width: 40px;
        height: 40px;
    }

    .fo-live-stage-controls {
        top: 12px;
        right: 12px;
        left: 12px;
    }

    .fo-live-stage-badge,
    .fo-live-viewers-button,
    .fo-live-donate-button {
        height: 34px;
        padding: 0 11px;
        font-size: 9px;
    }

    .fo-live-chat {
        min-height: 330px;
    }

    .fo-live-chat-header {
        display: none;
    }

    .fo-live-chat .chat-widget-form {
        padding: 9px 10px 11px;
    }
}
