.swal2-popup.swal2-toast .swal2-title,
.swal2-popup.swal2-toast .swal2-html-container {
    box-sizing: border-box;
    min-width: 0;
    overflow-wrap: anywhere;
    padding-inline-end: 4.5em !important;
}

.swal2-popup.swal2-toast .swal2-close {
    position: absolute;
    inset-block-start: 0;
    inset-inline-end: 0.25em;
    min-width: 44px;
    min-height: 44px;
    color: #fff !important;
    z-index: 1;
}

.swal2-popup.swal2-toast .swal2-close:hover {
    color: #ff6b6b !important;
}

.swal2-popup.swal2-toast .swal2-close:focus {
    box-shadow: none !important;
}

.swal2-popup.swal2-toast .swal2-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -4px;
}

.swal2-popup:not(.swal2-toast):not(.breakout-swal) .swal2-actions {
    width: calc(100% - 3rem);
    margin: 1.25rem 1.5rem 0;
    padding: 4px;
    gap: 0.625rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
}

.swal2-popup:not(.swal2-toast) .swal2-styled {
    min-width: 44px;
    min-height: 44px;
    max-width: 100%;
    flex: 0 1 auto;
    margin: 0;
    border-radius: var(--radius-md, 12px);
    white-space: normal;
    overflow-wrap: anywhere;
}

.swal2-popup:not(.breakout-swal):not(.lobby-join-popup) .swal2-styled.swal2-confirm:not(.swal-destructive) {
    color: var(--swal-confirm-ink, #fff) !important;
    --swal-button-hover: var(--swal-confirm-hover, rgba(0, 0, 0, 0.1));
}

.swal2-popup:not(.breakout-swal):not(.lobby-join-popup) .swal2-styled.swal2-cancel:not(.swal-destructive),
.swal2-popup:not(.breakout-swal):not(.lobby-join-popup) .swal2-styled.swal2-deny:not(.swal-destructive) {
    color: var(--swal-neutral-ink, #fff) !important;
    --swal-button-hover: var(--swal-neutral-hover, rgba(0, 0, 0, 0.1));
}

.swal2-popup .swal2-actions .swal2-styled.swal-destructive {
    background: #b42332 !important;
    color: #fff !important;
    --swal-button-hover: rgba(0, 0, 0, 0.1);
}

.swal2-popup.mirotalk-leave-feedback-popup .swal2-styled {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
}

.swal2-popup.mirotalk-leave-feedback-popup .swal2-actions {
    flex-direction: column;
    align-items: stretch;
}

.swal2-popup.mirotalk-leave-feedback-popup .swal2-actions .swal2-styled {
    width: 100%;
    max-width: 100%;
}

.swal2-popup:not(.breakout-swal):not(.lobby-join-popup) .swal2-actions .swal2-styled:not([disabled]):hover,
.swal2-popup:not(.breakout-swal):not(.lobby-join-popup) .swal2-actions .swal2-styled:not([disabled]):active {
    background-image: linear-gradient(var(--swal-button-hover), var(--swal-button-hover)) !important;
}

.swal2-popup .swal2-styled:focus {
    box-shadow: none !important;
}

.swal2-popup .swal2-actions .swal2-styled:focus-visible {
    outline: 2px solid var(--swal-focus-ink, #fff) !important;
    outline-offset: 2px;
}

/* Host hand-over popup (leave the meeting) */
.host-handover-text {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
    font-size: 0.98rem;
}

.host-handover-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: start;
}

.host-handover-label {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.host-handover-selectwrap {
    position: relative;
}

.host-handover-select {
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    padding: 0.72rem 2.5rem 0.72rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-md, 12px);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    line-height: 1.3;
    cursor: pointer;
    color-scheme: dark;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease;
}

.host-handover-select:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.13);
}

.host-handover-select:focus-visible {
    outline: 2px solid var(--swal-focus-ink, #fff);
    outline-offset: 2px;
}

.host-handover-select option {
    background: #1c1c1c;
    color: #fff;
}

.host-handover-chevron {
    position: absolute;
    top: 50%;
    right: 1.1rem;
    width: 0.5rem;
    height: 0.5rem;
    border-right: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

[dir='rtl'] .host-handover-chevron {
    right: auto;
    left: 1.1rem;
}

@media (max-width: 480px) {
    .swal2-popup:not(.swal2-toast):not(.breakout-swal) .swal2-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .swal2-popup:not(.swal2-toast) .swal2-styled {
        width: 100%;
    }
}
