/* 用户协议与代理品牌规范共用客服弹框的遮罩和标题栏。 */
#agreementModal { height: 100vh; height: 100dvh; }
#agreementModal .agreement-modal-dialog {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: calc(100% - 32px);
    max-width: 960px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding: 0;
    overflow: hidden;
}
.agreement-modal-content {
    min-height: 0;
    padding: 20px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.agreement-modal-content img { max-width: 100%; height: auto; }
.agreement-modal-content table { max-width: 100%; }
.agreement-modal-footer {
    flex: none;
    padding: 12px 16px;
    border-top: 1px solid var(--color-border);
    text-align: right;
}
@media (max-width: 480px) {
    .agreement-modal-content { padding: 12px 16px; }
}
