/* Shared popup surfaces; dialog behavior and the working animation stay intact. */
body.button-theme .ui-dialog,
body.button-theme #popup_container {
    padding: 0;
    border: 1px solid #d8e0e6;
    border-radius: 12px;
    background: #fff;
    color: #263b4b;
    box-shadow: 0 18px 60px rgba(23, 39, 52, .24);
    font-family: inherit;
    font-size: 14px;
}
body.button-theme .ui-dialog .ui-dialog-titlebar,
body.button-theme #popup_title {
    padding: 16px 48px 16px 20px;
    margin: 0;
    border: 0;
    border-bottom: 1px solid #e1e7ec;
    border-radius: 12px 12px 0 0;
    background: #f7f9fb;
    color: #263b4b;
    font-size: 17px;
    font-weight: 600;
    line-height: 24px;
    text-align: left;
    text-shadow: none;
}
body.button-theme .ui-dialog .ui-dialog-title { margin: 0; }
body.button-theme .ui-dialog .ui-dialog-titlebar-close {
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    top: 13px;
    right: 12px;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #526778;
    text-decoration: none;
}
body.button-theme .ui-dialog-titlebar-close .ui-icon { display: none; }
body.button-theme .ui-dialog-titlebar-close::before { content: '\00d7'; display: block; font-size: 24px; line-height: 26px; text-align: center; }
body.button-theme .ui-dialog .ui-dialog-titlebar-close:hover { background: #e8eef3; border-color: #d8e0e6; }
body.button-theme .ui-dialog .ui-dialog-titlebar-close:focus-visible { outline: 3px solid #286b9a; outline-offset: 2px; }
body.button-theme .ui-dialog .ui-dialog-content { padding: 20px; color: #263b4b; }
body.button-theme .ui-dialog .ui-dialog-buttonpane {
    margin: 0;
    padding: 14px 20px;
    border: 0;
    border-top: 1px solid #e1e7ec;
    border-radius: 0 0 12px 12px;
    background: #f7f9fb;
}
body.button-theme .ui-widget-overlay { background: #172734; opacity: .38; filter: alpha(opacity=38); }
body.button-theme #popup_overlay { background: #172734 !important; opacity: .38 !important; }
body.button-theme #CalculationMessage { padding: 24px 20px; text-align: center; }
body.button-theme #CalculationMessage img[src$="working.gif"] { padding: 16px; margin: 4px auto 12px; border: 1px solid #e1e7ec; border-radius: 12px; background: #f7f9fb; }
body.button-theme #CalculationMessage .btn { float: none; width: auto; margin: 8px 4px 0; }
body.button-theme #popup_content { padding: 20px; background: none; border: 0; color: #263b4b; text-shadow: none; }
body.button-theme #popup_message { padding: 0; color: #263b4b; font-size: 14px; line-height: 1.6; }
body.button-theme #popup_panel { display: flex; justify-content: flex-end; gap: 8px; margin: 20px 0 0; }
body.button-theme #popup_panel input { margin: 0; }
body.button-theme #popup_container.Alert #popup_title { background: #fff4f2; color: #982a2a; }
