.trav47UnsavedOverlay[hidden] {
    display: none !important;
}

.trav47UnsavedOverlay {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 14px;
    background: rgba(34, 30, 23, 0.42);
    direction: rtl;
}

.trav47UnsavedDialog {
    width: min(310px, calc(100vw - 28px));
    overflow: hidden;
    border: 1px solid #8e7a55;
    border-radius: 9px;
    background: #f7f5eb;
    box-shadow: 0 10px 28px rgba(19, 17, 13, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
    color: #3e4936;
    font-family: Tahoma, Arial, sans-serif;
    text-align: right;
}

.trav47UnsavedDialog > header {
    display: flex;
    align-items: center;
    min-height: 34px;
    box-sizing: border-box;
    padding: 6px 12px;
    border-bottom: 1px solid #9a825b;
    background: linear-gradient(180deg, #a58e69 0%, #786345 100%);
}

.trav47UnsavedDialog h2 {
    margin: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    text-shadow: 0 1px 1px rgba(34, 27, 18, 0.7);
}

.trav47UnsavedDialog p {
    margin: 0;
    padding: 15px 14px 13px;
    color: #46523e;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.65;
    text-align: center;
}

.trav47UnsavedActions {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 12px 12px;
}

.trav47UnsavedActions button {
    min-width: 78px;
    height: 31px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid;
    border-radius: 5px;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.45), 0 1px 2px rgba(38, 32, 22, 0.18);
    font: 700 12px/29px Tahoma, Arial, sans-serif;
    cursor: pointer;
}

.trav47UnsavedReturn {
    border-color: #527a27 !important;
    background: linear-gradient(180deg, #82b84c 0%, #5d8d2f 100%) !important;
    color: #fff !important;
}

.trav47UnsavedLeave {
    border-color: #9a8664 !important;
    background: linear-gradient(180deg, #fffdf5 0%, #e5ddcb 100%) !important;
    color: #594d3d !important;
}

.trav47UnsavedActions button:active {
    transform: translateY(1px);
    filter: brightness(0.96);
}

.trav47UnsavedActions button:focus-visible {
    outline: 2px solid #e9bd4b;
    outline-offset: 2px;
}

html.trav47UnsavedDialogOpen,
html.trav47UnsavedDialogOpen body {
    overscroll-behavior: none;
}
