.popup-notice-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px;
    background: rgba(20, 33, 46, 0.52);
}

.popup-notice-overlay[hidden] {
    display: none;
}

.popup-notice-dialog {
    display: flex;
    flex-direction: column;
    width: 500px;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    background: #fff;
    /*border: 1px solid #d8dce3;*/
    border-radius: 7px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.popup-notice-header {
    position: relative;
    flex: 0 0 auto;
    min-height: 48px;
    box-sizing: border-box;
    padding: 11px 48px 9px 18px;
    color: #fff;
    text-align: left;
    background: #1976f3;
}

.popup-notice-header h2 {
    margin: 0;
    font-size: 15px;
    font-weight: bold;
    line-height: 28px;
    word-break: break-word;
}

.popup-notice-close {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #fff;
    font-size: 24px;
    font-weight: normal;
    line-height: 30px;
    cursor: pointer;
    background: transparent;
    border: 0;
    transform: translateY(-50%);
}

.popup-notice-close:hover,
.popup-notice-close:focus {
    background: rgba(255, 255, 255, 0.16);
    outline: 1px solid rgba(255, 255, 255, 0.85);
}

.popup-notice-content {
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px 19px 14px;
    overflow-x: hidden;
    overflow-y: auto;
    color: #333b46;
    font-size: 16px;
    line-height: 1.55;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
}

.popup-notice-footer {
    flex: 0 0 auto;
    padding: 14px 19px 20px;
    text-align: right;
}

.popup-notice-confirm {
    min-width: 90px;
    height: 32px;
    padding: 0 16px;
    color: #fff;
    font-size: 14px;
    line-height: 32px;
    cursor: pointer;
    background: #1976f3;
    border: 0;
    border-radius: 4px;
}

.popup-notice-confirm:hover,
.popup-notice-confirm:focus {
    background: #0f63d7;
    outline: 2px solid #8ebcf8;
}

@media (max-width: 640px) {
    .popup-notice-overlay {
        padding: 12px;
    }

    .popup-notice-dialog {
        max-height: calc(100vh - 24px);
    }

    .popup-notice-header {
        padding-left: 15px;
    }

    .popup-notice-content {
        padding: 18px 15px 12px;
        font-size: 15px;
    }

    .popup-notice-footer {
        padding: 12px 15px 16px;
    }

    .popup-notice-confirm {
        min-width: 88px;
    }
}
