/* Give the external cashier the available space without scaling or reloading it. */
.ri-popup.dujiaopay-popup { overflow: hidden; }
.ri-popup.dujiaopay-popup .ri-popup-body {
    flex-shrink: 0;
    max-width: calc(100vw - 24px);
    height: calc(100vh - 24px);
    height: min(920px, calc(100dvh - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 0;
    transform: none;
    transition: opacity .15s ease;
}
.ri-popup.dujiaopay-popup .ri-popup-content {
    height: 100%;
    padding: 0;
    color: #263238;
    background: #fff;
}
.dujiaopay-cashier {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
}
.dujiaopay-heading {
    position: relative;
    flex-shrink: 0;
    padding: 12px 88px 12px 20px;
    border-bottom: 1px solid #e9edf1;
    cursor: move;
    touch-action: none;
    user-select: none;
}
.dujiaopay-heading strong {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 17px;
}
.dujiaopay-heading strong span { flex-shrink: 0; color: #1677ff; }
.dujiaopay-heading p { margin: 6px 0 0; color: #667085; font-size: 13px; }
.dujiaopay-frame {
    display: block;
    flex: 1 1 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-height: none;
    border: 0;
    background: #fff;
}
.dujiaopay-help {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 44px 10px 20px;
    border-top: 1px solid #e9edf1;
    font-size: 12px;
    color: #667085;
}
.dujiaopay-help a { flex-shrink: 0; color: #1677ff; }
.ri-popup.dujiaopay-popup .ri-popup-close {
    top: 10px;
    right: 12px;
    bottom: auto;
    left: auto;
    width: 28px;
    height: 28px;
    transform: none;
}
.ri-popup.dujiaopay-popup .svg-close {
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: transparent;
    filter: none;
    transform: none;
}
.ri-popup.dujiaopay-popup .svg-close::before,
.ri-popup.dujiaopay-popup .svg-close::after {
    position: absolute;
    top: 13px;
    left: 6px;
    width: 16px;
    height: 2px;
    content: '';
    background: #667085;
    transform: rotate(45deg);
}
.ri-popup.dujiaopay-popup .svg-close::after { transform: rotate(-45deg); }
.dujiaopay-maximize,
.dujiaopay-resize {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #667085;
}
.dujiaopay-maximize { top: 10px; right: 48px; cursor: pointer; }
.dujiaopay-maximize span { width: 14px; height: 12px; border: 1.5px solid currentColor; }
.dujiaopay-maximize[aria-pressed="true"] span { box-shadow: 3px -3px 0 -1px #fff, 3px -3px 0 0 currentColor; }
.dujiaopay-resize { right: 2px; bottom: 2px; cursor: nwse-resize; touch-action: none; }
.dujiaopay-resize span {
    width: 14px;
    height: 14px;
    background: repeating-linear-gradient(135deg, transparent 0 3px, #98a2b3 3px 5px);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.dujiaopay-maximize:hover,
.dujiaopay-resize:hover,
.ri-popup.dujiaopay-popup .svg-close:hover { background: #eef2f6; transform: none; }
.dujiaopay-maximize:focus-visible,
.dujiaopay-resize:focus-visible,
.ri-popup.dujiaopay-popup .svg-close:focus-visible { outline: 2px solid #1677ff; outline-offset: 1px; }
.dujiaopay-interacting .dujiaopay-frame { pointer-events: none; }
.dujiaopay-interacting,
.dujiaopay-interacting * { cursor: move !important; user-select: none; }
.dujiaopay-interacting.dujiaopay-resizing,
.dujiaopay-interacting.dujiaopay-resizing * { cursor: nwse-resize !important; }
@media (max-width: 600px) {
    .ri-popup.dujiaopay-popup .ri-popup-body {
        max-width: calc(100vw - 16px);
        height: calc(100vh - 16px);
        height: calc(100dvh - 16px);
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
    }
    .dujiaopay-heading { padding: 10px 48px 10px 12px; cursor: default; touch-action: auto; }
    .dujiaopay-heading strong { font-size: 15px; }
    .dujiaopay-heading p { font-size: 12px; }
    .dujiaopay-help { align-items: flex-start; padding: 8px 12px; }
    .dujiaopay-maximize,
    .dujiaopay-resize { display: none; }
}
